/wdg/ - Web Development General

At least add a fucking JSFiddle link, if you post your dumb question, that you could just as well have looked up on MDN in like a fraction of the time.

Previous thread: >Beginner Roadmap and Overview
github.com/kamranahmedse/developer-roadmap
youtube.com/watch?v=UnTQVlqmDQ0

>Free beginner resources to get started
Get a good understanding of HTML, CSS and JavaScript.
developer.mozilla.org/en-US/docs/Learn - a good introduction to HTML/CSS/JS and Node.js or Django
freecodecamp.org - curriculum including HTML/CSS/JS, React, Node.js, Express, and MongoDB
javascript.info - curriculum providing a strong basis in JavaScript

>Further learning resources and documentation
developer.mozilla.org/en-US/docs/Web - excellent documentation for HTML, CSS & JS
hackr.io - crowdsourced collection of tutorials from across the web for learning languages and libraries (ignore sponsored stuff, look at upvotes)
learnxinyminutes.com - quick reference sheets for the syntax of many different languages (generally not sufficient on their own for learning something, but very helpful)
pastebin.com/gfBPg24A - Collection of PHP links.

>Asking questions
jsfiddle.net - Use this and post a link, if you need help with your HTML/CSS/JS
3v4l.org/ - Use this and post a link, if you need help with PHP/HackLang

Attached: 1559671217141.png (1280x720, 180K)

Use Ruby user, final warning

Attached: gun.jpg.jpg (866x1300, 52K)

sry, didn't mean to be that rude in the OP, but in any case, post that jsFiddle link

Why does Firefox adds a blank space after the first page when printing? Any oldfag knows a workaround? Chrome works as expected.

>dude use jQuery
>dude use Laravel
>dude use Bootstrap
On a scale from naw to yeh how autistic is it to want to write all the neat shit I see in plain js, html, css and php?
Calling magic functions that do what I need is too boring.

its pretty based

I like jQuery, everything else should be done personally tho

But most of what jquery does is already natively supported.

Are Ruby and ROR dead?

How do you guys know how much money to ask for a webpage?

Slower, way slower but WAY more flexible and 100000% faster

get the owner to talk about an optimistic estimate for how much the webpage will earn them over the next 5 years
10% of that seems reasonable to me.

That's pretty useless considering my third world shithole has a fucking insane inflation.
How about individual pages or by functionalities?

Personally, I like to keep my dependencies/libraries as minimal as possible. I've never touched jQuery and haven't used Bootstrap in a while.

I write all my CSS without a framework, and that's really not that much work if you know CSS.

For JavaScript, I write plain vanilla JS for small pages, but I will reach for Vue when I have more complexity, e.g. a single page application or something that needs UI updates.

For backend, I don't use PHP so idk, but I've heard using plain PHP without any framework can result in bad habits. If you're not going to use a framework I would at least try and do some kind of MVC architecture.

Rails is out of vogue, so not as many companies and startups are using it for new projects. You can probably still get a job using it if you find the right companies, since many have products to maintain or are primarily Ruby shops.

Also Ruby continues to be big in Japan, but that doesn't really matter to most devs.

writing a http server in haskell.

fukken wizard m8

You should use jQuery for dom manipulation, because if you don't, you just end up eventually rolling your own functions that's just a worst version of jQuery.

How does SEO work?
My barebones knowledge assumes it's filling the page with words like those YouTube fags.

I already have an ajax-like and a carousel-like function, but I'm fitting it to the shit that I want/need.
What could possibly go wrong, user?

Uniquenes and dept into a topic are things that give you a boost, if I'm not mistaken. But in most cases it ends up being "write an essay with as many keywords involved as possible"

"So you want to learn SEO, or search engine optimization? You want to learn how to get to the front page of google? Great, we're going to tell you how to have a lot of keywords on your web site. This will explain how to raise revenue with SEO. We'll explain how google's algorithms work.porn sex horny teen free porn"

top fucking kek, they're suposed to be keywords related to the topic you're touching, right? What you showed is a classic example of black hat SEO if I'm not mistaken.

Yeah, having the keywords that you want to rank for on your page is part of it. But on top of just having those keywords, you should make it clear that those keywords are important on this page. So that can mean making sure the important words are inside the headers (in s or s or whatever), and using the important words multiple times across the page for emphasis (plus in the alt texts for images if applicable).

