What are the golden rules of programming?

  1. Make sure you understand the problem you’re trying to solve.
  2. Prioritize clarity and correctness. Performance is less important, and cleverness is to be avoided.
  3. If your code needs comments to be understood, it’s over-complicated.
  4. Always comment your code, or at least your modules.
  5. Extensibility and reusability are over-rated.
  6. Don’t innovate security. Use well-established security libraries.
  7. If you haven’t tested it, it probably doesn’t work.
  8. If you have time to ‘go back and fix it later’ you’ve got bigger problems in your job.
  9. Integrated Development Environments (like VisualStudio) and the internet (e.g. StackOverflow) are the best friends a coder could ever have.
  10. printf/print is the world’s simplest debugger.

Checkout the Python Debugger IPDB.

Explore More Technology Posts

Navigating the World of Offline UPI Payments: A Step-by-Step Guide

Learn to make UPI payments offline using USSD codes - a simple, secure way to transact without internet. Ideal for areas with poor connectivity.

Read More
ChatGPT vs. Google Bard: Which Large Language Model is Right for You?

ChatGPT and Google Bard are two powerful large language models that can be used for a variety of purposes. This blog post compares the two models and…

Read More
Download Website Source Codes: A Web Developer's Guide

Learn how to efficiently download website source codes using methods like Wget, browser extensions, and website downloader tools. Empower your web de…

Read More
What is Instagram Threads and how does it work?

Discover Threads, Meta's new microblogging app for sharing updates, photos, and engaging in public conversations. Download now!

Read More
Boost Website Performance with Text Compression

Improve website speed and performance by enabling text compression on your server. Learn how to enable text compression on Apache and Nginx servers.

Read More
What's new in Python 3.11?

Python 3.11 is between 10-60% faster than Python 3.10. On average, we measured a 1.25x speedup on the standard benchmark suite.

Read More