4 ms·
I started writing CSS at around the them when you were still asked to write Hacks for IE5/5.5/6 -- and it was truly horrific -- but it made a lot of sense when
by quakenul 9y ago
I started writing CSS at around the them when you were still asked to write Hacks for IE5/5.5/6 -- and it was truly horrific -- but it made a lot of sense when you looked at the market shares.
Yes, please be good and build accessible websites, just because its actually not hard to do on a rudimentary level and your probably sucks if you don't anyway.
But actually working on CSS compatibility is such a waste of time considering how "good enough" all of the widely available options are. Yeah, you probably do not want to use the latest in web tech if you are doing a reasonably sized web project that loses actual money for every % of users that can not use the app/site. So what? Just don't. Unless it's a vanity project pick a reasonable cut off point, go with it for that project (or that iteration of the product) and then you reevaluate for the next one.
You can obviously use auto prefixer and the sorts to widen the margin -- everything you can automate, you don't have to think about, by all means, go for it. But the mental overhead you are creating by doing shit like "height: 500px; height: 100vw;" is insanity in a reasonably large project with multiple developers. I forbid you to do it.
By the time the next project comes, you can probably already set the cut off somewhere else. People are actually (being forced to) update their computer, and really enjoy throwing out their mobile devices every other year (thanks apple, I guess). I gladly reap those benefits.
- menzoic 9y ago"min-height: 500px; height: 100vw;"
- Joeri 9y agomin-height didn’t work in IE6, you had to use height instead.
- giancarlostoro 9y agoI think they're commenting on setting height to VW instead of VH.
- rimliu 9y ago> "height: 500px; height: 100vw;" is insanity in a > reasonably large project with multiple developers. > I forbid you to do it. What have happened to us? Too many post on HN show this attitude: make it cheaper to develop, don't care about the users. What happen with the "zen of the web"? For one, I've started with the web around the time CSS was being born—2016. And in your example I see neither insanity nor large overhead, just a robust approach.
- chrisweekly 9y ago"CSS was being born-- 2016." ??? I started doing webdev in 1998 and gently suggest you check your notes.
- shadowycoder 9y agoYep. I could easily go find a "project" of mine (read: an Angelfire site) from the same year and it had plenty of CSS applied.
- akvadrako 9y agoHe's basically saying don't build hacks because it's not worth the the extra maintenance costs. Justifying your time is one of the most important software engineering principles.