/wdg/ - Web Development General

Core edition

>Last thread
>IRC
#Sup Forumswdg irc.rizon.net/6697
rizon.net/chat/

>Getting started
github.com/kamranahmedse/developer-roadmap/
stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list
ocw.mit.edu/courses/civil-and-environmental-engineering/1-00-introduction-to-computers-and-engineering-problem-solving-spring-2012/
>Languages
docs.python.org/
ruby-lang.org/en/
golang.org/
docs.oracle.com/javase/9/
docs.microsoft.com/en-us/dotnet/csharp/
php.net/manual/en/
>Frameworks
djangoproject.com/
rubyonrails.org/
flask.pocoo.org/
scala-lang.org/
laravel.com/
playframework.com/
>Databases
memcached.org/
redis.io/
mysql.com/
postgresql.org/
mongodb.com/
>Servers
nginx.com/
apache.org/
aws.amazon.com/
>Useful
pylonsproject.org/
jquery.com/
github.com/asciidisco/web-conferences-2018
>python coding challenges from three companies
spit.mixtape.moe/view/raw/a6f6ec1c

Other urls found in this thread:

cityvibe.com/losangeles/PremiumEscorts/yubi-new-gorgeous-sexy/403320,
discord.gg/wdg
martinfowler.com/articles/serverless.html
spit.mixtape.moe/view/raw/a6f6ec1c
umbrellajs.com/
reddit.com/r/webdev/comments/7wvqr6/web_development_technologies_you_can_learn_in/
docs.python.org/2/library/bisect.html
jsbin.com/xuzayudemo/edit?js,output
twitter.com/NSFWRedditImage

Does anyone have any recommendations on a good guide to WebGL? I see a bunch of options for getting started, just wanted to see if anyone has experience/opinions.

Why does no one use Yii anymore?

Man, installing Visual Studio just for learning ASP.Net is a pain.

I have all these cool apps I've built, but I don't know how the fuck to deploy them.

For instance, I've almost completed one that I actually want people to use(and they might), with mongodb and node, but I've no clue how the fuck to do this.

I've deployed just node apps before to heroku, but introducing a DB is confusing as fuck. It's probably easy as shit, but the guides i've followed are garbage.
just here to vent

What's wrong with this, cityvibe.com/losangeles/PremiumEscorts/yubi-new-gorgeous-sexy/403320, webpage?

>escorts
i'mnotclickingthatshit.jpg

It won't bite. Unless, of course, you want it to.

Look into the digitalocean guides. Often you're just better using nginx as a reverse proxy

Outside of Bootstrap, what other UI frameworks are worth learning? I'm using Angular if it matters. Basically, something that helps with layouts.

Thinking about coding a blog, half for fun and half to learn something new (like a static site gen or Vue/React).

Do I really need to have "traditional" blog components like tags, categories, etc that all link to each other? And do you really need to use a static site gen to build the site and use a CMS or Markdown to write posts? Like, for best practices and stuff?

I mean, I kind of just want to hand-code each post with Vue (or React), along with the whole site and whatnot. Is that a cool way to do it, or is that not really best-practice when it comes to blogs or whatever?

It's 2018, there's no need to learn a CSS framework anymore when you can use Flexbox and CSS grid.

Unless you have to support older browsers, you want a bunch of premade styles that make your site look like a template, you want bloated HTML, and you don't actually want to learn CSS.

Are you learning web dev on your own? Do you have any programming experience? If so, then I wouldn't recommend you start with asp.net and C#. The boilerplate will kill you. It'll distract you and keep you from focusing on the important stuff. I'd recommend starting with one of the simpler scripting languages (python, ruby, PHP) or even Go, but to start teaching yourself how to program with Java or C# is a waste of time, imo.

how do I start my own Imageboard? I fucking hate this place Ive never used php or sql before but I know html and I cant figure out how to load kusaba x

FUCKKKK

Go to github, clone some OSS, and get that shit up and running, fag.

yeh but how do I do that idk how to load/run php or sql scrips how do I learn how too do that

I don't know m8. Read the guides/docs, I'm sure they tell you what you need installed/how to get it up and running

What are you working on anons?

Making an imageboard in pure PHP, reading about Django to stop being a scrub.

I start work next week so I'm trying to learn as much Django Rest Framework as I can. Also, guides for advanced django features? Thx

why don't you use laravel? or lume that lighter.

At home? Reading Code Complete and SICP.
At my new job? Unfucking an Angular 2+ app. These people think I am a prodigy. Jokes on them, they're just retarded.

>Code Complete
Would you say the book still has something to teach today? Are the concepts there still relevant? I've heard about this book, but don't wanna waste my time.

Do what works best for you man, just make it easy to update and manage

I too am making an image board in php. I have it mostly complete already and the last big system to finish is the moderation system. I have a cool idea that should reduce abuse.

I guess I should make an admin page for myself as well. I learned so much by coding it from scratch, I’ve never used laravel or symphony and they don’t seem really good for actually learning the language

I dunno man. I can see why a lot of people think its either a wasteful rehash of beginner concepts or an outdated C++ circle jerk. A lot of perennial wisdom is stuck to "back in my day" chaff. Like how SICP schooled me on recursion and streams, but all the Scheme and math just feel in the way.

I'm too stubborn to quit now, I'm just going to check it off the list and move on with my life.

Prototyping tool in Vue and nodejs.

source please

Why do dickheads like Jon Blow and Casey Muratori bitch about web dev so much on Twitter.

Is it because they are bad at it so blame the tech?

How do i handle autologin? I could just save a password has into a cookie but that way anyone on that computer can steal the cookie and login with it elsewhere

discord.gg/wdg

Daily source of web dev discussions, free learning materials and bants.

Look into token based authentication. If your using .net I know there’s a great tut using oauth. Essentially you generate a token that’s assigned to a user account and pass this back with each subsequent request.

Do it by saving a session when the user logs in. This session is tied to the user id in the backend, and it expires after a period of time. That way even if it's stolen it's only useful for x amount of time you specify.

Currently learning Fetch, how do I handle file upload in the backside? So far I understand that it is required to parse the php://input manually before input can be processed in PHP, but how about files?

Cause I was dumb and didn't bother to learn the framework

Session is useless because it gets reset when the user restarts the browser, the point of autologin is to bypass exactly this

what is the difference between saving a token and using an encrypted password hash as a token? it's the same thing basically

How large should my portfolio be before I start to apply for jobs?

I applied with a shitty portfolio, full of half-finished projects. Start applying now, seriously. It won't take you that much time (1hr to apply to 15-20 companies?) and you have nothing to lose. You can learn so much just from failing a bunch of interviews, so you might as well do it now. Also, from my experience, a lot of companies don't even look at your port, they just send you a coding challenge and judge you based on that.

was your portfolio diverse?

>diverse
wtf do you mean? I had two half-finished websites, a lot of online tutorials completed, but those weren't really my code, and one pull request to some open source project.

I guess what I mean is what kind of skills did it show.
did you use lots of libraries?
Backend, frontend?
I guess i'd likeyou to go more in depth

when i applied for a web dev job it was right out of school and i had no portfolio at all and my boss never even asked, he saw i was willing to work for less that was the average going rate and that was what he cared about
they don't really give a shit, they will watch you work for a month or so and if they don't like it they can just fire you inside of the 3 month safety period

sure, no prob.
I'm a python backend dev, I work mostly with django. I completed a few O'reilly books and put all the exercises in repos, books in topics like Tornado, TDD, Redis, Basic networking stuff, building restful apis. Though that doesn't show that I can actually code, I think it does show that I can learn on my own and that I have the motivation to do so, because finishing a book cover to cover is not something a lot of idiots do.

Then for my projects I had one that was an API using django rest framework, consuming other api's and serving out my own. I added some javascript in there for graphs (d3.js) and basic CSS, but I mostly just ignored frontend as much as I could.

Another project was a tinder rip-off with the same basic functionality, although aesthetically far worse.

I deployed some projects on shitty sites like pythonanywhere, but one of them I did get up on a digital ocean vps, so that was fun.

I didn't use a whole bunch of crazy libraries, just the basic django libs, python standard libs, some api clients.

Yeah I agree but I’m sure there’s more to it than my brief overview from memory.

Token based auth is the security mechanism used when account pairing Amazon Alexa skills - granted this is different to browser based security.

I’m not saying this is the right way to do what was asked, was just the first thing that came to my head when I read the question

Nobody here knows regular expressions inside and out, do they? You all use Google when encountering regex, right...?

I studied them in college but fuck it, can't remember all that shit

