Live data from Hacker News

Ask HN: What web framework do you use? Why did you choose it?

news.ycombinator.com

71–80 of 122 posts

Re: Ask HN: What web framework do you use? Why did you choose it?

#71
post #42

ASP.NET MVC, on .NET Core. It's super fast, C# is mad fun to develop in, and now it runs on Linux. We've even started deploying production sites to CentOS-based VPSes.

Do you self-host them in Linux? Or are you using something like nginx reverse proxy?

Re: Ask HN: What web framework do you use? Why did you choose it?

#72
post #37

Earlier quoted context omitted.

I have done little Wordpress development (just some plugin for a prototype that my company wanted). But I don't see anything that prevented it from being used to develop a web application since the theme/plugin system seems to fulfill everything. Django also describes itself as a CMS platform on their website so I kind of thought they are comparable. Just wanted to make sure I know what I'm getting before I jumps in…

Well, wordpress is a cms that, through custom work, can be used as a web framework (ie you can built other, non-cms, things with it). Django is a web framework that can be used to build a cms. Actually there are some great cms built on top of django, for example django-cms or wagtail! If you start from scratch and want to build a simple cms it will be easier to do it with wp, if ofcourse you tolerate php - some peopl…

I've seen that line of thinking with newer devs who don't understand the right tool for the job. Unless your client specifically wants a custom solution for a custom purpose, you will spend the first week writing a CMS in Django and the next 20 recreating .1% of WP's functionality because you didn't anticipate the full list of client's needs correctly.

Re: Ask HN: What web framework do you use? Why did you choose it?

#74

I used to be J2EE guy and I have gone through nearly all J2EE Frameworks namely struts, tapestry, wicket and JSF ( all flavours) -- and I hated all of them. The problem with these frameworks is that you had to learn so many useless details of the framework , such as ui component lifcycle and events, that were of no use should you choose to go on to another project which used a different framework. I have settled on R…

It's really sad how bad the Java web ecosystem has been. JSP was pretty good when it came out, but there was zero standards-based movement on the objects behind it (controllers, binding, helpers) for years. When it did come, it was JSF, which is like some giant monument to the mistakes of the 90s. There have been a bunch of third-party controller frameworks, but all just different enough that learning doesn't travel well. We're finally getting an MSc framework now, just as it's finally going out of fashion.

Re: Ask HN: What web framework do you use? Why did you choose it?

#75
I don't know how some of you guys have the time to get real experience with dozens of frameworks. I've only really used a few. Out of what I've used, Ruby is my favorite language, and I use Rails for anything with a database, and Sinatra for anything without. Thoughts:

ActiveRecord is the best ORM I've used so far. You don't need a ton of boilerplate or config to get up and running with it. It supports all of the basic stuff, and seems to do it well, and for more complex stuff, it makes it easy to drop down to SQL instead of trying to put a ton of ugly glue on top of doing complex stuff in SQL.

I like the way Rails has commands to output the whole route table, and the whole middleware stack it's using. Along those lines, I like the way the router works, and the way that most of the advanced functionality is neatly tucked into middleware that you can add or remove.

I like the flexibility of being able to plug in a bunch of JS processors, template languages, CSS processors, etc.

I like how much functionality you can add by just throwing a gem in the Gemfile, and the Bundler system does a good job of tracking gem versions to keep all environments consistent.

Competitors I've used:

ASP.NET MVC: Too much functionality is buried in either the IIS server or other libs that you can't debug into easily. I don't like the routing much - there's too many ways to specify routes, all of which seem unclear, and there's no single place to see all of your routes as the framework sees them and where they all route to. Plus the often-incomprehensible method argument matching. MVC tries to be all clever in deserializing arbitrary JSON and XML into .NET objects, which is handy when it works, but good luck debugging what happened when it doesn't work, and good luck if you just want it give you the freakin' request data as a plain old string. I've spent hours smashing my head against trying to get MVC to actually route my requests to the intended controller methods and do something reasonable with the request data. And I still haven't made sense of Entity Framework.

I've also toyed with things in Java, NodeJS/Express, and a few other things, but I don't feel like I've really used them enough to offer an opinion, besides noting that the "common knowledge" of Java being verbose and over-complex, and NodeJS/Express being too bare bones seem accurate.

Re: Ask HN: What web framework do you use? Why did you choose it?

