Chris Webb's Avatar

Chris Webb

@codedrome.bsky.social

I am a software developer from London, England, and I write about programming, mostly in Python, and various STEM topics. My articles are published on Substack.

26 Followers  |  15 Following  |  25 Posts  |  Joined: 06.01.2025  |  2.0765

Latest posts by codedrome.bsky.social on Bluesky

That sounds like a Dilbert quote πŸ˜€

07.11.2025 17:09 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

From the early 50s people have been trying to streamline the programming process or we'd all still be writing machine code. Somewhere along the continuum there's a point where the 0s and 1s generated are of a quality bad enough for the time saved to not be worthwhile.

07.11.2025 16:57 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I recently spotted an extraneous space after a dot in a bit of my Python code. Obviously invalid syntax apart from the fact that it isn't. This:

name = "Chris"
print(name. upper())

actually works! Why? How? Can anyone explain? It also works with a space before the dot.

#python #pythonprogramming

07.11.2025 16:47 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Quadratic Functions in Python part 1: Areas of Squares The word quadratic derives from the Latin quadratus meaning square and in its simplest form a quadratic function calculates the areas of squares from the length of a side.

The first two of my series of articles on quadratic functions in Python are now live.

codedrome.substack.com/p/quadratic-...

codedrome.substack.com/p/quadratic-...

#python #pythonprogramming #programming #mathematics #algebra #quadraticfunctions

29.10.2025 17:05 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Try asking AI to point out the mistakes πŸ˜€

11.10.2025 15:03 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
An Introduction to the Python Pillow Image Library Pillow describes itself as "the friendly PIL fork", PIL being the now-defunct Python Imaging Library.

My latest Substack article: An Introduction to the Python Pillow Image Library

#python #pythonprogramming #pillow #imageediting

codedrome.substack.com/p/an-introdu...

11.10.2025 14:39 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I love assembly language. Except when I don't.
#assembly
#assemblylanguage

29.09.2025 11:58 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Exploring Sound Waves with Python For this project I will write Python code to demonstrate the relationship between the frequencies and wavelengths of sound waves, and how they behave in mediums such as air and water.

Exploring Sound Waves with Python

codedrome.substack.com/p/exploring-...

#python #pythonprogramming #physics #soundwaves

04.08.2025 11:33 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Noughts and Crosses / Tic Tac Toe in Python Part 1: Console UI using curses

Part 1 of my series "Noughts and Crosses / Tic Tac Toe in Python". In this article I write a console/curses based implementation.

codedrome.substack.com/p/noughts-an...

#python #PythonProgramming

25.06.2025 13:46 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Calculating RGB Values from Light Wavelengths in Python A while ago I wrote a two-part article about visible light, and in particular the wavelength/frequency proportionality.

My latest Substack article "Calculating RGB Values from Light Wavelengths in Python".

codedrome.substack.com/p/calculatin...

#python
#pythonprogramming

17.06.2025 11:44 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Levenshtein Word Distance in Python I recently wrote an implementation of the Soundex Algorithm which attempts to assign the same encoding to words which are pronounced the same but spelled differently.

Levenshtein Word Distance in Python. This algorithm calculates the number of steps required to change one word into another and has various uses including spell checking suggestions.

codedrome.substack.com/p/levenshtei...

#python

#pythonprogramming

#algorithms

#levenshtein

08.04.2025 17:02 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
The Soundex Algorithm in Python Soundex is one of a number of phonetic algorithms which assign values to words or names so that they can be compared for similarity of pronounciation.

The Soundex Algorithm in Python
This algorithm assigns identical codes to words or names which it thinks are pronounced the same. It's not brilliant but coding it in Python is an interesting project.
codedrome.substack.com/p/soundex-al...
#python #pythonprogramming #programming #soundex #algorithms

02.04.2025 12:16 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Testing the Performance of Python Named Tuples Are named tuples slower than ordinary ones? Let's find out. (Spoiler alert: yes, a bit.)

Testing the Performance of Python Named Tuples: are named tuples slower than ordinary ones? Let's find out. (Spoiler alert: yes, a bit.)

codedrome.substack.com/p/testing-th...

#python #programming #tuple #namedtuple

25.03.2025 12:25 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Exploring the Visible Spectrum with Python Part 2 This is the second part of my two-part series on the visible spectrum.

