220 reputation
14
bio website
location Germany
age 30
visits member for 3 years, 8 months
seen Jan 1 at 14:10

Apr
27
awarded  Yearling
Mar
29
awarded  Nice Answer
Jan
8
awarded  Critic
Jan
7
awarded  Teacher
Jan
7
comment Employer appeal; OOP use in mainstream; solutions that blossom with OOP
Maybe for practice the combat in a typical RPG would be a good example. You start with a Player, Monster and normal attacks. Then you randomly add features like ranged attacks, elemental damage, armor, resists, critical strikes and so on. The goal is not to think of all the features from the start and not to simply implement the new feature, but to change the existing design in a way that gives the new feature and rather obvious way to implement it, either by inheritance or aggregation. At least that is how I learned: from my mistakes, thinking "if I had only wrote this differently" ;-)
Jan
7
comment Employer appeal; OOP use in mainstream; solutions that blossom with OOP
I had written a website (~5000 LOC of PHP) without just basic ideas about design. It got fairly popular and I kept adding features, but each new feature took longer to implement and required more changes. It got so frustrating that I gave up and rewrote it using a OO framework. I still made a lot of mistakes, but the framework guided me in the right direction and showed me how a good design helps with changes. In my current job I maintain a large webshop, written without any OOP. New features that should be easy often require me to change code in many places and that costs a lot of time.
Jan
7
answered Employer appeal; OOP use in mainstream; solutions that blossom with OOP
Mar
3
comment What advantages switching to ruby might give me as a python programmer?
You are kind of late to jump on the rails train now, it's hype has been over for years ...
Nov
2
awarded  Supporter