DEV Community

Manuele J Sarfatti
Manuele J Sarfatti

Posted on

3

Your boat is sinking, you think you can make it to land, but you can only...

...save one flavour of JavaScript: OO or functional.

Which one do you bring with you and why?

Top comments (8)

Collapse
 
nicolus profile image
Nicolus β€’

Typescript, which is the only sane way to do Object Oriented javascript.

Collapse
 
tobiassn profile image
Tobias SN β€’

I give a Swimmer class to OOP and save functional.

Collapse
 
mjsarfatti profile image
Manuele J Sarfatti β€’

πŸ˜‚

Collapse
 
anwar_nairi profile image
Anwar β€’ β€’ Edited

POP, because it offers runtime mutation of the code, I like it a lot

Collapse
 
mjsarfatti profile image
Manuele J Sarfatti β€’

You mean OOP right?

Collapse
 
anwar_nairi profile image
Anwar β€’

Nope, I mean prototype πŸ€“

Thread Thread
 
mjsarfatti profile image
Manuele J Sarfatti β€’

Interesting 🧐

Collapse
 
nicholascloud profile image
Nicholas Cloud β€’

Prototypal.