ooop
v0.0.1
Published
Over-engineered object oriented programming
Downloads
10
Readme
OOOP
Over-engineered object oriented programming
Install
npm i ooop
Yeah ok but why?
Because your code will look more professional®, everybody know that skilled developers tend to over-engineer their codebase.
An hello world example
import ooop from 'ooop';
new ooop.Types.Function(
() => (
new ooop.Types.ObjectString(`hello world`)
)
).call();
Simple, over-engineered and so professional.
Best practices using ooop
Strings
Don't
const varname = 'hello'; // too simple
Do
import ooop from 'ooop';
new ooop.Types.ObjectString(`hello`);
Better.
Numbers
Don't
const varname = 100; // it could be an Int, a Float, a Decimal...
const varname2 = 100.22; // idem
Do
import ooop from 'ooop';
new ooop.Types.ObjectInt(100);
new ooop.Types.ObjectDecimal(100.22);
Lovely.