Coding #generativeArt can be frustrating! Computers are extremely literal, and never know what you "meant".

Here are some things you can do to get help with problems you're having with your art.
1. Pause, breathe, and read the error.

If you run into a problem and immediately ask someone for help, you won't learn as much as solving it yourself. And if you solve your own problem, you won't have to wait for someone else. So see if you fix your own issue.
If you got an error message, read it!

Maybe it says you can't divide by zero, or that a file isn't found?

You might be given a line number, told what function errored, or hinted what data is invalid. Then, you can fix the problem without even needing to ask anyone.
2. Debug!

You can debug by adding print statements to find out information about what's happening when your code runs. If you find something you didn't expect, that's probably the cause of your problem.
Some questions that can be answered with print statements:

* Did program execution hit the line of code the print statement is on?
* What is the value of a particular variable?
* If you're looping, how many times are you looping?
Sometimes, you can't figure the question out on your own. That brings you to the second half of this advice: ask someone! Maybe on an online forum, maybe in real life.
3. Ask what your actual question is.

I've seen questions like "not working!" or "art isn't doing what I want".

It's hard for someone else to answer those questions, because they don't explain what the problem is.
If you get specific, it's easier to help you out. You might have a realization when getting specific and solve your own problem!

More specific questions are things like "I only see two circles, but I think I'm graphing three". Then, there's agreement as to what the problem is.
4. Post code, but post minimal code.

It's easier to help debug code when there is code to debug!

But posting hundreds of lines of code is a lot. Remember, for you your problem is very important, but for someone else, it's just a browser tab in the way of watching cat videos.
So eliminate any code you don't need to show the problem. If a circle is graphing in the wrong color, remove everything that isn't graphing that circle.

This, too, might help you figure out a fix. And even if it doesn't, other people will be grateful to have less code to read.
These tips will help you have an easier time getting help with your art, so you can move back to making something awesome.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Zachary Kanfer

Zachary Kanfer Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @zckzck

Jan 16,
One of the most famous text editors is #emacs. It's especially famous for being used for programming.

But that's not all it can do. Here are some tasks I use it for that are not about code.
1. #Screenwriting.

I took a #comedy writing class where all sketches had to be formatted as a screenplay. There's a text-based file format called fountain; those files are converted to pdf.

Luckily, Emacs has fountain mode (github.com/rnkn/fountain-…) for authoring fountain files. Image
Fountain mode is a seamless experience: while editing the files in Emacs, the pdfs are instantly generated, professionally styled, and ready to go. Image
Read 7 tweets
Jan 12,
A lot of #programmers are intimidated by powerful, expert tools, like #emacs.

But not everyone has the same experience! I've talked to a lot of programmers who think Emacs is a difficult tool to learn.

It's not.
It's a deep tool. There's a lot in it, but you don't have to learn it all at once!

Heck, you don't ever need to learn all of it.

If you can send an email, you can use Emacs.
For the past six years, I've been a co-organizer of Emacs NYC (emacsnyc.org). I gave a talk at EmacsConf 2020. I maintain a few Emacs packages.

I definitely enjoy both Emacs and its community.

Here's what you should do in your first five minutes with Emacs.
Read 10 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(