These are chat archives for jescalan/roots

26th
Oct 2016
Caleb Eby
@calebeby
Oct 26 2016 00:07
Why not? I would argue that it is more helpful than whitespace-significant css: Lots of } in css vs lots of }); in js
Jeff Escalante
@jescalan
Oct 26 2016 03:56
html and css are nested markup-ish languages, where js is a turing complete programming language
i use standard.js which eliminates all semicolons
the brackets and parens i appreciate for structure
Carl Morlock
@gin93r
Oct 26 2016 04:03
I actually like all the semicolons and brackets. Honestly the removal of them is what I dislike about a lot of today's tools. It's ok, I can type a few extra characters. Sometimes I feel they remove stuff just to remove it.
Caleb Eby
@calebeby
Oct 26 2016 05:08
Good points. You have convinced me to join the dark side :smile:
Jeff Escalante
@jescalan
Oct 26 2016 14:19
haha basically the only reason i dont like the semi/brackets/close tags for html and css is that it's pretty much required that you indent these for human purposes
in order for them to be readable
but the computer doesn't give a shit at all and you could drop them all on a single line
so since im indenting very consistently and predictably with html/css anyway
might as well put those indents to work and get rid of some extra syntax
however I totally respect that a lot of people dont have that preference which is why its so easy to flip it off for both html/css in spike
the sugarfree template offers this by default
Carl Morlock
@gin93r
Oct 26 2016 14:33

Yeah I get all that. I think I just like the brackets as it's very easy to see where something ends. For html, it's more of what I'm used to, but at the same time, people take away all the brackets and then add parenthesis or other things instead. Also, most of the things they take away are usually automatically handled with most editors anyway. I don't remember the last time I actually typed <section id="myid"></section>" and the like. My editor allows me to type section#myid and does all that for me. So removing the extra syntax doesn't do much other than potentially reduce the readability of the code.

Same with css and javascript. My editor will handle those types of things. Coffescript, to me, is a lot less readable. And while I agree with you on the point that the computer doesn't care, the computer isn't writing and maintaining the code. People are.

</rant> ;)

Jeff Escalante
@jescalan
Oct 26 2016 20:08
yep, thats totally reasonable
over at carrot, we have a lot of developers that have been working with whitespace-based css and html for many years, and it has been quite nice
its just up to individual preferences i guess!