• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Full Stack JavaScript

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there any benefit to using JavaScript for all layers in your application? In o her words, is it worth it to use node.js over Apache/Tomcat for your server if you are migrating to an application using angular? If not absolute answer, any pros and cons?
 
Author
Posts: 15
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rebecca Peltz wrote:Is there any benefit to using JavaScript for all layers in your application? In o her words, is it worth it to use node.js over Apache/Tomcat for your server if you are migrating to an application using angular? If not absolute answer, any pros and cons?



Hi Rebecca,

There are some benefits to using JavaScript for all layers in your application. One is that you can use the same code on the client-side as on the server-side. Form validation code is one example of where this can be useful.

I'd say if your application is running as needed, then it may not be worth the work to convert it to Node.js (unless your application is small).

Cheers,
Mike
 
Author
Posts: 23
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I love using JavaScript up and down the stack, for me the biggest benefit is a lack of context switching. Instead of having to switch back and forth between different languages, you can stick with just one. It's really hard to program in Java and be thinking about things in a Java paradigm and then switch to the front end code and now think about things in a javascript context. The two languages are so very different. Not to mention switching between SQL and JavaScript. In a traditional Ruby on Rails web stack we're talking about JavaScript, HTML, CSS, Ruby, ActiveRecord, Rails, SQL compared to a JavaScript stack of JavaScript, HTML, CSS. The all JavaScript stack is simpler.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic