https://kotlinlang.org logo
#random
Title
# random
h

Hullaballoonatic

06/26/2021, 10:05 PM
What are some of the habits you believe lead to spaghetti code in no time? For me: • mutating the arguments of functions • nested blocks with a depth > 2 • more than 3 arguments to a function • else blocks • classes with more than one job • refusing to refactor • ctrl-c/ctrl-v
l

louiscad

06/27/2021, 6:47 AM
None
😮 1
e

Emanuele Rabino

06/28/2021, 6:26 AM
• bad naming • bad abstractions • abuse of primitive types
💯 7
j

Jiddles

06/28/2021, 12:52 PM
A “we’ll fix it later”/“It’s good enough for now” mentality or in a more concrete sense, //TODOs everywhere
4
t

tddmonkey

06/28/2021, 3:34 PM
A lack of or “tick box exercise” PR process
o

oday

06/29/2021, 1:51 PM
from personal experience, not thinking/planning before coding
3
r

Réunina

06/30/2021, 8:31 PM
Not taking the time to clean before I start coding and after I am done. I found that littles regular refactoring is a very very good habit
h

Hullaballoonatic

07/02/2021, 11:25 PM
people that are comfortable using (read: copy) code they don't understand.
h

Haomin

08/13/2021, 9:21 PM
Start to implement functions that already in the standard lib or provided by the language
👍 1