(yes, we're doing this again)
Quote:
Originally Posted by suzzer99
The whole key to node imo is to quickly spin up new components and expand scope in a modular way. Stuff like factories and rigid types slow that down imo. Composition over inheritance. Yes you can do static typing w/o inheritance but what's the point?
Static typing has nothing to do with oop methodologies (inheritance, factories etc). You can do oop without static types and vice versa. And you can easily do composition with static types.
I'd also like to second that Typescript is not the best example to judge static types by, because it is an afterthought and not core to the language. My personal experience with dynamic vs static (js vs java/c++) is that dynamic makes it easier to develop quickly, while static makes it easier to develop robustly. Depending on the domain, one can be preferable over the other, e.g. front-end vs back-end.
Last edited by Wolfram; 04-17-2018 at 06:32 AM.