DEV Community

Manuele J Sarfatti
Manuele J Sarfatti

Posted on

 

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?

Latest comments (8)

Collapse
 
nicholascloud profile image
Nicholas Cloud

Prototypal.

Collapse
 
tobiassn profile image
Tobias SN

I give a Swimmer class to OOP and save functional.

Collapse
 
mjsarfatti profile image
Manuele J Sarfatti

πŸ˜‚

Collapse
 
nicolus profile image
Nicolas Bailly

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

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 🧐

The JavaScript Brief

1. Top 5 MERN STACK projects to improve your practical understanding

Boost your MERN Stack development skills by undertaking interesting beginner projects. These five engaging projects cover web applications and range from social media website applications to geo-social networking maps. Hone your understanding and apply modern techniques backed up by hands-on experience.

2. How To Optimize Your React App’s Performance

Learn the best optimizing techniques to make your React applications faster and more efficient. Focusing on the identification of performance bottlenecks and common pitfalls to avoid, these optimization strategies will keep your applications running smoothly even when faced with growing complexity.

3. A story of let, const, object mutation, and a bug in my code

In the pursuit of bug-free code, explore an incident involving a mix-up between const and let, making sure your custom code works effectively with third

party documentation. Discover best practices on program flow and learn about JavaScript's unpredictable aspects to ensure your core code is robust.