Gabriele Ferro Home

#100DaysOfCode Weekly Recap 02

Last week I realized that I had forgotten how to do some operations with the Git CLI.

So business before pleasure.

Day 10 – 11 – Improving my skills with the Git CLI

I had already taken the previous version of this course (in French), but it was not well structured.

This new version is less confusing and goes into much less detail. Approved!

Day 12 – P5.js Library on Codecademy

"p5.js is a JavaScript library for creative coding, with a focus on making coding accessible and inclusive for artists, designers, educators, beginners, and anyone else! p5.js is free and open-source because we believe software, and the tools to learn it, should be accessible to everyone."

"[...]p5.js is an interpretation of Processing for today’s web. We hold events and operate with support from the Processing Foundation."

Processing is a flexible software sketchbook and a language for learning how to code within the context of the visual arts.

I saw the birth of this project years ago when I was studying physics in college and wondered how programming could simulate natural physical processes. So I discovered it thanks to a book, or rather a man.

The book is "The Nature of Code" and the (genius) person who wrote this book is Daniel Shiffman.

In this book, two things are explained at the same time: creative programming and physics. I don't think I ever appreciated physics, until the moment I wrote the code of the motion of the bullet. The content of the book is explained in a terribly simple way that even a 5 year old could understand it. Therefore, the topics covered are extremely complex but they are approached in a gradual and progressive way where each topic builds on the previous ones, and without taking anything for granted.

You can buy the printed book to support his work or you can read the entire book for free at this address.

Anyway, it's been years and so I've forgotten the syntax. So, to refresh my memory I followed the introductory part of this course about P5.js on Codecademy.

The introduction discusses these topics:

And here is the cheatsheet.

Day 13 – I continue to study p5.js with Codecademy and I am also studying from this playlist on YouTube.

Yes, Daniel Shiffman also did a series dedicated to P5.js

I watched the first six videos and I reviewed the Codecademy lessons I had studied yesterday.

Day 14 - I reproduced a Sol LeWitt drawing to put the knowledge into practice.

Once you get to the end of the introductory part, the p5.js course on Codecademy suggests creating a small drawing inspired by an artist named Sol LeWitt (I didn't know him).

I don't have a Codecademy pro account (I won't pay) so I had to improvise.

I googled his designs and I chose one to recreate with the code. I used only rectangles to recreate this "artwork" >_>

The final result can be seen at this address.

I wonder what artwork the Codecademy course suggests... Anyway, here's my code

Day 15 (Today) - I'm writing this post and reviewing what I did this week.

I use the spaced repetition technique. But now I do the third revision on day 6 instead of after 4 days.

Speaking of study methods and managing my time, I had written this article a while back.

See you next week…

June 2024


Gabriele Ferro Home
Copyright © Ferro Gabriele. All rights reserved.