[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/wdg/ - Web Development General

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 318
Thread images: 21

File: 1456449140972.png (868KB, 822x552px) Image search: [Google]
1456449140972.png
868KB, 822x552px
/wdg/ - Web Development General


Previous Thread: >>57114490

> Discord
https://discord.gg/wdg
OR
https://discord.gg/0qLTzz5potDFXfdT
(they're the same)

>IRC Channel
#/g/wdg @ irc.rizon.net
Web client: https://www.rizon.net/chat

>Learning material
https://www.codecademy.com/
https://www.bento.io/
https://programming-motherfucker.com/
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md
https://www.theodinproject.com/
https://www.freecodecamp.com/
http://www.w3schools.com/
https://developer.mozilla.org/
http://www.codewars.com/


>Useful Youtube channels
derekbanas
thenewboston
learncodeacademy
funfunfunction
computerphile
codingrainbow

>Frontend development
https://github.com/dypsilon/frontend-dev-bookmarks

>Backend development
https://en.m.wikipedia.org/wiki/Comparison_of_web_application_frameworks
https://gist.github.com/dypsilon/5819528/

>Useful tools
https://pastebin.com/q5nB1Npt/
https://libraries.io/ - Discover new open source libraries, modules and frameworks and keep track of ones you depend upon.
https://developer.mozilla.org/en-US/docs/Web - Guides for HTML, CSS, JS, Web APIs & more.
http://www.programmableweb.com/ - List of public APIs

>NEET guide to web dev employment
https://pastebin.com/4YeJAUbT/

>How to get started
http://pastebin.com/pDT82mQS

>cheap vps hosting in most western locations
https://lowendbox.com
https://www.digitalocean.com/
https://www.linode.com/
https://www.heroku.com/
https://www.leaseweb.com
>>
Why is setting up php such a pain? It's so unlike python that that comes pre-installed. Really annoying and I wanted to get into web development.
>>
>>57156743
How? It's literally some commands in Linux and suitable Wamp package in Windows.
>>
Newbie here. What is the proper way to do this, or how would you handle this:

>I have a page to edit a specific document in Db. It takes an `id` param.
>I have a class to regroup all validation functions, one of them checking if the id exists in Db.

I felt like if I were to check if the id exists in Db, and only after fetch the entire document, it would be a waste. That's two Db request a bit for nothing.
So right now, I do something like this:

>The validation function returns false or the object.

And in my controller, there's now something like this:

if($document = Validation::id($id)){
// ...
}


Is that okay? I don't really like the fact that my validation function returns a bool or an object. I think it should be either one.
But searching for the id to see if it exists, then searching it again to get the document seemed like a waste of time.

How would you do it? Is there a proper way to do this?
>>
>>57156743
apt-get install php7-fpm

I don't get it.
>>
File: 1460055574240.jpg (325KB, 1076x1137px) Image search: [Google]
1460055574240.jpg
325KB, 1076x1137px
Looking for study partners to go srs w/ the ODIN PROJECT.

We'll be working through the projects and providing feedback/commentary to each other. Our goal will be getting a jobz.
If you are interested and dedicated, hit me up at mauser91 protonmail.com

or contact me through discord chat (name is DAHL).
>>
I have to set up a small intranet webapp (and i don't have much time) to help a customer manage his warehouse. To save time and money, i was thinking about setting up a Drupal 7 instance and creating modules for the things the core itself can't manage.
Am i doing it right or there's a CMS already doing this sort of stuff?
>>
File: daniel-tosh-balding-2.png (210KB, 520x461px) Image search: [Google]
daniel-tosh-balding-2.png
210KB, 520x461px
how do i get photoshop for cheap? i dont want to use a crack since i dont trust them to not be bundled with malicious software

whats the best version to use that doesnt require the monthly payment shit? cs6 13.0?

i have a lot of psds that i need to slice up :/
>>
>>57158187
how far are you in the odin project?
>>
>>57158260
Odoo is kind of clunky, but it's free (open core freemium + support model I think) and does inventory management plus a shitload of other stuff. It has an official docker image so it's ridiculously easy to get running: https://hub.docker.com/_/odoo/
>>
File: odn.png (156KB, 517x600px) Image search: [Google]
odn.png
156KB, 517x600px
>>57158468
I just began with the Odin project.
I don't plan on following it rigidly either. At any rate, anyone interested in web dev, feel free to send me a msg!
>>
>>57158446
>how do i get photoshop for cheap?
Either do the SaaS version which is like 20 bucks a month, or torrent it. The top seeded CS6 on tpb is fine, just follow the instructions.

Also,
>slicing up psds in CURRENT_YEAR
Just do it from scratch visually. You can't make responsive sites with chopped up images and it looks like shit.
>>
Is devdocs.io worth anything or should i just stick with Mozilla's guides?
>>
Anyone here using react with node?
How do I achieve this wizardry
>>
>>57158813
>slicing up psds in CURRENT_YEAR
yeah i know but a lot of people are still using photoshop and i need to extract images and logos and shit from the PSDs
>>
>>57156643
Is PHP still relevant?
>>
>>57159088
With PHP7, yes.
>>
I'm building a SPA.
I plan on using React + node on the backend and mysql.

I know JS. Should I first learn ES6 or just stick with ES5 before learning react and node?
>>
>>57158946
whats your github?
I'm almost in the same situation as you.
Want to learn together?
>>
Guys, I spent like 4 hours trying to builf a perfect resume and cover letter for a marketing job and the Apply button won't work...on any browser...even after clearing all my data (can't delete chrome). It happened on my tablet too (that I tether to my phone). Could it be my network? Though I'm not sure how my network could affect random buttons. I'm pretty bummed.
>>
>>57159328
post some code, you fucking cuck.
>>
So what do I basically need to learn for webdev? So far I've figured out it's HTML, CSS and a programming language. But which language should I learn? I know Python a bit, could it be applied in webdev?

Also, which of these are better -- freecodecamp or The Odin Project?
>>
>>57159525
learn javascript

freecodecamp
>>
>>57159396
I just retyped my cover letter on my mom's phone and it still didn't work. :'(

Is indeed broken for anyone else?
>>
File: database-parts.jpg (24KB, 512x512px) Image search: [Google]
database-parts.jpg
24KB, 512x512px
What database software should I use for my Flask-based website?
Everybody seems to suggest SQLAlchemy, but SQL feels like something archaic that shouldn't be used in [current year]. Or am I wrong in this line of thinking
>>
>>57159627
post the http response, you fucking cuck.
>>
>>57159668
Yes you are wrong. Nosql is overrated, especially Mongo.
>>
can someone get me in touch with 4chan? I have some hacking job in store for her. I'm paying lots of $$$
>>
>>57159711
>Nosql is overrated, especially Mongo.
I have indeed heard of the Memego and how it's literally Satan. But I've used Redis for a bit, it was pretty comfy.
>>
Making a fairly simple 10-15 page website. I am worried that if at some point I need to change the header or footer, I will need to edit all 15 pages, leaving a lot of room for error and being quite time consuming.

Is there an way that is easy and doesn't slow down page load times to make my pages load a set header and footer?
>>
>>57159668
SQLAlchemy is fine if you don't need automatic migration.

Django's ORM has much better automatic migration.
>>
>>57159840
yes, look up templating.
>>
>>57159840
>Is there an way that is easy and doesn't slow down page load times to make my pages load a set header and footer?
http://jinja.pocoo.org/docs/dev/templates/#child-template
>>
>>57159855

I tried, but google is just filled with people selling me templates
>>
>>57159862
i dont think you know what template means.

see >>57159859
>>
>>57159846
>SQLAlchemy is fine if you don't need automatic migration.
I think there's a thing called SQLAlchemy-migrate for that.
The Flask tutorial I'm following implements it from the start and promises no problems with migration in the future, whatever that means.
>>
>>57159886
Migration in the context of ORMs means that the database definition is automatically updated when you change the model.
>>
>>57159904
That makes sense, thanks.
I'm still too new to settle on Flask or anything else, so I'll look into Django as well.
>>
>>57159931
Flask is fine and SQLAlchemy is, too

Honestly I never tried migration with SQLAlchemy. Downside of Django, steep initial learning curve.
Upside of Django: few puzzle parts, high integration.
>>
>>57159760
>her
Did you just fucking assume zhir gender?!?

>>57159818
Redis is indeed comfy, but it's technically not a database, just an in-memory key-value store. It lacks a lot of database functionality that gets to be important for production-grade apps.
>>
>>57160094

Nice, have a (you)

You tell xem!
>>
File: tumblr_m2hpn4XlZQ1r73plvo1_500.gif (402KB, 500x354px) Image search: [Google]
tumblr_m2hpn4XlZQ1r73plvo1_500.gif
402KB, 500x354px
I want to make an internal wiki for documenting and writing setup procedures for a team research project.

What's a good approach to get it done?

Ideally pages would include text, lines of code, pictures and diagrams.

I don't need anything fancier than clear boxes around the code à LA github md file.
>>
>>57160352
https://help.github.com/articles/about-github-wikis/
>>
>>57159525
fcc, and yeah you can throw around python somewhat in web dev

you need to learn way more than just html css and a programming language tho (also javascript should be next for you), especially if you're self taught, places won't be impressed that you can make a basic website

just take a look at a bunch of web dev job recruiting posts, and look for commonalities and learn them within reason
>>
Good, free graphic design software?
>>
>>57160388
I can't be on github cause the work is "the property of the university" so I though about hosting it on the lab server.
>>
>>57160413
pirated adobe shit
>>
>>57158938
Pretty sure devdocs pulls directly from MDN. It only has documentation on the various builtin objects and methods and whatnot, if you need guides, you'll have to go to MDN.

>>57158946
>>57159212
>React + node
React is a clientside view library, boyo. You talking about doing the server pre-render thing?

>Should I first learn ES6 or just stick with ES5 before learning react and node?

>Should I first learn the CURRENT VERSION of javascript, or stick with an old version while I learn these new things.
Of fucking course you should learn ES6, what kind of question is that. It's not like there's much to learn, just a few extra language features.
>>
>>57160422
In that case maybe you can run a local gitlab server? It has a wiki that's more or less the same as gh's (as well as repos, issue tracking, etc.) except that you can self-host.
>>
>>57157437
bump
>>
>>57161248
It's fine, I'd check specifically for false instead of a truthy value, though.
>>
>>57159525
I feel bad for upcoming web developers, HTML/CSS is only the surface.
Hang in there bud...
>>
>>57161744
So I finished html, css, javascript, jquery, bootstrap fundamental courses on lynda and codecademy. What do you suggest to learn next the goal is to be come a web developer? PHP? MySQL? Angular, node?
>>
>>57162582
you have enough in your tool belt to create your own projects. So do so, as you hit a wall and need to learn another language or tool, then do so.
>>
>>57162611
Well I just want to be marketable to find an entry level job and almost every posting requires PHP, .NET, or some other shit that I don't even know how to pronounce. What do?
>>
To all of you asking how to become a web developer, read the previous 50 threads, these threads consist of 50% "How to become a web developer", 49% language wars and 1% actual discussion.
>>
>>57162690
you can have every single language and tool and framework in your resume but it doesn't fucking matter at the end of the day if you have zero projects/apps/websites in active use.
>>
Does anyone have experience with push notifications? I'm trying to decide which provider I should use for them.

I'm thinking maybe urban airship or amazon SNS. Anyone know which of these is better?
>>
>>57162912
Does Chrome no longer require you to use GCM?
That's good then.
>>
Creating a portfolio as a new web dev hopeful. If I've never had any official work. Is it alright for me to make fake websites to put on my portfolio?

What do if have no professional projects?
>>
>>57163032
focus more on creating real experiences over 'fake websites', like try and actually solve something or give something to people (not in a charitable way).

like sure you can make a fake pizza store website, but what's the point when maybe you have a friend or family member who has their own store and needs a website? or maybe you're hugely into movies and want to create a really weird database of movies with xyz.

At the end of the day, it's just a demonstration of ability, but you're way more motivated to finish projects if they're focused on real problems.
>>
>>57156743
Use python then instead of PHP for web dev.
>>
>>57163079
That makes sense. So just for clarification: making a pretty website isn't really something I should worry about then? Just demonstrating my abilities in real world applications?
>>
>>57163214
I believe it depends what kind of job you're looking for.

Simple freelance web dev for business owners? I think you should have several projects focusing on pretty design, because that's what the non-computer people will focus on. That and ergonomy.

If you're looking for working in a company, you should focus on the technology. Don't stick to what you know, show multiple projects on multiple tech, let them see your code to show your skills, etc.

Also, contributing to open-source projects or build plugins is good. It shows you can make useful things, work in a team, adapt to a project you don't know, etc.
>>
>>57163214
Depends what role you're aiming for with this portfolio. If front end is part of it, yeah appearance is important. If not, appearance isn't so important and you can just tweak some bootstrap themes (for example).

Keep in mind though, even if you're exclusively going for 'non-front-end', your projects should still be functional and appealing to use. So you'll still have to spend some time designing things so it's easy, understandable, and encourages people to keep using it/coming back.

So let's use a basic calculator as an example. A calculator that is designed to be legible for all users, extremely accessible, and looks 'meh' is going to be much better in the eyes of employers than something that looks phenomenal but isn't accessible.
>>
>>57158187
slightly off topic, but how the fuck do you actually pronounce dvorak?
>>
>>57163578
Shit, now that I look closely at that word, I've been pronouncing it wrong. I've been pronouncing it as "door-vak".
>>
>>57163578

>https://de.wikipedia.org/wiki/Datei:Cs-Antonin_Dvorak.ogg
>>
File: Peek_2016-10-20_09-13.gif (113KB, 1354x642px) Image search: [Google]
Peek_2016-10-20_09-13.gif
113KB, 1354x642px
>>57163628
this is immensely satisfying.

also who else is making a terminal UI for their REST backend?
>>
>>57163617
I've been saying DUH-VOR-ACK

Not sure if wrong.
>>
>>57157451
He's an idiot.
>>
I got my first "bigger" project as freelancer, yay!

But I don't want to make any mistakes:
Do I put it on GitHub? I don't think it would be a good idea if everybody can see it. But on the other hand I want it for my Portfolio, since I hope to get employed next year (not planing to stay freelancer).


Also any general tips for BB's first big project appreciated: things to do? things to avoid?
>>
>>57159668
What's wrong with MySQL?
>>
>>57163880
About GitHub, don't ask us, ask your employer. I have a friend whose client got mad for seeing his website source code on the Internet. He planned to sue (or to interrupt the contract, I don't remember) and my friend had to remove it.

You could still have a portfolio that shows your clode-source creations.
>>
>>57163880
Get a private account, take screenshots and put that on your portfolio along with a link as long as the site stays up.
>>
>>57163880
>Do I put it on GitHub?
Depends on the project, but generally speaking if it's not open source, it doesn't belong on github (private repos notwithstanding, of course). If you want it in your portfolio, just take some screenshots and write a short description, and link to it if possible. (before you do any of that, ask the client if it's okay. They might not want their shit spread around. If it's a website, it's probably fine though.)

>things to do?
- a good job

>things to avoid?
- fucking up
>>
>>57164022
>>57164031
>>57164037

Thanks, good idea.
Is a private repo worth it, though?

I'm not really with Git (but used SVN before), I don't know if I should include it in my workflow or if it is just annoying as single developer.

How "professional" (i.e. unit testing, documentation) would you do it?
>>
>>57164156
>How "professional" (i.e. unit testing, documentation) would you do it?
Depends on the client, depends on the project. How many time do you have? Does it require long-term maintenance?
>>
>>57164156
Always use source control.
You can always use Bitbucket if you don't want to pay, but I prefer the Github UI and you can have unlimited private repos on the first premium tier nowadays.

And like >>57164269 said, it depends on if they want to pay for it. At least write some basic setup instructions for your future self/whoever takes over.
>>
>>57164269

I will also be the webmaster of the website afterwards (at least for some month until they found someone). Maybe some maintenance in the future, can't tell yet..

>>57164322

OK, thanks a lot.

So basically I put every project in a single repo because I can?
Also what would be an apropriate documentation? 20 pages of basics stucture and some functions? And where to put it, leave it online as txt-document for some future maintainers? Put it in the source code?

I've done smallscale programming (and documentation) before, but I haven't done any website before that was big enough to require documentation..


Sorry for that noobish questions, no bully please..
>>
>>57164404
Make a README.md in the root of the repository and make a Setup subsection in there.

How big is this project anyway?
>>
>>57164422

It will take me about 3 month, but not full-time, why?
>>
>>57164156
>>57164404
> 20 pages of basics stucture and some functions?
I don't know what your project looks like, but that sounds like a lot. Tbh I would start out by just making a README.md with setup instructions, overall structure, API documentation if relevant, and anything else that someone might want to know. If the page gets too big to manage, split it into separate files.

As long as your app is laid out logically and your code is well-named and well-commented, you shouldn't need a massive amount of documentation. As far as testing goes, I would definitely do it if the app is as complex as you say. If done properly, just a few tests can save you a huge headache later on. BDD + CI is a fantastic way to code.
>>
>>57164322
>You can always use Bitbucket if you don't want to pay, but I prefer the Github UI and you can have unlimited private repos on the first premium tier nowadays.

Look at GitLab, especially if you want free unlimited private repos, a decent free CI built in and a better UI then bitbucket (although can be a little slow)
>>
>>57156643
I know this is a widely asked question but I'm still going to ask.

How the fuck do I begin learning? My endgame isn't to be employable but rather try making websites that will earn me money. There are so many languages and a bunch of guys love to shit on all of them.

What language should I try to learn and how?
>>
>>57165517
>I know this is a widely asked question
No shit
>but I'm still going to ask.
...

Read the OP, Read >>57162817, Use Google.
>>
>>57165590
It's so confusing to me, google says one thing and then the complete opposite. I want to practice. I guess I'll just continue learning c#
>>
>>57159525
Learn about how the internet works, basics of HTTP, etc. These lectures took me from fairly retarded to being able to talk with, and clearly understand, the senior devs at work.

https://www.youtube.com/watch?v=8KuO4r5CHjM
>>
>>57165517
https://hackernoon.com/how-it-feels-to-learn-javascript-in-2016-d3a717dd577f
>>
is it worth to learn ruby? I just wanna a web-dev job as soon as possible, I'm already learning Java, but I wanna something diferrent.
>>
>>57165756
Just don't learn all this JavaScript garbage then. Use jQuery to work with the DOM and leave it at that. Not everything needs to be a SPA built with a meme framework, you can still serve up pages the old fashioned way in whatever language you fancy.
>>
>>57165792
If you want a job ASAP learn PHP and WordPress. You'll get a job, but it'll suck.

I would recommend Python/Django over Ruby.
>>
>>57165613
C# is better than all other languages that get shilled around here. Just avoid web forms.
>>
>>57165818
>have to work on windows

nah fuck that
>>
>>57165816
I see, most of PHP jobs in my city are shit, the salary is the half compared to a Java or .Net job.

The problem is that java have to fucking things to learn, JSP, JSF, Hibernate...
>>
>>57165945
The salary is shit because the job is easy to get and it's largely monkey work. You're not going to walk on as a junior dev and be making great money unless you have a CS degree or are clearly skilled, and based on your posts I'm assuming neither apply to you. TIme to pick a language and bust some hump m8.
>>
>>57165517
>>57165613
Start with the "How to get started" section. Some asshole put the two youtube links in a pastebin unlabeled, but it's still good info. The first one should be useful in particular. Codecademy is a good place to learn programming skills. I would start there, and then go into either Freecodecamp or Odin.

Also, this: >>57165689
Based Malan is based.
It's a bit outdated in parts, and you might not want to stick with it all the way through, but the first few are especially good. CS50 is also a good intro to computer science, as is MIT 6.00. (both are available online)
>>
>>57165990
Shit, it's true, it's time to get my shit together and learn this shit, I wanna so bad a fucking job that I'ill do anything.

Thanks man.
>>
>>57166090
Just stick with it when you feel dumb. It's apart of the process.
>>
>>57165517
Vanilla PHP and vanilla JS.

I do what you want to do.
>>
>>57156643
Can anybody recommend a micro framework? Language doesn't matter.
>>
>>57165517
JavaScript & HTML & CSS are barely minimum.
>>
>>57166157
This.

When I was first starting a few years ago I asked the exact same question, and some anon told me to get this book

https://www.amazon.com/Fundamentals-Web-Development-Randy-Connolly-ebook/dp/B00K883IXK

You can just find a pdf of it on google. This shit doesn't hold your hand like freecodecamp, but I stuck with it and by the time I was almost done I was applying for jobs and getting interviews for junior positions. It's kind of outdated but the material is still fantastic, imo.
>>
>>57166180
I know basic HTML and CSS, not that there is much to know anyways. I have learned a bit Javascript as well but it's really shitty because I'm used to C#
>>
>>57166176
Slim
>http://www.slimframework.com/
Phalcon
>https://docs.phalconphp.com/en/latest/reference/micro.html
>>
>>57166176
Express is pretty great.
>>
>>57157437

I'd say return an object . and check the object's properties if the id exists or not . if yes , then check the other properties . if not then that property should be false .
>>
is it just me or does the documentation suck dick for bower and gulp? its like i have to take bits and pieces from poorly written articles all over the Internet to try and figure this shit out

idk maybe im just an idiot
>>
>>57160094

Redis for me, so far, is for custom session handling which does not utilize cookies. That's only based from what I've read so far. Correct if I'm wrong la.
>>
>>57160352

MediaWiki . or you can reinvent the wheel.
>>
>>57156643
>cheap virtual hosting
>heroku

what
>>
>>57166201
>I know basic HTML and CSS, not that there is much to know anyways.

CSS is getting very complex. I won't be surprised within next five years there will developers who are specialized in CSS.
>>
>>57166176
>>57166590
Express will stay out of your face and make node.js bearable.

The cryptic packages you need for handling POST parameters is pretty obnoxious though.

also
>});
>>
What practical uses are there for CSS/Javascript what with so many saasy website platforms out there? What should be focused on the most?
>>
>>57159840
You have at least this two choises to get you started:

