Thoughts and Ramblings

General things I find of interest.

What Objective-C can learn from Java, Part 5 (Exceptions)

This is one past the last is a series of blog posts I’m writing on things that Objective-C can learn from Java. I’m writing this because I’m seeing a series of ignorant tweets stating how much Java sucks. The other parts can be found here: Part 1 (Generics) Part 2 (Abstract Classes) Part 3 (Single Source File) Part 4 (Namespace) Part 5 (Exceptions) Anyone who programs in Java for a short period of time becomes well aware of Java’s exceptions.

What Objective-C can learn from Java, Part 4 (Namespace)

This is the last is a series of blog posts I’m writing on things that Objective-C can learn from Java. The other parts can be found here: Part 1 (Generics) Part 2 (Abstract Classes) Part 3 (Single Source File) Part 4 (Namespace) Part 5 (Exceptions) For one who has programmed in other object oriented languages, Objective-C stands out with its complete lack of namespace. As a result, classes have a prefix, such as Apple’s common NS and UI prefixes.

What Objective-C can learn from Java, Part 3 (Single Source File)

This is the third is a series of blog posts I’m writing on things that Objective-C can learn from Java. The other parts can be found here: Part 1 (Generics) Part 2 (Abstract Classes) Part 3 (Single Source File) Part 4 (Namespace) Part 5 (Exceptions) Objective-C still retains a lot of its heritage from it’s C beginnings. This includes using two files, a header and a source file, for each class.

What Objective-C can learn from Java, Part 2 (Abstract Classes)

This is the second is a series of blog posts I’m writing on things that Objective-C can learn from Java. The other parts can be found here: Part 1 (Generics) Part 2 (Abstract Classes) Part 3 (Single Source File) Part 4 (Namespace) Part 5 (Exceptions) When one is using object oriented design, a common practice is to lump similar classes together with a common super-class and include the common functionality in that super-class.

What Objective-C can learn from Java, Part 1 (Generics)

This is the first is a series of blog posts I’m going to write over the next several days on things that Objective-C can learn from Java. I’ve been programming in Java since 1997, and in Objective-C since 2001. The two languages have a lot of similarities, but there are a few design principles in which Java excels and Objective-C is left behind. This is understandable considering that Objective-C is older than Java, and Java borrowed heavily from Objective-C when it was designed.