TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Which Framework? Why?

12 点作者 edshadi超过 11 年前
My friend and I were chatting yesterday about how many people start projects on Ruby on Rails just because it&#x27;s familiar. Also, Ruby on Rails is popular enough that it&#x27;s easier to find engineers to work&#x2F;collaborate on your project.<p>Although generic and I understand that each application has its own requirements and therefore technologies will vary, please help me answer the following questions:<p>- If you&#x27;re building a new web app today, which frameworks, platforms, technologies, etc. would you use? why?<p>- Would you choose a familiar framework that allows you to develop faster (because you&#x27;re comfortable with it) even though it&#x27;s not necessarily 100% &#x27;right&#x27; for the job?<p>- Would you push your own limit and think outside the box to find a better solution even though introducing new technology to the team could be costly (and possibly unpopular)?

6 条评论

mynameisme超过 11 年前
It doesn&#x27;t matter, they&#x27;re all fine. You aren&#x27;t going to succeed or fail based on the framework choice. Just use whatever you know. The only non agnostic advice is for you to use to use Postgres. Don&#x27;t use something like Mongo, it&#x27;s trying to solve problems you don&#x27;t even have.
jenso超过 11 年前
- If you&#x27;re building a new web app today, which frameworks, platforms, technologies, etc. would you use? why?<p>Backend:<p>NodeJS - It&#x27;s nice to have javascript on both the frontend and backend. And NodeJS is FAST.<p>MongoDB + PostgresSQL - MongoDB for stuff that needs to be fast &#x2F; fast to build. PostgresSQL for stuff that doesnt fit the document model.<p>Frontend:<p>AngularJS - It&#x27;s either AngularJS or Ember.js, I prefer AngularJS. <a href="http://stackoverflow.com/questions/14395887/what-are-benefits-of-using-backbone-js-vs-ember-js-vs-angular-js" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;14395887&#x2F;what-are-benefit...</a><p>Yeoman - Generate boilerplate code<p>Grunt - Compile LESS, Run tests, CSS minification<p>Bower - Javascript dependencies management<p>- Would you choose a familiar framework that allows you to develop faster (because you&#x27;re comfortable with it) even though it&#x27;s not necessarily 100% &#x27;right&#x27; for the job?<p>I&#x27;d rather choose a new framework, at least if it&#x27;s a project that I will put serious effort into.<p>- Would you push your own limit and think outside the box to find a better solution even though introducing new technology to the team could be costly (and possibly unpopular)?<p>Yes, I would definitely do it.<p>That&#x27;s actually what I&#x27;m currently doing at a startup. We&#x27;re refactoring the current frontend-javascript codebase which is 30 000 lines of code and it&#x27;s completely unmaintainable, so we&#x27;re rewriting it in AngularJS
评论 #6440800 未加载
评论 #6438822 未加载
ctb_mg超过 11 年前
My web work these days are personal projects, volunteer work, or small freelance projects; so I am answering from that perspective.<p>For paid work, generally I stick to what I know -- a LAMP stack and whatever MVC&#x2F;CMS framework fits the job.<p>My personal side projects are where I push borders and try to research new solutions. These side projects give me the breadth of knowledge to then be able to say, &quot;hey, X technology will work really well&quot; for work that is more important.<p>If you&#x27;re asking for opinions on technologies and frameworks --<p>- I did a survey of php frameworks a few years ago and arrived at Kohana. It met my criteria of (1) a lightweight MVC framework, (2) code that is clean&#x2F;easy to work with (aka not too much &quot;voodoo&quot; going on), (3) useful library of utilities (pagination, etc.), and (4) very configurable URL routing&#x2F;validation. Developed one small and one medium sized kohana web apps since then and it is a pleasure to work with.<p>- When I was still doing web work under salary, we used an internal Zend-like framework which was forced upon all devs. The learning curve was high, it was very convoluted, and kept getting in my way of trying to develop my application. After I got used to the way it worked, it was more bearable, but I wouldn&#x27;t go back there again. You&#x27;d have to modify dozens of files to make the simplest of changes.<p>- Very rarely do I write my own libraries or frameworks. There&#x27;s almost always someone else out there who has already solved at least part of your problem.<p>- For simple CMS websites, I use wordpress. I started using wp back when textpattern was still a thing and haven&#x27;t found any compelling CMS alternatives in php. It does seem to have gotten bloated in recent years. I tried Joomla once and decided I wouldn&#x27;t go there again. It&#x27;s very confusing, bloated, and the administration pages are unintuitive.<p>I&#x27;m open to suggestions for alternatives!
jyu超过 11 年前
Pick the right tools for the job. If you&#x27;re doing an MVP web app, NodeJS, Rails, PHP, Django, ColdFusion (N other frameworks here) will all get it done.<p>Yes, I said ColdFusion. That thing that was hot the 90&#x27;s.<p>This post reminds me that customers don&#x27;t care what stack you use, as long as it solves their problem: <a href="http://pud.com/post/9582597828/why-must-you-laugh-at-my-back-end" rel="nofollow">http:&#x2F;&#x2F;pud.com&#x2F;post&#x2F;9582597828&#x2F;why-must-you-laugh-at-my-back...</a>
andrewhillman超过 11 年前
It doesn&#x27;t matter. Don&#x27;t get caught up in the &quot;what&#x27;s best&quot; HN hype. Don&#x27;t use technologies that you&#x27;re not familiar with. Go with what you know or switching costs will be high for your team. Go with a language that has a large supportive community so you can find answers to questions without jumping though hoops.
edshadi超过 11 年前
The main point behind this post was to get a sense of what folks are curious about and opinions on different web technologies. I&#x27;ve built production code using various frameworks and platforms and have my own opinions about them. I would love to hear yours. Why did you choose a specific direction on a recent project for example?