Thanks a lot for the article 👏🏽 I didn't know you could actually implement interfaces in TS.
I must reckon I'm not a huge fan of OOP in general since it adds a lot of boilerplate to the code, how often do you interfaces?
Tech Lead/Team Lead. Senior WebDev.
Intermediate Grade on Computer Systems-
High Grade on Web Application Development-
MBA (+Marketing+HHRR).
Studied a bit of law, economics and design
Location
Spain
Education
Higher Level Education Certificate on Web Application Development
It's not about how many lines of code you write, it's about code quality so there's OOP to give you a more secure implementation. Tests adds a lot of boilerplate too but with unit tests and end to end test you could ensure your application still works after an update, which leads to less time loss seeking for bugs, more application quality to your customers and more efficient team work...
You can emulate OOP features on JS such interfaces and static typing using Typescript or writing it with Kotlin and compile it to js, this last option i think is best so it leads you to a more maintainable and scalable project.
currently there are several applications utilising TS where I am, most of our interfaces are applied to form input, however there is legacy react components using objects for state handling that are also constructed with interfaces.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks a lot for the article 👏🏽 I didn't know you could actually implement interfaces in TS.
I must reckon I'm not a huge fan of OOP in general since it adds a lot of boilerplate to the code, how often do you interfaces?
It's not about how many lines of code you write, it's about code quality so there's OOP to give you a more secure implementation. Tests adds a lot of boilerplate too but with unit tests and end to end test you could ensure your application still works after an update, which leads to less time loss seeking for bugs, more application quality to your customers and more efficient team work...
You can emulate OOP features on JS such interfaces and static typing using Typescript or writing it with Kotlin and compile it to js, this last option i think is best so it leads you to a more maintainable and scalable project.
currently there are several applications utilising TS where I am, most of our interfaces are applied to form input, however there is legacy react components using objects for state handling that are also constructed with interfaces.