death and gravity (@_andgravity) header
death and gravity (@_andgravity) profile picture

I write about #Python on the internet. Maintainer of https://nitter.cf/t.co/oQDzVUsuTe, a Python feed reader library.

Joined January 2023
Photo by death and gravity (@_andgravity)Photo by death and gravity (@_andgravity)Photo by death and gravity (@_andgravity)Photo by death and gravity (@_andgravity)Photo by death and gravity (@_andgravity)Photo by death and gravity (@_andgravity)Photo by death and gravity (@_andgravity)Photo by death and gravity (@_andgravity)Photo by death and gravity (@_andgravity)Photo by death and gravity (@_andgravity)
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…
2
7
1,897
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…
4
14
1,243
death and gravity retweeted
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.
1
2
1
31
4,839
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
1
5
1
92
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.
11
32
2
326
35,710
death and gravity retweeted
If all goes well, tomorrow #Python 3.12 will be released as final :-)
13
44
710
80,792
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…
1
3
1
17
7,425
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…
3
3
14
2,836
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
1
11
2
42
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!
1
6
3
59
6,042
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.
1
1
9
423
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!
1
6
9
1,756
death and gravity retweeted
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.
Replying to @treyhunner
“Learning to code” does not take 60 days, it takes years. Enjoy the journey.
1
1
2
66
death and gravity retweeted
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
1
1
41