←back to thread

451 points todsacerdoti | 2 comments | | HN request time: 0s | 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 #
whytaka ◴[] No.45057906[source]
I haven't used float in at least half a decade. CSS is easy.
replies(3): >>45058000 #>>45058272 #>>45059249 #
JohnFen ◴[] No.45058000[source]
I suspect, as with programming languages, some people think in a way that makes it easy for them and others think in a way that makes it hard.

Personally -- and I'm no web dev, so I probably don't count -- I think CSS is hard (maybe more irritating than hard, but in any case I wouldn't call it easy). In large part because the syntax is ugly, but also because it just doesn't "mesh" with me. If I'm reading it or writing it, I always feel like I'm having to decode it. But I can easily and happily work with some programming languages that most devs would cross the street to avoid.

Maybe that's also why some people are attracted to being web devs and others aren't?

As a user, nothing would thrill me more than if web pages just stopped using JS, though, so I am very happy that there is a feasible alternative to doing that that web devs could enjoy!

replies(2): >>45058825 #>>45069073 #
extraisland ◴[] No.45058825[source]
> I suspect, as with programming languages, some people think in a way that makes it easy for them and others think in a way that makes it hard.

No that often isn't the case. What is usually the case is that people don't bother the learning the basics. CSS is very easy. You can literally mess about with it on the fly in the browser and instantly see the result.

It is easier now than it has ever been. Since all the browsers for the most part implement the standards properly. Safari is the only standout and all the issues with that are well known.

> In large part because the syntax is ugly, but also because it just doesn't "mesh" with me. If I'm reading it or writing it, I always feel like I'm having to decode it. But I can easily and happily work with some programming languages that most devs would cross the street to avoid.

It is probably because you haven't learned the basics.

Whenever anyone has issues understanding CSS, they haven't bothered learning the basics and think they can flub their way through doing it.

I don't understand what is ugly about the syntax.

    <some element selector> {
        property_1: <some value>
        property_2: <some other value>
    }
It is about as straight forward as it could be. The difficulty with CSS is organisation as the web app becomes larger. There are well documented strategies on how to do this.

> As a user, nothing would thrill me more than if web pages just stopped using JS, though, so I am very happy that there is a feasible alternative to doing that that web devs could enjoy!

Non-trivial functionality requires JS. Basic Websites rarely require JS. So I am not sure what you are trying to say here.

replies(4): >>45059166 #>>45061303 #>>45063390 #>>45066428 #
1. JohnFen ◴[] No.45063390[source]
> It is probably because you haven't learned the basics.

That's not the case with me, honestly. It's just a poor mesh with my brain is all.

> So I am not sure what you are trying to say here.

I'm trying to say that I dislike the use of JS, at least for common websites, and I'm in favor of anything that could reduce its use.

replies(1): >>45064579 #
2. extraisland ◴[] No.45064579[source]
I don't understand how that is the case when you say you can figure out much more complicated programming languages. It strains credulity.

I am a former front-end developer that managed to figure out AWS, Go, C++, C#, JavaScript, Python, OpenGL and have done a LFS build. I am not some sort of mega genius. I just had to go through and read the correct material and learn the basics.