Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Alice i mean i understand most of the syntax requires it but considering most languages use " //" i think it makes sense to use it. Unless ofcourse there is another reason.
-
Think how much pain it would have caused in the long run. Esp these days when some pages are one liners. Also <! - - suits the general style more I suppose.
-
@devTea I comment my HTML quite a bit. It's really helpful when you're looking at stuff for the first time in a couple months to get an idea of what your original thought process is. Obviously there's no logic that needs explaining but that doesn't mean comments are unnecessary
-
Phlisg25166yWell for instance...
<a href="//something.com/my/asset.{format}”>Something</a> would not work here :D -
taglia5716yI like how the rant turned against OP.
Seriously, it looks like you said the first thing it came up your mind, without thinking WHY it is that way.. -
taglia5716y@techno848 if you don't know something, you have to do a research to improve your knowledge, not ranting about it.
Just saying.. -
devTea219106yWell from your context it sounded like you hate html comment and ask why isn’t it // instead
-
@devTea i mean i get it but its just hard to use so i dont like it or you could say i am used to the other more common way of doing it, legit didnt even think before posting i think thats how you rant :p ?
-
devTea219106y@techno848 what ide did you used? There should be a shortcut to block a text and make it a comment
-
Aah never used that, i am actually working with the d3js library to display ireland's map so ofcourse there is some html, i am not using any IDE but visual studio code. @devTea
-
musician6656yWho comments by hand? Learn the shortcut. Ctrl / in intellij for example. Also jsx comments are probably the worst lol
Who thought it be a good idea to use "<!---->" for comments rather than "//".
rant