• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Full Stack JavaScript

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
Remember to always leap before you look. But always take the time to smell the tiny ads:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic