Good Medium article about advanced Python tricks. I especially like Python 3.7’s data classes, and the attr alternative.
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, […]
Google App Engine: Google Cloud SQL Type Code Quirks
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 […]
Recent Comments
- JPEREZGIL on REST calls in .NET (C#) over SSL (HTTPS)
- Reivaj810 on REST calls in .NET (C#) over SSL (HTTPS)
- Juancastein on Installing SharePoint 2013 on Windows Server 2012 R2 Preview
- Juancastein on Installing SharePoint 2013 on Windows Server 2012 R2 Preview
- Arjen Holterman on REST calls in .NET (C#) over SSL (HTTPS)
Categories