Y
Y
Yuri Matyukhin2014-07-28 20:12:40
JavaScript
Yuri Matyukhin, 2014-07-28 20:12:40

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

4 answer(s)
D
Denis Ineshin, 2014-07-29
@ymatuhin

There is a lot here: shichuan.github.io/javascript-patterns

O
Oleg Abrazhaev, 2014-07-31
@seyfer

javascript.ru/tutorial/Object
I studied from here. From here, I wrote my solutions for inheritance using examples and completely figured out the prototypes.

S
Sergey, 2014-07-28
Protko @Fesor

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.

A
Alexander Keith, 2014-07-28
@tenbits

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 question

Ask a Question

731 491 924 answers to any question