News for hackers. Stuff that matters.

Ask HN: What are you using to build new web apps?

I have an idea for a web app. It's been a couple of years since I've written anything from the ground up and I'd like to scratch my learning itch. Ideally, the framework/tools would have support for persistence, users, and REST. I don't care about language, but I'd prefer something easy to learn and maintain. I'm not worried about scalability (yet?). What are you guys using today? Any sharp weapons that aren't getting the spotlight they deserve? Have things advanced much in the last couple of years?
( 19 comments | 12 points | on HN )
Re:Ask HN: What are you using to build new web apps? by codegeek on Wednesday August 29, 2012 @12:52PM (#4449574)
Python and Flask framework. You could try Django as well but I personally found Django to be too bloated for me (not trying to start flame war here). The beauty of Flask is that it comes with just about enough core functionality to get you started and you can always use their extensions to add on top as needed.
Re:Ask HN: What are you using to build new web apps? by yawn on Wednesday August 29, 2012 @01:39PM (#4449929)
For you Flask proponents, do these extensions solve my reqs? Users: Flask-Login, REST: Flask-Restless. Have people voted with their feet on these?
Re:Ask HN: What are you using to build new web apps? by codegeek on Wednesday August 29, 2012 @01:50PM (#4450008)
In general, Flask extensions are written very smartly that you can couple/de-couple with your core Flask app. Personally, They go through a rigorous process of getting approved by the Flask team before they officially become flask extensions. I have used Flask-login which is very good for basic session management. I also like Flask-SQLAlchemy, Flask-WTF for ORM and forms. So in general, some are pretty good but cannot say for every flask extension.

Overall, to create a web app as beginner, Flask is definitely recommended by me. I built a User Management app using Flask recently (registration,auth etc.) within 8-10 hours of coding.

Re:Ask HN: What are you using to build new web apps? by anujkk on Wednesday August 29, 2012 @01:25PM (#4449831)
Backend : Python/Flask

Database : MongoDB/MySQL

Front-End : HTML5/CSS3/LESS/JavaScript/jQuery/Bootstrap/Angular.js

Re:Ask HN: What are you using to build new web apps? by yawn on Wednesday August 29, 2012 @04:15PM (#4450839)
Aside from ExtJS, most of the dev I've done has used js conservatively alongside server-side templates. Showing my old-school bias, I still instinctively hold js at arm's length.

With all the options available, what drew you to Angular?

Re:Ask HN: What are you using to build new web apps? by anujkk on Thursday August 30, 2012 @04:47AM (#4453678)
I only use angular.js in projects in which I need fast web based rich user interface, similar to Gmail. In such projects not using javascript doesn't make sense as full page refresh will result in slow unpleasant UX. Also such projects need heavy use of javascript and using jQuery make things unorganized and complicated as code size grows. This is the reason why frameworks like angular.js/backbone.js/ember.js exists.

However, for most web apps, I don't use much javascript other than some lines of jquery or 3rd party jquery plugins.

There are no hard and fast rules for technology selection. At the end of day what matters is choosing technology that provides best possible user experience, easy development workflow and maintainable code.

Re:Ask HN: What are you using to build new web apps? by macca321 on Wednesday August 29, 2012 @06:20PM (#4451710)
I have a couple of libraries

a library for mapping http requests to domain objects (see 'naked objects' pattern), with convention based runtime form generation. no more writing controllers, most views are generated, full feature REST API out of the box. A bit like Django admin template, but more powerful.

an in memory 'db', persisted using an event log of user inputs to the domain model (see 'prevalence' pattern). no more worrying about network latency, no more mapping objects to database columns, no more writing update scripts (or at least not much)

I don't think either of these approaches have much love in the mainstream, but I think they make me way more productive than the standard MVC/(SQL/NOSQL) approaches.

Re:Ask HN: What are you using to build new web apps? by austinlyons on Wednesday August 29, 2012 @10:31AM (#4448695)
python on google app engine

https://developers.google.com/appengine/docs/python/overview

Easy to use, can support what you want to do, easy to maintain, easy to scale.

Re:Ask HN: What are you using to build new web apps? by yawn on Wednesday August 29, 2012 @10:35AM (#4448724)
Do you worry about lock-in with regards to persistence? How hard would it be to get the data out and switch over to controlling the back end yourself?
Re:Ask HN: What are you using to build new web apps? by austinlyons on Wednesday August 29, 2012 @10:50AM (#4448831)
It would take some work to get the data out.
Re:Ask HN: What are you using to build new web apps? by kevinrpope on Wednesday August 29, 2012 @03:31PM (#4450577)
At work: C# MVC4/SQL Server

At home: Rails/Postgres/Heroku

C# is a lot more rigid, and I find it a lot harder to find quick answers to the obscure errors I inevitably generate (as opposed to Rails, where Google has the answer every time).

Re:Ask HN: What are you using to build new web apps? by Rust on Wednesday August 29, 2012 @11:50AM (#4449192)
Recently, I'm all about Python and Flask (or Web2Py for simpler things).
Re:Ask HN: What are you using to build new web apps? by expralitemonk on Wednesday August 29, 2012 @10:33AM (#4448710)
Django-- it's popular (easy to get support questions answered) and a lot of fun to learn. Although Flask and Bottle look interesting too.
Re:Ask HN: What are you using to build new web apps? by austinlyons on Wednesday August 29, 2012 @10:48AM (#4448816)
consider webapp2 if you are looking for something lightweight
Re:Ask HN: What are you using to build new web apps? by szelvenskiy on Wednesday August 29, 2012 @05:09PM (#4451279)
backbone.js+jQuery+ROR+Mongo I find this selection easy to use an powerful. backbone.js+jQuery has a lot of adoption and strong community, so it's easy to find answers and additional components.

ROR got strong community and language. Almost every functionality is available as a gem with code published on github.

Re:Ask HN: What are you using to build new web apps? by logn on Saturday September 01, 2012 @11:58PM (#4466084)
Google Web Toolkit + AppEngine (I grew up on Java Swing so this is like the good old days... but not REST)
Re:Ask HN: What are you using to build new web apps? by marquis on Wednesday August 29, 2012 @04:21PM (#4450883)
Flask and Angular.js with Solr/MySQL. Elegant and powerful.
Re:Ask HN: What are you using to build new web apps? by bcambel on Wednesday August 29, 2012 @01:15PM (#4449770)
Tornado(py) + Redis (queue)
Re:Ask HN: What are you using to build new web apps? by countessa on Friday August 31, 2012 @03:26AM (#4458692)
padrino and whatever backend i need for the job at hand.