Showing posts with label Class. Show all posts
Showing posts with label Class. Show all posts

Friday, August 8, 2008

Class Immutability: Never thought of them before

"Classes should be immutable unless there's a very good reason to
make them mutable....If a class cannot be made immutable, limit its mutability as much as possible."

- Josh Bloch

I never thought of class immutability and its importance until I read Josh Bloch's statement quoted on a site about Java practices. There must be something about it that Bloch would quote such a tough statement. And it's true! A programmer must defend his class's instance variables from being changed from outside itself (except for instantiating the class, in which case you'll use a constructor or a static factory), unless there is a very good reason for it. Yeah, that is coolness to the uttermost level. Another point learned. :]

Continually learning,
Jep

Thursday, July 10, 2008

Learning Java Mobile Edition

This afternoon one of my college batch mates asked me if I want to learn Java Mobile Edition and I immediately said yes. For the past three years of working I have been much involved with web application development, like information systems. Now I am working on a considerably big scale information system with three years allotted for development and implementation. So I have so little idea on what I'll be learning about JME. I am excited about it and now thinking on how we will start our online class. We still have no curriculum and reading materials for the class and we are looking for people who want to join us. For those want to join the group, please send me your email so I could send you an invitation. We hope to have more people on the group before we start the class.


Continually learning,
Jep