![]() |
|
*TRUE* OOP and Other Paradigms - Printable Version +- Little Fighter Empire - Forums (https://lf-empire.de/forum) +-- Forum: General Zone (https://lf-empire.de/forum/forumdisplay.php?fid=23) +--- Forum: Programming (https://lf-empire.de/forum/forumdisplay.php?fid=50) +--- Thread: *TRUE* OOP and Other Paradigms (/showthread.php?tid=10293) Pages:
1
2
|
RE: *TRUE* OOP and Other Paradigms - Som1Lse - 04-04-2016 (04-04-2016, 06:25 PM)A-Man Wrote: So it's performance vs memory. But the latter is usually way more abundant, so storage is what I'd try to stick with as well.Wrong. CPU caches are a thing and because of that using little memory can actually be faster. For more information: https://www.youtube.com/watch?v=rX0ItVEVjHc and https://www.youtube.com/watch?v=WDIkqP4JbkE. (04-04-2016, 06:25 PM)A-Man Wrote: What do you think of friends? Now that and encapsulation would be head-to-head in a way. friend is iffy at best. Whenever I use it I always feel kinda dirty, with the exception of operator overloading where the non-member variants are preferred.
RE: *TRUE* OOP and Other Paradigms - ayalx - 04-04-2016 OOP is good, but you can write a disaster even if all your code is pure classes... The most important thing is too write code as simple as possible, that do its job well and is easy to understand. OOP can help achieve these goals, but it depends on the case. And I must mention the greatest "article" that was ever written about that https://www.se.rit.edu/~tabeec/RIT_441/Resources_files/How%20To%20Write%20Unmaintainable%20Code.pdf |