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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.1115latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.1115

Package Sidebar

Install

npm i ooop

Weekly Downloads

115

Version

0.0.1

License

MIT

Unpacked Size

198 kB

Total Files

184

Last publish

Collaborators

  • octod