In what scenario the framework should not be used? [closed] - java

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I have the first meeting with my project manager and she assigned me a project which to be start soon. She explained to me few points related project e.g. technology, functionality, end user expectation etc.
MVC based web application
Not to use any framework
Server Side : use only Java, servlet, jsp
UI : Javascript, jQuery can also be used
integratation with existing project (at later stage)
There is one point i can not understand why she asked me to not to use any framework although i could not ask why. Does anybody clarify ? If i use any framework like spring then will it create any problem while integration with existing project.

I can recognize 2 sub questions in your question.
In what scenario the framework should not be used?
why she asked me to not to use any framework?
Answer 1
I can imagine situation when you don't need any framework. It is if you have to create extremely simple 1-2 screen application without any security, access rules and probably without DB based persistence. This means that IMHO framework-less application is good as a student exercise just to understand how things work.
Answer 2
She is ... not professional enough. I am sorry to say it but this is pretty obvious. To implement MVC without framework you have to perform a lot of dirty work. I believe that the key reason for this strange requirement is "integratation with existing project" that is probably created without any framework, so PM thinks that framework could bother you during this integration.
Moreover, product manager should never dictate R&D how to implement project. Project manager can politely ask to implement certain set of features.
I am sorry if my answer is helpful.

Related

How to use hibernate in a ready java project? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Recently i have made a simple database project with the help of jsp and servlet. I have done lot of the work in the jsp layouts and servelt. It has around 30 jsp files. But due to lot of repeated code for the connectivity files to database it has been very complex. I want to reduce this complexity by managing the code.
I've heard about Hibernate framework which is used for database connectivity for make the project simple and unrepeated code. Now i want to convert this same project with hibernate. Is it possible? And where from i should need to start?
Yes it should be possible, however, what seems to be the issue is this:
I have done lot of the work in the jsp layouts and servlet.
You also mention that you have a lot of repeated code.
You would probably need to consider to encapsulate the database operations and move them from the JSP pages (if I am understanding your point correctly) to appropriate bean classes. You would then call these beans from your JSP pages. This should reduce code duplication, thus making your application more maintainable.
After this refactoring process, you can proceed and implement the Hibernate framework within your system.

Does Hibernate make sense without Spring? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Some years ago I started "studying" and working with JAVA (I gotta say that I am an embedded developer, so I mostly work in C and C++).
Receptly I have started working with Databases so I stumbled on Hibernate. I read couple of starting guides and books about the topic and started to play around with some small projects.
Surfing on the Internet (Stackoverflow included) I only have seen projects that include Hibernate/JPA + Spring [+ Struts].
I am designing a quite big personal project. I wanted to do it "step by step" in order to learn all parts that it implies: DB, Hibernate (I wanted to use first hbm.xml and then Annotations), make an easy standalone swing application, and then use Spring + web page.
Probably my question is a little stupid but, I will ask it anyway
Does Hibernate make sense without Spring?
Should I keep playing a little longer with Hibernate while I read up on Spring and then develope the project using both technologies?
My only goal in this project is to learn. Nothing more, nothing less. I do not care about the effort.
Thanks so much for your opinions! I appreciate!
Yes Hibernate make sense without Spring but it will make more sense with Spring :)
As you have already studied Hibernate, you know about it so let me tell you that Spring will make your life more easier mainly because of DI and it also have Hibernate support classes for doing common functions, transaction management.
I suggest you to do both together because without Spring you will be learning obsolete Hibernate Design, for example using Service Locator etc.
Note : You will find learning Spring way much easier as compared to Hibernate :)
Unless you have a pressing reason to do your database work first, I would suggest taking a different approach and learning Spring core before you dive into Hibernate. This is what I did way back when I learned both, and it was very effective for me.
As another answer mentions, Spring is (probably) easier to learn than Hibernate, and you will probably end up with a "cleaner" project as a result of using Spring since using the framework encourages the use of a lot of best practices in Java. Since you're learning Java, that's a big plus.
Once you get those practices down, you can move into Spring/Hibernate integration and tackle that, but you'll probably find it a lot easier.

java spring framework knowledge consolidation [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I recently followed some spring related tutorials and I get the feeling that I will forget the concepts learnt so far quickly, since projects I am engaged in at the moment, do not use spring.
I would love to consolidate the things I have learnt and stay in touch with spring. My question is what kind of a project should I start in order cover most of the concepts that I learnt in spring?
Thanks.
Think of a Project for yourself. A photo sharing app for example. This is how I do it. I think of a project for myself and code it in my free time - thus stay in touch with Spring for example.
btw, my last project using spring has now over 100 registered users, which I did not expect and they all demand other functionality - this way you have to improve also.
I might suggest openshift as your deploy environment - it's free with plugins for eclipse.
You might also ask/answer spring related questions here on SO - this is always helpful of course.
Think about some examples and try to resolve with spring, Write blogs about spring, contribute some open source projects that use spring. This is the way that I learn spring and still doing. :)

What are the factors i should consider to select any MVC Framework [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I have worked on struts 1.2 and DWR as front end MVC framework.Now i have two projects to develop one is simple web application and another is complex.Which one i should select from most prevalent MVC Framework Spring mvc, Struts 2, DWR,JSF and brief reason to select any of the MVC . Most of the team knows all the frameworks. What are the factors i should consider to select any Framework.
I would consider what is the scope of my project, if I am anticipating complex system with lots and lots of various implementations, then I would go for Spring, for moderately complex system I would go for JSF.
One also need to consider if the primary designer leaves the team would other team members or a new comer will be able to pick particular MVC framework with ease or not (consider using well known MVC vs not-so-well-known-personal-favourite-picked-out-of-google). How mature the particular MVC framework is, are there good books written about it etc. These are just from top of my head.
Also keep in mind when there is too much of Spring (or any other ioC container) involved, there comes a time (after 8-12 months) when you are unable to debug code correctly because there are so many classes involved that you just keep tracking which class goes to which spring context files etc.
Finally, as one of my mentors used to say, don't solve the world problems (by using lots of design patterns), solve the problem at hand. :-)

What are the best java/j2ee web application auto code generators? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I know this question is subjective but I would really want to know what are the best j2ee web application auto code generators.
I googled and found out the Appfuse is one of them.
Spring ROO is another but it depends on spring i think.
Are there any other better tools?
Basically lot of time is spent on creating regular CRUD screens with the same mundane things for each screen.
So, I would want to reduce the time spent on such simple CRUD screens so that I can focus more on the core application logic.
We use Telosys (http://www.telosys.org/) to generate repetitive code like CRUD screens.
A set of templates are available for Spring MVC, JPA, AngularJS, etc.
We have customized some of them. It saves of lot of time.
The best solution I have seen so far is Grails. It generates groovy code, not java but you can interface painlessly with any java library/class. The convention over configuration features are amazing and one can put up a functioning web app in minutes. I suggest you see for yourself - just try the grails screencasts. They will get you up to speed in 15 minutes.The technologies used under the hood are best-of-breed : spring, hibernate, lucene, quartz, sitemesh etc.

Categories

Resources