#76
I've been using Tornado for about a year now, and I'm incredibly happy with it. Here is some of the background and reasons for that:

* I had been using Django for some 5-6 years, until I finally realised that I'm not happy with many of its architectural decisions -- global singleton settings, the way views are organized, the way it's organised around the ORM and everything. It provides a lot of tools, but if you don't need some of them them tough luck, you still get to lug them around and it's not helping you find any workarounds.

* I've learned to prefer frameworks that don't get in your way and allow you to choose any individual components for individual needs. I've worked with Flask and Bottle, which are great but sometimes go too far in the opposite direction, focusing so much on simplicity that more complex tasks require jumping through a different set of loops (I'm looking at you, Blueprints).

* Tornado's Web framework is successfully avoiding both types of traps, and it gives you the ability to develop simple apps -- say, a REST API -- quite easily and naturally, at the same time giving you the room to grow your creation naturally as needed. I've briefly tried Falcon, which follows a similar philosophy, and is IMO a great alternative.

* Tornado, however, is not just a Web framework -- it actually provides an amazing set of tools which can be easily in your app or even without any relation to a Web app. And the best part of the toolset is its asynchronous networking capabilities, which provided things like coroutines long before they existed in Python -- and now you can combine the two in a same app.

* Last but not least, Tornado provides an amazing, production-ready, non-blocking HTTP server. Most of the other frameworks make a point of not using their built-in servers in production, instead advising you to plug your app into a WSGI server like uWSGI or gunicorn; you can do that with Tornado too, but if you don't your app can process requests asynchronously, preventing slower requests from blocking faster ones.

Re: Ask HN: What web framework do you use? Why did you choose it?

#77

Meteor - It's a fullstack framework that let's you write JavaScript both on the front- and backend. It let's you choose what you want to use for your frontend (e. g. React, Vue, Blaze, Angular...). Best feature: It's realtimeness. And right now I'm trying Laravel (PHP). It has a great documentation. I like the ORM and that it's easy to use. I want to build an API with it and consume it with a SPA and react.

Is using Javascript on the back end really a positive thing? There isn't really a choice on the front end.

Re: Ask HN: What web framework do you use? Why did you choose it?

#78
post #25
post #7

Merry christmas! For me it's Django for around 5 years. I use it for both personal and work projects for all the following reasons (they are well known but repetition is never bad): * A great (really great) orm * Best documentation I've ever seen in a project * Predictable, no magic * Easy to start but very powerful forms * Great community, positive attitude, always willing to help * Batteries included and, for anyth…

I've never developed using Django. How does it compare to Wordpress? Or under what situation is it preferable to Wordpress?

Django is a framework, Wordpress is a CMS. Django aims to be able to build pretty much any web application, Wordpress aims to make it easy to add and display content.

I'd use Wordpress when building simple websites that serve as landing pages or blogs. If the main use for the site is showing some basic static info that never changes or the owner coming in, writing a few articles and clicking save, then Wordpress might be a good fit.

I'd use Django when building more complex websites and web applications where a CMS just doesn't fit due to the complexity of the logic, functionality or data. For example you might build an inventory management system with Django since it can have complex business logic and the data doesn't really fit a blog format. You might build an online store with Django, since you need to model and handle logic for products, inventory, payments, customers and such.

Re: Ask HN: What web framework do you use? Why did you choose it?

#79

I've tried different JavaScript frameworks. I've seen Backbone, Angular, Knockout, Rx.js, React, Redux, MobX, Rails, Asp.net, Meteor and Django, I've tried almost every popular option to compile/transpile into JS - Coffeescript, Typescript, Livescript, Gorillascript, Fay, Haste, Elm, GHCJS and Babel. I've used Grunt, Gulp, Browserify and Webpack. Nothing ever made me so happy and so excited as Clojurescript. Things a…

could you please point me towards some good resources to get started with clojurescript?

Re: Ask HN: What web framework do you use? Why did you choose it?

#80

Meteor - It's a fullstack framework that let's you write JavaScript both on the front- and backend. It let's you choose what you want to use for your frontend (e. g. React, Vue, Blaze, Angular...). Best feature: It's realtimeness. And right now I'm trying Laravel (PHP). It has a great documentation. I like the ORM and that it's easy to use. I want to build an API with it and consume it with a SPA and react.

you might want to try lumen(larvel minus view part) created by the same author since you say you want to build API's
Post reply on HN