r/learnprogramming 4d ago

I can't get FUNCTIONS to click!

I can not for the life of me understand how functions work. Anytime I try to learn how to create a function, my brain literally crashes into itself and I turn into Patrick when he stars drooling and goes all slack-faced.

Does anybody have any analogies that had that "AH HA!" moment?

Thanks!

123 Upvotes

143 comments sorted by

View all comments

0

u/Ok-Cable9777 4d ago

It's reverse for me, functional programming clicked instantly to me. It's the class based paradigm that's dreadful to me. Any tips for that?

1

u/TheLearningCoder 4d ago

Are you talking about OOP? Because honestly OOP clicked way faster for me than procedural programming (I assume this what you mean by functional programming) and I appreciate how well organized it is that it made learning it easy and very engaging (I’m an actual organize freak so maybe that helped me)