OttoVonNoob@lemmy.ca to Programmer Humor@programming.dev · 3 months agoMy friend suggested I use different names for variables..lemmy.caimagemessage-square54fedilinkarrow-up1306arrow-down111file-text
arrow-up1295arrow-down1imageMy friend suggested I use different names for variables..lemmy.caOttoVonNoob@lemmy.ca to Programmer Humor@programming.dev · 3 months agomessage-square54fedilinkfile-text
minus-squaremagic_lobster_party@fedia.iolinkfedilinkarrow-up1·3 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-23 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/