Functional Programming vs. Object Oriented Programming
Functional Programming vs. Object Oriented Programming
You're viewing a single thread.
All Comments
35 comments
Deckweiss @lemmy.world If your program functions, it's functional.
19 7 Replymvirts @lemmy.world Turns out I really love functional programming after all 😹
9 0 Replycollapse_already @lemmy.ml What if my program is objectionable?
4 0 Replybitcrafter @programming.dev And if it doesn't have objects, then it has no class!
2 0 ReplyPipoca @lemmy.world Functions, here, being the key word.
Functions are pure mappings from input to output.
1 1 ReplyDeckweiss @lemmy.world wooosh
1 0 ReplyPipoca @lemmy.world I agree with you that if you use functions it's functional.
But many people don't really realize how that contrasts with procedures and procedural code.
1 0 Replysuperbirra @lemmy.world I'd be oriented to object
1 1 ReplyPipoca @lemmy.world Apparently my brain silently inserted "ing with" into the middle of "program functions" a half dozen times without me noticing.
1 0 Replysuperbirra @lemmy.world perchance you were objectively oriented?
1 1 Reply
35 comments
Scroll to top