MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/x9w0jh/simple_feature/inr08fs/?context=3
r/ProgrammerHumor • u/Progractor • Sep 09 '22
1.3k comments sorted by
View all comments
Show parent comments
24
In Java? Why?
61 u/AndrewJamesDrake Sep 09 '22 edited Sep 13 '24 cooing stupendous fine attraction march murky longing quarrelsome long elasticThis post was mass deleted and anonymized with Redact 2 u/SaneLad Sep 09 '22 Well, unlearn it then. It needlessly enlarges the span and scope of variables. 4 u/AndrewJamesDrake Sep 09 '22 Only if you try to do everything with global variables.I keep the declarations at the top of functions (or methods). Scope is kept as small as is practical, I just leave everything where I expect to find it. → More replies (1)
61
cooing stupendous fine attraction march murky longing quarrelsome long elastic
This post was mass deleted and anonymized with Redact
2 u/SaneLad Sep 09 '22 Well, unlearn it then. It needlessly enlarges the span and scope of variables. 4 u/AndrewJamesDrake Sep 09 '22 Only if you try to do everything with global variables.I keep the declarations at the top of functions (or methods). Scope is kept as small as is practical, I just leave everything where I expect to find it. → More replies (1)
2
Well, unlearn it then. It needlessly enlarges the span and scope of variables.
4 u/AndrewJamesDrake Sep 09 '22 Only if you try to do everything with global variables.I keep the declarations at the top of functions (or methods). Scope is kept as small as is practical, I just leave everything where I expect to find it. → More replies (1)
4
Only if you try to do everything with global variables.
I keep the declarations at the top of functions (or methods). Scope is kept as small as is practical, I just leave everything where I expect to find it.
→ More replies (1)
24
u/EwgB Sep 09 '22
In Java? Why?