Coding Snake in Functional JavaScript (Part 2)

preview_player
Показать описание

Source code:

Let me know if you want me to do other games! :)
Рекомендации по теме
Комментарии
Автор

That was nice. I don't know jack about functional programing or ES6, and yet your extensives explanations kept me interested and I now want to see the last part of the series. Good job!

sylvainschellenberger
Автор

That was awesome... Thanks for this very valuable tutorial

Gardel
Автор

Really enjoyed this video. Had a quick question though.

I noticed you used currying a lot, im wondering if this was necessary in some cases and could just be passed as an additional parameter instead. For example pointEq could just take a, b and check a == b. Can you explain why you used currying?

Trails
Автор

This is a great mini series! Super helpful. In your implementation of spec, would it be better from a FP perspective to change the Object.assign(acc, o) inside the reduce invoke to Object.assign({}, acc, o) so it's returning a somewhat new object, or use merge(acc)(o)?

michaeledwards
Автор

Why did you not build a pipeline to transform the state? you have already the pipe function!

hansschenker
Автор

Probably Tetris would be a good idea to do next :)

Автор

I really liked the nextMoves() trick, simple

lutaseb
welcome to shbcf.ru