Skip to content

Latest commit

 

History

History
248 lines (192 loc) · 13.4 KB

File metadata and controls

248 lines (192 loc) · 13.4 KB

Class 11

🛠️ Debugging

Debugging meme

Documentation meme

Resources

What to do when something doesn't work

Extra bracket meme

  • Does your IDE point out any syntax problems?
  • Is there an error message in the console?
  • Check your syntax
  • Check for typos
  • Can you make a more basic version of the code do something?
  • Double-check the documentation
  • Do some Googling - has someone else had this problem?
  • Get help from ChatGPT or Copilot

General debugging

Typo/error meme

  • Reference errors (is your code pointing to the right thing?)
  • console.log() / println()
  • Debuggers - live demo

Graphical debugging

"Why aren't things drawing the way I expect them to?"

  • It's hard, because there as less-obvious ways to identify a problem
  • If something isn't displaying, can you make a simpler version?
  • Add a "debug view"
    • In GLSL (shaders), there's no textual logging or output, so developers will draw various textures and stages of pixel operations to the screen to decipher what might be happening
    • #debugviewart

🛠️ Machine Learning & AI

How to do ML/AI things

  1. (Beginner) Use a friendly, commercially-available ML tool
  2. (Intermediate) Find or download a tool/library/service that someone else has created, and use it
  3. (Advanced) Download a tool that someone else has made, and train your own data set, then use that
  4. (Expert) Write your own ML tool using existing ML frameworks like PyTorch or Tensorflow

* Just using a ML tool that is "ready to use" can be an expert-level journey

Carmack

How to install an ML tool:

  • Some ML tools are fully hosted online and you don't need to install anything
  • Some will be pre-packaged into a nice UI in a desktop app. This is rare
  • Some have online notebooks that are ready to use, usually in Google Colab. This creates a virtual environment with a good GPU to use. You should be able to copy a notebook into your own acount and start using it. This will also usually cost money if you want a very good GPU.
  • Some must be installed on your own computer. Sometimes a very nice GPU is required (look for GPU RAM requirements). Often Linux and Windows are the target platforms
  • Many existing apps are now adding AI features

Find an ML tool

ML is really good at dealing with images, so many of the popular machine-learning tools are either image generators or analyzers. However, some other popular ML tools deal with text, audio, and other data types to do amazing, magical things. Some places to start, depending on your interests:

Articles / videos

See Learning With AI

Courses / Tutorials

Interesting ML Tools

Lists of tools:

Beginner-friendly

Computer vision

More advanced

ML/AI Artists

Diversity in ML

ML: The Good Things

ML: The Bad Things

Biases in Software

Not necessarily specific to ML, but exacerbated by ML. Who is building the software that we use?

📝 Homework:

Read:

  • Some of the articles above
  • Investigate some ML tools

Build something with a machine-learning tool

  • Or start work on your final project and present that next week

📋 Review code

  • Present your web tech