News for hackers. Stuff that matters.
Re:I Heart SASS, But HAML, I'm Just Not That In To You by hopeless on Wednesday May 04, 2011 @05:06PM (#2515321)
They both abstract the programmer from what's actually being produced and I can't help thinking that this is a bad thing.

I'm currently maintaining/developing on a 10yo Java project which contains a mix of JSP pages and ECS^-generated HTML in servlets. Which one is easier to maintain? The JSP pages by a mile because there is a direct correspondence between the source and the output. The ECS-generated HTML is totally obscured within the Java code.

So while HAML and SASS (to a lesser extent due to the similar syntax) abstract us programmer from the limitations of HTML & CSS, I can't help feeling that they will create huge maintenance headaches for our future-selves. Will anyone actually know HAML in 5-10years time? So, suck it up and use ERB and keep your abstractions as close to Earth as possible.

^ Apache ECS (now EOL'd) lets you build the HTML tree as nested Java objects.

Re:I Heart SASS, But HAML, I'm Just Not That In To You by mbleigh on Wednesday May 04, 2011 @05:35PM (#2515391)
Another reason I love SASS: since it compiles directly into CSS, if we all forget how to read SASS we can always just start modifying the resultant CSS instead. HAML on the other hand does not compile into ERB.
Re:I Heart SASS, But HAML, I'm Just Not That In To You by hopeless on Wednesday May 04, 2011 @05:48PM (#2515445)
Great point! I'd forgotten that about SASS.
Re:I Heart SASS, But HAML, I'm Just Not That In To You by fbuilesv on Wednesday May 04, 2011 @05:36PM (#2515393)
The phrase "abstract the programmer from what's actually being produced and I can't help thinking that this is a bad thing" sounds weird given the fact that you're using Java, a technology that also abstracts some of the underlying capabilities of the C/ASM system you're using.

Abstraction itself is not bad thing. Knowing that a lot of the technologies that we're using today will be obsolete in 10 years is not a good enough reason to stop trying new things.

Re:I Heart SASS, But HAML, I'm Just Not That In To You by hopeless on Wednesday May 04, 2011 @05:47PM (#2515441)
We don't write 1's and 0's. Programming is an abstraction. But we still need to pick and choose what abstractions we use and where. Do the benefits of that abstraction outweigh the problems it creates? In the case of HAML (and ECS, grrr...) I don't think it does.
Re:I Heart SASS, But HAML, I'm Just Not That In To You by grimen on Wednesday May 04, 2011 @06:58PM (#2515595)
You can convert HAML/SASS 1:1 anytime, so the "maintenance headaches" argument is not a valid one.