If you use Python, I’d highly recommend joining realpython.com just for the emails. They include all sorts of tips that I personally would never uncover otherwise.
Here’s a good one from today’s email. You can force a function’s arguments (args, which can be passed without a key) to be keyword arguments […]
[OK, so rather than wait another two years before I write anything original on this blog, I’m just going to post interesting links that deal with things I’ve been thinking about. ]
So one odd programming construct that is ubiquitous, yet absent from Python, is the “switch” statement, meant to save a stream of if-else […]
Here’s a neat way to embed tests in a module’s file, so that when the file is run standalone, the tests are called and run by default.
The trick is the standard if __name__ == “__main__”: section that’s at the end of your Python file. If you include your test classes in your module’s file, […]
I’ve been working a lot recently on an internal project for a large software company, and we’re doing it in Google App Engine with Google Cloud SQL behind it. I like this combo, because it allows me to code a pretty powerful web […]