1- Use a templating engine and run a server (arguably PHP does the best job for such a task, since most cheap shared hostings already have it running, but if you have a VPS already then use whatever language you want).
BTW, if you only have 15 pages, for now, don't use a templating engine, php is a templating engine by itself.

For example, create a header.php file and put all the navigation and <head>. Then in index.php, place this code:

<?php include "header.php" ?>

<h1> Body of the page </h1>

<?php include "footer.php" ?>

This should work

2- Pre-generate the site in your computer (offline) and upload the generated files into your web server. In this case, I highly recommend you to use Jekyll (big userbase), although it can be triky sometimes, specially if you want to install it on windows or if you don't use Ruby.... If you want to know your other choises, look it up as "Static site generator".

Sorry 4 the bad english I'm to lazy to correct grammar
>>
>>57168308

What actually is Express js in relation to Node.js? So Node itself is the equivalent of something like raw PHP and Express is kinda like Laravel?
>>
>>57169389
Yes.

It handles a lot of the boring stuff for you, but not exactly plug and play.
>>
>>57169454

And is Express the most popular/supported Node framework for that kind of thing?

I'm trying to get back into web dev, used to just use HTML/CSS/raw PHP, now it seems to be all about various JS frameworks and platforms.

So Node itself (there's nothing Node-like that competes with Node right?), Express, and something for the front-end like React or Angular would complete the stack? Or are there other things I should be considering for full stack JS dev?
>>
What are the newest ad tools for mobile?

I notice most mobile sites opt for some kind of modal. Anyone know what they use (they all look the same).

Also the ads that popup from the bottom. How can I get those?

I've used adsense for years but am redesigning my old sites for mobile and am lost. Anyone have any info?
>>
If I'm a total newfag to webdev with low IQ. Which framework would you recommend for me?

I'm considering Ruby on Rails. If those "sjws" and "hipsters" you like to make fun of can use it, surely it isn't too hard?
>>
>>57170009
learn vanilla first of whatever language you think looks useful.

also, from what i've seen, iq doesn't matter.
>>
>>57164021
Nothing, relational databases are usually a great idea for most people
>>
>>57170436
Yeah that's the plan but I just want to know what to bother with rather than what neckbeards strum their beards to. I want something I can jump into quickly instead of struggling to appease autistic people
>>
Can you use jQuery & CSS to animate a color gradient? So for example a smooth transition of colors constantly cycling inside a div
>>
>>57159668
SQL in itself is a general term. Relational databases are absolutely fine.

Learn how to use MySQL and PostgreSQL. MySQL is widely used but not very performant. PostgreSQL is much better performance-wise, but not nearly as popular.

SQLAlchemy is an abstraction on top of most common relational database software. If you write code with it, it should work on top of both MySQL and PostgreSQL.
>>
What's your experience with online IDEs? I have been using both the cloud9 and the codeanywhere ones because I am a lazy motherfucker and hate configuring shit, and honestly both are comfy as fuck, but I wonder if the paid licenses have remarkable downsides I should be aware of.
>>
Anybody knows something about html email and email campaigns?
Where to start if i have 0 html and css knowledge.
>>
>>57164021
Using collection instead of tables gives you a lot of freedom.

You can fine tune the design of the database according to the current needs and change it later on with ease if needed be, in the particular case of MongoDB, using BSON vs a Schema, allows you to focus on the data more rather than the exact structure it should have.
>>
>>57166176
sinatra/padrino is great
>>
>be me
>java ee/spring programmer for ~15 years
>hated by everyone on the internet
>no frontend js skillz
i've been looking at angular for a while, but what should i create with it to properly learn the framework?
>>
Any good resources on events in JS?
It's kind of something I've overlooked and now they're causing problems.

I understand the concepts of eventListeners, but passing the event object as a parameter to functions (inline or using .addEventListener) kind of eludes me.

events of children elements also seem to trigger parent object events of the same trigger and it's a fucking pain.

thorough tutorials / resources on this you guys can recommend?
>>
React or Angular?
pros and cons?
>>
>>57170734
Did you lie on a resume or something? YouTube it.
>>
>>57170734
0 html knowledge? it takes literally 5 mins to learn html
what are you fucking retarded?
you fucking cuck.
>>
>>57173107
>you fucking cuck.

Spotted the millennial with no job. Back to /pol Bernie supporter.
>>
>>57173355
actually I'm currently employed as a wordpress developer. I do very well, also Bernie or bust.
>>
which do you prefer

function msgAfterTimeout (msg, who, timeout) {
return new Promise((resolve, reject) => {
setTimeout(() => resolve(`${msg} Hello ${who}!`), timeout)
})
}
msgAfterTimeout("", "Foo", 100).then((msg) =>
msgAfterTimeout(msg, "Bar", 200)
).then((msg) => {
console.log(`done after 300ms:${msg}`)
})


or

function msgAfterTimeout (msg, who, timeout, onDone) {
setTimeout(function () {
onDone(msg + " Hello " + who + "!");
}, timeout);
}
msgAfterTimeout("", "Foo", 100, function (msg) {
msgAfterTimeout(msg, "Bar", 200, function (msg) {
console.log("done after 300ms:" + msg);
});
});
>>
>>57172996
both shit 2 b h
>>
>>57173632
are you speaking from experience?

whats better?
inb4 VanillaJS
>>
hey guys....

are we really dumber than /dpt/?
>>
>>57173699
yeah, but at least not all of us are unemployed.
>>
>>57162582
Node for sure. Php is aids
>>
Should I include the work I've achieved on FreeCodeCamp on my CV, or does it just look kind of tacky to have it there? Should I let the projects I've developed speak for themselves without having the stigma of 'web-learning' hanging near it?
>>
>>57174099
dont include any online schools on your CV.
make sure your projects are well documented.
>>
>>57169389
Node is a JS runtime environment. It's like running JS code in your browser, except instead of being able to interact with a web page via the DOM API, you can interact with the machine it's running on.

>So Node itself is the equivalent of something like raw PHP and Express is kinda like Laravel?
Ehhh...kind of. It would be more accurate to say Node is like Python and Express is like Flask. You can use Node to do pretty much anything, not just web stuff. (technically you can also call PHP from the command line to do anything, but who the fuck does that?)

>What actually is Express js in relation to Node.js?
Node's http API is pretty low level and somewhat difficult to do anything useful with out of the box. Express sits on top of that and generally makes things easier by handling routing, templating, headers, formatting, and whatnot.

>>57169492
>there's nothing Node-like that competes with Node right?
No, there's tons of stuff: Python, Ruby, Go, Java, just to name a few.

> and something for the front-end like React or Angular would complete the stack?
Depends on what you want. You can make a SPA with React/Angular/whatever and serve up a REST API with Express (or Flask, Go, PHP, whatever) or you can generate pages serverside with a templating library and serve them up as with PHP (or some hybrid of the two).

>Or are there other things I should be considering for full stack JS dev?
Consider that full stack is bullshit. You should know a little bit about everything, but if you want to make money, pick something and specialize.

>>57170009
>>57170470
Someone is going to give you shit no matter what you go into so just pick what you like. Rails is good (and hipster sjws do like it for whatever reason) as is Python, Node, PHP, etc. They're all roughly in the same ballpark difficulty-wise. And no matter what you pick, it'll be hard and you'll go back and forth between feeling like a 1337 haxxor and a drooling idiot for most of your career. That's normal.
>>
>>57170479
>MySQL is widely used but not very performant. PostgreSQL is much better performance-wise, but not nearly as popular.
That's...not true. MySQL is more performant in some areas, Postgres is better in others. And Postgres is extremely popular.

>>57170694
I've used several, and never had one I liked better than coding on my own machine. And I definitely wouldn't use them for any sensitive data.

>>57171797
MDN, brah
>>
File: asdfasdf.png (549KB, 587x640px) Image search: [Google]
asdfasdf.png
549KB, 587x640px
Serious question, why are so many web developers 'hipsters'? Like tattoo sleeves, coloring their hair, funny cat memes etc. I don't have a problem with it, just curious.

I am genuinely curious why web developers seem to fit this mold compared to coding careers.

pic related.
>>
>>57175548
Good question that I have no answer to.

Maybe they use their art degree to worm their way into web design, then realize the pay for web dev pays like 3 times more so they learn how?
>>
How can I stream web dev without giving away passwords and database information?
>>
>>57175762
A: Don't open those files
B: Change them to something else temporarily.

Would you like help breathing also?
>>
>>57174167
Should I not even mention "self-taught"?
>>
for learning web dev. which approach do you guys prefer / think is better?

>courses / building stuff (sites/pages) / project videos

and

>tutorials - step by step courses.
think: "okay now if you type this piece of code, this happens." repeat a lot of times

that's what it feels like researching where to start. pretty intimidating when there's like million possibilities
i'm thinking of getting the super general things down and then learn by doing the first one since i've read a lot of people call html/css """easy"""
anyway, was just wondering what you guys think/any input?
>>
>>57176308
You should start by building an enterprise social network driven by AI.

Did you walk before you could crawl?
>>
>>57175942
You're not me, you liar.
>>
>>57176308
tutorials & courses are good for starting, then build stuff once you have some skills.
>>
Would it be best to learn html/css through code academy or buy a "for dummies" book?
>>
>>57176436
REEEEEEEEEEEEEE
>>
>>57176436
Don't buy anything for HTML and CSS.
>>
>>57176371
Sorry I forgot to say "not that fag, but" first
>>
>>57176308
w3schools

Gives you practical examples and gives understandable explanations. Begin building rigjt away, no matter what it is
>>
>>57176436
http://learn.shayhowe.com/html-css/
>>
> tfw get a job as junior web dev
>first week, feel out of depth
>second week, actually feel like I belong
>third week imposter syndrome
>today (two months after staring) get told I did a good job on the two websites I've built and put like

I;m starting to feel like I belong /g/
>>
>>57173551
const msgAfterTimeout = (msg, who, timeout) =>
new Promise((res, rej) =>
setTimeout(() => res(`${msg} Hello ${who}!`), timeout)
)

msgAfterTimeout('', 'Foo', 100)
.then(msg => msgAfterTimeout(msg, 'Bar', 200))
.then(msg => console.log(`done after 300ms:${msg}`))
>>
File: 1474054650230.jpg (243KB, 1280x1005px) Image search: [Google]
1474054650230.jpg
243KB, 1280x1005px
>slipping a photo with a 4chan filename into my homework

who /devilish/ here
>>
>>57173687
yes, and right now react is going through legal shit, angular has always been a fucking disaster
you should know vanilla tho
also try out vue
also get used to how shit angular is
>>
>>57176308
I just got write into it. If you learn step by step and tutorials, you're introduced to things in a vacuum and you don't really understand it.

If you just start out with something you want to build in mind, your thought process becomes, "okay, I know I want to do this, so how do I do this". So you google it and get answers, and that helps you learn because you know what that thing is used for.
>>
>>57177577
>unix timestamp
>wew lad its from 4chan
no
>>
>>57177411
What skills did you have when you got your job?
>>
>>57177769
I'm a girl
>>
>>57177769
HTML, CSS, SASS, basic understanding of best practices and a good idea of problem solving and a decent idea of PHP.

I knew a bit of javascript but was still learning at the time.
>>
How hard would it be to webdevelop a website like this one?

Which framework would be best suited for the job?
>>
File: rain.jpg (114KB, 1008x720px) Image search: [Google]
rain.jpg
114KB, 1008x720px
waddup

I need to know how many simultaneous visits AWS can handle. What other hosting do you reccommend for a very large number of this kind of visits? (thousands)
>>
File: _20161021_014534.jpg (158KB, 768x1019px) Image search: [Google]
_20161021_014534.jpg
158KB, 768x1019px
>>57177926
Opps forgot image
>>
>>57177929
1-100 000, depends on your shit.
>>
>>57177947
the aws fees don't show me simultaneous visits, only visits per month. Where do I find this info? am I being retarded?
>>
what kind of websites should i make to show off my skill?
>>
>>57178086
ratemypoo.com

>>57177971
If you have a static site you can have 100x more users at the same time.
>>
>>57175548

>Serious question, why are so many web developers 'hipsters'?

Say you live an "alternative" lifestyle and definately don't want rigid hierarchies or wearing collar and tie every day? Right, WebDev it is.

Also since it's a lot about human/machine interaction (UI/UX and so on), you naturally have a lot of guys with some artsy background in most teams.

Lastbut not least, web development is the scene wich has the best possibilities for freelancers, so many devellopers started it as a sideproject even if they get employed somewhere along the road. It natrually attracts people with a higher need expressing themselves than a typical 9-to-5 wagecuck developer.
>>
>>57177634
that's a great answer anon thanks
i feel like starting step by step stuff with actual programming languages is the way to go but with web. dev. i can learn by following "creating a ___" tutorials and so on
>>
>>57177945
you really don't need anything but HTML and CSS for that...
>>
>>57178905
tbf, thing of something that't be cool to build, then take idea apart and think, okay how to I build this specific part and move on from there piecing together
>>
Where should i host my website if I'm expecting a lot of traffic/users?
>>
>>57179629
How much is a lot?
>>
>>57178996
how to trick morons into falling for it?
>>
>>57179629
Wherever the fuck you want.

Amazon or digitalocean.

>>57179687
We don't advocate shit ideas for 10s of dollars, fucking Indian.

>>>/biz/
>>
>>57174451
Postgres has a lot less support compared to MySQL.

And as for MySQL sucking in the performance department, it's completely true. Use Postgres or MariaDB.

I've seen idle mysql servers using more resources than postgres servers that are under load. Absolutely terrible.
>>
>>57179904
>We don't advocate shit ideas for 10s of dollars, fucking Indian.

>The guy who got arrested for it made millions of dollars

lol okay NEET
>>
I'm writing another [generic-imageboard] software, does anyone have feature suggestions that they'd like to see?
>>
>>57180087
Please make an Image Manager instead.

Instead of using a filesystem, I want a db for my pic folders, so I can have a tag system, md5 hash for duplicate, source name, etc.
>>
>>57180087
Emojis
>>
>>57180087
Remove names and tripcodes (serious suggestion)
>>
>>57180157
Filesystem is a pretty okay way to store files... hence the name.

>>57180087
Le upvotes :^)

