Live data from Hacker News

If you code HTML, Zen Coding will change your life

downloadsquad.com

41–44 of 44 posts

Re: If you code HTML, Zen Coding will change your life

#41
post #38

The thing I don't like about all these ways to "improve" HTML/CSS is that they all seem to assume the rest of the webapp ecosystem doesn't exist. Take SASS's variables and arithmetic, for instance. I agree that CSS desperately needs some way to abstract out common values. But any decent webapp will already be using some sort of template system, and the template system will have some sort of variable. Why not use it a…

You could do CSS in a templating system, sure. First off, you'd want to cache it, but that's a solved problem. And you'd be well served to cook up some subtemplates/helpers/whatever that automated away some of the drudgery. Pretty soon you'd have more ideas on how to keep your CSS more maintainable, your subtemplates would become more general, etc. At this point you have implemented most of Sass/Less/etc but you have…

But it would be the same templating gunk that is used by the rest of your webapp, which most likely has more documentation and thousands more eyeballs looking at the code than Sass. Most people don't roll their own templating systems. They use an established library that's been battle-tested on websites before. These libraries have been around a lot longer than Sass/Haml has.

Re: If you code HTML, Zen Coding will change your life

#43
post #42
post #30

Is writing TONS of HTML really a problem that needs solving? Are people writing Bible-Tome sized pieces of markup? This feels like a solution in need of a problem.

as a guy who gets paid to write this shit for 8 hours a day -- Yes, and yes.

You spend 8 hours a day just writing HTML? That sounds horrible.

Re: If you code HTML, Zen Coding will change your life

#44
post #42

Earlier quoted context omitted.

as a guy who gets paid to write this shit for 8 hours a day -- Yes, and yes.

You spend 8 hours a day just writing HTML? That sounds horrible.

yes it is. now it is just a little bit less horrible thanks to this.
Post reply on HN