K
K
Khan Bifov2019-07-25 13:03:27
JavaScript
Khan Bifov, 2019-07-25 13:03:27

What design patterns are implemented at the language level in javascript?

I study patterns and js. I heard that one of the main arguments of the opponents of patterns is that the need to use them indicates the weakness of the language used and its ecosystem, because. most of these patterns should be implemented out of the box

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Mikhail Osher, 2019-07-25
@irestone

Quoting Wikipedia:
"Patterns out of the box" is the statement of some armchair underprogrammer. Nevermind.

P
Peter, 2019-07-25
@Morpheus_God

Typically, patterns are used to simplify the task and so that the code can then be read and maintained at least somehow.

S
Sergey Egorov, 2019-08-01
@SergeyEgorov

There is a great book on patterns that apply specifically to Javascript. Author Stoyan Stefanov, the book is called "Javascript. Templates".
The term "pattern" implies the same repeated actions played by the user in a certain context. For example - fix the drill in the drill chuck and plug the drill into the socket before starting to drill. Or add some method to the object's prototype so that all constructed instances inherit this method.
How can you embed such templates "in the box"?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question