>>57180195
Custom emotes :visiblyupsetnazimemefrog:
>>
>>57180951
Never said it was bad. Read again.
>>
>>57177929
If you know Python, check out zappa. It runs on aws lambda spawning an instance for every request. Should scale very well and keep costs low.
>>
In JS, is there a way to call a function on an object, but formatted as a method call? For example, like calling .map on an array, but calling a function on the array itself rather than on its elements. (The intention being to make the whole thing all purty and chainable.)

I know you could do it by modifying the prototype, but I'm hoping there's a simple way built in.
>>
>>57156643
What's the best book to learn HTML & CSS?
>>
Pick one, hamburger menu or dropdown navbar?I'm trying to pick either one of them for usability and UX sakes. If it helps, I'm using Materialize.
>>
What is your favorite web hosting service for personal projects?
>>
>>57183729
OVH
>>
File: 1397325741268.jpg (123KB, 403x1000px) Image search: [Google]
1397325741268.jpg
123KB, 403x1000px
I'm a programmer and don't know how any of this professional set up stuff is.

How would I go about making a website that hosts a friend's animations and lets people watch them, without buying an actual server?

From my lack of knowledge it sounds like you need to do something like.

>register a domain name for a few dollars
>buy storage space from some datacenter to store videos
>buy a website from godaddy for 8 bucks.
>send html and asp.net code to them to apply to the purchased website????

