I am about to make my first java website. It contains only 5 tables. What should be my approach. Should I use JNDI and DAO or should I use Hibernate. What is the current industry practice ? I am using tomcat 6. However, to be candid, I do not know Hibernate, but would learn if it is worth.
I would suggest it's a perfect time to learn Hibernate. Smaller projects are better opportunities to try something new, imho.
I have used DAOs for a very long time and have just recently learned Hibernate myself, and I think it's worth it. I do most of my work building Java web applications for Tomcat, and I find that Struts2 is a nice frame work as well.
I agree. Don't go for any frameworks, just because people are talking about it or it claims it can deliver pizza object to your home address.
Understand if the framework really suits your need. Happy coding.
If you are not laughing at yourself, then you just didn't get the joke.
Do experiment with frameworks. But not in production code. Try them out for your hobby projects. And if you want to try something in production, do a trial first. Write a couple of small programs. The couple of days you spend experimenting are nothing compared to the days you have to "hack" because halfway through the project you figure out that it doesn't really do what you expected.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.