Answer the question
In order to leave comments, you need to log in
Where can I find examples of good code, structure, patterns for native javascript?
Good afternoon.
I have read a lot of books, I have experience in js programming, but I am very worried about the question "What is the best?". I saw a lot of patterns, a lot of implementations of inheritance, but I find it difficult to find a practical application for them.
Tell me where you can see the implementation of such approaches, and generally examples of good code.
Thank you.
Answer the question
In order to leave comments, you need to log in
javascript.ru/tutorial/Object
I studied from here. From here, I wrote my solutions for inheritance using examples and completely figured out the prototypes.
See the $rootScope implementation in angular.js for the date binding implementation. In general, this framework is very well written and its source code can be studied.
In general, inheritance is not so often necessary. Yes, and inheritance in JS is more like decorating objects.
Here is an example of an application that should be the standard of beauty and perfectionism: Task-Scheduler :) Of course, I exaggerate, but I'm still going to write an article when we finish, because there are really a lot of interesting nuances there: structure, tests, component architecture. Please, you or anyone else take a look at the apps and leave your questions at [email protected] for unclear or questionable parts of the app. And if someone has a desire to join the co-authors, I will be glad.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question