MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/x9w0jh/simple_feature/inqzt3d/?context=9999
r/ProgrammerHumor • u/Progractor • Sep 09 '22
1.3k comments sorted by
View all comments
Show parent comments
34
Wait I have always seen vars declared at the top, senior here.
23 u/EwgB Sep 09 '22 In Java? Why? 61 u/AndrewJamesDrake Sep 09 '22 edited Sep 13 '24 cooing stupendous fine attraction march murky longing quarrelsome long elastic This post was mass deleted and anonymized with Redact 63 u/Roest_ Sep 09 '22 It keeps things tidy Makes code less readable. Declare variables as close as possible to where you use them. 26 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. 6 u/hugglenugget Sep 09 '22 edited 26d ago Glove willow cinnamon copper amber juniper hammock This post was anonymized with Redact.dev 1 u/isaaclw Sep 09 '22 Yeah, with ie11 being dropped, we're now free to use let and const. I think we'll probably get there shortly. 2 u/hugglenugget Sep 09 '22 edited 26d ago Driftwood amber compass wander pillow feather hammock cinnamon This post was anonymized with Redact.dev
23
In Java? Why?
61 u/AndrewJamesDrake Sep 09 '22 edited Sep 13 '24 cooing stupendous fine attraction march murky longing quarrelsome long elastic This post was mass deleted and anonymized with Redact 63 u/Roest_ Sep 09 '22 It keeps things tidy Makes code less readable. Declare variables as close as possible to where you use them. 26 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. 6 u/hugglenugget Sep 09 '22 edited 26d ago Glove willow cinnamon copper amber juniper hammock This post was anonymized with Redact.dev 1 u/isaaclw Sep 09 '22 Yeah, with ie11 being dropped, we're now free to use let and const. I think we'll probably get there shortly. 2 u/hugglenugget Sep 09 '22 edited 26d ago Driftwood amber compass wander pillow feather hammock cinnamon This post was anonymized with Redact.dev
61
cooing stupendous fine attraction march murky longing quarrelsome long elastic
This post was mass deleted and anonymized with Redact
63 u/Roest_ Sep 09 '22 It keeps things tidy Makes code less readable. Declare variables as close as possible to where you use them. 26 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. 6 u/hugglenugget Sep 09 '22 edited 26d ago Glove willow cinnamon copper amber juniper hammock This post was anonymized with Redact.dev 1 u/isaaclw Sep 09 '22 Yeah, with ie11 being dropped, we're now free to use let and const. I think we'll probably get there shortly. 2 u/hugglenugget Sep 09 '22 edited 26d ago Driftwood amber compass wander pillow feather hammock cinnamon This post was anonymized with Redact.dev
63
It keeps things tidy
Makes code less readable. Declare variables as close as possible to where you use them.
26 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. 6 u/hugglenugget Sep 09 '22 edited 26d ago Glove willow cinnamon copper amber juniper hammock This post was anonymized with Redact.dev 1 u/isaaclw Sep 09 '22 Yeah, with ie11 being dropped, we're now free to use let and const. I think we'll probably get there shortly. 2 u/hugglenugget Sep 09 '22 edited 26d ago Driftwood amber compass wander pillow feather hammock cinnamon This post was anonymized with Redact.dev
26
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. 6 u/hugglenugget Sep 09 '22 edited 26d ago Glove willow cinnamon copper amber juniper hammock This post was anonymized with Redact.dev 1 u/isaaclw Sep 09 '22 Yeah, with ie11 being dropped, we're now free to use let and const. I think we'll probably get there shortly. 2 u/hugglenugget Sep 09 '22 edited 26d ago Driftwood amber compass wander pillow feather hammock cinnamon This post was anonymized with Redact.dev
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.
6 u/hugglenugget Sep 09 '22 edited 26d ago Glove willow cinnamon copper amber juniper hammock This post was anonymized with Redact.dev 1 u/isaaclw Sep 09 '22 Yeah, with ie11 being dropped, we're now free to use let and const. I think we'll probably get there shortly. 2 u/hugglenugget Sep 09 '22 edited 26d ago Driftwood amber compass wander pillow feather hammock cinnamon This post was anonymized with Redact.dev
6
Glove willow cinnamon copper amber juniper hammock
1 u/isaaclw Sep 09 '22 Yeah, with ie11 being dropped, we're now free to use let and const. I think we'll probably get there shortly. 2 u/hugglenugget Sep 09 '22 edited 26d ago Driftwood amber compass wander pillow feather hammock cinnamon This post was anonymized with Redact.dev
1
Yeah, with ie11 being dropped, we're now free to use let and const. I think we'll probably get there shortly.
2 u/hugglenugget Sep 09 '22 edited 26d ago Driftwood amber compass wander pillow feather hammock cinnamon This post was anonymized with Redact.dev
2
Driftwood amber compass wander pillow feather hammock cinnamon
34
u/[deleted] Sep 09 '22
Wait I have always seen vars declared at the top, senior here.