• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is JSF still worth it to learn?  RSS feed

 
Fernando Guerrero
Greenhorn
Posts: 16
Eclipse IDE Java Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I have been a Java back end developer for some years. The last time I did front end development was like 5 years ago. In those years I used JSF, AJAX to create web applications.
Today I am in the need to pick up front end development again. With all the new technologies like HTML5, Angular2, JQuery,  etc. Is JSF still relevant and worth it to learn?

What would be the areas where Java web technologies will have an advantage over the other technologies and what areas would be better to choose something else like HMTL5 and Angular2?

Thanks.
 
P Marksson
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say JSF, JSP and all those old technologies are obsolete.

Basically, by using JSF, you pack your app with both front end and back end code. Ugly :/

When those technologies where developed, the average computer where slow. Thus, having a front end app using Anulgar or React was a bad idea. Everything would look sluggish and laggy.
Todays computer are fast, and all the JSF rendering can be moved to a browser(i.e by using Angular, React etc). Chrome V8 for example compile javascript code to native code.

Rendering on server side is redundant as for today. It's cumbersome a complete waste of resources and CPU power.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF is a good thing to know if you need to design an industrial-grade webapp with lots of user input and validation, although I've never been sure that its overhead is low enough to run something the size of Amazon.com on it.

Java in general is expensive to implement, since apps cannot be just slapped out in an afternoon. Java is best for things where you need lots of design options and where performance and/or security are critical.

For lightweight stuff, I usually use PHP or node.js myself. Note that many extensions to JSF use jQuery internally, but usually with less coding required (they also usually allow direct use of jQuery also).

One thing to bear in mind, however, is that while some things benefit from being offloaded onto the client, anything to do with data validation should ultimately be done on the server. That's simply because anything done on the client can be hacked or spoofed. It does no good to have client-side code validating data if some ill-intentioned person takes over and pushes bad data down anyway.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!