a python script to turn all Paul Graham essays to an e-book - abdullahMosibah/bibo... (more…)
Read more »
A few minutes ago a friend sent me the following code, and told me its misbehaving: def foo(l=[]): l.append("hello!") print(l) foo() foo() Instead of printing ["hello"] twice, it printed ["hello", "hello"]. Any ideas why? what's going on? I'll... (more…)
Read more »
Six examples of ways to refactor your Python code, and why they are improvements. (more…)
Read more »
So yesterday Visual Studio 2017 was released. Big news. Lots of cool stuff. As I write this I am watching the live stream of the 2 days-long launch event. If yo... (more…)
Read more »
Implementing a Naive Bayes machine learning classifier in Python. Starting with a basic implementation, and then improving it.
Libraries used: NumPy, Numba (and scikit-learn for comparison). (more…)
Read more »