am I on the right track here?
>>
Is there anything wrong with taking the approach:

"This has been done before, let me just copy and paste it."

This is my go to approach, of course I always change it up a bit if it is not 100% to my requirements.
>>
>>57184366
What languages do you know?
>>
anyone here who knows PHP feeling nice?

I am trying to work with eporner's API. They have a PHP XML parser example here:

http://www.eporner.com/api_src/api_example2

...it's supposed to yield the following, which is NSFW:

http://www.eporner.com/api_example2

so when I run the code from the first link I get everything to appear, but I also get an error like the following:

Notice: Undefined index: value in /mypath/example.php on line 56

so it loos like inside the parseMov($mvalues) function it doesn't like the "value" being undefined? anyone know how to fix that? I don't really understand it. this is literally my first time working with PHP :(
>>
>>57184963
post code
>>
>>57185015

I did above, sorry I didn't make that clear really. It's the first link from above: http://www.eporner.com/api_src/api_example2

I am just running that exactly as is and I get the error.
>>
>>57185058

I would throw it in code tags here, but it's too much to fit.
>>
>>57182097
Do you mean formatted as a method on that object? I think you have to use prototype.
>>
>>57185058
>anyone here who knows PHP feeling nice?
>I am trying to work with eporner's API. They have a PHP XML parser example here:
>http://www.eporner.com/api_src/api_example2


Your code is in there? Is it encrypted and compressed into a sentence?
>>
>>57185099

idk what you're asking me or trying to say man.

I copied all the code from their example here: http://www.eporner.com/api_src/api_example2

I pasted it in my own example.php file. I didn't change anything. when I run it I get the error I mentioned above, in addition to everything still working correctly.

like I said it's too much code to paste here.
>>
>>57184848
none that I can't learn the syntax for.
>>
I would write it in PHP.

Admin login with upload input, title input, description input.

Stores in DB.


>buy domain
>buy hosting at DigitalOcean
>setup droplet of ubuntu 16.04
>create LAMP environment https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04

then do what I said locally and ssh it over.
>>
I've got a web stack started up and I want to learn how to actually incorporate PHP into my applications. I can program but I've never done webdev before outside of some okay html/css/js and I have no idea how any of this actually fits together. Where learn? I don't even know what files to put together.
>>
>>57185607
Delete PHP and write everything in Javascript.
>>
>>57185636
E-even for mysql?
>>
>>57185651
E V E R Y T H I N G
>>
>>57185183
I think it's because the object can't properly assign some of the data it's being sent.

Still looking.

I just know this is ugly as fuck even though I get the whole $k key and $v value thing

>$aa
function movie ($aa)
{
foreach ($aa as $k=>$v)
$this->$k = $aa[$k];
}
>>
Does anyone have PHPstorm cracked? This shit makes me feel empowered. I tried one torrent but it was malware.
>>
>>57185669
The whole thing is odd. I got the videos to embed, but the code is so shit I could have rewritten it by now.
>>
windows or linux hosting?
>>
>>57185793
ubuntu
>>
>>57185669

cool, thanks.

from googling it seems like in the parseMov($mvalues) function is trying to access an undefined index of an array inside the for loop. basically every result i see in google for this type of error uses isset() or array_key_exists() to check and make sure the index exists... yet I'm not really sure how to implement.

still looking but have had a few beers so this will probbaly have to wait until tomorrow.

thanks for looking into it though, I do appreciate it.
>>
>>57159088
With a solid framework, yes.
Still used by a lot of big firms.
You can easily land a good job with it.
>>
>>57185789

yeah I got everything to load correctly, but I also have that error.

if you haven't looked at it, eporner's main page about the api might provide some more context: http://www.eporner.com/api/

there is a second PHP code example which loads embedded videos instead of thumbnails, but it has the exact same shitty xml parser, which appears to be causing the problem.

I also emailed them lol. but I think it's a bunch of dmitris so I doubt they'll respond.
>>
>>57185799
Cool, I gotcha, dude

function parseMov($mvalues) 
{
for ($i=0; $i < count($mvalues); $i++) {
if (array_key_exists('value', $mvalues[$i])) {
$mov[$mvalues[$i]["tag"]] = $mvalues[$i]["value"];
}
}
return new movie($mov);
}


Just copy in what you see here.
>>
>>57160352
Look for "DokuWiki"
>>
>>57185846
You get it going from
>>57185850
?
>>
>>57185850

awesome!!! error gone. thanks a lot man. been getting nowhere working on and off for the past couple hours, so I really appreciate it.

probably should study some basic PHP moving forward tho lol
>>
are all single word .com domains registered? anyone have any resources on finding good brandable domain names?
>>
>>57185895
>are all single word .com domains registered?

probably. I mean would you want an ultra obscure single word just because it isn't registered yet?

the shopify business name generator tool is useful: https://www.shopify.com/tools/business-name-generator

put it one word and it will come up with a bunch of combinations.
>>
File: 1363039985667.jpg (52KB, 800x562px) Image search: [Google]
1363039985667.jpg
52KB, 800x562px
Newfriend to coding.

<?php
if(isset($_FILES['video'])){

$name = $_FILES['video']['name'];
$type = explode('.', $name);
$type = end($type);
$size = $_FILES['video']['size'];
$random_name = rand();
$tmp = $_FILES['video']['tmp_name'];

if($type != 'mp4' && $type != 'MP4' && $type != 'webm'
&& $type != 'mkv' && $tpye != 'avi'){
$message = "Video Format Not Supported";
} else {
move_uploaded_file($tmp, 'videos/'.$random_name.'.'.$type);
$message = "Successfully Uploaded";
}
echo "$message <br/><br/>";
}
?>


Whenever I try to upload a video and move it to a file within the same directory I get this warning

Warning: move_uploaded_file(videos/874847283.webm): failed to open stream: Permission denied in /opt/lampp/htdocs/videoupload/videoupload.php on line 28

I set full permission on the folder and still the same warning, help and no bully please
>>
>>57185886
Reading an API isn't exactly beginner PHP stuff and that sample code they give is awful stuff to learn from. Just look at how the spelled 'length'. Anyways, happy to help and good luck.

>>57185895
Names have to be pretty crazy. I usually mix words and pray. I've trashed entire protosites because I couldn't get the domain name I needed.
>>
>>57185922
Has to be permission related since the error. I'm not sure what error would be thrown if fileuploads was not set to on in php.ini but you could check that.
>>
>>57185922
Try with a premade script

Create a folder called 'uploads' first

then here's upload.php

<?php
$target_dir = "uploads/";
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
$uploadOk = 1;
$imageFileType = pathinfo($target_file,PATHINFO_EXTENSION);
// Check if image file is a actual image or fake image
if(isset($_POST["submit"])) {
$check = getimagesize($_FILES["fileToUpload"]["tmp_name"]);
if($check !== false) {
echo "File is an image - " . $check["mime"] . ".";
$uploadOk = 1;
} else {
echo "File is not an image.";
$uploadOk = 0;
}
}
// Check if file already exists
if (file_exists($target_file)) {
echo "Sorry, file already exists.";
$uploadOk = 0;
}
// Check file size
if ($_FILES["fileToUpload"]["size"] > 500000) {
echo "Sorry, your file is too large.";
$uploadOk = 0;
}
// Allow certain file formats
if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg"
&& $imageFileType != "gif" ) {
echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed.";
$uploadOk = 0;
}
// Check if $uploadOk is set to 0 by an error
if ($uploadOk == 0) {
echo "Sorry, your file was not uploaded.";
// if everything is ok, try to upload file
} else {
if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) {
echo "The file ". basename( $_FILES["fileToUpload"]["name"]). " has been uploaded.";
} else {
echo "Sorry, there was an error uploading your file.";
}
}
?>


