News for hackers. Stuff that matters.
Re:Ask HN: What stack should I use to build my basic web app... by harperlee on Thursday March 29, 2018 @02:25AM (#16704945)
Whatever stack you know the best. The technology really doesn't matter a lot, compared to a lot of other success criteria.

Unless the objective is to learn - then picking the one that you know best is not a good strategy :)

Re:Ask HN: What stack should I use to build my basic web app... by NicoJuicy on Thursday March 29, 2018 @03:26AM (#16705198)
This would be my answer every month ( after you this time ;))
Re:Ask HN: What stack should I use to build my basic web app... by stevekemp on Thursday March 29, 2018 @03:34AM (#16705230)
Mine too :)

Most of my applications are built using Perl and the excellent CGI::Application module/framework.

I've used Dancer a couple of times, but that tends to be for smaller applications, and it has to be said that the last remaining dancer application I used in production was replaced by a port to golang this morning. Partly for a fun learning experience, and partly to simplify deployment.

For new projects, if they were small and self-contained, I'd probably gamble on golang. If they were more complex, or I was in a rush, I'd use Perl.

Re:Ask HN: What stack should I use to build my basic web app... by vgy7ujm on Thursday March 29, 2018 @04:31AM (#16705461)
What happened to Slaughter?

Except for perhaps an unfortunate name it was an interesting project. I can see that all links to it doesn't work anymore..

Re:Ask HN: What stack should I use to build my basic web app... by stevekemp on Thursday March 29, 2018 @05:21AM (#16705635)
It didn't seem to get much traction, so I stopped work on it. A few years later I removed references to it, but I still have the repositories if users do query me.

My recollection is that modules that are removed from CPAN are still mirrored, so they should still be available, but I admit I've not checked recently.

Re:Ask HN: What stack should I use to build my basic web app... by vgy7ujm on Thursday March 29, 2018 @05:36AM (#16705695)
For reference the latest App::Slaughter can be found here:

http://backpan.perl.org/authors/id/S/SK/SKX/

Why not put it back on Github? I always find it interesting to look on other projects when I have an idea etc. Deprecated or not.

I am getting tired of puppet/ansible and dream of the pure Perl + Shell world I used to live in. :)

Re:Ask HN: What stack should I use to build my basic web app... by vgy7ujm on Thursday March 29, 2018 @04:15AM (#16705406)
Golang for components that need the speed, Perl for the rest.

Mojolicious is my preferred Perl framework.

Re:Ask HN: What stack should I use to build my basic web app... by tga on Thursday March 29, 2018 @04:02AM (#16705357)
http://djangoframework.com is overall one of the best documented + most stable web frameworks out there.

Besides the actual functionality, that you can also get from smaller libraries, you want a framework because it gives you standard go-to solutions for many common questions you encounter when making a basic, relational database backed application (database access, database migrations, templating, forms, validation, caching, translation, etc.)

Re:Ask HN: What stack should I use to build my basic web app... by piker on Thursday March 29, 2018 @04:13AM (#16705397)
Re:Ask HN: What stack should I use to build my basic web app... by IshKebab on Thursday March 29, 2018 @04:23AM (#16705430)
I've used Django and I liked it but it really was quite slow.
Re:Ask HN: What stack should I use to build my basic web app... by collyw on Thursday March 29, 2018 @04:54AM (#16705547)
Really, I have been using Django for a while now. Its rarely the Django code that is the bottleneck, usually it needs some DB tuning.

(If you don't know the ORM well, its easy to let it generate a LOT of queries, have you added django-debug-toolbar to your project to see what it is generating?)

Re:Ask HN: What stack should I use to build my basic web app... by Doxin on Thursday March 29, 2018 @04:41AM (#16705493)
If you feel like django is too big you'll probably like flask. It has the same functionality, except everything but responding to http requests is separated into 3rd party packages. Makes for a really lightweight framework if you don't need much.
Re:Ask HN: What stack should I use to build my basic web app... by madmax108 on Thursday March 29, 2018 @07:27AM (#16706115)
The correct answer as of ${any_date_in_any_esoteric_format} is:

- It depends on what you are trying to build. Basic web app can be anything from a Trello clone to Instagram. Each has it's own limitations.

- Go with what is tried and tested. Pick up something that is supported, where if you get stuck you can reach out to people for a fix. One of the few good things of the clusterfk that the current JS ecosystem is is that many many amazing developers who are extremely responsive to questions are part of it. That makes life just a little bit easier.

- Use what you are comfortable with. Prefer a proper backend and frontend? Go for it. Everything in NodeJS is your cup of tea? Works just fine. In the end happy developer = productive developer. Just because assembly is 1000 times faster than Python does not mean you should code in assembly. Pick your tradeoffs.

Re:Ask HN: What stack should I use to build my basic web app... by hungerstrike on Thursday March 29, 2018 @09:37AM (#16706896)
I'm just wondering if you're not from the USA? Because that date format is very common here particularly for written dates.

Whenever I write a check or sign and date something, that's how I write it.

Re:Ask HN: What stack should I use to build my basic web app... by madmax108 on Thursday March 29, 2018 @12:34PM (#16708411)
Nope I'm not, though I work at a company with 2 engineering offices in MV and Dallas. Just FYI: Other than the USA, this format is not used anywhere else:

https://s3.amazonaws.com/stackabuse/media/date-formats-world...

Working with a global company, I tend to use 29 Mar 2018, which is much more unambiguous (and in code we usually use yyyymmdd, which makes it easier to search for logs/output of a year/month/day etc.).

Re:Ask HN: What stack should I use to build my basic web app... by 1_player on Thursday March 29, 2018 @05:43AM (#16705738)
Where are the hipsters in this thread? Fine, I'll be the hipster.

I've worked on pure PHP, Flask, Pyramid, Django, Laravel stacks, and I haven't warmed up to any of those. I'm in the vocal minority that says Django made me hate Python.

So here's my stack for 2018: Elixir+Phoenix on the backend, GraphQL as API protocol, React (and Typescript?) on the frontend.

Functional and immutable language on the backend + functionally-inspired data flow on the front end? Yes, please.

Now, if I could have monadic constructs and better typing on Elixir I'd be in heaven.

Re:Ask HN: What stack should I use to build my basic web app... by krob on Thursday March 29, 2018 @05:21AM (#16705636)
I feel it's important to throw Laravel + Vuejs into the mix. It's an extremely powerful framework on the LAMP side of things, fully PHP 7.2+ functional, and continues to improve w/ every major iteration from JWT, oauth2, queue workflows, console utility workflows, ORM, DBAL, Migrations, mutli-database support via PDO, blade templates. It's pretty hard to go wrong.
Re:Ask HN: What stack should I use to build my basic web app... by BoorishBears on Thursday March 29, 2018 @03:10AM (#16705135)
I’ll throw a hat in the ring for WebGL+WebAssembly and x86 assembly on the server
Re:Ask HN: What stack should I use to build my basic web app... by rjbwork on Thursday March 29, 2018 @06:02AM (#16705812)
This guy, what a forward thinker!
Re:Ask HN: What stack should I use to build my basic web app... by mhd on Thursday March 29, 2018 @03:35AM (#16705235)
Basic? You need good documentation, and Philip Greenspun's book is now available for free[1]! So go with that, although you might want to swap out Oracle with MySQL -- it's from the same company anyway! AOLServer is still fine.[2]

[1]: http://philip.greenspun.com/panda/

[2]: https://github.com/aolserver/aolserver

Re:Ask HN: What stack should I use to build my basic web app... by perilunar on Thursday March 29, 2018 @05:28AM (#16705662)
3/29/18? What sort of date format is that?

Regardless of your stack, use ISO 8601 for dates.

Re:Ask HN: What stack should I use to build my basic web app... by cessor on Thursday March 29, 2018 @05:36AM (#16705696)
That's the third of Thunderfiretober of 2018, what's your problem, isn't that clear? ;)

Playing devil's advocate here. This kind of date formatting is really confusing to me (German) and I almost overread that the question asked for the current en vogue tech...

Re:Ask HN: What stack should I use to build my basic web app... by perilunar on Thursday March 29, 2018 @10:11AM (#16707186)
> This kind of date formatting is really confusing to me

You, me, and most of the world outside the USA. Check out the map here: https://en.wikipedia.org/wiki/Date_format_by_country

Re:Ask HN: What stack should I use to build my basic web app... by hungerstrike on Thursday March 29, 2018 @09:30AM (#16706837)
That's one of the most common date formats used in the United States.

Are you suggesting to use ISO 8601 format to display dates to users instead of the users local or preferred format?

Re:Ask HN: What stack should I use to build my basic web app... by perilunar on Thursday March 29, 2018 @10:04AM (#16707136)
Yes. This site, like many, has a large international audience. Don't assume your local (and illogical) format is your users'. It just confuses people. Use an unambiguous format: use 8601 or spell out the month.
Re:Ask HN: What stack should I use to build my basic web app... by hungerstrike on Thursday March 29, 2018 @10:14AM (#16707211)
That's my point exactly. It's an international audience but it's also an informal social environment where we can't expect everybody to be cognizant of that fact at every moment and make adjustments for it.

As such, you shouldn't be too strict about what you feel is the "logical" way of doing things.

Anyway, according to alexa, the great majority of HN readers are from the US - https://www.alexa.com/siteinfo/ycombinator.com

Re:Ask HN: What stack should I use to build my basic web app... by perilunar on Thursday March 29, 2018 @10:40AM (#16707418)
> the great majority of HN readers are from the US

57.5% is not a 'great majority'. It's only slightly more than half!

> we can't expect everybody to be cognizant of that fact

That's why I remind people. Use international standards/formats and be less insular. (And FFS, go metric ;)

Re:Ask HN: What stack should I use to build my basic web app... by hungerstrike on Thursday March 29, 2018 @11:41AM (#16707938)
57% is the greatest number on that chart. I didn’t see any other number past say 9% if I remember correctly. (It was actually 6%.) That’s the great majority.

Yes, be less insular too... however please try to do it in a non-snarky way that won’t provoke the other human beings.

Re:Ask HN: What stack should I use to build my basic web app... by vatotemking on Thursday March 29, 2018 @08:37AM (#16706473)
The simplest stack for me is:

Frontend - Plain HTML/CSS/JS

Backend - Node, Express with Nunjucks for templating

If I want to get a bit fancy:

Frontend - Vue, Bootstrap4

Backend - Node, Express, Nunjucks

DB - SQLite3 using Sequelize as ORM

Surprisingly, you can accomplish lot of stuff with the second setup.

If im going to deploy to production:

Provider - Either small DO droplet ($5.00) or tiny AWS (free)

Webserver - nginx as reverse proxy for node (free)

Firewall - UFW (free)

Email - mailgun (free)

Domain - namecheap (depends on domain name. $10.00/yr more or less)

For a basic setup you wont need any scaling setup (CDN, load-balancer and whatnot) which like what, 99% of the time?

Re:Ask HN: What stack should I use to build my basic web app... by handbanana on Thursday March 29, 2018 @12:04PM (#16708123)
I like that set up.

For me its ejs over nunjucks. Mysql, and no ORM. I'd also probably use something like elastic beanstalk vs piecing it all together myself - to keep things simple.

And I'd use sendgrid over mailgun, primarily for deliverability but also I find their service/api/dashboard very user friendly.

If taking payments I'd use stripe

Re:Ask HN: What stack should I use to build my basic web app... by Guest9812398 on Thursday March 29, 2018 @03:58AM (#16705332)
I use a basic LAMP stack (CentOS, Apache, MariaDB, PHP 7). No frameworks. Some of my projects are quite large (tables with billions of rows, and over a million users). It might not be fashionable, but it works, it's fast (for development, and for end-users), it's well documented, and it's been tested for decades. I have no plans to change, and my new projects in development are using the same.
Re:Ask HN: What stack should I use to build my basic web app... by gremlinsinc on Thursday March 29, 2018 @01:17PM (#16708856)
The problem with this is, when you pull in new developers - it takes them weeks or months to understand everything. Whereas a Laravel app, they need maybe a few days at best to figure out what design principles you're using and what style, and where you put repos/models and such, but then they're good to go.

I hate working on code where some systems engineer from the 80's thinks they're big and bad and can code an awesome website using just propel + plain php and then expect every new dev to just learn it and love it as much as they do.

Re:Ask HN: What stack should I use to build my basic web app... by julvo on Thursday March 29, 2018 @03:18AM (#16705166)
Do I sense a bit of sarcasm regarding longevity of JS frameworks here?

As other commenters say, if you want results, choose whatever stack you are most productive with.

As you say 'basic' web app: I'd recommend using Firebase, if you are comfortable with the vendor lock-in. For auth, database and deployment it doesn't get much simpler than this.

Re:Ask HN: What stack should I use to build my basic web app... by gremlinsinc on Thursday March 29, 2018 @01:18PM (#16708873)
Strapi is something I've been looking at as a self-hosted firebase competitor for just an api for mobile apps, etc.. It's pretty cool, when I don't want to build out a full-fledge laravel app.
Re:Ask HN: What stack should I use to build my basic web app... by abdhass on Thursday March 29, 2018 @05:24AM (#16705644)
I use Firebase too along with a simple Vue.js setup. So easy and quick to get up and running.
Re:Ask HN: What stack should I use to build my basic web app... by tugberkk on Thursday March 29, 2018 @06:06AM (#16705831)
I really think it depends on the programming languages you know, if you know any. For example, if you know Python, just use Django or Flask. If you know c#, just use that.

However, if you don't know any programming languages and plan to do "just" web development, WAMP and MEAN stack is the way to go.

edit: WAMP -> (XAMP)

Re:Ask HN: What stack should I use to build my basic web app... by _Chief on Thursday March 29, 2018 @03:34AM (#16705231)
Go for what works for you, a popular stack may not necessarily be best for you unless you, at least, have experience with the technologies. My current default stack. Frontend: Vuejs (pwa) Backend: Go (exposes json api endpoints for frontend) DB: mariadb / sqlite
Re:Ask HN: What stack should I use to build my basic web app... by majewsky on Thursday March 29, 2018 @03:55AM (#16705316)
> Backend: Go (exposes json api endpoints for frontend)

Do you use Swagger or sth. like that to auto-generate the boilerplate from an API spec?

Re:Ask HN: What stack should I use to build my basic web app... by YouKnowBetter on Thursday March 29, 2018 @07:03AM (#16706020)
AWS Serverless.

Cheap, "fresh", and scalable in complexity with too many services to mention.

It's easy, plenty of example code available and will get your feet wet in the hyped secdevops which might land you a nice project sooner or later.

Re:Ask HN: What stack should I use to build my basic web app... by emily-c on Thursday March 29, 2018 @03:01AM (#16705089)
There really aren't any wrong answers here but I've had good personal experience with Vue, Go, and Postgres. Make sure you use vue-cli. vuefire is also very convenient if you're so inclined.
Re:Ask HN: What stack should I use to build my basic web app... by Blackstone4 on Thursday March 29, 2018 @05:38AM (#16705715)
GraphQL stack :)

Frontend: React + Apollo Client + Netlify

Backend: Typescript + Node.js + Apollo Server (graphql-yoga) + Graphcool/Prisma + Apex Up to deploy to AWS Lambda + AWS RDS

Re:Ask HN: What stack should I use to build my basic web app... by 80386 on Thursday March 29, 2018 @05:46AM (#16705749)
This is maybe a stupid question, but why not Rails? I still use it as my go-to backend, but it seems to be out of fashion nowadays.
Re:Ask HN: What stack should I use to build my basic web app... by joefarish on Thursday March 29, 2018 @07:58AM (#16706254)
If it's a basic CRUD app Rails would be a great option (Rails is good for a lot more than that of course!).
Re:Ask HN: What stack should I use to build my basic web app... by swat535 on Thursday March 29, 2018 @10:44AM (#16707452)
I am going to go against the grain here and say you should pick with whatever you are most skilled at and feels natural to you.

Unless you have very specific requirements, it matters very little; especially if your goal is to push a product

Nowadays there are many options and a lot of them are reliable.

E.g

Rails, PostgreSQL, React

Django, PostgreSQL, VueJs

Phoenix. PostgreSQL, Jquery

Re:Ask HN: What stack should I use to build my basic web app... by gremlinsinc on Thursday March 29, 2018 @01:14PM (#16708824)
But you're saying back/frontends don't matter...but definitely use postgres... lol
Re:Ask HN: What stack should I use to build my basic web app... by WalterGR on Thursday March 29, 2018 @10:18AM (#16707239)
Check out this recent Ask HN:

Ask HN: What stack would you use to build a CRUD web app in 2018?

https://news.ycombinator.com/item?id=16508965

It has 177 comments and some good meaty answers.

Re:Ask HN: What stack should I use to build my basic web app... by julienfr112 on Thursday March 29, 2018 @07:28AM (#16706118)
If you know Python well, tornado + mongodb(motor) is pretty neat !
Re:Ask HN: What stack should I use to build my basic web app... by tomkinson on Thursday March 29, 2018 @03:20AM (#16705176)
Entirely depends on what you're building. If it's crazy complex go native now. Super complex web apps are as the rarest of the rare, and damn near impossible. Like a handful ever, rare. That's not to be said that it cannot be done. If it's medium to basic, use a framework like Vue or Preact and a VDOM. Everything will stem from that. Node.JS is a given, maybe Go, but all other decisions depend on what you are building.
Re:Ask HN: What stack should I use to build my basic web app... by quantumleap22 on Thursday March 29, 2018 @08:48AM (#16706540)
Rails + intercooler.js gives you most of the functionality you need with a minimum of complexity.
Re:Ask HN: What stack should I use to build my basic web app... by godzillabrennus on Thursday March 29, 2018 @03:34AM (#16705228)
If it's an MVP? Then anything you can use to stand up the mvp quickly.
Re:Ask HN: What stack should I use to build my basic web app... by slipwalker on Thursday March 29, 2018 @07:57AM (#16706244)
backend on kotlin with (maybe) Spring 5; frontend with Angular 4 or Vue 2; datastore on apache cassandra ; mobile version with flutter/dart ?... probably cover all your bases for the stack-du-jour.
Re:Ask HN: What stack should I use to build my basic web app... by gowk on Thursday March 29, 2018 @05:34AM (#16705690)
You can try Vue.js & Buffalo.
Re:Ask HN: What stack should I use to build my basic web app... by synack on Thursday March 29, 2018 @05:29AM (#16705667)
What does the app do?
Re:Ask HN: What stack should I use to build my basic web app... by plexjac on Thursday March 29, 2018 @06:02AM (#16705813)
Try going through the comments and you will figure it out.

Also go through https://www.tipsindeed.net

Re:Ask HN: What stack should I use to build my basic web app... by amcca029 on Thursday March 29, 2018 @07:31AM (#16706125)
html5 and nginx.