OttoVonNoob@lemmy.ca to Programmer Humor@programming.dev · 2 months agoMy friend suggested I use different names for variables..lemmy.caimagemessage-square54fedilinkarrow-up1306arrow-down112file-text
arrow-up1294arrow-down1imageMy friend suggested I use different names for variables..lemmy.caOttoVonNoob@lemmy.ca to Programmer Humor@programming.dev · 2 months agomessage-square54fedilinkfile-text
minus-squaremagic_lobster_party@fedia.iolinkfedilinkarrow-up1·2 months agoI like to mix between OOP and FP for different levels. OOP is great for higher architectural problems. FP is great for everything under it. And yes, inheritance was a huge mistake. Just use composition and interfaces instead.
minus-squarearendjr@programming.devlinkfedilinkarrow-up3·edit-22 months agoYeah, I mix them too, although I apply quite a bit of functional techniques especially at the architectural level as well. OO I use mostly for dealing with I/O and other areas where statefulness cannot be avoided. If you’re interested, I also wrote an in-depth blog where I touch on these topics: https://arendjr.nl/blog/2024/07/post-architecture-premature-abstraction-is-the-root-of-all-evil/
I like to mix between OOP and FP for different levels. OOP is great for higher architectural problems. FP is great for everything under it.
And yes, inheritance was a huge mistake. Just use composition and interfaces instead.
Yeah, I mix them too, although I apply quite a bit of functional techniques especially at the architectural level as well. OO I use mostly for dealing with I/O and other areas where statefulness cannot be avoided.
If you’re interested, I also wrote an in-depth blog where I touch on these topics: https://arendjr.nl/blog/2024/07/post-architecture-premature-abstraction-is-the-root-of-all-evil/