Let's see if it works.
>>
I need a web dev job, I'm from CA stat, self taught, I think I'm pretty good, been coding for over 3 years for fun and small person to person projects.
>>
>>57186114
launchcode.org
>>
File: 1420518618562.jpg (100KB, 800x680px) Image search: [Google]
1420518618562.jpg
100KB, 800x680px
>>57185962
>>57185974
It actually was a permission error. I must have set full permission before adding the 'videos' folder, I'm dumb.
>>
>>57173534
>wordpress """"""dev""""""
bro that literally is the cuck of the software world
>>
>>57157437
Use your validation function to check if the input is sane (in your case if it's a non zero positive number) and if not throw a bad request error. Then you can select the document from the database and handle the 404 case separately.
>>
>>57186166
They should make a casual version of linux for people who aren't afraid of getting a virus every time they click something.

Permissions is my least favorite part of web dev.
>>
Anyone know how to read ctree-ACE db? The tools to do so is hidden behind the shitty company.
>>
>>57186188
I worked at a wordpress agency for a while. I was the only person there who actually knew how http worked.

I had to train new "developers" on the difference between a <p> and <div> tag. Most of them had never actually done any programming before. One coworker and myself were the only people allowed to touch any of the php.

I could rant about that place for hours. Glad I do actually development work now.
>>
>>57186312
>im fucking retarded please make technology dumber for me
>>
>>57186312
that would just be a massive security risk waiting to happen. Literally learn what a user is, what a group is, what chmod, chown and chgrp do, learn to use ls -al and learn to use usermod. It's about 30 minutes of reading if you're not retarded. Linux permissions are a blessing.
>>
Saturday morning, had my coffee and now I'm ready to go. What are you working on, guys?

btw, sharing this torrent because it's awesome for beginners:

udemy - the complete web developer course - build 14 websites.torrent
https://u.pomf.is/wrszvy.torrent

Or if you've got $200 just laying around, you can buy it here
https://www.udemy.com/complete-web-developer-course/
>>
File: aaa.jpg (45KB, 744x572px) Image search: [Google]
aaa.jpg
45KB, 744x572px
need some help.
I have a setup like this and i want the user to hover on each red box with div class a, b ,c and then change the background pic of the #service div so different background for different box. i realized i cant do it with pure css because i can only change/target children or siblings and not parents. so i guess i gotta use Jquerry but im still learning. also the background pics are huge so if i try to load them while user overs its gonna take them a while to load and thats not gonna be pretty.. i want it to be instantaneous so i need a way to load all the pics when the site loads and hide them and then 'reveal' them when i hover i think.. any help?
>>
>>57187403
Untested code ahead.
<div id="service">
<div class="serv-content">
<a href="#" data-uri="/path/to/backgroundA.jpg">a</a>
<a href="#" data-uri="/path/to/backgroundB.jpg">b</a>
<a href="#" data-uri="/path/to/backgroundC.jpg">c</a>
</div>
</div>


$service = $('#service');
$('.serv-content').on('mouseover', 'a', function() {
$service.css('background-image', 'url(' + $(this).attr("data-uri") + ')');
});


As for preloading, just google "preloading images", I'd also suggest optimizing the images down to a smaller size if you're going to use them for backgrounds.
>>
>>57187685
You could also just include the entire image in each element as a base64 encoded attribute value and use that content as parents background image. Probably the easiest way to preload them
>>
>>57187760
Then you'd end up with a 5MB page load before content is shown.
>>
>>57187782
Only if your images are fuckhuge
>>
>>57187800
There's also the matter of browser cache, better to send 5kb HTML and let the browser figure out if the images should be loaded than always having to send 500KB+ of base64 images along with it.

And if you want to replace an image you just put a new one in the folder instead of having to go and re-base64 it and replacing it in the code.
>>
>>57187685
thank you so much! each of the red boxes are <div><p>some text in white fon</p></div> that has its own black background with opacity of 0.5 when you hover over it so if i put a <a> tag outside of each of them hopefully it should work and each image that im trying to preload is around 550kb and im gonn try this method

<div id="preload">
<img src="path/image-01.png" width="1" height="1" alt="Image 01" />
<img src="path/image-02.png" width="1" height="1" alt="Image 02" />
<img src="path/image-03.png" width="1" height="1" alt="Image 03" />
</div>
Then in your CSS, add:

#preload {display: none}


hopefully it works!
>>
>>57187901
If you want to use divs just switch the 'a' to 'div' and it should still work.
>>
>>57186791
idk man it seems to me that literally every other place i go to claims it is the best place to start and everything.
the choices are pretty much endless and feels kinda intimidating for a beginner like me

what do you guys make of that?
i suppose that feeling is there when approaching to learn anything new at all, programming languages or not and you just gotta choose one and stick with it
>>
Just code shit if you want to get better, always a bit outside your comfort zone.
>>
>>57188022
just start with anything, man, it doesn't matter. As long as you're always doing something you're good. Eventually you'll start to figure things out and then you can plan out your path more carefully.

But saying "I want to do backend with ruby on rails and frontend with angular.js" when you've got no idea what any of that means is just plain stupid.
>>
>>57185093
Yes, as in:
// Instead of this:

function doSomethingTo(thing) {
// look at this stateful bullshit. Absolutely disgusting and impure.
thing = thing
.split('')
.map(x => x.toUpperCase())
.join('');
return transformInSomeWay(thing);
}

//////////////////////////////////////
// write it like this:

function doSomethingTo(thing) {
// Look at that single, long method chain, uhhnnnnfff muhdick
return thing
.split('')
.map(x => x.toUpperCase())
.join('')
.doSomethingSomehow(x => transformInSomeWay(x)) // this is what I want to be able to do.
}

>>
>>57184366
>How would I go about making a website that hosts a friend's animations and lets people watch them, without buying an actual server?

Put them on youtube.
>>
>frequently have disagreements with team leader about JS and its future direction
>I'm a promise/async guy, he's almost religously loves callbacks (and hates promises)
>he hunts down every single $q.defer in this project
>he invented his own $http wrapper which uses callbacks
>thinks that new JS features are meant to appeal to Java people
>his argument is that Java people can't wrap their heads around callbacks, and that callbacks make JS unique and "not just another programming language" and that these new features are trying to make JS like Java
Is he right?
>>
>>57169546
Adsense has an option for the popup ads on mobile, they are called page level ads. You can check out my site for a quick example, but you have to be on mobile to see it: http://tehjr.com/#googleads
>>
>>57172996
React has the benefit of being able to share code with React Native, which is a platform to build native apps for iOS and Android. Personally I found Angular too closed system, and I also prefer the React syntax style.
>>
>>57189101
>I'm a promise/async guy, he's almost religously loves callbacks (and hates promises)
He sounds like an idiot.

>thinks that new JS features are meant to appeal to Java people
That's retarded, but even if it was true, which it isn't, so what?

>his argument is that Java people can't wrap their heads around callbacks
So he's trying to obfuscate his code against shitty Java devs?

>and that callbacks make JS unique and "not just another programming language"
unique != good
>>
Could I get some opinions on my college project? It's written in C# and JS, served by ASP.NET Core 1 with a React front-end. I know I need to refactor some stuff, but other than the container component, what should I do?

https://github.com/HermantNET/Quiz-Your-Friends

>>57189101
He probably thinks he sounds really cool because he finally wrapped his head around callbacks after 10 years. 10 more for him to understand promises I guess.
>>
>>57186791
Gonna keep working on my REST API package for Django.
>>
>>57189271
I have no idea how to use ASP.net, so I took a look at your react code.

Your containers are doing Way too much work and state manipulation. You can either refactor to use redux or break your containers out into several smaller containers. But, either way, the code is clean and works well. Good job.
>>
>>57189819
Thank you for your input. I'm thinking of breaking down the container into a room state container and then a game container to go inside. I have never used redux but am planning to tackle it over the next 3 days. Can I expect my code to become more concise with the use of redux?
>>
>>57189982
One state is cleaner than many and can be used over the whole application.
>>
>>57186791
Might be finishing up the backend for my site today.

I'm still trying to figure out how far I can push the idea before I start getting sued or have to do real work moderating content.
>>
can I fully replace PHP with node?
>>
>>57190131
legal trouble, sounds fun. What sort of website is it? Post link if you can, or just describe it in general.
>>
File: textboard.webm (1MB, 1191x822px) Image search: [Google]
textboard.webm
1MB, 1191x822px
Been spending today writing a textboard that'll eventually become an imageboard. I've just been using Flask, and development time has been really quick.

Just trying to think of the best way to handle admins/mods, and how to do image thumbnails
>>
>>57190936
is it real-time? Even long-polling would be a really cool feature. What are you running on the back-end?
>>
>>57190936
You got the date format wrong.
>>
>>57191219
It's not real time, but that's an interesting idea. I'll note that down.

>>57191248
I didn't. Other places than America exist.
>>
>>57191291
None that matters.
>>
>>57190271
Pretty much.
>>
>>57186791
FYI it's actually on sale for $19 right now.
>>
File: 1475106160727.jpg (270KB, 1180x874px) Image search: [Google]
1475106160727.jpg
270KB, 1180x874px
>>57190936
>that date format
Thank you
>>
File: chrome_2016-10-22_14-58-09.png (9KB, 427x205px) Image search: [Google]
chrome_2016-10-22_14-58-09.png
9KB, 427x205px
I just added ads to my sight last night, are these numbers real? I've only got around 40 impressions but a CTR of 27.27%, but isn't $10 a bit much for that? I find it hard to believe.
>>
>>57186791
what does /wdg/ generally think about those super long courses? (video says 6 weeks, description says 28 hours) is it typically worth the grind?

also can anyone confirm the torrent? / any seeders? is it fast?
>>
>>57192419
It's easier to grind a well structured course than it is to grind through multiple sources, but one big disadvantage is you are locked into that courses way of thinking. It's good for starting out, but eventually you need to learn to think for yourself. I'd recommend grinding through the course if you're a beginner, but also taking steps to check out other implementations of the same problem from different vendors.
>>
>>57192419
I haven't taken that course in particular, but I've done a few other udemy/coursera courses and generally been pretty happy with them. They're a good option if you need more structure than just self-teaching with tutorials/docs but not so much as a bootcamp or a degree would give you. As with anything, you get out what you put into them.
>>
>>57192345
AFAIK (I've never had ads), depends on the ads. some are much more expensive than others
what site, btw?
>>
>>57192345
anon do you run a mesothelioma forum
>>
Is it a bad idea to take an image of a website template, code all of it into html/css/js by hand and then put that in my portfolio? Do employers care if you didn't make the entire design yourself? I've already got a complete portfolio, but I feel like I'd be better off if I replace one of my shitty looking self-designed projects with something more visually appealing.
>>
>>57192682
Steal like an artist, anon. Pick elements from a few different things you like and put your own spin on them.

>Do employers care if you didn't make the entire design yourself?
Are you talking about literally copying the css code or just utilizing an established design language like MD? If you're trying to pass yourself off as a frontend dev with nothing but default-themed bootstrap sites and plagiarized shit, yeah they're going to think you're full of shit (and rightfully so). On the other hand, using established design principles that actually work are what make you seem like you know what you're doing.
>>
>>57192596
>>57192632
I feel like a spammer dog since I posted it before, but since you asked, my site is http://tehjr.com, and it is not a mesothelioma forum ;). For some reason I'm getting a CPC of $0.70 which seems insane. Really wish 4chan would bring ID's to all boards, makes discussion a lot better while still remaining partially anonymous.
>>
>>57192904
>If you're trying to pass yourself off as a frontend dev with nothing but default-themed bootstrap sites and plagiarized shit
Not him but what about making and editing the design on your own but starting from a template?

I don't like front-end development and having to do a whole desgn from zero sounds agonizing to me.
>>
How long is too long for a website's load time? At what point would you start asking if something's wrong?
>>
>>57193547
https://google.com "website load time study"

Less than 2 seconds, ideally 0.5s
>>
>>57193137
Okay, imagine instead of web development, you're trying to work at a cake shop, and they want you to show off your baking skills to see if they want to hire you. Consider the following:

Option 1: You show up with a cake that you made from scratch and clearly put a lot of effort into. Even if it isn't perfect, it shows that you have passion and at least moderate skill. They can teach the finer points of cake-making on the job, but they can't teach passion.

2: You show up with a store bought cake and try to pass it off as your own creation. It's going to look like low-quality greasy generic shit compared to a real cake. It shows that not only do you completely lack integrity and pride in your work, but you probably don't actually know the first thing about cakes.

3: You show up with a cake you made with store-bought cake mix. It makes you look pretty lazy and unskilled. Even if most of the cakes you'd be making on the job normally come from pre-made mix, this was supposed to show off what you're capable of. The presentation of the cake had better be really damn impressive for them to overlook that.

4: You make a cake COMPLETELY from scratch. You grow the wheat for flour. You raise the chickens for eggs. You even make your own mixer from steel you smelted. Everything. It shows two things: First, you definitely know how to make a cake. Good job. Bravo. Second, you don't value your time at all. They already filled the position months ago. The cake is reasonably impressive, but your hand-made flour and eggs aren't up to the same quality as the industry standard, so it doesn't fluff up right and tastes a little off. You could have just saved the time and money and gone to culinary school to learn how to make a reasonably delicious cake.
>>
>>57193621
What if im so good at plagiarizing that it looks nothing like the template?
>>
>>57189101
>callbacks make JS unique and "not just another programming language"
what in the fucking hell
do you know if he ever learned C?
>>
>>57193137
>starting from a template
absolutely fine, anon, don't worry about it.

>>57192419
6 weeks is ridiculous for that course. I think he's trying to pretend there's more content than there actually is. There's 10 units and I've been doing one per day, while also working a 9-5 job, so if you take it slow it shouldn't take you more than 3 weeks, at a rate of 1 unit every 2 days.

What's good about that one is that it shows you how to easily put together a whole bunch of different languages/resources. It pretty much gives you a full stack to work with, which not many videos or books out there do. Give it a shot, and then choose a few of those things to specialize in.
>>
>>57193745
yes, you fucking mong, this is what people do in the industry. You don't have to fucking code every single library you use yourself, IT'S OK!
>>
>>57192917
>http://tehjr.com
what's this? I don't get it...
>>
>>57193800
It's a multiplayer quiz web app. You make a room, have a friend or a new tab of yours join the room, ready up, write a question, then answer the questions everyone submits. It's pretty simple and there's a few bugs currently, the major ones having to do with latency.
>>
>>57193825
the problem with the site, I think, is low traffic. I've gone in to check it out a couple of times and I'm always alone, so I really can't test the functionality.

Have you thought about making a single-player option, with pre-made questions?
>>
>>57193855
I've been thinking about it, but there's already plenty of websites that do that and the purpose of the application is multiplayer. In the future I do hope to save users questions to a database and filter out one's with bad words, then creating quizzes from them. I could probably include single player when I get to that point, but that's at least 3-4 months off.
>>
>>57193745

Basically, either you get caught or you don't. Just keep in mind that if you cheat to get hired and then can't actually do the job, it will still catch up to you sooner or later.

And if you can put them side-by-side and not tell, it's not really plagiarizing at that point, is it? I would even bring it up in the interview. "I did X like Y because I liked the way Z site did it", etc. There's absolutely nothing wrong with copying ideas, as long as you make them your own. Michelangelo didn't invent paint, or color theory, or drawing beefy, homoerotic biblical characters, he just put it all together in a unique way that people seemed to enjoy.
>>
>>57192345
Yeah, it's pretty normal. That CTR is really high though. Make sure you're within adsense guidelines or they will ban you and keep your money.

Good trick is to keep it 1 pixel more than the minimum pixel distance allowed from the nav bar. People will still click it.
>>
Why can't I download a file from GitHub (specifically githubusercontent.com) using NodeJS HTTP GET in Electron?

I seem to be able to download any other file on the internet, except for ones from github.com or githubusercontent.com.

Also, I can download from these domains using XMLHttpRequest in regular javascript, or just using curl via the command line.

But when I try this within NodeJS, I just get an empty response body.

Does anyone have any insights as to why this may be?
>>
>>57194394
What's the response code? Do you follow redirects? Maybe referral headers?
>>
>>57194444
Ah, I hadn't looked at that. It looks like it's 301 - permanantly moved. Other sites I requested actually returned a body in addition to the 301.

How would I get the redirect link?
>>
>>57194606
You'll get a
Location: <url>
header along with it.
But if you're using a decent library to make the requests there should at least be a switch to follow redirects, check the docs.
>>
>>57194646
Yeah, looks like there's actually a module that's recommended for most request stuff. I was just using the low level get request module built into node.

Thanks anon
>>
Never used Wordpress before, but is it possible to torrent their themes? I don't think I'd pay $50 for a fucking theme, so...
>>
>>57194681
What are you building?

>>57194725
Some might be available, but if they notice they might send lawyers after you or your host.
>>
>>57194748
how would they notice? It's not like they can DRM it, can they? Ignorant on the subject, please share your knowledge
>>
>>57194748
I'm making an Electron app that scrapes putlocker for movie/tv streams. Basically just a better interface to the site.

Basically all of the actual functionality of the app is in the clientside js. The Node stuff is just for making an updater that pulls source files straight from my github.
>>
File: 33MnTdq[1].png (93KB, 213x278px) Image search: [Google]
33MnTdq[1].png
93KB, 213x278px
>>57156643
How do I make my suggestion list look less ugly? I'm awful with css.
>>
>>57194966
jesus christ that's ugly. First thing would be border-radius:5% or some shit like that
>>
Im trying to add a link to chrome bookmarks but nothing happens when I click on the href="chrome://bookmarks/#2" link.
Can I work around this any way.
>>
>>57194794
Alright, never used it.

>>57194792
Depends a lot on the theme, I'm no expert on what they do in the Wordpress world, but some themes are locked to a domain or have other ways to validate them.

Someone else might be able to fill in some details.

>>57194966
Lighten up the grey, don't use pure black, make it as wide as the input field and consider some more padding.
>>
>>57158938
>https://egghead.io/
>>
>>57194966
Make the desplegable list look as wide as the text box, rounded edges for the list and the selection (border-radius is something that makes stuff look much nicer and is retardedly easy to use), and also make the gray more intense.
>>
New thread when
>>
>>57196748

>>57196748
>>
New thread

>>57197188
>>57197188
>>57197188
>>57197188
Thread posts: 318
Thread images: 21


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.