Answer the question
In order to leave comments, you need to log in
What is and what is the difference between patterns and algorithms?
Привет, начал изучать javascript. Наткнлулся на форумах на понятие паттернов, почитал и понял их как алгоритмы, только готовые решения. Я правильно мыслю? Для чего они?
И еще попрошу у вас, может есть у кого под рукой годная статтейка/видео по маст-хев алгоритмам/паттернам в javascript, что бы было доступно и понятно для новичка?
Спасибо и хорошего вам вечера!
Answer the question
In order to leave comments, you need to log in
A design pattern is a repeatable architectural construct that is a solution to a design problem within some frequently occurring context.
Algorithm - a set of instructions describing the order of actions of the performer to achieve some result.
There are plenty of articles and books on the first and second on the Internet.
https://addyosmani.com/resources/essentialjsdesign...
https://github.com/fbeline/Design-Patterns-JS
https://mgechev.github.io/javascript-algorithms/
In this case, it's more accurate to say "design patterns", because just a pattern can be anything, it's just a template.
The design pattern gives a template for solving common tasks of the same type, it can be abstract and more like a recommendation, it does not give precise instructions and procedures.
The pattern differs from the algorithm in the same way that the design of a house differs from the step-by-step process of building it.
The best course on algorithms that I have seen (and am currently studying myself)
MIPT: Algorithms and Data Structures in Python 3
Don't be confused by Python - it is very logical and simple and smart
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question