←back to thread

451 points todsacerdoti | 3 comments | | HN request time: 0.614s | source
Show context
paulddraper ◴[] No.45057614[source]
> Yes, the syntax isn’t the prettiest, but is it really that hard?

Explain float: clear?

Does that have anything to do with display: flow-root?

And white-space is not actually whitespace?

And when does vertical-align work vs not?

---

^ That is all CSS (and not particularly edgy CSS, except for flow-root).

So....yes, CSS is really that hard. Unless you use the subset of CSS that you have decided to learn + use. Not unlike C++.

replies(5): >>45057689 #>>45057906 #>>45058326 #>>45058741 #>>45058981 #
1. nicoburns ◴[] No.45058326[source]
IMO it's more like PHP or JavaScript than C++. With C++ there are lots of different dialects in common use and you kinda have to learn them all to be good at C++. Whereas with PHP/JavaScript/CSS there are still ugly corners, but everyone pretty much agrees which the good bits are and which the ugly bits are, and you can mostly just ignore the old legacy bits.
replies(1): >>45066249 #
2. paulddraper ◴[] No.45066249[source]
What part of JavaScript language should you not use?

The only one that comes to mind is is `with`, which is officially discouraged in the spec.

I suppose the other one is type coercion. (Like [] + [] stuff. That's no end of "ha ha JS weird.")

replies(1): >>45066846 #
3. nicoburns ◴[] No.45066846[source]
with, == (except certain idiomatic uses), __prototype__, eval, etc.