Coding, JavaScript, Simon makes gamez, Simon teaching

Live Stream #18. Living Code, Chapter 6: Particle Systems. 99 Balls Game.

Simon says: “In this live session, I am continuing Chapter 6 of my “Living Code” Course. This is the 4th live stream that I’m attempting to do this”. It was a tough one again, many thanks to Nahuel José for helping Simon out with an error! In the end Simon did manage to finish the second video in Particle Systems, but got another error in his third video in this chapter, so please feel free to help out if you have a minute to look at his code: https://alpha.editor.p5js.org/simontiger/sketches/HJK_bEjCf

Simon also started working on a “99 Balls” game. The next stream will be in two weeks, on July 24!

Coding, Coding Everywhere, Community Projects, Contributing, Geometry Joys, html, Java, JavaScript, Lingua franca, live stream, Living Code, Machine Learning, Milestones, Murderous Maths, neural networks, Notes on everyday life, Physics, Simon makes gamez, Simon teaching, Simon's Own Code, Simon's sketch book, Together with sis

Simon and Daniel Shiffman

Today is one of the most beautiful days in Simon’s life: NYU Associate Professor and the creator of Coding Train Daniel Shiffman has been Simon’s guarding angel, role model and source of all the knowledge Simon has accumulated so far (in programming, math, community ethics and English), and today Simon got to meet him for the first time in real life!

Daniel Shiffman posted:

Coding, JavaScript, Milestones, Simon makes gamez

Snakes and Ladders in p5.js

Simon built this Snakes and Ladders game on January 27 based on Daniel Shiffman’s live stream (from January 26), adding some extra features of his own. The game is online at https://alpha.editor.p5js.org/simontiger/sketches/BJBLJG5BM

 

DSC_0193

DSC_0194

 

Link to Daniel Shiffman’s live streams:
https://www.youtube.com/watch?v=nvvjYJ2L57c
https://www.youtube.com/watch?v=1v_E18xU3ok

Coding, JavaScript, live stream, Living Code, Milestones, Simon teaching

Live Stream #7. Chapter 3 of Living Code: Random Numbers.

Simon’s 7th live stream on Thursday went great. He has about 230 subscribers at the moment, so there were people watching and posting encouraging comments in the chat. In the very beginning, something went wrong with the OBS software and Simon had to reboot, but he didn’t panic. I saw him telling himself that “everything is going to be all right” and it did!

The topics were:

The random() function, the p5.Vector.random2D() function, core and vector random walks, Random walk with Levy Flight, Self-avoiding random walk, Linear (Monte Carlo) and random distribution and Gaussian distribution with randomGaussian()

Simon’s course Living Code is based on Daniel Shiffman’s book The Nature of Code, but focuses on JavaScript and Simon adds his own code and features in almost every chapter.

Coding, JavaScript, live stream, Living Code, Milestones, Simon teaching

Live Stream #6. (Mostly) Chapter 2 of Living Code: Forces.

Simon’s latest live stream on Thursday, January 11 was a blast! For the first time in his programming career he actually had quite a few viewers – largely thanks to Daniel Shiffman, who posted an announcement about Simon’s live session in his Twitter:

During the session, Simon recorded 6 tutorials:

  • a bonus video about vectors,
  • a video about forces in general,
  • a video about mass,
  • a video about the Friction Force,
  • a video about Air Resistance
  • and a video about Gravitational Attraction.

All as part of his “Living Code” Course. The lessons in the course are loosely based on Daniel Shiffman’s book “The Nature of Code“, but focus on JavaScript.

Simon was worried in the beginning, because he had forgotten to prepare for the stream and had no choice but do the theory (on physical forces) on the fly. It was wonderful to see how the competent viewers gave him a helping hand every now and then and generally encouraged him in the live chat. He even got a real Q&A session in the end, something he had always dreamed of:

Schermafbeelding 2018-01-11 om 20.38.49Schermafbeelding 2018-01-11 om 20.39.27Schermafbeelding 2018-01-11 om 20.39.42Schermafbeelding 2018-01-11 om 20.40.01Schermafbeelding 2018-01-11 om 20.40.20Schermafbeelding 2018-01-11 om 20.40.45Schermafbeelding 2018-01-11 om 20.41.01Schermafbeelding 2018-01-11 om 20.41.14Schermafbeelding 2018-01-11 om 20.41.24

Biology, Coding, JavaScript, Simon's Own Code

Langton’s Ant in p5.js

Simon wrote this JavaScript code for Langton’s Ant (a type of Cellular Automaton) himself, inspired by Daniel Shiffman’s description/version in Processing (Java) during the Coding Train live stream on January 5.

Link to Simon’s sketch: http://alpha.editor.p5js.org/simontiger/sketches/rJeKLICmM

Simon later also made a pixel level version: http://alpha.editor.p5js.org/simontiger/sketches/rJeKLICmM

And a version with multiple ants: http://alpha.editor.p5js.org/simontiger/sketches/r1Ry_FQ4M

(Simon also loves the Numberphile video about how Langton’s Ant works and forms a mysterious “highway” after a certain number of moves).