Live data from Hacker News

A friendly web development tutorial for complete beginners (2017)

internetingishard.com

1–10 of 57 posts

Re: A friendly web development tutorial for complete beginners (2017)

#3
Html and css are not hard; at least I’m aware of each topic listed at this site and either know it or know where the good reference is. The problem is that they are full of legacy, incompatibility, sometimes irrationality, they lack details and proper isolation.

For one simple example, give body 100vw 100vh and gray, vue #app 100%. You have just a gray page, right? Pretty trivial. Okay, now add h1 into #app. Page suddenly gets a vertical scroll of ~10px and a white bar of the same height appears above body. Why?

Because h1’s margin leaks through two parents up to the document’s top, document pushes body down that count of pixels, but retains its 100vh height. That’s completely absurd and entire html/css is drenched with this absurdness. You cannot find this behavior in layout systems of traditional desktop frameworks. And this one is just a trivial case leading to a problem. IRL a production-ready site is a tetris-inspired pack of properties set on :first/last-childs, 1-2px fixups for baselines, borders, etc that correspond to required design. Changing parts of it without messing up is so hard that css guys who I know always try to fix design at the beginning and cringe every time changes are made. They also try to apply rules only on specific divs and clear it for childs, trying to isolate effects. And then I read “CSS is Awesome” in yet another popular blog post and something dies in me at that moment.

I look forward on things like gss, manual positioning via js, etc. But then comes seo and tells that he requires wordpress and semantic cr%p and that google will not give a damn about pages built my way. /rant

Re: A friendly web development tutorial for complete beginners (2017)

#5
post #4
post #2

Pretty good website. But why Atom ? A plain text editor would work just as well and would be even easier. I am not sure I agree that developing for the web is hard. In fact because it is so easy JavaScript is so popular right now.

JS is easy, JS ecosystem is not.

Good point. But I don't think a complete beginner would use complex JS frameworks.

Re: A friendly web development tutorial for complete beginners (2017)

#6
post #4
post #2

Pretty good website. But why Atom ? A plain text editor would work just as well and would be even easier. I am not sure I agree that developing for the web is hard. In fact because it is so easy JavaScript is so popular right now.

JS is easy, JS ecosystem is not.

There are plenty of sharp edges in JavaScript to cut yourself on. For that reason I'd argue it isn't easy.

Compare it to something like C# where you could start pushing out code on day one. It might not be pretty or the most efficient code but there won't be any surprises, it will do what you expect.

Re: A friendly web development tutorial for complete beginners (2017)

#8
post #3

Html and css are not hard; at least I’m aware of each topic listed at this site and either know it or know where the good reference is. The problem is that they are full of legacy, incompatibility, sometimes irrationality, they lack details and proper isolation. For one simple example, give body 100vw 100vh and gray, vue #app 100%. You have just a gray page, right? Pretty trivial. Okay, now add h1 into #app. Page sud…

Didn't you just prove CSS was hard?

Re: A friendly web development tutorial for complete beginners (2017)

#10
post #4

Earlier quoted context omitted.

JS is easy, JS ecosystem is not.

There are plenty of sharp edges in JavaScript to cut yourself on. For that reason I'd argue it isn't easy. Compare it to something like C# where you could start pushing out code on day one. It might not be pretty or the most efficient code but there won't be any surprises, it will do what you expect.

Yes of course, like in any other programming languages.
Post reply on HN