In the second and final part of my series Exploring the Visible Spectrum with Python I plot the wavelengths, frequencies and energies of the colours of visible light using Matplotlib.
#python #pythonprogramming #programming #light #spectrum #physics #matplotlib
codedrome.substack.com/p/visible-sp...

18.03.2025 13:46 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Exploring the Visible Spectrum with Python Part 1 The Visible Spectrum

Exploring the Visible Spectrum with Python Part 1
In this article I write Python code to calculate the frequencies, wavelengths, energies and RGB values of visible light.
#python #pythonprogramming #physics #numpy #matplotlib #light #spectrum
codedrome.substack.com/p/visible-sp...

11.03.2025 13:38 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Formula Triangles in Python Part 2 The Inner Workings of the Universe With Just Three Numbers

Formula Triangles in Python Part 2 of 2.

Examining electrical current with Ohm's Law, Newton's First and Second Laws of Motion and more.

#python #pythonprogramming #programming #mathematics #physics

codedrome.substack.com/p/formula-tr...

04.03.2025 14:03 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Preview
Formula Triangles in Python Part 1 The Inner Workings of the Universe With Just Three Numbers

New on Substack: Formula Triangles in Python Part 1
Many laws of physics can be expressed with just three values and illustrated using formula triangles which in this article I implement in Python.
#python #pythonprogramming #programming
#physics #mathematics
codedrome.substack.com/p/formula-tr...

25.02.2025 12:04 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Benford’s Law in Python In this post I will write a Python implementation of Benford's Law which describes the distribution of the first digits of most sets of numeric data.

New on Substack - Benford’s Law in Python which describes the distribution of the first digits of most sets of numeric data. Here I explain the ideas and implement a demo in Python
codedrome.substack.com/p/benfords-l...
#statistics #benfordslaw #datascience #programming #python #pythonprogramming

20.02.2025 15:28 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Zipf’s Law in Python In this post I will write a project in Python to apply Zipf's Law to analysing word frequencies in a piece of text.

My latest Substack article: Zipf’s Law in Python.

Zipf's Law describes a probability distribution that can be applied to many types of data and in this article I'll use it to analyse word frequencies in Bram Stoker's Dracula.

codedrome.substack.com/p/zipfs-law-...

11.02.2025 13:19 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Radians: An Exploration in Python Measuring and using angles using radians

My latest Substack article: Radians: An Exploration in Python

This article gives an overview of radians as a unit of angle measurement, shows how to convert between radians and degrees, and how to use radians in Python trigonometric functions.

codedrome.substack.com/p/radians-an...

04.02.2025 14:28 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Estimating Pi in Python For this project I will code a few of the many methods of estimating Pi, the incredibly useful number that tells us the ratio of a circle's circumference to its diameter.

My Substack article "Estimating Pi in Python". There are many ways to estimate pi and in this article I've coded a few in Python.

codedrome.substack.com/p/estimating...

17.01.2025 17:21 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
The Caesar Shift Cypher in Python The Caesar Shift Cypher was named after Julius Caesar and is the simplest method of encypherment possible.

New Substack article "The Caesar Shift Cypher in Python"

codedrome.substack.com/p/the-caesar...

14.01.2025 16:08 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Python Hub Weekly Digest for 2025-01-12

https://pythonhub.dev/digest/2025-01-12/

12.01.2025 18:15 β€” πŸ‘ 6    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0
Preview
The Inner Workings of Python Dataclasses Explained Discover how Python dataclasses work internally! Learn how to use __annotations__ and exec() to make our own dataclass decorator!

Handy article on Python dataclasses
jacobpadilla.com/articles/pyt...

13.01.2025 15:20 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Exploring Radioactive Decay Half-Lives with Python In this article I will briefly explain radioactive decay and the concept of half-lives, and then go on to write Python code to illustrate the underlying mathematics.

My latest Substack article "Exploring Radioactive Decay Half-Lives with Python"

codedrome.substack.com/p/radioactiv...

07.01.2025 17:09 β€” πŸ‘ 1    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Preview
Archive - CodeDrome Full archive of all the posts from CodeDrome.

My first post! My programming content is now published on Substack and I aim to create one new article each week. I mostly write about implementing some topic in science or mathematics in Python. This is a link to my Substack articles.

codedrome.substack.com/archive

06.01.2025 17:39 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@codedrome is following 15 prominent accounts