I might write followups on these. Thanks for the suggestion.
Posts by Chris Webb
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
I think you should use "smartphone" otherwise people might get confused and try to run apps on one of these. ๐
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
TIFO that you can have italic emojis. Not likely to change civilisation but there you go.
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
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
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
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
Ask it to help you permanently block TeXGPT messages.
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/
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.
Writing, no, but I highlight technical books. Often a whole page or two is encapsulated in a few words, phrases or sentences.
That sounds like a Dilbert quote ๐
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.
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
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
Try asking AI to point out the mistakes ๐
My latest Substack article: An Introduction to the Python Pillow Image Library
#python #pythonprogramming #pillow #imageediting
codedrome.substack.com/p/an-introdu...
I love assembly language. Except when I don't.
#assembly
#assemblylanguage
Exploring Sound Waves with Python
codedrome.substack.com/p/exploring-...
#python #pythonprogramming #physics #soundwaves
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
My latest Substack article "Calculating RGB Values from Light Wavelengths in Python".
codedrome.substack.com/p/calculatin...
#python
#pythonprogramming
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
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
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
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...
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...
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...
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...