4 ms·
Nope. I’d much rather keep my code uniform, than have to think about when to use quotes or not. And if other people following the specs bother you so much, may
by mikl 6y ago
Nope. I’d much rather keep my code uniform, than have to think about when to use quotes or not.
And if other people following the specs bother you so much, maybe seek OCD treatment.
- hombre_fatal 6y agoI'm also not a fan of any aesthetic style where changing something small means you have to change something else. In this case, any time you have more than one word or have an html character like "<" in your text, you need to go back and add quotes, or remove them when you delete that "<". Also, all of this is stringly-typed anyways, I kinda like how it's uniformly inside quotes, not only sometimes in quotes when the conditions are just right (notice how his html sample only has his case in mind). I would also wonder if this messes with any tooling that parses html whether it's linters or various editors. Finally, I think people should stop using "stop using X" as blog posts. It immediately strikes me as condescending and I think it puts people instantly on the defense. Why not just "You don't need to quote your html attributes" or something? -- Frankly, that was news to me, and I like learning new things, yet here I am in the comments sharing how I disagree with them.
- mikl 6y agoYep, I can imagine lots of dev-tools choking on the missing quotes. Plus if you have a good editor, you don’t generally need to type the quotes yourself. And +1 on the “stop using”. Ordering people around is not a good way to convince anyone.
- posix_me_less 6y ago"I'd rather do busywork maintaining my code to conform to an ideal of quoted uniformity than be forced to think whether those quotes are of any benefit to me or to the reader."
- renewiltord 6y agoSeems reasonable. Eliminating decision making for trivial things is pretty empowering. Likewise I don't indent my code myself. I just always accept IDE indent specified in config file which isn't always optimal.
- mikl 6y ago1. HTML is read by parsers 99.9% of the time. Rare is the human who cares to “View Source” on a site. 2. If you have a decent editor, those quotes are inserted automatically, so no busywork required.
- posix_me_less 6y ago1. Parsers don't care. Humans do. 99.9% of time spent reading the html source is spent by humans, because they are so much slower than browsers. 2. I don't know what "decent" means in this context. Automatic code/quote insertion is wrong when I do not want them. It leads to less readable code.