Posts

Showing posts with the label interesting

Hacking the development : Building by Definition

Hacking the project development !! I have been thinking lately, I personally do lot of projects outside my job, some ones are merely CRUD application over the web and some are novel applications. Philosophy :) The best way to do a job is not to repeat the same things again. I like products and I like components which we can re-use which can save hours setting up and starting things. Some of the best "on-the-fly" tools like 'Spring-ROO ' miss the personalization of things we want on the web development projects. For example, ROO can create a spring web project structure but what about wiring them with UI, customized UI templates to load the data. Input forms which just mimic the DB we have. So there should be a silver bullet customized to our needs where it can just create all the layers of the web project. After working around for more than several years in lots of personalized projects, I would hate myself to copy a piece of code from other project and pu...

Java - Interesting Stuffs

I am just still an admirer and constant learner of JAVA, So here are some interesting stuffs .I will try to constantly update once I come across some interesting things (atleast to me:) ), To resurrect an object(to make the object alive again) instead of reassigning in the object in finalize method "create a clone" Java Object are created in heap while in C++ ,they are created in Stack Object persistence can be done using object serialization and DATA ACCESS OBJECTS(DAO) Making an object alive in finalize method is useful when we use JNI for a c++ class and do it with a "termination condition"(when there is a code to check whether all the object references in the program has been made null) during garbage collection. System.gc() may or may not run finalize() of for the orphans (object that holds no reference) but Runtime.runFinalizersonExit(true) and System.runFinalizersonExit(true) will surely make the objects ready for the garbage collected. Java supports only pa...