
I write about #Python on the internet. Maintainer of https://nitter.cf/t.co/oQDzVUsuTe, a Python feed reader library.
Joined January 2023
- Tweets203
- Following43
- Followers87
- Likes586
death and gravity retweeted
Ordered key sharding in DynamoDB
So, you want to keep a sorted index in DynamoDB, but for whatever reason – usually throughput-related – it won't fit on a single partition. What do you do? Today, we look at the available solutions, do the math, and find out which is best.
death.andgravity.com/albumti…
death and gravity retweeted
DynamoDB crash course: part 1 – philosophy
This is part one of a series covering core DynamoDB concepts and patterns, all the way up to single-table design; the goal is to get you to understand idiomatic usage and trade-offs in under an hour. Today, we're looking at what DynamoDB is and why it is that way.
death.andgravity.com/dynamod…
death and gravity retweeted
When to Use Classes in Python? #python death.andgravity.com/same-fu…
death and gravity retweeted
When to Use Classes in Python? bit.ly/3UastEU
death and gravity retweeted
Replying to @charliermarsh @alsuren
And you can’t do this if dependency/env resolution isn’t super fast. (Or at least the experience isn’t as nice.) Performance is a feature that unlocks other features.
death and gravity retweeted
A Priority-Expiry LRU Cache Without Heaps or Trees #python death.andgravity.com/lru-cac…
death and gravity retweeted
If you are preparing for interviews or want to know the nitty-gritty of LRU cache you should read this. Long but a very good one. @_andgravity explained stuff amazingly with code & test cases.
#python #Programming #WebDevelopment #TechNews #OpenSource
death.andgravity.com/lru-cac…
death and gravity retweeted
A Priority-Expiry LRU Cache Without Heaps or Trees bit.ly/491hC5A
death and gravity retweeted
the only advice i've found worthwhile is "the important things aren't as important at first, you can learn them as you need them", "if you're not having fun you'll probably get bored", and "learn what your friends are using because you can ask them questions about it" shrug
death and gravity retweeted
#Python 3.12 factlet: There is a new itertool called batched() for grouping data into equal sized batches (with a possible odd lot at the end).
Interestingly the corner cases of "batched(iterable, 1)" and "zip(iterable)" both give the same result.
death and gravity retweeted
If all goes well, tomorrow #Python 3.12 will be released as final :-)
death and gravity retweeted
“Four different learning styles” has been debunked, but learners still have to learn how they learn, and choose the paths and materials that are right for them.
The myth of the myth of learning styles: nedbatchelder.com/blog/20230…
death and gravity retweeted
When to use classes in Python? When you repeat the same functions
In this article, we look at another heuristic for using classes in Python, with examples from real-world code, and some things to keep in mind.
death.andgravity.com/same-fu…
death and gravity retweeted
I hear
that you
and your team
have sold your objects
and bought closures
I hear
that you
and your team
have sold your closures
and bought objects
death and gravity retweeted
a daily reminder that the Fear Of Looking Dumb (e.g. being intimidated by having your code called "simple") is the #1 contributor to codebase insanity
grugbrain.dev/#grug-on-fold
be strong, developer!
don't FOLD!
death and gravity retweeted
Replying to @_rootsh
No,
What I mean is just because you don't work in some area doesn't mean you can't learn/do it.
Just do what you want.
Don't be afraid, and don't let anything limit what you want to do.
death and gravity retweeted
Bridging the Python async gap from the other side
death.andgravity.com/asyncio…
death and gravity retweeted
Ask HN: Is anyone using PyPy for real work?
news.ycombinator.com/item?id…
If you're using PyPy in a commercial context please comment!
death and gravity retweeted
Replying to @_andgravity @treyhunner
nitter.cf/hmmmmmbbb/status/16834…
TBH, I'm having a lot of trouble teaching people that aren't internally motivated. So, at a meta level, this: Be patient, it takes years. But, like most things, it does get better with practice, and that is something you have control over.
death and gravity retweeted
Replying to @_andgravity @treyhunner
For a total beginner, I'd still start with the tutorial, but probably couple that with something like making a tiny game e.g. with Pyxel, so they can get motivating results sooner. github.com/kitao/pyxel













