It is fairly obvious that object oriented program has been used as a silver bullet in the modern day programming. Whether you are working as a tech...
For further actions, you may consider blocking this person and/or reporting abuse
In _accountType == "SavingsAccount" you're comparing an int with a string. Just saying. ;)
Great article, one thing though:
ExType
is not defined in the multiple logger types exampleSome people (myself included) say that logging also pollutes your class and violates srp. That's why I switched to AOP logging.
This article is really SOLID :D
for the last part Customer constructor should be Account right?
Using obj as a variable name for the Loggers is bad.
FIX : rename it to logger
Nice explanation of SOLID principles with good examples.
If you're really trying to learn about OOP, read Sandi Metz's Practical Object-Oriented Design in Ruby and 99 Bottles of OOP. They'll teach you solid OOP.
Good Idea (Y)
Really enjoyed reading this as I'm looking into patterns and code structure. The usage of real world examples and requests from the business are excellent.
This article is a fine introduction to the ideas of maintainable OOD and OOP.
Awesome write-up
Cool solid examples :)
Good one for every level..
That was a pretty solid read! (no pun intended) Your examples were great. :)
neat
Very good, thanks