Miss any of our Open RFC calls?Watch the recordings here! »

ooop

0.0.1 • Public • Published

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.

Keywords

none

Install

npm i ooop

DownloadsWeekly Downloads

3

Version

0.0.1

License

MIT

Unpacked Size

198 kB

Total Files

184

Last publish

Collaborators

  • avatar