(no title)
Vanderson | 2 years ago
CSS is one of my favorite languages. And the only way I can consider CSS to be difficult is if you have no experience with HTML. If you try to do HTML by hand, then doing CSS by hand on top of HTML by hand is really easy and wonderful. And this is truly where you gain the fundamental framework for "getting CSS".
marssaxman|2 years ago
PointThink|2 years ago
anonzzzies|2 years ago
To me (someone who likes logic) that is a sign it’s all not very good. I can write a bunch of code on paper in several programming languages and even non web frontend frameworks and it will work after I type it in first time ; when it comes to web frontend, it has to be tried out to know it works as it likely will have issues (unless it has no css layouting of course or absolutely trivial prototype stuff).
smrq|2 years ago
I do think that CSS has enough footguns to say that arbitrary CSS is not very good; well-written CSS is a very small subset of CSS in general. It joins many other languages in that regard-- C, C++, Javascript, PHP, Bash, the list goes on and on. As in all of those languages and more, with some basic familiarity it's not hard to sling some fresh code together and have it do what you want. Making it scale maintainably is the hard part.
(For my 2 cents on the matter, the way to write Good CSS(tm) is using CSS modules to limit scope, using flexbox or grid for all layout, and being rigorous about creating stacking contexts when you need to modify z order. Application of these three rules has made my life as a senior frontend engineer generally quite easy.)
init2null|2 years ago
yieldcrv|2 years ago
and its like what
and its like how is everything so compatible so quickly now
and why do I have to do it this way
and why does the interviewer expect this answer instead of last years solution to the same problem
I currently like tailwinds.
but dont ask me to set it up from scratch in a typescript project, but fortunately the bun runtime makes that simpler now, for now
eviks|2 years ago