Let's explore functional programming (part 3)

preview_player
Показать описание
As an offshoot of our series "The Art and Science of CAP", we're on a journey to explore functional programming, an important practical and philosophical foundation underlying and informing CAP. Nothing too heavy, mostly in JavaScript (for maximum reach and so that everyone can try the examples out). Nice and relaxed, and in the strong traditions of Hands-on SAP Dev - friendly chat and curiosity driven learning by doing. Everyone welcome!

Рекомендации по теме
Комментарии
Автор

@54:10
The Problem with multiline was, that products is a valid expression.

This is how
products
is executed alone. Then comes
.filter(...) which is not a valid statement and
.length is also not a valid statement.

REPL does not recognize that it continues because JavaScript does not necessarily require a ; at the end of the statement.

products.
filter(...).
map(...)

works, because here the point after products ( products. ) tells the REPL “hey, there's more” ;-)

CarstenSchlegel-ke
join shbcf.ru