Advertisement ยท 728 ร— 90

Posts by Chris Webb

I might write followups on these. Thanks for the suggestion.

2 months ago 1 0 0 0

Python Tip #37 (of 365):

If you're missing function overloading from another programming language, try default argument values as an alternative. ๐Ÿงต

Default arguments are not a full replacement for function overloading, but they can often be used to reach a similar end.

#Python #DailyPythonTip

2 months ago 5 1 1 0
Post image

I think you should use "smartphone" otherwise people might get confused and try to run apps on one of these. ๐Ÿ™‚

2 months ago 0 0 0 0
Preview
Implementing Mathematical Formulas in Python Many of my articles include code which implements mathematical formulas, and as well as the Python code itself I usually include the formulas in traditional mathematical notation.

About six months ago I wrote this article, really only for my own benefit to get some ideas clear in my mind. However, it has been surprisingly popular. Nice to know people are interested in this sort of thing.

codedrome.substack.com/p/implementi...

#python #pythonprogramming #mathematics

2 months ago 2 0 1 0
Post image

TIFO that you can have italic emojis. Not likely to change civilisation but there you go.

2 months ago 0 0 1 0

Stages in learning a new programming language:
1 This looks easy.
2 This is terrible! What sort of moron created this? I'm giving up.
3 Oh, actually, that makes perfect sense.
#programming #programminglanguages #softwarengineering

3 months ago 0 0 0 0

I often use radians rather than degrees in my articles to measure angles. So I don't have to explain every time for people not familiar with radians I have written together a short article Radians: An Exploration in Python
codedrome.substack.com/p/radians-an...
#angles #radians #mathematics

4 months ago 1 0 0 0
Photo of book The Annotated Turing by Charles Petzold

Photo of book The Annotated Turing by Charles Petzold

I bought this book maybe 10 years ago and read bits here and there but have at last read it in full from beginning to end. I'm not going to claim I understood everything but overall it's very enlightening and I'm sure I'll dip into it again on occasions.
#alanturing #charlespetzold #computerscience

4 months ago 1 0 0 0

Has anyone ever asked you to write code on paper at an interview? If so how did it go? What were your feelings on the process and people expecting you to do it?
#programming #coding #interview

4 months ago 2 0 0 0

Ask it to help you permanently block TeXGPT messages.

4 months ago 2 0 0 0
Advertisement
Preview
Charles Petzold Charles Petzold is the author of the books Code and The Annotated Turing

I've just finished reading Code by Charles Petzold. I recommend it to anyone, whether they be a programmer/nerd or a normal person!

#programming #computerscience #charlespetzold

www.charlespetzold.com/books/

4 months ago 1 0 0 0

Today is my 1-year anniversary becoming a CPython core developer ๐Ÿฅน๐ŸŽ‰!

Not to get too sappy about it but working on CPython changed my life and I'm so immensely grateful to be on this team, working on something so important to me.

All this to say: Python rules, open source is forever.

5 months ago 87 9 1 0

Writing, no, but I highlight technical books. Often a whole page or two is encapsulated in a few words, phrases or sentences.

5 months ago 0 0 0 0

That sounds like a Dilbert quote ๐Ÿ˜€

5 months ago 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.

5 months ago 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

5 months ago 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

5 months ago 1 0 0 0

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

6 months ago 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...

6 months ago 1 0 0 0
Advertisement

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

6 months ago 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

8 months ago 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

9 months ago 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

9 months ago 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

1 year ago 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

1 year ago 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

1 year ago 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...

1 year ago 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...

1 year ago 0 0 0 0
Advertisement
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...

1 year ago 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...

1 year ago 0 0 0 0