Installed Mono and MonoGame on a Mac. I've very pleased that after very little effort, I got my Space Invaders clone to work! The majority of the changes involved removing the XBox code, so that means I'll have to create a scoreboard.
Sunday, December 13, 2020
Thursday, June 18, 2020
Functional Programming
Just watched in interesting video on YouTube called
Learning Functional Programming with JavaScript from Anjana Vakil. I found it an interesting introduction for functional programming. At the end, she introduced an article by Mary Rose called An introduction to functional programming, which teaches the concepts through code blocks.
Some of the basic building blocks of functional programming are:
- Data is immutable -- don't change data.
- Use first class functions: They should only operate on data passed in and not change anything outside of that function.
- Do not use loops -- use functions instead.
Subscribe to:
Posts (Atom)