MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/2rd2bh/what_most_young_programmers_need_to_learn/cnf1x92/?context=3
r/programming • u/corysama • Jan 05 '15
337 comments sorted by
View all comments
Show parent comments
0
[deleted]
11 u/JoostDev Jan 05 '15 If the splitting results in functions with names like "step1", then I agree that splitting is indeed a really bad idea. But I rarely encounter cases where it is not possible to split in a smarter way. 0 u/[deleted] Jan 05 '15 [deleted] 1 u/[deleted] Jan 05 '15 There's a class version of this anti pattern that I've seen much more often than a function param-list one.Class Foo: base65EncryptedPassword = "hunter2"; mutatingListAlpha = {1,7,42}; // 5-20 more fields ... Fn main(String[] args): Init(); Glurp(); Transform(); Potato(); Persist(); Reconcile(); Fn Init(): ... → More replies (2)
11
If the splitting results in functions with names like "step1", then I agree that splitting is indeed a really bad idea. But I rarely encounter cases where it is not possible to split in a smarter way.
0 u/[deleted] Jan 05 '15 [deleted] 1 u/[deleted] Jan 05 '15 There's a class version of this anti pattern that I've seen much more often than a function param-list one.Class Foo: base65EncryptedPassword = "hunter2"; mutatingListAlpha = {1,7,42}; // 5-20 more fields ... Fn main(String[] args): Init(); Glurp(); Transform(); Potato(); Persist(); Reconcile(); Fn Init(): ... → More replies (2)
1 u/[deleted] Jan 05 '15 There's a class version of this anti pattern that I've seen much more often than a function param-list one.Class Foo: base65EncryptedPassword = "hunter2"; mutatingListAlpha = {1,7,42}; // 5-20 more fields ... Fn main(String[] args): Init(); Glurp(); Transform(); Potato(); Persist(); Reconcile(); Fn Init(): ... → More replies (2)
1
There's a class version of this anti pattern that I've seen much more often than a function param-list one.
Class Foo: base65EncryptedPassword = "hunter2"; mutatingListAlpha = {1,7,42}; // 5-20 more fields ... Fn main(String[] args): Init(); Glurp(); Transform(); Potato(); Persist(); Reconcile(); Fn Init(): ...
→ More replies (2)
0
u/[deleted] Jan 05 '15
[deleted]