site banner

Small-Scale Question Sunday for April 21, 2024

Do you have a dumb question that you're kind of embarrassed to ask in the main thread? Is there something you're just not sure about?

This is your opportunity to ask questions. No question too simple or too silly.

Culture war topics are accepted, and proposals for a better intro post are appreciated.

1
Jump in the discussion.

No email address required.

I'm not much of a Python guy in particular (though I think it's fantastic that the same language is useful for both teaching kids and writing cutting-edge software; when I was a kid we had various forms of BASIC, which were used for and useful for neither).

But my most useful tips are language-agnostic:

Write and comment and document (three separate things!) all your code so thoroughly that even a complete stranger doesn't need to ask you questions to understand it all. This doesn't sound so important for a "sole developer" role, but at some point you'll have to extend some of your own code that you haven't looked at in years and you'll be the complete stranger who can't ask your past self questions.

Cover your code with tests. Set something up to automatically run tests before allowing any new merge (I'm assuming you're using a version control system; if not then let's call that tip #0). You will write bugs, but it won't matter so much as long as you're the first person who's hit by them, because then you have a chance to make sure you're the only person who's hit by them.