TestDriven.io
@testdrivenio
Followers
38K
Following
9K
Media
2K
Statuses
24K
Teaching practical programming through real-world applications. Tweets by @MikeHerman and @JanGiacomelli.
Denver, CO
Joined December 2017
Python tip: Using isinstance(obj, type) instead of type(obj) == type for type checking allows subclass compatibility, enhancing flexibility in code. Example 👇
0
1
6
Most startups don't need Kubernetes. They need a single EC2 instance and the discipline to not over-engineer.
60
78
1K
Full Self Driving Supervised drives like the best chauffeur imaginable Try it yourself at a nearby Tesla location
0
115
1K
Python tip: In Python, slicing a list creates a shallow copy. This means changes to elements of the sliced list won't affect the original, but changes to mutable elements inside will. Example 👇
0
0
3
Continuously Deploying Django to Linode with Docker and GitHub Actions https://t.co/NXOQgX6w9A Looks at how to configure GitHub Actions to continuously deploy a Django and Docker application to Linode. #Django
testdriven.io
0
1
4
New blog post: CSRF Protection without Tokens or Hidden Form Fields
blog.miguelgrinberg.com
A couple of months ago, I received a request from a random Internet user to add CSRF protection to my little web framework Microdot, and I thought it was a fantastic idea.When I set off to do this…
0
2
9
Sleigh the season with the most personal gift around. Get them a Cameo video!
11
12
142
Some of the biggest companies in the world use Django, but the project's budget is comparable to a single bay-area engineer's salary. If your company uses Django, please ask them to donate! It's a great way to say thanks, and really helps keep the framework going.
27
308
3K
Several folks in the replies Charlie asked about a migration guide from mypy, so I've started building one: https://t.co/HlZgLTkQm8
pydevtools.com
This guide provides practical steps for migrating Python projects from mypy to ty, based on real-world experiments with three open source projects: NetworkX, IPython, and python-genai. ⚠️ ty is...
Announcing the Beta release of ty: an extremely fast type checker and language server for Python, written in Rust. We now use ty exclusively in our own projects and are ready to recommend it to motivated users. 10x, 50x, even 100x faster than existing type checkers and LSPs.
5
17
217
Python tip: In Python, two strings with the same content might have the same identity due to an optimization called string interning. This isn't guaranteed for all strings, so it's important to use "==" for equality rather than "is" for identity.
0
0
6
I see a lot of complaints about untested AI slop in pull requests. Submitting those is a dereliction of duty as a software engineer: Your job is to deliver code you have proven to work
simonwillison.net
In all of the debates about the value of AI-assistance in software development there’s one depressing anecdote that I keep on seeing: the junior engineer, empowered by some class of …
60
259
2K
Python tip: A shallow copy (copy.copy()) duplicates the object but not its nested elements. A deep copy (copy.deepcopy()) also duplicates all nested elements. Changes in nested elements of a shallow copy affect the original, unlike in a deep copy.
0
1
4
⏰ Only 3 days left to submit your proposal to #PyConUS 2026! The deadline to submit your Talk, Charlas, Tutorial, and Poster proposals is December 19, 2025. Don’t miss your chance—submit now while there is still time! 🐍✨ More information here: https://t.co/wu0G5Ta2BQ
1
3
3
Python tip: In Python, None is a singleton object. There is only one instance of None throughout a Python program, making it unique compared to other objects. Example 👇
0
3
8
Using Hypothesis and Schemathesis to Test FastAPI https://t.co/SkG1dS9zkf by @amal_ytics
#FastAPI #Testing
testdriven.io
0
1
7
Announcing the Beta release of ty: an extremely fast type checker and language server for Python, written in Rust. We now use ty exclusively in our own projects and are ready to recommend it to motivated users. 10x, 50x, even 100x faster than existing type checkers and LSPs.
95
288
3K
Find out how is SG leading Southeast Asia’s energy transition through increased renewable financing and project development, production as well as distribution.
7
30
212
Python tip: In Python, using += on a list modifies the list in place. However, for tuples, which are immutable, += creates a new tuple. Example 👇
0
1
5
As a developer, have you asked yourself - why do we need UUIDs when auto-increment IDs exist?
212
33
993
Python tip: The statement if '__name__ == "__main__"' in Python is used to check whether a Python script is being run directly or being imported as a module. If the script is run directly, "__name__" is set to "__main__".
0
3
9
Coupling Flask with a front-end framework like #React, #Vue, or #Svelte? Use session cookies for auth (even cross-domain). Why? 1⃣It's easier 2⃣It's safer than using JWTs and localStorage https://t.co/ajwMmAq9o9
#Flask
testdriven.io
0
1
7
New blog post: How to Securely Store Secrets in Environment Variables
blog.miguelgrinberg.com
You may have seen the recent reports of a malware that stole API keys, tokens and other secrets from a large number of developers. From where were these secrets stolen from? You guessed it, they were…
3
38
251
Microservices are what happens when your organization has communication problems and you decide the architecture should have them too.
73
313
3K
Critics say Israel is a liability—but facts show it’s America’s strategic shield. These 5 reasons reveal its vital role in defense, intel & stability. Watch the full video to see why Israel matters.
30
57
216