Sahand Saba
sahandsaba.com · Personal blog · on HN since 2014
Sahand Saba writes Python-focused programming tutorials on SAT solvers, async code, combinatorics, algorithms and common coding anti-patterns.
What HN saysHN commenters link it as a clear explanation of coroutines and async I/O, and as a source for lists of lesser-known Python language features.
18HN people shared it
3linked it in comments
15stories submitted
831story points
2 years agolast shared
2014people per year2026
Most-shared posts
- 1Understanding SAT by Implementing a Simple SAT Solver in Python (2014)8 people · 169 points · first shared 2014 · 21 comments on HN
- 2Python Language Features and Tricks3 people · 409 points · first shared 2014 · 85 comments on HN
- 3Understanding async programming in Python3.42 people · 1 points · first shared 2015 · discussion on HN
- 4Anti-Patterns Every Programmer Should Be Aware Of1 people · 242 points · first shared 2015 · 117 comments on HN
- 5So How Do You Actually Calculate The Fibonacci Numbers?1 people · 4 points · first shared 2014 · discussion on HN
- 6Combinatorics Algorithms for Coding Interviews1 people · 3 points · first shared 2020 · discussion on HN
- 7Combinatorial Generation Using Coroutines With Examples in Python1 people · 2 points · first shared 2014 · discussion on HN
- 8Understand Recurrence Relations Using Automata, Python Code, and JavaScript Visualizat°1 people · 1 points · first shared 2015 · discussion on HN
What HN people wrote when they linked it
kyllo · 2015-04-21
Well here's a great blog post on how to use the @asyncio.coroutine decorator to do asynchronous/non-blocking I/O in this style, as opposed to JS-style callbacks. I think the control flow is a lot clearer with coroutines as opposed to callbacks. I've never used Twisted though so I'm not sure how asyncio compares to that library.
http://sahandsaba.com/understanding-asyncio-node-js-python-3-4.html
tomkinstinch · 2014-11-27
I'd love other answers to the same question. Here are a few I've come across in the past:
http://www.rafekettler.com/magicmethods.html
http://sahandsaba.com/thirty-python-language-features-and-tricks-you-m…
http://www.siafoo.net/article/52
eru · 2023-09-18
Why do you backtrack when you hit a book?
Btw, people often cite the earliest articles, but not necessarily the simplest.
Often there are papers like '[topic] simplified' etc, and they can be quite useful.
In our case, an alternative approach is to just do a web search for 'how to write a simple sat solver' and that yields eg https://www.gibiansky.com/blog/verification/writing-a-sat-solver/index… and https://sahandsaba.com/understanding-sat-by-implementing-a-simple-sat-…