Showing posts from August, 2014

Less Money Than a Cup of Coffee

If there is one phrase that I would like to not ever hear again is "all for less money than you spend on a cup of coffee".  I don't know who came up with this phrase but frankly I think it's way over used. I know that the people that say this believe the phrase and most of the time are not trying to be sinister, sneaky or anything like that.  In most cases the value that their services or products offer are well worth their value, if they are fully used.

When you consider the amount of consumer investment that it takes for any type of mass produced/sold item such as music, movies, educational videos, tutorial websites, gym memberships, etc, the investment is well worth it.  The producer carries all the risk but if they are successful, they have the potential to reap huge profits.

There's two points of view on this.  On one hand the the provider is betting that his profit will come from mass number of sales/subscriptions.  The consumer is betting that his expense …

Inner Classes Vs. Nested Classes in Java

Java has something called inner classes. Most of you know what an inner/nested implies in an object-oriented programming language. When we talk about nested we are referring to something (a element or block) of the same kind as the outer kind declared within the inner body of the outer element. Nested is simply a more specific term for an inner element. You can have an inner if statement within a loop for example, but since a loop and an if statement are two different constructs, that does not qualify the if statement as nested. A nested element must be inner in addition the inner element must be of the same kind as the outer element for it to qualify as nested. An example of this are nested if statements or nested loops. In the case of a nested if statement, a nested if statement is an inner if statement within another if statement. Same with a loop, a nested loop is an inner loop within another loop. This, I think is an acceptable description of a nested element in any language, wh…