OO programming is a bad meme

OO programming is a bad meme.

Sure thing, buddy.

Hold the presses, we got a hot shot programmer over here with a brand new non meme idea!

What will drive() do with so few attributes?

Set 0 < speed < maxspeed, decrease fuel proportionally to speed until fuel is 0

Whatever you say, friend.
*receives wage*

Except there is no `speed`.

>getSpeed()
>setSpeed()

There sure are situations where OOP is not the best choice or strict usage of OOP is detrimental. But with all things considered its best solution.

But regardless software development is much more than just writing code, OOP proves time again to be the economically superior option.

speed is missing from the attribute list

>get speed
>set speed
>no speed attribute

Blindly following a "programming paradigm" is shit. Use what's best for the problem space.

>getters and setters

>too intelligent to realise that speed is obviously a private attribute since it has setters and therefore not exposed in the attribute list

>no mass attribute and therfore no inertia or weight transfer
>no tire member objects to encapsulate load, traction, psi, diameter, radius, wheel speed, direction of the front wheels
>no differential member object to describe how power is distributed to the wheels
>no transmission member object to define gear ratios and current gear
>no engine member object to describe rpm, max rpm, torque curve, temperature, cooling system, turbo/super member, intake and exhaust pressure, downpipe max throughput to exhaust system

if you do object oriented programming wrong you get bad software

>fuel and maxspeed are both public
sure thing, senpai

>maxspeed is obviously constant

>omitting private members from a class diagram

>implying class diagram shouldn't only contain public interface and nothing more

I guess you're the kind of person that autogenerate codes from your UML diagrams, aren't you?

>needing tire objects when you can have molecule arrays

>OOP program with only one class - atoms
>can simulate any real life object, it's just a matter of different arrangements of atom objects

>steering isnt a method
>"fuel" is an attribute but "max_fuel" isnt
what half assed hr department scrub made that?