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
732
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
Keith Carangelo
Keith Carangelo@KeCaranยท
@learn_byexample Sundeep, your newsletter was/is terrific. Will there be any way to access old issues?
English
1
0
1
21
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