News for hackers. Stuff that matters.
Re:Ask HN: What stack you use to build websites? by rogual on Thursday March 15, 2018 @02:28PM (#16595345)
Almost always Django. Customers love Django Admin, and when they don't, it's really easy to tweak.

For dynamic apps that don't fit the Django model, I'll bust out Node.js, and for static sites, just a plain Python script to generate HTML files.

Boring choices, but the older I get, the more I'm OK with that :)

Re:Ask HN: What stack you use to build websites? by markfer on Thursday March 15, 2018 @04:26PM (#16596247)
For someone looking to learn to code web-app's from scratch, would you advise Django over Vanilla JS, Node, or Vue?
Re:Ask HN: What stack you use to build websites? by rogual on Friday March 16, 2018 @06:59AM (#16599816)
If I were you I'd want to really good with plain Python (or Node) before learning a framework, but that's because I'm the kind of person who wants to know how everything works. Once you've written a few CRUD apps you'll wish there was a tool to do some of the common stuff for you, and Django will be waiting for you.

But, if you're not that kind of person it's perfectly OK to jump straight into Django. You'll certainly get further more quickly, even if you won't be able to explain exactly what your code is doing.

Re:Ask HN: What stack you use to build websites? by nocobot on Thursday March 15, 2018 @04:41PM (#16596355)
I don't think it's that important what technology you decide to learn first, largely because learning new languages / tech stacks gets easier as your frame of reference grows.

What I think is important is sticking to one thing until you have a good grasp of it.

Re:Ask HN: What stack you use to build websites? by kromem on Thursday March 15, 2018 @05:27PM (#16596662)
Go & Postgresql on the server.

Angular 2+ on the frontend.

Why?

Go is fast and bare bones, and works nicely as a backbone to an API (especially with a GraphQL intermediary). Postgresql plays very nicely with Go, especially if writing queries by hand.

Angular 2+ is great. Vue is also really nice, but I love what Typescript brings to the table and find that Angular being built around TS makes me enjoy it more than retrofitting Vue + TS definitions. I decided on Angular 2+ with great trepidation, but the bad rap carry-over from AngularJS turned out to be entirely undesreved. It's a wonderful framework, and I'm enjoying it greatly.

Also, a shout-out for AWS Lambda. I use it here and there for heavy workloads (personally I wouldn't replace my webserver with it entirely yet), and it made my server infrastructure MUCH more pleasant.

Re:Ask HN: What stack you use to build websites? by m_fayer on Thursday March 15, 2018 @03:15PM (#16595727)
ASP.NET Core. VueJS on the frontend if it's a webapp.

Jekyll if it doesn't need to by dynamic.

Re:Ask HN: What stack you use to build websites? by neverminder on Thursday March 15, 2018 @05:20PM (#16596622)
Backend language: Scala. Long live FP and type safety.

Backend framework: Play. Inspired by RoR, works with Java/Scala. Light, fast, scalable out of the box.

Database: PostgreSQL. Introduction is not needed.

Database library: Slick. Nothing beats compile time type safety.

Frontend language: Typescript. Better than pure JS hands down.

Frontend framework: Angular (5). Because Typescript is a first class citizen.

Re:Ask HN: What stack you use to build websites? by abhishekjha on Wednesday March 21, 2018 @06:07PM (#16642882)
I have a question. How do you speed up the database CRUD operations when the number of records fitting a certain criteria may range to 10000 or more. It takes a lot of time to get this over the network and the user is not going to use/see all of it at once. Given such constraints, how do you speed up the query so that there's little to no lag time for the user(at least for say first 100 records).
Re:Ask HN: What stack you use to build websites? by ravenstine on Thursday March 15, 2018 @01:54PM (#16595048)
It depends on what you mean by a website. If it's one level above a static page, a static site with frequent changes, I'll make my own build chain in Node.js with Gulp and host the pages in S3 and Cloudfront.

Or I will use Rails behind Nginx if the site is more dynamic. Each release would get built into a Docker image and be deployed that way. HAProxy would be there mostly to forward requests to multiple apps if there are any.

For a site that needs a lot of client side scripting, I use Ember. I'm so happy with it that I will probably use it with Fastboot for those times I would have used Rails. In terms of databases, I've been using CouchDB unless I had an overwhelming need for relational records. It saves time because CRUD and websocket/eventsource/longpolling come with it out of the box.

Re:Ask HN: What stack you use to build websites? by spondyl on Thursday March 15, 2018 @03:15PM (#16595723)
For anything dynamic, I usually start with Django but I'm not opposed to building with Node and React

For my personal site, I rebuild it in whatever language I'm trying to learn. In this case, I'm rewriting part of it in golang which I use at work.

Re:Ask HN: What stack you use to build websites? by jetti on Thursday March 15, 2018 @04:38PM (#16596340)
For work, VueJs and ASP.NET MVC (on .NET 4.6.2, not core).

For fun, a mixture of VueJs and Elixir/Phoenix and ASP.NET Core

Re:Ask HN: What stack you use to build websites? by komuW on Thursday March 15, 2018 @04:37PM (#16596323)
Language: Go,

Framework: https://github.com/apex/up

Hosting: AWS lambda

I can't speak highly enough of up, it's amazing for creating serverless(sic) apps without changing the way you structure your app. I also use up for some python apps

Re:Ask HN: What stack you use to build websites? by kromem on Thursday March 15, 2018 @05:50PM (#16596807)
How much slower are web requests vs a live server?

I see that Up has a warming feature - is that sufficient enough to avoid slow requests for you?

Does the reliance on Up as a service make you nervous for using them for production? How much hot water would you be in if they close their doors?

Are you using Up Pro?

I know - lots of questions, but it seems like a neat offering I hadn't seen before, and I can't find any testimonials elsewhere online.

Re:Ask HN: What stack you use to build websites? by komuW on Friday March 16, 2018 @01:34AM (#16598851)
Hi,

1. Apart from the startup latency i haven't noticed much of a big difference between up/lambda and a live server. And lambda will keep your function warm for AFAIK, 1hr, so if your app has lots of traffic you never experience startup latency.

2. Up is open source, if they close their biz, I'd just continue using their code. I haven't used up pro yet.

3. Up has been around for probably under 1yr so you may not see a lot of testimonials yet. It is made by tj(the same guy who made expressJS, the nodejs web framework among other softwares)

You can direct more questions ; https://up.docs.apex.sh/#links

Re:Ask HN: What stack you use to build websites? by jimmy162 on Thursday March 15, 2018 @01:21PM (#16594747)
Vapor - Swift on the server!

If you haven't heard of it, check out https://vapor.codes. It's an absolutely amazing framework that is non-blocking in version 3. The performance you can squeeze out of it is unbelievable.

Re:Ask HN: What stack you use to build websites? by cutler on Thursday March 15, 2018 @03:39PM (#16595923)
That site has some serious problems on my OS X Sierra/Chrome. Every time I load the tab it just freezes the whole browser. Great advert for all the claims they're making.
Re:Ask HN: What stack you use to build websites? by bgdkbtv on Thursday March 15, 2018 @05:38PM (#16596729)
Have you built any web apps using the framework?
Re:Ask HN: What stack you use to build websites? by rs86 on Thursday March 15, 2018 @02:06PM (#16595151)
We mostly do rails apps but one of our 4 projects use elixir/phoenix on the backend and react on the frontend.

We are really pleased with the performance of BEAM and the functional flavor of elixir clearly leads to code that is easier do read and to test.

We have been toying with Elm lately.

Re:Ask HN: What stack you use to build websites? by niftylettuce on Thursday March 15, 2018 @03:30PM (#16595852)
Re:Ask HN: What stack you use to build websites? by nkristoffersen on Thursday March 15, 2018 @02:42PM (#16595444)
Static sites: GatsbyJS on S3 or Firebase hosting.

Web apps: ReactJS on s3 hitting NodeJS API on AWS EB.

Re:Ask HN: What stack you use to build websites? by adtac on Thursday March 15, 2018 @01:37PM (#16594891)
I'm getting very comfortable with plain Go without any frameworks for the backend. Postgres for databases.

For a quick prototype, I'd use Vue.js and Spectre for CSS. I suck at frontend anyway.

Deployed behind nginx.

Re:Ask HN: What stack you use to build websites? by kaniskode on Thursday March 15, 2018 @02:01PM (#16595108)
Flask or Django for dynamic sites.

Jekyll hosted with Netlify for static sites.

Re:Ask HN: What stack you use to build websites? by matthewmacleod on Thursday March 15, 2018 @03:30PM (#16595846)
Linux, PostgreSQL, Rails, Webpack, React and Sass. For the most part.

This is a great solution for general-purpose use, dropping React of course if there’s no need for interactivity.

Re:Ask HN: What stack you use to build websites? by EliRivers on Thursday March 15, 2018 @02:05PM (#16595134)
I'm writing the HTML and CSS in Emacs, applying common elements with Make, and feeding it to an Apache server over on NearlyFreeSpeech.
Re:Ask HN: What stack you use to build websites? by acdw on Thursday March 15, 2018 @04:35PM (#16596307)
I'm doing basically the same thing but with markdown thru pandoc as well. It's very basic but it works for my personal use.
Re:Ask HN: What stack you use to build websites? by EliRivers on Thursday March 15, 2018 @06:33PM (#16597054)
I got downvoted. Emacs sure isn't popular.

Ha. Of course it is!

Re:Ask HN: What stack you use to build websites? by jasonroot on Thursday March 15, 2018 @02:50PM (#16595520)
HTML/CSS/JS & LAMP with Craft CMS for dynamic sites, just HTML/CSS/JS on S3 for static sites.
Re:Ask HN: What stack you use to build websites? by SnowingXIV on Thursday March 15, 2018 @03:40PM (#16595931)
Basic websites? Probably Jekyll with some build tools like gulp. Never needed anything more for that.

Otherwise Rails with PostgreSQL.

Re:Ask HN: What stack you use to build websites? by tmaly on Thursday March 15, 2018 @12:27PM (#16594226)
right now I am using a Go framework called Gin for my food site.

I use libsass with bourbon.io and I have a Makefile to compile the binary, generate the css, minify things.

For blogging, I have used Wordpress

But I have recently started looking on moving over to Hugo to generate html using a bootstrap 4 template.

Re:Ask HN: What stack you use to build websites? by larryfreeman on Thursday March 15, 2018 @03:56PM (#16596048)
I'm thinking about going with Clojure for a POC. Anyone using Clojure?
Re:Ask HN: What stack you use to build websites? by manitoo on Thursday March 15, 2018 @05:39PM (#16596743)
Excellent choice. Two of the best reasons to recommend:

1. Hiccup syntax is a great way to “template” HTML, being clojure-native data structures with the full power of the language available to you.

2. REPL-driven workflow makes it a dream to debug things like request handlers.

You will miss out on some perks from bigger/more popular frameworks—there’s no built-in admin panel waiting for you—but you can take advantage of the Lisp Curse here and quickly build out what’s missing. I find it’s a worthwhile trade-off.

Re:Ask HN: What stack you use to build websites? by sonaltr on Thursday March 15, 2018 @01:25PM (#16594800)
for work: nodejs + react (usually serverless, but if not, then with k8s/ecs)

for experimenting: golang + react (want to see what the fuss is all about)

for fun: elixir + pheonix (since I never got on the rails bandwagon)

Re:Ask HN: What stack you use to build websites? by theandrewbailey on Thursday March 15, 2018 @01:14PM (#16594676)
For work, server-side Javascript (not Node.js)

For fun, Java servlets/JSPs

Re:Ask HN: What stack you use to build websites? by RandomBK on Thursday March 15, 2018 @04:20PM (#16596208)
Are you able to talk a bit about your server-side Javascript setup? What was your decision making process for using something other than Node? How does the ecosystem of libraries and supporting infrastructure look like?
Re:Ask HN: What stack you use to build websites? by theandrewbailey on Friday March 16, 2018 @03:50PM (#16603536)
It's not something that I chose in particular. I work at a Salesforce Commerce Cloud[0] partner, with half a dozen clients. The language syntax is Javascript (in fact, I'm sure that it's built on the JVM's JS engine), but uses a proprietary API. The platform is laser focused on doing scaleable e-commerce, although it has somewhat competent CMS and CDN functionality, at least enough as necessary to load pages fast and sell things. Once you start doing things like newsletter list management, file uploads, and even product reviews, its less than optimal.

[0] https://www.demandware.com/

Re:Ask HN: What stack you use to build websites? by vyrotek on Thursday March 15, 2018 @03:39PM (#16595925)
ASP.NET Core + Vue/Ang/React + SQL Server on Azure
Re:Ask HN: What stack you use to build websites? by bobwaycott on Thursday March 15, 2018 @01:23PM (#16594760)
Just websites? Static HTML and assets, served from Caddy.
Re:Ask HN: What stack you use to build websites? by bgdkbtv on Thursday March 15, 2018 @05:39PM (#16596742)
Laravel, Vue, Postgres.

Experimenting with Laravel/Lumen API only for backend, and NuxtJS with SSR.

Also AdonisJS is looking promising to go into that JS world with both front and back ends.

Re:Ask HN: What stack you use to build websites? by franzcusmai on Thursday March 15, 2018 @02:37PM (#16595399)
Lamp with CakePhp
Re:Ask HN: What stack you use to build websites? by jwho82 on Thursday March 15, 2018 @12:32PM (#16594285)
LAMP with Symfony. Ionic for mobile dev.
Re:Ask HN: What stack you use to build websites? by kusmi on Thursday March 15, 2018 @01:38PM (#16594899)
Lua/Torch backend + Redis + React
Re:Ask HN: What stack you use to build websites? by LukeTowers on Thursday March 15, 2018 @04:33PM (#16596288)
OctoberCMS running on a LNAMP stack
Re:Ask HN: What stack you use to build websites? by mbn12 on Thursday March 15, 2018 @03:37PM (#16595904)
For sadomasochism: assembly
Re:Ask HN: What stack you use to build websites? by pdeuchler on Thursday March 15, 2018 @03:40PM (#16595930)
Same but DotNetNuke
Re:Ask HN: What stack you use to build websites? by tmastro on Thursday March 15, 2018 @12:29PM (#16594253)
Mainly Ruby on Rails
Re:Ask HN: What stack you use to build websites? by xstartup on Thursday March 15, 2018 @03:43PM (#16595955)
PostGres, Redis, Go, Vue. Why? because I am able, not able to understand anything else.
Re:Ask HN: What stack you use to build websites? by RobGav on Thursday March 15, 2018 @02:24PM (#16595306)
Static website built and managed by Publii CMS.