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 might 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.
Like everyone else who’s ever wanted money at any point in their lives (i.e. like everyone else on the planet), I’ve put a little thought into just what I’d do if I ever go so obscenely rich I could stop worrying about money. Now, since definitions are important, I’ll define obscenely rich as making so much money a year, your immediate reaction is to utter an obscenity.
One of the things on that list is starting an open source foundation at my old college. This would be a setup designed to have students create or maintain open source projects that are released to the real world. The idea here is to give students an easily-accessible option that gives them all kinds of crazy useful real world experience other than “get a real-world full-time programming job.” Part of this was inspired by
Steven Hicks Steven Hicks’ [ed. Fixed my grammar] post on Computer Science classes he’d like to take.
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.
Around the end of 2011 and 2012, CodeAcademy.com starting promoting and subsequently launched Code Year, offering up a programming lesson every Monday for people to learn to code. In the interest of full disclosure, I’m doing the Code Year lessons myself, since I haven’t had a lot of web development experience in the past, and for the kicks.