4 ms·
Javascript + JQuery and for server scripting PHP
by TMK 15y ago
Javascript + JQuery and for server scripting PHP
- signinsignout 15y agoWhat would you say the pros/cons are of Javascript + JQuery vs. let's say Ruby on Rails or Grails? I understand JS is here to stay a long time, but for rapid development, ROR seems progressive. Correct me if I am wrong.
- ericmsimons 15y agojQuery is Javascript; both of which run client side in the browser. Recently, a language called node.js has taken javascript to the backend as well (minus jQuery). Javascript is used in conjunction with ROR. All of the cool visual effects you see on webpages (and AJAX requests) are entirely javascript. Your real question should be: should I use ROR, node.js, PHP, or python for the backend. The answer: it depends on what you're building. PHP is great for speed & reliability. It is not nearly as easy to snap in pieces of code like Rails & gems (which can be a huge downfall). It also doesn't enforce strict code organization & etiquette. If you choose PHP, make sure you're familiar with MVC and the separation of your code and your site HTML. If you want to have real time stuff in your applications (chat, notifications, etc), use node.js. node is also very fast & scalable. It is entirely server side javascript (which is nice, because then you're writing in the same language for client side and server side). Rails makes web development easy. There are tons of fantastic gems out there that do the heavy lifting for you. In my opinion, this is ROR's strongest piece. Rails is also pretty fast for a framework, although straight PHP and node will smoke the crap out of it every day of the week. Basically, you pay a (IMO) very small price for a ton of saved development time. I don't have a ton of experience with Python & Django, but I've heard good things about it. Rails seems to have more traction, so if you're going for a web framework, I would advise you to choose Rails. That being said, Python's twisted framework is pretty sweet for real time stuff (especially chat). Python is also incredibly fast (on par with node & PHP). I hope this helps you choose your first language. You can always mix and match these languages to accomplish multiple goals (I use PHP, node & Rails at my current startup). Good luck sir!
- signinsignout 15y agoThanks a bunch!