April 23rd, 2010
After encountering a few abstract classes in different open source projects, I found myself asking the question, why? After some searching, here are a few good answers to the question, prefaced by a quick summary by myself:
- What is an abstract class?
An abstract class is one that cannot be instantiated itself, but can be extended by subclasses.
- Why not just use a base class?
An abstract class is useful in cases where you do not want your base class to be called for direct use, yet still want to establish common functionality with it.
- Why is it recommended not to implement in the abstract class?
This “best practice” seems silly at first, considering that you defeat the purpose of inheritance by avoiding implementation. My recommendation is to declare all abstract methods for complete class reference, while returning to implement anything that make sense to be common code.
- What if I want to follow convention?
Then what you are really creating is an “interface,” not an abstract class. An interface strictly outlines the members and methods only, with no implementation allowed.
- So whats the value of an interface?
An interface is useful to control code in a program that you know will be worked on by many others. What if you have a group of subclasses whose functionality depend on certain methods being available? Requiring that the subclass implement an interface forces all methods in the interface to be implemented by the subclass at instantiation. This prevents subclasses created by others from breaking the overall application by missing key methods. This has nothing to do with ease-of-coding, which may make it appear as an necessary process to the lone developer. Rather, the advantage of an interface speaks to the much broader world project management.
Here are two very simple examples of abstract classes usage and class inheritance in general.
Posted in Around the Web, Programming | No Comments »
April 3rd, 2010
Found this little diddy while trying to figure out how to change library icons in Windows 7. Just thought I’d pass it along and give the author some credit.
http://zornsoftware.talsit.info/?p=3
Tags: utilities, windows 7
Posted in Uncategorized | No Comments »
February 9th, 2010
I recently stumbled upon a nice little music web app called Grooveshark. Just make an account, search for a song, and throw it in a playlist for listening online. It’s quick, easy and userfriendly, aspects that are very important on the web and that I look for as a web developer myself. I’m sure there’s a handful of apps just like, but definitely give this one a look-see.
Posted in Uncategorized | No Comments »
February 8th, 2010

“I feel it is up to us to teach through whatever means necessary. Music is a huge way of communicating. It’s our responsibility as artists and producers of great sound to reach the youth with our words of encouragement and positive thinking.”
Sasha Kovacevich
True Soul Entertainment CEO
Posted in Around the Web, Hiphop, Music | No Comments »
February 1st, 2010
This is a test post from Windows 7’s “Writer” program. It allows you to publish to a blog straight from the desktop! I’m sure XP could run this program as well, so I’m probably way behind the curve, but I haven’t heard much about since loading up Windows 7.
Read the rest of this entry »
Posted in Uncategorized | No Comments »
October 29th, 2009
I stumbled upon this shortly after Your World of Text, actually. It prompted me to search for anything out there like it, because when you happen upon things of this nature on the web, it’s like unearthing some underground resource and entering in to the privileged few who utilize it daily.
In other words, I went out searching for any sort of online note-taking platforms. I found many, but none quite as quick, easy and intuitive as Webnote. While the coolest feature of Your World was the infinite space in which you could write free-form text, it was also somewhat of a drawback, since you could easily lose track of information that got lost off in some remote corner of the cosmos that is Your World.
Webnote solves that problem in a brilliant compromise. It encases all notes in their own separate color-coded boxes, which can then be moved around the space. The space is still infinite in the right and bottom directions, but a nice little toolbar at the top creates a little box of the same color as each note, where clicking this icon takes you directly to that note! When the notes pile up you may still have a hard time sifting through, but you can never lose something in this way, which is the important thing. You even have a nice filter box that uses regular expressions (not for the average user, but immensely powerful in that regard).
I call the above a compromise because all the other note-taking platforms I’ve come across do not combine the modularity of separate notes with the free form aspect of Your World. Webnote gives you the modularity, while maintaining the ability to move things anywhere you want instead of creating a boring, static list out of your notes like any stale old web menu.
The only thing Webnote lacks at this point is a way to password protect pages you create. Unfortunately, after asking the developer about this, I learned that he’d long since stopped developing Webnote and had no plans to do this. However, his code is open source, which is inspiring for a developer like me to get my hands dirty on a version with my own twist. Granted some free time, I might take on just that.
At any rate, I’ll never email myself another random note again, now that I’ve found Webnote. Do give a try – I guarantee you’ll be impressed!
Posted in Around the Web | No Comments »
October 8th, 2009
I recently picked up Muramasa: The Demon Blade for the Wii, and so far it’s pretty dope. I don’t buy games often these days, but I hold a special place in my heard for games that take the 2-d old school gameplay element to the next level for the consoles of today.
That’s why games like Dust: An Elysian Tale just blow me away, and remind me why I love games so much. Not to crap on simulations and beautifully rendered 3-d extravaganzas, but the more realistic to try to make the medium, the more of that original sense of wonder you lose in the process. Games like Muramasa and Dust have it in spades, and I can only hope the trend of the 2-d revival keeps going strong as technology gets the better of us!
Tags: games
Posted in Gaming | No Comments »
October 6th, 2009
Cantyouseeimbusy.com is simply genius, and there’s not much more to it. Too bad as a web developer, I’m hardly ever working in office-type applications. But in the workplace, it’s still about as inconspicuous as you can get while slacking off!
Tags: Slack off, work
Posted in Around the Web, Gaming | No Comments »
September 29th, 2009
A very tastefully done concept music video for Common and Cee-Lo’s ‘Make My Day’, featuring my very own sister as the main muse. Check it out and vote for it—It could become the actual music video for the song!
Tags: Hiphop, Music, Video
Posted in Hiphop, Music | No Comments »