Mac@programming.dev to Programming@programming.dev · 2 years agoFunctional Programming vs. Object Oriented Programmingmmhaskell.comexternal-linkmessage-square31linkfedilinkarrow-up190arrow-down19
arrow-up181arrow-down1external-linkFunctional Programming vs. Object Oriented Programmingmmhaskell.comMac@programming.dev to Programming@programming.dev · 2 years agomessage-square31linkfedilink
minus-squareDeckweiss@lemmy.worldlinkfedilinkarrow-up19arrow-down7·2 years agoIf your program functions, it’s functional.
minus-squaremvirts@lemmy.worldlinkfedilinkarrow-up9·2 years agoTurns out I really love functional programming after all 😹
minus-squarecollapse_already@lemmy.mllinkfedilinkEnglisharrow-up4·2 years agoWhat if my program is objectionable?
minus-squarebitcrafter@programming.devlinkfedilinkEnglisharrow-up2·2 years agoAnd if it doesn’t have objects, then it has no class!
minus-squarePipoca@lemmy.worldlinkfedilinkarrow-up1arrow-down1·2 years agoFunctions, here, being the key word. Functions are pure mappings from input to output.
minus-squarePipoca@lemmy.worldlinkfedilinkarrow-up1·2 years agoI 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.
minus-squaresuperbirra@lemmy.worldlinkfedilinkarrow-up1arrow-down1·2 years agoI’d be oriented to object
minus-squarePipoca@lemmy.worldlinkfedilinkarrow-up1·2 years agoApparently my brain silently inserted “ing with” into the middle of “program functions” a half dozen times without me noticing.
minus-squaresuperbirra@lemmy.worldlinkfedilinkarrow-up1arrow-down1·edit-22 years agoperchance you were objectively oriented?
If your program functions, it’s functional.
Turns out I really love functional programming after all 😹
What if my program is objectionable?
And if it doesn’t have objects, then it has no class!
Functions, here, being the key word.
Functions are pure mappings from input to output.
wooosh
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.
I’d be oriented to object
Apparently my brain silently inserted “ing with” into the middle of “program functions” a half dozen times without me noticing.
perchance you were objectively oriented?