ooop
TypeScript icon, indicating that this package has built-in type declarations

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.

Readme

Keywords

none

Package Sidebar

Install

npm i ooop

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

198 kB

Total Files

184

Last publish

Collaborators

  • octod