Are we still doing OOP?
hackinghat.com
Are we still doing OOP?
1–10 of 37 posts
Re: Are we still doing OOP?
#2"The money class is the root of all evil"
Re: Are we still doing OOP?
#3The reason OO exists to the degree it does in my mind is that it makes it easier for Enterprise Architects to write code in Visio, this also lends itself to directly modeling the domain so managers don't have to think. Which leads to public class Money { public string Currency { get; set; } public float Price { get; set; } } "The money class is the root of all evil"
They're a crutch for people who can't (or don't have the training to) think in terms of sets, mappings, graphs, combinators, etc.
Re: Are we still doing OOP?
#4The reason OO exists to the degree it does in my mind is that it makes it easier for Enterprise Architects to write code in Visio, this also lends itself to directly modeling the domain so managers don't have to think. Which leads to public class Money { public string Currency { get; set; } public float Price { get; set; } } "The money class is the root of all evil"
OO models exist because they reflect how we describe things when not talking to computers. "This is Spot. Spot Is-A Dog. See Spot.run(). Spot.runs == :fast." They're a crutch for people who can't (or don't have the training to) think in terms of sets, mappings, graphs, combinators, etc.
Re: Are we still doing OOP?
#5Thanks to Paul Graham's language abuse, dead is becoming a meme: "X is dead" = "I don't use X".
Re: Are we still doing OOP?
#6Earlier quoted context omitted.
OO models exist because they reflect how we describe things when not talking to computers. "This is Spot. Spot Is-A Dog. See Spot.run(). Spot.runs == :fast." They're a crutch for people who can't (or don't have the training to) think in terms of sets, mappings, graphs, combinators, etc.
...or maybe FP is a crutch for mathematicians and purists. You're making a huge mistake: we shouldn't adapt our thinking to computers, we should adapt computers to our thinking and make them easier to operate. According to your logic, writing hexadecimal code is the holy grail of computer programming.
The fact is, we shouldn't adapt computers to our thinking, nor our thinking to computers. We should adapt both to our problems.
Re: Are we still doing OOP?
#7OO really shines with UI programming, where incrementally building up behaviour through inheritance makes a lot of sense.
Re: Are we still doing OOP?
#8Outside of that other things become useful... this is how the world has always worked :)