Python Best Practices
Naming, structure, error handling, virtual environments, type hints and testing — the habits that make Python code easy to come back to.
Try: python lists, javascript functions, syntax error, first project
Every guide on the site, newest first. Explanations, projects and fixes written in plain English.
Naming, structure, error handling, virtual environments, type hints and testing — the habits that make Python code easy to come back to.
The script tag is there and nothing happens, or the console is empty. Script placement, defer, wrong paths, cached files and browser…
How to publish a .NET application: framework-dependent versus self-contained builds, single-file output, trimming, Docker and configuration for production.
Classes, objects, inheritance and the dunder methods that make Python objects feel built in — plus dataclasses and when a function is…
PDO is the standard way to talk to a database from PHP. Connecting, prepared statements that stop SQL injection, fetching rows, transactions…
What PHP is, how it differs from JavaScript, how a request becomes a page, and your first working script — with the…
PHP 7 has been end-of-life since 2022. What PHP 8 changed in the language, what breaks when you move, why the upgrade…
IPython is missing from the interpreter you are running. Here is the fix, including the capitalisation trap and the Jupyter kernel mismatch…
No IntelliSense, "cannot find symbol" on everything, or the run button does nothing? VS Code needs a JDK it can find and…
What generics are, the problem they solve, and how they look in Java, C#, TypeScript and Python — with constraints, wildcards and…
== asks whether two values are equal; is asks whether they are the same object. Use is only for None, True, False…
The difference between concurrency and parallelism, when threads help and when they do not, and the two bugs — race conditions and…
The fastest way to improve is to read one guide, then build the thing it describes. Start with the basics, or jump straight to a project.