/wdg/ - Web Development General

>Previous Thread
>Free resources to get started
Get a good understanding of HTML, CSS and JavaScript.
developer.mozilla.org/en-US/docs/Learn - a good introduction (independent of your browser choice)
developer.mozilla.org/en-US/docs/Web - General documentation for HTML, CSS & JavaScript
freecodecamp.com/
codecademy.com/
bento.io/
google.com

>Further resources
github.com/kamranahmedse/developer-roadmap - Roadmap
youtu.be/Zftx68K-1D4 - Web Development in 2018

>Tools
jsfiddle.net/ - Use this and post a link, if you need help with your code
caniuse.com/ - Check browser support for front-end web technologies

Have nothing to do at work because we need to have our fucking stupid "user story" meeting and have been putting it off for a FUCKING MONTH.

Meetings, huh, good god
What are they good for
Absolutely nothing!

I have to make a doctor's appointment tracking website should I use Java/C# or Python for the backend?
>inb4 brainlet

Why does Laravel-lumen suck so much? I used flask+peewee for a personal project and it was amazing - minimal config, maximum deveopment speed.
I have to use lumen at work and it seems that making the simplest thing is some sort of a hack. The community is shit too. Hold me Cred Forums

Thing that puts me off going into web dev professionally is how much of an fuckin office job it sounds like. I love sitting down at a computer but loathe office culture, sounds like a paradox but it's real.

>Java/C# or Python for the backend?
use PHP. who the fuck does backend in python?

Who the fuck still uses PHP for new projects?

Who the fuck starts new projects? Just work in a legacy app

I checked out PHP once and didn't like it very much.
Still considering to learn Laravel anyway, just because people praise it constantly, but I feel like I would just trick myself into using a language I don't really like by using a framework as a kind of abstraction.

90% of jobs also look for people with PHP skills.
Just use Node.js, hell I would even learn Go, just to be able to have the opportunity to apply for some non-PHP position.
It's all AngularJS, PHP, AngularJS, PHP, AngularJS, PHP

So do I give in and learn Laravel? Especially since it seems to pair well with Vue, which I enjoy a lot.

I know there also is tons of Wordpress work obviously, though from my experience using it personally, before I knew anything about webdev I would want to stay away from that as far as possible.

Use elixir. You will thank me later

Dont! Stand out of the crowed by learning elixir and elm.

Is there any money left in affiliate marketing or is it just a meme? I've got a good niche, just need to make the site using a shitty wordpress blog

Who the fuck has a job? Just be a NEET

I'm making a simple 3D engine with WebGL. What is the correct way to structure large JavaScript projects? Not sure what to delegate to different classes, or whether to stick to OOP principles or try a purely functional approach

It has been two long weeks.

I still can't get nginx to work as I want it. Send help.

I just want it to process;
www.site.com => www.site.com/index.php
www.site.com/login => www.site.com/index.php?=login
www.site.com/login/name => www.site.com/index.php?=login/name
www.site.com/statistics => www.site.com/index.php?=statistics


and;
Not break site URLs for Javascript/css
Not ask me if i want to download the file rather than process and serve it
Not give me NGINX 404's (I handle them in my rouer)
Not give me NGINX 500 errors.

server {
listen 80;
listen [::]:80;

root /home/username/www/site;
index index.php;

access_log /var/log/nginx/site/access.log;
error_log /var/log/nginx/site/error.log debug;

server_name site.*;

location / {
try_files $uri $uri/ $uri.php;
#try_files $uri =404;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
include fastcgi_params;
}

location ~* /.+ {
rewrite ^(.+)$ index.php?url=$1 break;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
include fastcgi_params;
}

location ~ /\.ht {
deny all;
}

sendfile off;
}


Closest I have gotten after I have tried everything i can think of;
I either get it to not break css/js and it serves my homepage and other pages are broken.
The rewrite works and it serves all my PHP pages, with no CSS or JS because their links get broken.

Please, I am begging anyone.. Please... Help me. No end of googling has saved me, I have just been fucking around with this file for 2 weeks and just recycle the same results.

This is the closest I have gotten, redirect works fine but JS/CSS is broken...
server {
listen 80;
listen [::]:80;

root /home/dan/www/site;
index index.php;

access_log /var/log/nginx/site/access.log;
error_log /var/log/nginx/site/error.log debug;

server_name site.*;

rewrite ^(.+)$ /index.php?url=$1 break;

location / {
#try_files $uri $uri/ index.php;
}

location ~ \.php {
#try_files $uri =404;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_IkNFO $fastcgi_script_name;
include fastcgi_params;
}

location ~ /\.ht {
deny all;
}

sendfile off;
}

Web dev forced to do devops because of resourcing at my company.

I have been fighting with CloudFormation for a week, and switched to terraform + ansible + packer today.

It's so fucking nice, I'd probably kill myself if I didn't find these.

First off, they're good for shared vision on a project at multiple levels, both individual tickets and architecture. This is among the most important factor for success of a project.

Second, they're good for business planning. I'd rather have a medium speed project where I know when people are falling behind and I know how long it's going to take than have a fast project that just happens to get in on time.

Meetings aren't useful when they lack structure or could be handled asynchronously. They can also appear to be useless when all you think about is coding instead of programming as a whole.

How would I do a kind of... reverse query? in rails.

I have a table UrlToLead with url_pattern:string, lead:string

An example record would be (url_pattern: 'foo', lead: 'bar')

I want to be able to query using a parameter that's a fully qualified url, like 'mydomain.com/foo' and return 'bar'

Like a reverse like statement. Is this possible with a query? Should I use a block and iterate? Or am I going down the wrong road?

>meeting
More like a sarcasm circlejerk.

Wtf is a "user story" anyway?

Affiliate marketing is just a meme.
Only yuropoors like those