(no title)
hmwhy | 4 years ago
I'm honestly just trying to understand how articles like this get promoted to the front page of Hacker News more and more often. I imagine that writing an article about [insert related field of mathematics] before diving into [insert field of physics] every week would not land me on the front page of Hacker News every week.
Edit: "basic field" -> "related field".
brundolf|4 years ago
You'd be surprised how many otherwise-competent engineers don't take CSS seriously enough to seek out the fundamentals, and instead spend their days avoiding it as much as possible and cursing it when they can't
pjerem|4 years ago
So yes, I totally spend my days avoiding it. Not because I hate CSS (I love it in some way, and I miss writing elegant stylesheets) but because CSS is a delicate tool that is hard to be maintained by more than a few people.
hn_acc_2|4 years ago
FindMySocks|4 years ago
Being someone who was ahead of the game in css 15 years ago, but not having touched it since - where would one go to understand the new fundamentals and options available?
brundolf|4 years ago
And then follow it up with this one if you want to go a little deeper: https://css-tricks.com/flex-grow-is-weird/
Personally, I think flexbox is the single most versatile and important tool to be familiar with. You can create nearly any layout with it, in such a way that it's very naturally responsive almost by default.
hmwhy|4 years ago
Throwing out blanket statements is dangerous for new comers, which seems to be the target audience of this article according to its title. For example, collapsing margin isn't always bad and unpredictable, it just seems that way if you didn't take the time to understand the fundamentals behind and go for "what works".
That's not too different to telling CS students to not worry about learning the memory and time complexities of different algorithms and just use [insert "best" algorithm] because it works most of the time.
[0] https://developer.mozilla.org/en-US/docs/Learn/CSS.
dmitriid|4 years ago
These are actual practical usable fundamentals.
Complement that with http://inclusive-components.design/
pramodbiligiri|4 years ago
Her explanation of positioning, responsive design and the links to other resources she provides inside are all good.
unknown|4 years ago
[deleted]
dwd|4 years ago
These days, as mentioned in the OP, MDN is the best point of call for checking syntax or learning how to implement something new the right way.