Live data from Hacker News

Defensive CSS

defensivecss.dev

21–30 of 73 posts

Re: Defensive CSS

#21

CSS3 got approved in 2006 and now we are at the point where we have to treat the language like it's fighting against us. Quality work the consortium has done in the past 15 years, eh?

That’s not what the site is about at all.

It’s ”defensive” in the same sense as ”defensive programming”: handling possible future / edge cases gracefully.

Re: Defensive CSS

#22

It's crazy that there's so much extra cruft when it comes to crafting web interfaces when a CLI is most often the most powerful and easiest way to get a job done. Am I just taking crazy pills?

The real crazy thing is that Delphi/VB got UIs right in the 90s and the JS folks keep reinventing everything.

Re: Defensive CSS

#23

It's crazy that there's so much extra cruft when it comes to crafting web interfaces when a CLI is most often the most powerful and easiest way to get a job done. Am I just taking crazy pills?

How do you write a CLI tool for viewing a photo album? Would Netflex be better suited as a CLI-only interface?

Re: Defensive CSS

#24

It's crazy that there's so much extra cruft when it comes to crafting web interfaces when a CLI is most often the most powerful and easiest way to get a job done. Am I just taking crazy pills?

Did you post this from a CLI?

Re: Defensive CSS

#25

It's crazy that there's so much extra cruft when it comes to crafting web interfaces when a CLI is most often the most powerful and easiest way to get a job done. Am I just taking crazy pills?

No post body was provided.

Re: Defensive CSS

#26
Ok, the first thing I looked at is "long content" https://defensivecss.dev/tip/long-content/ and here they recommend to just clip it. Because who cares about content right? Who cares if the partial content you display is useless, as long as it looks good. And that's the kind of tip everyone here is applauding. I would like to say webdesign is in a sorry state nowawadays, except it was also that way 20 years ago. Maybe this "who cares about the content" attitude is inherent to web designers? Sorry if I sound blasé or cynical, but one gets tired after long enough of this.

Re: Defensive CSS

#28

CSS3 got approved in 2006 and now we are at the point where we have to treat the language like it's fighting against us. Quality work the consortium has done in the past 15 years, eh?

That’s not what the site is about at all. It’s ”defensive” in the same sense as ”defensive programming”: handling possible future / edge cases gracefully.

the fact you can set a CSS version in your code, and have it not act as it did when that version was originally standardized, is exactly what being "defensive" is about. the code you wrote years ago doesn't work anymore because the browsers have decided to do things differently now.

and yet I can run applications from 30 years ago and it will still function as it once did. no hacks or code changes required.

you shouldn't have to "future proof" source code against an outside entity just coming in and breaking it all. especially when it's supposed to be an open standard.

Re: Defensive CSS

#29
post #26

Ok, the first thing I looked at is "long content" https://defensivecss.dev/tip/long-content/ and here they recommend to just clip it. Because who cares about content right? Who cares if the partial content you display is useless, as long as it looks good. And that's the kind of tip everyone here is applauding. I would like to say webdesign is in a sorry state nowawadays, except it was also that way 20 years ago. Mayb…

For me the 'more' button doesn't work properly so that's a bummer.

But breaking designs with too much text can really lower the perceived quality and the readability and navigation. Often you would use a technique like that to preserve a 2d aligned grid/table/cell/matrix/cards like design, where the overall structure is really more about seeing things in context and in relation to each other. Having uniform spacing really helps there. If you break the 2d alignment the overall structure becomes wiggly and distracting.

Re: Defensive CSS

#30
post #5

I will trust any CSS content from Ahmad Shadeed, I am continually impressed and I've been developing CSS my whole career.

Agreed. It's one of the few CSS related blogs I'm subscribed to via RSS.
Post reply on HN