Sundeep 🌞

13.4K posts

Sundeep 🌞 banner
Sundeep 🌞

Sundeep 🌞

@learn_byexample

I tweet about Regex, Python, Linux CLI one-liners, Vim and interesting tech nuggets. ✍ Author of several programming ebooks and devourer of fantasy books 🧙

انضم Nisan 2015
139 يتبع3.4K المتابعون
تغريدة مثبتة
Sundeep 🌞
Sundeep 🌞@learn_byexample·
🐍 Struggling with Python regular expressions? 🔥 I wrote an interactive TUI app with 100+ exercises, covering both `re` and `regex` modules! github.com/learnbyexample…
Sundeep 🌞 tweet media
English
1
5
14
1.2K
Sundeep 🌞 أُعيد تغريده
Rodrigo 🐍🚀
Rodrigo 🐍🚀@mathsppblog·
Decorators blueprint: a step by step explanation of the full decorator anatomy. Steal this for when you're writing your own decorators.
Rodrigo 🐍🚀 tweet media
English
0
2
13
731
Sundeep 🌞 أُعيد تغريده
Sundeep 🌞
Sundeep 🌞@learn_byexample·
🐍 Struggling with Python regular expressions? 🔥 I wrote an interactive TUI app with 100+ exercises, covering both `re` and `regex` modules! github.com/learnbyexample…
Sundeep 🌞 tweet media
English
1
5
14
1.2K
Sundeep 🌞 أُعيد تغريده
Phil Ewels
Phil Ewels@tallphil·
I just released v1.4 + v1.5 of "mkdocs-quiz" this week with some fun new features: ✍️ Fill-in-the-blank quizzes (not just multiple choice) 💾 QTI export for Canvas/Blackboard/Moodle ✨ Interactive terminal CLI quiz runner github.com/ewels/mkdocs-q…
GIF
English
1
3
7
1K
Sundeep 🌞 أُعيد تغريده
Mike Driscoll
Mike Driscoll@driscollis·
My latest #Python book is now available in digital format
Mike Driscoll tweet media
English
1
2
9
779
Sundeep 🌞 أُعيد تغريده
Rodrigo 🐍🚀
Rodrigo 🐍🚀@mathsppblog·
This year I'm starting a habit of working on a book every day. I have to write at least a paragraph for it to count. (I set a small daily goal to make it RIDICULOUS for me to skip it.) I'm 15 days in. The progress accumulates fast!
English
2
1
5
1.1K
Sundeep 🌞 أُعيد تغريده
Will McGugan
Will McGugan@willmcgugan·
Python has a "suppress" decorator in contextlib, which catches and ignores exceptions of a given type. I didn't use this for the longest time. It felt like an import to do something so trivial. I didn't care too much about saving two lines. Lately though, I prefer it. Not for saving lines, but because it is self documenting. The "suppress" is clearer when scanning code. This can get lost in your mind's eye when scanning code: try: file.write(...) except OSError: pass This feels more explicit, and easier to read at-a-glance with suppress(OSError): file.write(...) This tweet brought to you from the "last humans still writing code" generation.
English
27
23
536
45.3K
Sundeep 🌞 أُعيد تغريده
Rodrigo 🐍🚀
Rodrigo 🐍🚀@mathsppblog·
You can use the module `json` to read and write data in the JSON format, which is very suitable to represent the most common Python built-in types: - lists - dictionaries - strings - integers - floats - Booleans.
Rodrigo 🐍🚀 tweet media
English
1
1
5
947
Sundeep 🌞
Sundeep 🌞@learn_byexample·
@KeCaran Thanks a lot for the kind words! You should have access to all the issues from your Gumroad account.
English
0
0
0
9
Sundeep 🌞 أُعيد تغريده
Sundeep 🌞
Sundeep 🌞@learn_byexample·
🐧Want to test your Linux CLI text processing skills? 🔥Check out my interactive TUI app with 70+ exercises! github.com/learnbyexample…
Sundeep 🌞 tweet media
English
1
4
14
1.7K
Sundeep 🌞 أُعيد تغريده
Arpit Bhayani
Arpit Bhayani@arpit_bhayani·
Wrote an essay on why time is such a hard problem in distributed systems. This week, I went down the rabbit hole of clock drift, NTP, PTP, logical clocks, vector clocks, and how systems like Spanner and CockroachDB deal with ordering and causality at scale. If you want to know how and why clocks break databases, why milliseconds matter, or how distributed systems deal with time, this essay will give you a solid mental model. Give it a read.
Arpit Bhayani tweet media
English
14
50
701
36.9K
Sundeep 🌞 أُعيد تغريده
Will McGugan
Will McGugan@willmcgugan·
Alrighty. The Toad is out of the bag. 👜🐸 Install toad to work with a variety of #AI coding agents with one beautiful terminal interface. Check out the blog post for more information... willmcgugan.github.io/toad-released/ I've been told I'm very authentic on camera. You just can't fake that kind of awkwardness.
English
60
87
689
195.8K
Sundeep 🌞 أُعيد تغريده
Will McGugan
Will McGugan@willmcgugan·
Is curl supposed to be pronounced "See URL"? Because that makes sense, but I hadn't thought about it until now.
English
142
39
1.9K
211.4K
Sundeep 🌞 أُعيد تغريده
Will McGugan
Will McGugan@willmcgugan·
There is one thing you can start doing right now that will make your Python API 10 times better. Limit methods to 1 or 2 positional arguments, and make the rest keyword only. The positional arguments should be the key information, i.e. the thing that is being acted upon. In conjunction with the name of the method, it should be clear what the method call is doing. After one or two positional arguments, the connection from the method name and the argument is lost. Keyword arguments add context for the reader. The goal is to make the method call as self documenting as possible. It will pay dividends for others reading your code, and for yourself. Your context window is likely much smaller than you realize, and it shrinks over time.
English
8
6
120
7.9K
Sundeep 🌞 أُعيد تغريده
Rodrigo 🐍🚀
Rodrigo 🐍🚀@mathsppblog·
Here's a lie developers tell themselves: “Recursion is useless” That's a coping mechanism because you're afraid of recursion... But you shouldn't be afraid! Recursion is actually nice ✨ And it's a very natural way to express certain algorithms... Let me show you an example.
Rodrigo 🐍🚀 tweet media
English
1
1
3
584