Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

NOC in ES6 #70

Open
Mr-Darfler opened this issue Nov 26, 2017 · 7 comments
Open

NOC in ES6 #70

Mr-Darfler opened this issue Nov 26, 2017 · 7 comments
Assignees

Comments

@Mr-Darfler
Copy link
Contributor

I'm planning on using NOC as the basis for a High School CS class. It's great to see that the whole code has been ported over to p5.js from Processing, but it would be great to take it a step further and use ES6. I believe that this would be especially helpful when doing inheritance as ES6 makes it much easier to understand. I have already started to re-write some of the code on my own fork of this repo, but it would be nice to collaborate so that the code has the best chance of being merged into the main branch, or become it's own repo along side NOC, and NOC-p5.js

@Mr-Darfler
Copy link
Contributor Author

#71 As an example of where I'm at right now with transpiling to ES6

@shiffman
Copy link
Member

Thanks, yes, it's my intention to switch everything over to ES6, within reason, still remaining beginner-friendly. Using classes and let are definites for sure. My intro to JS tutorials on YouTube are now using classes and ES6, see 6.1.

I'll review #71 and happy to accept pull requests if I don't get to this first!

@shiffman
Copy link
Member

Noting that #67 ad #68 are in progress too.

@shiffman
Copy link
Member

shiffman commented Feb 7, 2022

I think this can be closed now but @jasongao97 let's see if any examples are still written without ES6 classes and update them!

@ferreira-mariana
Copy link
Contributor

Hi, @shiffman!
I notice some files with var, so I changed to use let instead and opened this PR #125

@shiffman
Copy link
Member

Thank you @ferreira-mariana! I will go ahead and merge this! Appreciate your help so much! This repo is actually out of date and may soon be deprecated. I have to figure out the best way to maintain the examples going forward. As of now, you can find them all in the p5 web editor and linked from the work-in-progress new website!

https://nature-of-code-2nd-edition.netlify.app/
https://github.com/nature-of-code/noc-book-2023/tree/main/content/examples

@ferreira-mariana
Copy link
Contributor

ohh! nature of code 2nd edition!! cool!
I'm going to read this one instead of the 1st edition then, thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants