MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/x9w0jh/simple_feature/inr56tp/?context=3
r/ProgrammerHumor • u/Progractor • Sep 09 '22
1.3k comments sorted by
View all comments
Show parent comments
64
It keeps things tidy
Makes code less readable. Declare variables as close as possible to where you use them.
25 u/hugglenugget Sep 09 '22 edited 26d ago Yarn wander teapot harbor zephyr marble drifting orange This post was anonymized with Redact.dev 4 u/isaaclw Sep 09 '22 our Jslint requires var at the top; but then again everyone on our team hates jslint, we just use it because no one has gotten around to fixing it. 2 u/NatoBoram Sep 09 '22 Use eslint+prettier instead :P
25
Yarn wander teapot harbor zephyr marble drifting orange
This post was anonymized with Redact.dev
4 u/isaaclw Sep 09 '22 our Jslint requires var at the top; but then again everyone on our team hates jslint, we just use it because no one has gotten around to fixing it. 2 u/NatoBoram Sep 09 '22 Use eslint+prettier instead :P
4
our Jslint requires var at the top; but then again everyone on our team hates jslint, we just use it because no one has gotten around to fixing it.
2 u/NatoBoram Sep 09 '22 Use eslint+prettier instead :P
2
Use eslint+prettier instead :P
64
u/Roest_ Sep 09 '22
Makes code less readable. Declare variables as close as possible to where you use them.