TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: pros and cons of different web stacks/frameworks

5 pointsby choochootrainabout 14 years ago
I'm just starting to get into web development, and it looks like theres alot of choices out there. I dont really have an idea in mind, but I just want to start tinkering. I've heard of the LAMP stack, but I'm leaning more towards Ruby and Rails.<p>Some of the frameworks I've read about and considered are Rails, Sinatra, CakePHP, node.js?, and some others in Erlang, Java, and Lisp.<p>To me, it looks like all these frameworks provide the same functionality, but with different languages, databases, and web servers. Is there some kind of way to choose, or do you just pick one that youre familiar with?

3 comments

mindcrimeabout 14 years ago
<i>To me, it looks like all these frameworks provide the same functionality, but with different languages, databases, and web servers.</i><p>Basically, yeah.<p><i>Is there some kind of way to choose, or do you just pick one that youre familiar with?</i><p>To be honest? There are too many out there, to actually do a thorough analysis / review of each, on your own. It'd take you 10 years, and by the time you got done, it would all be obsolete. So, ultimately, you have to fall back to <i>some</i> kind of heuristic: recommendations from trusted friends / colleagues / etc., simple popularity, some "back of the envelope" calculations of some meaningful metric (availability of developers for that platform, for example), the aforementioned point of "go with what you know," size and activity level of the community around each one, ease of learning, etc., etc.<p>All of that said, I'm a big fan of Groovy on Grails, which I find has a lot going for it. But there are far more frameworks I haven't used, than ones I have, so I can't even begin to make a claim that Grails is objectively "the best" in any sense. In my case, I picked it because I already knew Java, was familiar with the JVM ecosystem, libraries, app servers, messaging systems, etc., and because Groovy is very easy to learn if you know Java. The pros I see for Grails:<p>1. Open source (most of them are these days, but still)<p>2. Easy to learn (this is relative, since I'm coming from Java)<p>3. Rapid development using convention of configuration (same as Rails, etc.)<p>4. allows me to leverage a lot of existing knowledge of using Java app servers, tools, and infrastructure.<p>5. Easy use of tons of useful java libraries that already exist. I can easily incorporate Tika, Lucene, Mahout, HttpClient, Commons Math, etc., etc., etc.<p>Cons to Grails:<p>1. There is some question as to the future of Groovy, since the creator of the language said something along the lines of "If I'd known about Scala when I created Groovy, I wouldn't have created Groovy." That said, the Groovy and Grails community seem to be very active, and I don't see any particular reason to think either will be dying off anytime soon.<p>2. Performance: Groovy has a reputation for being a little bit of a performance dog, compared to some of the other JVM based languages. But it has gotten a lot better with recent releases, and there's reason to think that the JDK7 changes (MethodHandles API, invokedynamic opcode) will make Groovy even faster.<p>So there ya go, a few thoughts and comments on Grails. I'd highly recommend at least giving it a look, especially if you know Java already.
评论 #2564452 未加载
brandoncordellabout 14 years ago
I think the best way to choose is narrowing it down to a few potential frameworks/stacks that you (and your team, if applicable) thinks would be the best fit for your project. I don't believe any of these frameworks are the one answer to all your problems.<p>At work we build an enterprise level government used application in CakePHP. It's done fairly well, but given the ability to migrate our platform I would jump at the chance.<p>We begun trying to practice TDD on the project and it's been nothing but a nightmare! Whether it's Simpletest or CakePHP's implementation of Simpletest we haven't figured out (or had the time to dive in and figure it out). We run into issue after issue. The littlest change to the way our app runs at the core seems to trigger a shit storm of little issues here and there. Granted, a lot of this has to do with the architecture that was put in place by the Sr. developer before I got here, but it's definitely becoming an issue...<p>Might also be worth noting that CakePHP is a (poor in my opinion) port of Rails to PHP.
megamark16about 14 years ago
I'm partial to Python and Django, but in the end I think it comes down to preference, and what you feel most comfortable with. Honestly, if it were me I'd find and follow a tutorial for creating a small web app (like a blog) in a few different frameworks and see which one feels right for you.<p>There was a discussion a few years ago on HN about this very topic, although it was mostly focused on Django VS Ruby on Rails, but there is lots of good discussion in the thread all the same. Here's the link:<p><a href="http://news.ycombinator.com/item?id=195423" rel="nofollow">http://news.ycombinator.com/item?id=195423</a><p>Welcome to the web dev community! Come visit us on the Django IRC channel (webchat.freenode.net, channel #django) if you have any questions about django.
评论 #2564339 未加载