Category: Java
-
Effective Java (2nd) – Must Read Book
I read the 1st edition (my recommended book) a few years back. I just re-read the 2nd edition. It’s one of the best Java books around (the other must read would be Java Concurrency in Practice). Read it. Re-read it. The 2nd edition is a little harder to read. Some chapters are too long and…
-
Make fields final, objects immutable
Are you following these fundamental principles? Just so we’re on the same page, an immutable object is on whose state cannot be changed after construction. This view is supported by Joshua Bloch in Effective Java (2nd). Item 13 states: “Minimize the accessibility of classes and members.” He goes on to say some fundamental principles.
-
Java EE 6 – Job Well Done
I am excited. For the first time, I can say that Java EE development can actually be fun and cutting edge. Jeremy Norris recently said, and I retweeted it, “If you’ve chosen Spring by default since 2005 for your EE needs, you owe it to yourself to take a real close look at JEE6.” I…
-
Java Inner Classes – Part 4 – Multiple Inheritance and Closures
Java gets a lot of blame for not allowing straight multiple inheritance and for not implementing closures. But according to Bruce Eckel, you can do a multiple inheritance in Java, you can do closures – sort of. You can accomplish that with inner classes! In this final Part 4 entry, I will concentrate on these…
-
Java Inner Classes – Part 3 – Nested Classes
In Part 1, I’ve covered the basics, in part 2, anonymous inner classes. Is there anything left about inner classes? Yes, there is. I warned you that inner classes are a beast. 🙂 In this part, I’ll cover nested classes. When you create an inner class, there is a connection between the enclosed class and…
-
Java Inner Classes – Part 2 – Anonymous
In Part 1, Java Inner Classes – Intro, I covered most of the basics of inner classes. But there is much more. Some of it might get complex and confusing. But with all of that, I am beginning to understand and value what Bruce Eckel tries to say when he introduces inner classes. At first,…
-
Java Inner Classes – Intro
I believe in writing self-documented, easy to read code. I believe in mantra that simple is beautiful Inner classes are not good tools for that task. I think they make the task of writing good code much harder: weird syntax, different rules, etc. Mostly for that reason, I have not really learned inner classes. I…
-
Java EE 6: Moving in a right direction
I just read an overview of the Java EE 6 release. It looks like Java EE is becoming simpler, smaller, and less configuration hungry. Glad to that. Few things that sound exciting to me: WebBeans, Profiles, JPA 2, JSF 2. It’s probably a year or so away. I wish the process moved a bit faster.…
-
Guice — Spring killer?
I don’t think so, but it looks to me it’s going to be a good competitor in what it aims to do: dependency injection. I don’t know much about Guice, just heard about it couple of days ago, but the fact that it is coming from Google, it already has good following — at least…
-
New Features in Java 6
Java 6 is out. And it’s better than ever! 🙂 I do think it’s the best one ever. And the fastest ever. On one of my work projects, compiling Drools rule engine used to take over a minute, and with Java 6, this has been cut more than half. Nice improvement! What are the exciting…
Recent Posts
- The Software Craftsman
- Write Debuggable Code!
- Effective Programming: More Than Writing Code
- Fundamentals of programming
- Steve Jobs on Simplicity
Tags
2010 2011 abstraction advanced Books code concepts Craftsmanship design patterns encapsulation goals gof grasp immutability innerclass Java javascript jpa learning patterns practicing quality Quotes reading recommended reference solid tdd testing unclebob
Comments
Yes it does, thanks a lot for the info.
Good blog! I really love how it is simple on my eyes and the data are well written. I'm wondering…