n
15

Went from spaghetti code to clean functions in my first real project

I spent 3 months building a weather app with everything crammed into one giant script. Last week I finally broke it into separate functions and cut my load time from 4 seconds to 1.2. Has anyone else had that moment where refactoring just clicked for them?
3 comments

Log in to join the discussion

Log In
3 Comments
verap52
verap521mo ago
Oh yes, breaking things into smaller pieces makes all the difference!
2
fisher.charlie
Wait did you catch that podcast where the guy talked about how the brain literally rewires itself when you chunk stuff down? I was driving and listening and it blew my mind. He said your memory holds like 7 things max at once, so breaking a big problem into 3-4 smaller chunks actually tricks your brain into thinking it's easier. I've been trying it with my to-do list and it weirdly works even though it feels dumb.
5
adam_robinson
Ever try just writing down the 3 biggest things? That 7 thing makes total sense now.
7