While perusing the Internet, I stumbled on some question about getters and setters and why people are supposed to use them (which of course I can’t find the link to now, even with the help of the mighty Google). After reading the question, I realized something. Holy crap, a lot of getter/setter examples on the Internet aren’t that good. Most of the tutorials on getters and setters talk about variable visibility, and you don’t get any real useful discussion about how to use them properly outside of technical forums or discussion boards. So, I thought I’d write a quick little guide on the topic in part to increase the number of useful pages on the topic out there on the Internet, and thus make it easier to find a good reference on the matter. Continue reading »
Maybe it’s just that I’m slow on the uptake, but I didn’t get the whole hype over using virtual machines for development up until I actually started doing it. After all, why use virtual machines when you have a perfectly good physical box sitting right there and ready to go? I get that it saves money and power and is easier to administer, but that’s an administrative reason to use virtual machines, not a reason for me to put my server set up on a VM rather than the computer sitting right here next to me. Continue reading »
When a friend of mine made a Google+ post a while back asking StackExchange what happened to the links to post your question on Facebook, Twitter, Google+, etc., he learned that the links were removed because they were hardly being used. This led to a brief back-and-forth thread between him and me on the post about the propriety of removing old features that just aren’t as cool as they used to be. Long story short, I’m in favor of cutting the links (and removing unused features in applications), he was opposed. Continue reading »
Random mongo tips learned the hard way
I did a little bit of work using mongo recently, and I stumbled across some of those “lessons learned the hard way” things that I thought I’d share. If you haven’t used mongo or aren’t familiar with it, I recommend their official site and Wikipedia for a quick introduction on what mongo is and how it works.
After having written the afore-discussed Flask web service, I needed a framework to load test the whole thing. I wound up using multi-mechanize. Overall, it’s a pretty decent framework. It’s pretty easily configurable, the documentation is thorough enough for most needs, and presents the test data in a variety of formats. Projects are quick and easy to set up, leaving you to focus on your test scripts. Continue reading »
If you’ve Googled around for a quick and simple framework for putting together web services in Python, odds are you’ve stumbled on the Flask framework. In fact, quick and simple is pretty much Flask’s claim to fame.
Continue reading »