news.volyx.in

The Nature of Code (2nd Edition) (natureofcode.com)

463 points by skilled · 836 days ago · 51 comments on HN

Article summary

The Nature of Code, a book by Daniel Shiffman, has been updated to its second edition, which explores the simulation of natural phenomena using JavaScript and the p5.js library. The book covers topics such as randomness, vectors, forces, and autonomous agents, and is designed to be a resource for learning programming concepts through creative and interactive examples. The book has been released in various formats, including online and print versions, and has been well-received by the programming and art communities. The author's goal is to provide a comprehensive and accessible introduction to programming and simulation techniques.

Main themes

  • Creative Coding
  • Simulation and Modeling
  • Programming Education
  • JavaScript and p5.js
  • Art and Design
  • Emergent Behavior

What commenters say

  • The book's use of JavaScript and p5.js makes it an accessible resource for learning programming concepts, especially for beginners.
  • The author's teaching style and ability to explain complex concepts in a simple way are highly praised by readers.
  • Some commenters argue that the book's code examples could be improved by following best practices, such as using const instead of let for variables that don't change.
  • Others disagree, arguing that not every piece of code needs to follow strict best practices and that context matters in programming.
  • The book has had a significant impact on many readers, inspiring them to learn programming and explore creative coding.
  • Some readers appreciate the book's focus on simulation and modeling, which allows for the exploration of complex phenomena in a interactive and engaging way.
  • The book's availability in various formats, including online and print versions, is seen as a positive aspect by many readers.
  • The author's decision to update the book to use p5.js instead of Processing is seen as a good choice, making the book more relevant to modern programming practices.