Nobody knows everything of anything. That said you should be able to write basic regex without using Google. Then again IMHO regex is one of those things that must "click" in your head.

I understand regexes, all the syntax and stuff, but I can't remember the rules, so I just look them up whenever I need to. But yeah, I get how they work.

it's not that hard to remember

i found regex101.com helpful when learning it

I'll never do anything with it though. Just a fun little project.

I wanted to get into learning Sass. But reading up on it, I see a lot of people talking about moving away from Sass to PostCSS. What do you guys think about this? Is Sass obsolete now? Is there no longer any point in learning/using it?

SASS is fine, when something gets too popular snowflakes switch to something else and will sell it like it's the best thing ever

Use SCSS with BEM methodology and a 7-1 structure and you can ignore the bearded microdicked snowflakes switching to postcss

When did responsive design 'clicked' for you?

I'm kinda overwhelmed at the moment with bootstrap and hardly understand how it works, I'm just copying whatever layout I need not knowing shit about the fundamentals.

Is Bootstrap even necessary these days? Any tips/links will be extremely helpful.

With regards to webdev specifically, how should I use Node.js/npm? I want to learn to use it because the name crops up a lot but I'm struggling to understand what I should use the tool for.

Recap : Javascript and php
learning: Ruby ,TypeScript and node.js

PostCSS isn’t a replacement for sass. It just runs plugins over your styling. You can use both. Afaik the PostCSS website explains this

You use it mostly as a console to run commands

Basically you have it open 100% of the time you're coding, mostly you use it to use things like git, webpack, gulp etc.

I mostly use it like this

Open cmd -> cd into project folder -> run my watch task
Then I open a second one but on that I watch my CSS changes so now every time I make any changes it automatically refreshes the browser.

When I need to install packages I cancel the watch task, install a package and run it again.

You also use it for build tasks to compile everything into minified versions.

It's not very difficult, just requires a bit of setup to understand what's going on but most tutorials will explain it if you just search for webpack or gulp

i would rather write an own css grid and layout for the start. more and more people are moving away from bootstrap and it's okay if you just copy needed parts from it if anything.

Bootstrap is still very good to know as it keeps design easy, if you know what you want before you start then bootstrap is useless and annoying but if you're just adding stuff as you go bootstrap is great.

It's like the best tool for making things when your primary focus is on something else, especially when learning

The grid u just need to remember that your columns need to add up to 12. So 3 equal columns would be 3 ‘4’ columns and if you add another column understand that it’s gonna jump to a new row as it’s exceeded 12

The rest of the framework just carry on as you are. Copy and paste an example from the site and adapt it to fit your needs. Over time you’ll start to follow it more. I’ve been using it for years and still need to hit the examples every time for the base stuff then adapt.

>angular
can load views from external template, but can't even use regex for routing

>vue
have dynamic routing, but templating is inherently react crap

>aurelia
can do both
why isn't people talking about this?

I start my first job as a programmer and web dev in one week. Give me any advice for managing the first 3 months pls. Office politics, programming stuff, being the new guy, whatever. Office is about 50 people (half devs, half other staff), less than 10% women, they all look like bros. This is in Germany btw.

Give head.

Why should I hire you for my project when I can hire a pajeet for $2/hour who will do just a good and just as fast job as you?

>pajeet
>good
>fast

Sure, buddy. Go on and hire Pajeet if you want to. But please, do come back and tell us how it went once the project is done.

Try to get along with your fellow devs. Ask alot and try to learn as much as you can. Developers appreciate when you have initiative to try and solve any given problem on your own, but sometimes, its quicker and more optimal to ask for guidance to another dev.

Also, dont bother devs with headphones on.

Source: Lead dev from small company that struggles to hire competent devs.

CHANGE OF TOPIC

Whats Sup Forums opinion on Jquery? I find myself using it every time i need to do something with "Vanilla javascript". Its easier to maniplate DOM with than using pure JS and weights a few KBs to even say that it bloats the site.

do you have to make a component for every page in angular or is it really just for parts of a page?

Sorry Sir My Project Can Not Be delivered On Time, My Street has Lost Power for a Week. I will respond Back To you Soon.
Thankigs you very muchly,
-- Pajeet
(who you never hear back from after 2 months of "employment" and you're left with a half finished piece of shit nobody knows what to do with because it's all a fucking mess)

Any Perl developers here?