You should also make sure your page is easily crawlable, e.g. compliant HTML and if you have a single page app, consider server-side rendering some parts of your pages (if you have a traditional, server-side rendering site then don't worry about this). Also make sure your page is fast to load, since doing that awards you some points with Google (check out their Lighthouse audits to make sure your page is reasonably fast).

Finally, there's the importance of backlinks. Basically, you want other sites to link to your site, preferably sites that are already ranked well. I've heard this used to be a bigger factor in how sites are ranked against each other but now other factors are more important, but I'm not sure about that.

its not too hard, here's a simple one:
app :: Application
app request response = do
putStrLn "Handling a request!"
let path = rawPathInfo req
case path of
"/hello_world" -> responseLBS status200 [("Content-Type", "text/plain")] "Hello, World!"
"/index.html" -> responseLBS status200 [("Content-Type", "text/html")] "Hello, HTML!"
_ -> responseLBS status404 [] None

The reeally cool thing is you can encode your APIs in a type and Haskell will make sure you've implemented them correctly.

I just flubbed a recruiter call boys. I forgot it was on the calendar (thought it was next week) and she lead with "Hi user, I'm sure my colleague Jamal has reached out for your over email." and I dropped my spaghetti and was "??? I'm sorry, which organization is this?" and asked a bunch of dumb questions like "do you have my resume?" when I just emailed it to her yesterday did and was generally unprepared. No technical questions though.

Hopefully I didnt blow it too hard. I feel foolish.

Reading made me wonder.
People nowadays expect some sort of "under the hood" shit on their webpages, right?
Or do they just ask the webpage administrator to write the changes and pages they need in HTML/Whatever the fuck they use?
One's gonna be a static site like a landing page and the other could be updated whenever they want. What's the price difference between those two?

I keep seeing these "Fuckhuge page with all the info in it, just scroll" pages.
Is this shit attractive to people?
I don't really mind, dem parallax images look so fucking good.

I checked the archive and found pic related, is this user right? I already know js/nodejs but was planning to learn php now (linux, php, nginx, mysql or postgresql) because php has more jobs than node in my area. if this user is right which language to use instead of php?
java is the programming language that has the most jobs in my area but it will take ages to learn all tools employers asks and I need to get foot in the door asap

Attached: lamp_is_poison.png (955x239, 26K)

Post your shitty JS/React and I'll judge it, if I feel like it.

A CSS framework isn't really necessary, but if you're working on a bunch of stuff you'll probably want some common base styles. CSS generators like SCSS make it much easier, and make most frameworks unnecessary once you get some basic design stuff down. For JS, same thing. Unless you actually have a complex application there is just no need. For a backend, I think you probably don't need much, but if you start dealing with databases you are probably going to end up writing your own framework over time, so it might be worth considering it.

Eh. Dogmatism like that is the only thing that is really "harmful". Anything prescriptive like LAMP, which is yet another meaningless acronym, helps just as much as it harms. The point about PHP being "stateless files" is a pretty dumb statement considering HTTP is stateless protocol, and nothing about PHP as a language requires it to be stateless (there are PHP frameworks that work as long-running processes). Don't learn some stack just because there is an acronym for it. Learn the concepts that let you know when to use different tools.

I'm building a React site that's basically going to have a main page, and a few others, but then a few hundred pages that have the same layout but with different text and images. I've been thinking of using Gatsby and pulling the text from a spreadsheet and the images from a CDN. Does this make sense or would something else be better?

He's right about #1

MySQL and PHP are just fine though. He's wrong that web applications should be self contained processes. That's how you get your server to crash and drop all connections. One thing that's great about PHP is that every request has it's own execution environment which isolates any script crashes to the user. If you manage to mistype a variable or forget to wrap exception-prone code in a try/catch in let's say, nodejs, your single threaded application will drop all other connections. To avoid that you'll need to set up a load balancer running multiple instances of the same application and a process manager for your server to reboot it as soon as possible which will result in downtime for all users for at least 20 seconds. But then again, setting up a load balancer and process manager is already pretty much configured with PHP (php-fpm).

Gatsby would be a good choice but know that if you have content that will change often (e.g. a forum) you'll need to regenerate the whole site as it doesn't have incremental generation support.

Not going to be a forum but I'm thinking about using a spreadsheet because it will be a long term project for the person adding the content.

Just started learning this and I'm so hard on myself for not knowing everything in the last 2 days.

why does Jow Forums hate web dev and say it's a fake brainlet job?

I made my school a website on wordpress for free with divi builder it took like a total of 3 days to make and has about 20pages... is it even worth charging for something like that?

don't feel bad i was so annoyed by all the job hunt spam in my email when a recruiter called my phone i just said... "who is this? i don't remember applying..."he said i applied yesterday and he was right but i just hung up the phone thinking it was some scam

>sign up for azure account
>get email from a Kristin Meyer, automated specialist
>it’s not a person, it’s a bot that they endowed with a human name for some reason
Why, Microsoft?

thanks anons for making things clear to me, I'm going with php, as I said before it's one of the best to get the foot in the door
can I get a useful book recommendation on nginx, php or sql or should I just print their documentation and read it all?

Yeah when your builder expires your website's data and content is lost

He's going to need to depend on you for a maintenance service for life unless his business goes to shit and the site isn't needed anymore (since you can't sell the license, so basically he's going to need to suck your cock while you're sucking their cock)

Hi lads. I am a student majoring in CS. My finances are very poor and I've worked nothing but min wage jobs since I was 15. I am 22yrs old and never made more than $9 an hour. The courses i've taken have been mostly useless and impractical. I will say that I honestly am not all that interested in webdev, but I am interested in learning actual employable skills. Linear algebra and discrete maths and algorithm analysis and all that are surely useful, but require a lot of time investment and aren't immediately valuable. Rather than spend hours studying abstract theorems I want to focus on something that will actually increase my chances of getting hired somewhere other than a restaurant.

Assuming I am focused and put in multiple hours a day, are the resources listed in OP enough to become hireable? How long do you think it would take?

Sorry if these posts are annoying or common, but I don't know where else to ask.

Using react, does anyone have any idea why my input isn't working?

const ChildComponent = ({name, onInputChange}) => {
return (
onInputChange(e)} />
)
}

class ParentComponent extends Component {
state = {
name: ""
}
handleInputChange e => { ... }
return (

how do I make money without getting a job or doing freelance?

You've capitalized "Input". Do you have a custom Input component?

nevermind I had the setstatefunction in the handleinput wrong

Yeah that was just example code it has a few syntax errors

>how do i earn money without doing absolutely anything

who the fuck still uses vagrant and jenkins?

it’s not that I don’t want to do anything. I just don’t want to deal with other humans.

Attached: 7AA9D7DF-FCE0-48F1-B3C7-5947F5BC94DA.jpg (500x500, 47K)

get an assistant then

I haven’t figured out how to get paid myself how is that going to help

Is it common for large companies to obfuscate js code? Since I've been learning I've inspected some sites in dev modes and some have ridiculously long event functions for even basic tasks to the point that it is unreadable. It looks like they purposefully fill their functions with bullshit for some kind of security reason.

It's more of a side effect of compressing it to keep the filesize small.
Their framework might actually be hundreds of single js files which then get concatted into one and then get compressed automatically on build.

They might also let an obfuscator run over it before compressing to make it harder for anyone to read.
Mostly this is just a simple option that can be turned on.

If you inspect sites you'll rarely find any hand written scripts anymore that haven't been run through some tools for deployment.

Example. There's 30 pages of this (size 8 font), and it's not even the only js file the site uses.
So it's computer generated by frameworks and such?
It's hard to imagine why this much code is needed.

Sucks if there's no handwritten scripts since I get curious sometimes to see .

Attached: Screenshot from 2019-06-15 17-30-59.png (519x761, 176K)

If you say so

Has node ruined client side development? Any fun JS frameworks around that doesn't use this piece of shit to install 1000 packages?

most often when you see a dense block of code like that, it's usually produced by a bundler with code minification enabled.
There may be instances where someone tries to obfuscate, but I think that's not very common.

I know html, js and some css but never had to design a website on my own. i'm supposed to do some mockups of the ui, right? any free tools to do that?

any advice in general will be appreciated, css is my weakest point and i'm shit in general at designing things

What is a CS related skill you actually would be interested in? Also web dev is not as narrow field as you may believe. You can apply all the math related stuff you listed in web dev. If you go the backend route, you can get into some heavy algorithmic stuff depending on where and what you work on.

As for how long it would take, depends on how you network and your dedication. Can take 2 months or it can take several years. Start by build shit, list it on your github, put it on your resume and you will have a job in no time.

You are in the right industry. Programming is filled with people like you. You will fit right in. You don't have to deal with people, that is what project managers are for.

Browse some websites, copy a design and layout you like and implement it. Don't bullshit yourself with ui mockups. Build shit first.

too late. yeah i feel i just wasted an hour of my life

Attached: Selection_056.png (1256x893, 29K)

Then don't waste more. I wasted years doing bullshit things and not getting anything actually done. Copy hackernews, thats simple enough and pimp it out