JS: Sequences - course 3900 rub. from Hexlet, training 11 hours, Date: December 1, 2023.
Miscellaneous / / December 04, 2023
You will learn more about higher order functions filter, map and reduce and hierarchical structures. Eventually, you'll learn how to build complex data structures on top of simpler ones and design functions so that they can be easily connected to each other. Composite data comes in handy if you decide to work on projects that require processing complex data structures. The knowledge in this course helps programmers process collections represented by lists using higher-order functions. To make learning easier, you should take the JS: Fundamentals course in advance.
Introduction
Get acquainted with the course and the HTML Generator project, which will be gradually developed throughout the course.
Sequence representation
Recall pairs and consider representing lists using pairs.
Marking
Start developing a library for working with HTML. Get to know Markdown. Study the general principles of markup languages using HTML as an example.
Displaying lists
Consider the map function and how lists are displayed.
Filtering lists
Learn a new very important operation - filtering. Consider the filter function, which is one of the three main higher-order functions in functional programming. Understand how the filter function is implemented internally and how it helps you write good declarative code using the tag removal function as an example.
Convolution
Consider the third "pillar" of functional programming - the reduce function. Understand how it can help us when creating an HTML handler.
Standard Interfaces
Understand the benefits of good abstraction and how to write code in a way that makes it easier to combine later. Consider examples of constructing complex structures using simple basic elements. Get into the idea of standard interfaces.
Hierarchical structures
Go to building hierarchical structures using pairs.
Level design
Explore the "layered design" approach, as exemplified by our implementation of a library for working with HTML.
Additional materials
Articles and videos curated by the Hexlet team. Will help you dive deeper into the topic of the course