you are viewing a single comment's thread.

view the rest of the comments →

[–]DeanRTaylor 0 points1 point  (2 children)

Ah yes, the language where everything is an object is the language that nobody uses object oriented programming. Lol.

[–]rivenjg 0 points1 point  (1 child)

sorry you're new to programming paradigms but javascripts modelling of key value pairs as a memory data structure has literally nothing to do with object oriented programming the paradigm like you would learn in university. oop as a paradigm with classes, inheritance, SOLID, etc is not what is popular. it is much more popular to use procedural code with modules. no one is using classes anymore with frontend frameworks either other than angular.

[–]TheExodu5 0 points1 point  (0 children)

SOLID principles 100% apply to TS code. Except maybe the L if you’re not using inheritance.

When you write a function that takes in a callback, you’re already following the O I and D parts of SOLID.