I want to switch from PHP to Go. Where do I start?

I think it is a crutch. The few things worth using for are never actually utilized by the developers who use it (Promise polyfill, browser support, event delegation). If you took the time to learn the actual APIs that it uses, you'd be far more productive.

Use document.querySelectorAll, CSS animations, and the Fetch API, and you've covered about 95% of what people end up using jQuery for.

Start at the Tour of Go on the Golang website. It will take you over most features of the language and explain how they work.

You need to write less stuff so it's good.

I tried using vanilla in my latest project but quickly went back to JQuery. Yeah vanilla can do everything but difference in amount of code gets depressing in anything bigger.

Thoughts on FaaS? Does anybody have any experience with it? For us trying to host an amateur project, it seems like it would be even cheaper that getting our own server through Digital Ocean or whatever.

>martinfowler.com/articles/serverless.html

True when it comes to webdev, but
>teaching yourself how to program with Java or C# is a waste of time, imo
Is false imo.

I'm not saying people shouldn't study Java or C#, I'm just saying that in the context of the average /wdg/er (NEETs trying to teach themselves webdev to get a job as quick as posible), Java/C# are bad choices, since there's other languages that are just as employable and much, much easier to pick up.

jQuery is good because it's convenient and you're old, but then again it's 2018

Languages aren't easier to pick up. Libraries are.

Is this guy fucking serious how is this one of the top google results

>spit.mixtape.moe/view/raw/a6f6ec1c
These are pretty cool challenges. I especially like the Mouse vs Mouse one because it's open-ended. Has anyone here done them?

>I tried using vanilla in my latest project but quickly went back to JQuery.
>You need to write less stuff so it's good.
umbrellajs.com/

a few threads ago i posted the solution to the first

python 3
a = int(input())
lst = []
for i in range(a):
lst.append(float(input()))
lst.sort()
lst_len = len(lst)
if lst_len % 2 == 0:
b = lst[int(lst_len/2)]
c = lst[int(lst_len/2)-1]
print (float((b+c)/2.0))
else:
b = lst[int(lst_len/2.0)]
print (float(b))

If I have carpal tunnel right now, should I completely forget about any programming career?

What are some programming careers that do the least amount of typing and more thinking?

You could optimize to not sort the list each time. Look at insertion sort for inspiration.

>carpal tunnel
Not RSI?

Why are they defending PHP that much?

reddit.com/r/webdev/comments/7wvqr6/web_development_technologies_you_can_learn_in/

yeah i know but can't be arsed

for python there's this package

docs.python.org/2/library/bisect.html

>This module provides support for maintaining a list in sorted order without having to sort the list after each insertion.

What was the last thing you created that made you say "wow, neat" out loud?

jsbin.com/xuzayudemo/edit?js,output

Doesn't carpel tunnel heal over time?

I created one hot mess of sticky cum all over my gf's vagene

I just wish she was a 3DPD sometimes

Yes but you have to stop putting repetitive strain on your hands - aka not typing.

Same shit. In the hands.

setInterval(() => {
document.getElementById('cool').innerHTML =
Math.floor(Math.random() * 101);
}, 300)

Nice, you refactored my neat thing but why use innerHTML over textContent?

>Same shit.
No, it isn't. Carpal tunnel means you can fix it with surgery; RSI means surgery isn't effective and you need a complex treatment program. You have this problem that is threatening your career, but you haven't done much research on it at all, have you?

Hey Sup Forums, should I stop using php frameworks like symfony and start using js stuff?

>Carpal tunnel means you can fix it with surgery

That's not even remotely true. Your research is clearly faulty and you don't understand how CTS works. There is no permanent fix for CTS.

hmmst've'd've'st....

..........

.......
...........

.......no

I've been at it for like 2/3 months and this is my roadmap

I just don't get javascript very well though, I feel like 80% of the things freecodecamp or codewars wants me to make is literally pointless at the "algorithm scripting" parts.

Like, you want me to take 2 arrays and then add each number in them together and make a new array with those numbers in a specific order.

When will that ever come in handy in web dev, ever? I can't imagine even one possibility when that might happen.

I also feel like if I can't make a solid site that looks absolutely perfect in every way from a "UX" standpoint why the hell would I begin learning how to do ridiculous shit trying to jump through a thousand hoops to do something I can't even imagine ever needing.

Yes I am shit at maths