Live data from Hacker News

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

news.ycombinator.com

51–60 of 122 posts

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

#51
Node.js + Express+ SocketIO on the server side with Angular on the front end.

For my apps I have a loose framework that I built over the years with pub-sub model between client and server and similar within the server side code itself.

Node was an easy choice since I love JS and having only one language reduces cognitive load a lot.

Express is a well known mature framework, similar with SocketIO even though it has some warts.

Angular is similarly a mature framework which I use in s quite simple manner to tie pieces of code together so i haven't had any performance problems. And since I work in enterprise it is still very a very popular choice and none of the issues with strange licensing or complicated transpiling build systems.

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

#52
post #41

Spring with Spring Boot in Java. Batteries included and easy to setup and get going. A statically typed language to catch errors at compile time. Easy to deploy by building an uberjar. Great dependency management and builds with Gradle/Maven and built-in support for pretty much any common database and message queue.

I don't think you can catch errors compile time with all the magic reflection Spring uses, such as resolving services, injected values etc.

nowdays you don't use xml to define your beans so most of the things are compile checked. granted some things are happening only at runtime which is a whole point of DI :-)

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

#53
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 ReactJS with Clojure REST or Spring REST. React knowledge and REST knowledge is portable across projects and jobs.

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

#54
currently, i roll my own: golang net/http, gorilla/mux, eknkc/amber, and database/sql. i'm not entirely happy with amber as an html template language, prefer jade or haml, but it seems to work so far, i've had a few problems with it and the author fixed one of them in terms of nested data structures, but there's another issue pending for a long time so i don't think he has the interest to maintain this.

got into expressjs/jade, but didn't like the nested async callbacks, really annoying to read the code, but the tooling side was cool with npm, gulp, etc.

i used to use sinatra/haml/activerecord for a long time, really liked the simplicity of it, but ruby in general was just too slow in terms of performance, had to use a lot of physical resources to supplement for its slowness.

before sinatra i used ror, this was before i decided that rolling my own was more streamlined and efficient.

before ror i used python, tornado, and sqlalchemy. god, sqlalchemy was so clumsy back then, i even bought their ebook for my kindle, what a waste of money. ran ok, really liked the decorators used by tornado, but then fb went and bought friendfeed which doomed tornado to the depths of /dev/null.

before python, i used java servlets (as part of the j2ee standard) and java server pages. it was sort of nice to use html files and embed these java snippets, but still pretty primitive.

before j2ee, i used php, pear, god save me from those days. my personal blog was built on this, i saved all entries into xml documents and stored them in directories based on the date. that site was hacked and pwned so badly, thanks php security holes! this was a time before templates and orms.

and from the very beginning, there was pure html, wow, we have evolved so much since then.

golang is perfect for me, but i use it for a lot more than just a dynamic web server, it's also an api server and websocket service. i really like the ease of deployments with golang i.e. just copy a binary to my production servers. and the code is fast and scales. coming from sqlalchemy, activerecord, and sequel, i was a bit underwhelmed by gorp, but soon found out that going with sql was good enough.

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

#55
post #43
post #24

Spring Framework on backend -> ultra power and speed, especially if you go cloud and microservices route Angular 1 on fronted -> easy enough to learn quickly, feels good to use and is powerful with great support and add-ons. Looking to start learning angular2 Will learn elixir and phoenix for some realtime and websocket stuff.

> Spring Framework on backend -> ultra power and speed, especially if you go cloud and microservices route As long as you're happy with your microservices needing at least a gigabyte of memory each. My current project has ~15 Spring microservices, and with two instances each and blue-green deployment, we need 60 gigabytes just to be in business.

Memory is cheap. Lease a real physical server and pay a dime compared to cloud.

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

#56
I've mainly used Ruby/Rails from ~2008 to ~2015 both for work and side projects/prototypes, then I totally switched to Elixir/Phoenix for almost all my stuff. I still use Ruby/Rails for some works (where/when I can't use Elixir due to some constraint).

I've found that Elixir and Phoenix have an awesome community and a fast-growing ecosystem. The language is very clean and I can solve problems in a cleaner and faster way. It has all the tools I need and runs on a simple but powerful virtual machine with stunning performance and easy deployement. I can use websockets and async jobs without running external processes/daemons and thanks to brunch (or webpack, it depends) I have a powerful toolchain for frontend. Speaking about frontend, I've recently moved from React to VueJS, it's a very decent compromise between React and Angular: simple like React, with features and concepts similar to Angular.

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

#57
post #37
post #29

Earlier quoted context omitted.

But you cant compare Wordpress with Django, Wordpress is not a web framework is just a CMS for blogs. Or am i wrong? PS... Django <3

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…

Wordpress is technically capable of being used to build large apps, but, you're going to be rolling your own everything. Whereas a framework, is, well, a framework that has standardized and cleanly extensible ways of doing core functionalities X, Y, and Z.

Wordpress is old, and they've built up a shit-ton of technical debt for the sake of BC. To put it bluntly, it's not a pleasure to work with, at all. On the up side, something like 20% of the surface net runs on Wordpress. There's a huge market for WP skills, and it's got enormous mindshare amongst non-technical types. If you want to invest effort in WP, do it because of the adoption metrics; if you're more technically oriented, pick Django (or Laravel/Symfony if PHP is more your speed).

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

#58
post #41

Spring with Spring Boot in Java. Batteries included and easy to setup and get going. A statically typed language to catch errors at compile time. Easy to deploy by building an uberjar. Great dependency management and builds with Gradle/Maven and built-in support for pretty much any common database and message queue.

I don't think you can catch errors compile time with all the magic reflection Spring uses, such as resolving services, injected values etc.

All the dependency injection and spring setup is done at startup, so you won't have any of those errors during the life cycle of the app. Spring boot with spring data rest makes it so easy to create very strong REST APIs easily. Source: I've done a lot of demos, presentations and trainings on Spring Boot, including at SpringOne in Vegas last summer.

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

#59
post #13

All in with Angular 2 using the angular-cli. TypeScript, everything is a component, good fit for enterprise projects, quickly on-board new developers.

Hey - just curious - I love the Angular CLI, but since they hide the main webpack config I'm wondering how you deal with customizing that? Heard a few approaches, I'm interested in your solutions (if any).

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

#60
post #16

Rails - because Ruby is easy to learn, especially for beginners and you get great, custom things done in no time. Also Rails forces you in some patterns that make sense in my opinion. Testing is also fun.

I don't agree: from my experience (~9years of full time Ruby/Rails, including teaching and coaching) Ruby is not easy to learn, at least if you want to know what you're really doing. And Rails, as is, promotes several anti-patterns that will mess your app after 6+ months. Fat models are a bad practice, models as form objects are a bad practice, developing uour business logic almost totally on top of models is wrong. That's why some experienced Ruby devs are moving away from those anti-patterns by promoting real object oriented approaches: for some good examples check hanami web framework, rom-rb and Trailblazer.

My 2cents reply.

Post reply on HN