O
30

After 3 months of struggling, functions finally clicked for me

I kept writing the same 20 lines of code over and over in my calculator project. My friend said 'you know you can just make a function, right?' I ignored her for weeks. Then I spent a Saturday rewriting everything with functions and cut my code from 150 lines to 60. It felt like magic, has anyone else had that 'aha' moment way later than they should have?
1 comments

Log in to join the discussion

Log In
1 Comment
dylanh97
dylanh9721d ago
Honestly, 3 months is pretty fast compared to me. I was like 2 years into coding before I realized functions could call other functions, not just do one thing. That's when it really clicked for me.
2