News for hackers. Stuff that matters.
Re:Ask HN: What tech stack would you choose for building you... by mschaef on Monday December 16, 2019 @06:19PM (#21808633)
It really depends on the target platform, who will wind up maintaining the code (and for how long!), and how the build will be done.

But the short version is that I would (and do) favor Clojure for personal projects. These are cases where I have limited time to invest, a high desire for tangible results, and no other developers to worry about. For that set of tradeoffs (and my skillset), this has generally been the best way for me to achieve my goals. (I also have some code that abstract out some patterns I find useful or importatn.)

In these sorts of projects, if I need client side code, I'll tend to favor straight JavaScript (with markup rendered by Hiccup) if I can get away with it, and ClojureScript/Reagent if I have a requirement that implies a need for client side logic. (Tolerance of lost network connections, incremental page update, and the like.)

For more commercial projects, I'd be thinking TypeScript/React with a Java (JVM?) backend for starters. I'd also be open to Node or Python for the back end, but it really depends on the skillset of the team and where the best libraries are.

And all of this would be done with an eye towards the exit. Any codebase that has a reasonable life expectancy will likely have to at least interoperate with other language ecosystems, if not incorporate them bodily. Being mindful of how that might happen is important. (Which practically speaking, means decent interface definitions, testing, and the like.)

Re:Ask HN: What tech stack would you choose for building you... by 7373737373 on Monday December 16, 2019 @05:18PM (#21807989)
Re:Ask HN: What tech stack would you choose for building you... by fortytw2 on Monday December 16, 2019 @05:11PM (#21807912)
Go, Postgres and a dirt simple React/Typescript/Parcel app as the frontend. 99% of the time you won’t need anything else.
Re:Ask HN: What tech stack would you choose for building you... by arkanciscan on Monday December 16, 2019 @05:36PM (#21808191)
+1 Parcel. It really is a breath of fresh air after dealing with Webpack.
Re:Ask HN: What tech stack would you choose for building you... by ng12 on Monday December 16, 2019 @07:45PM (#21809339)
That's good to hear. I've been on the hunt for a replacement for create-react-app -- in my experience it's problematic in an enterprise environment. I love Webpack but I don't want to recommend it to junior developers. I'm hoping Parcel is a better candidate.
Re:Ask HN: What tech stack would you choose for building you... by arkanciscan on Tuesday December 17, 2019 @12:34AM (#21810948)
I wouldn't go that far. Parcel is fine for small stuff, but it doesn't allow nearly as much control as Webpack. In enterprise you're likely to run into limitations. Parcel 2 is supposed to get plugin support, but who knows if that'll be any better than Webpack.
Re:Ask HN: What tech stack would you choose for building you... by tboyd47 on Monday December 16, 2019 @04:40PM (#21807549)
Web:

If I'm paying: Wordpress, LAMP, vanilla JS, MySQL, and PHP

If I'm maintaining: Ruby on Rails, PostgreSQL, JQuery, ReactJS

If I'm building a resume: Either C# or Python, SQL, and Javascript, hosted on either AWS or Azure.

Mobile: Swift/iOS and Java/Android both.

Re:Ask HN: What tech stack would you choose for building you... by cmehdy on Monday December 16, 2019 @08:09PM (#21809477)
You're more likely to get somewhere with Kotlin on Android now, although knowing your way around Java constructs will definitely remain useful for a long time.
Re:Ask HN: What tech stack would you choose for building you... by brailsafe on Monday December 16, 2019 @08:43PM (#21809684)
As a web guy and spmetimes hobbyist Android person, has Kotlin surpassed Java in terms of support or some other quality on Android?
Re:Ask HN: What tech stack would you choose for building you... by suyash on Monday December 16, 2019 @11:49PM (#21810707)
That won’t happen anytime soon, 90% of libraries and majority of Google’s own sample projects are in Java.
Re:Ask HN: What tech stack would you choose for building you... by wishinghand on Monday December 16, 2019 @10:15PM (#21810189)
For the frontend I always use Nuxt, which is a server side rendered flavor of Vue. Vue just makes sense to me with how it handles markup, styling, and code in a single component’s scope. The only time I really make use of Vuex, the Vue solution for Redux, is if there’s user data that I need to share into other views.

For backend I’d want something either rock solid and fault tolerant like Elixir, or very speedy like Rust or even Go. Kind of depends if I’m doing this in my own or with others.

Re:Ask HN: What tech stack would you choose for building you... by riter on Monday December 16, 2019 @06:32PM (#21808726)
For quick proof of concepts

Backend: Flask -> MySQL -> Docker -> Digital Ocean

Frontend: Vanilla JS + Bootstrap or VueJS + Template

Have yet to fail me. It makes for easy transition once things get serious and I want to migrate over to GCP/AWS

Re:Ask HN: What tech stack would you choose for building you... by codegeek on Monday December 16, 2019 @06:29PM (#21808696)
frontend: Vue Backend: Golang/Laravel PostgresQL database

No SPA. I use server side templates and just call the vue components in them as needed.

Re:Ask HN: What tech stack would you choose for building you... by brailsafe on Monday December 16, 2019 @08:46PM (#21809697)
Mind expanding on that last bit? I'm working with a fairly convoluted Flask/Pylons based framework which I'd love to use Vue in but don't want to lose server rendering. Are you just piecing small components together that individually call apis or what's your setup?
Re:Ask HN: What tech stack would you choose for building you... by codegeek on Tuesday December 17, 2019 @10:54AM (#21814732)
Basically, on server side, I have templates like this:

users.page.tmpl (in Golang):

    {{template "admin" .}}

    {{define "title"}}Users{{end}}

    {{define "main"}}
    <users></users>
    {{end}}
Then I have a Users.vue that does the heavy lifting with API calls on loading existing data when component mounts etc.

Using this, I can use server side routing as needed and no need for client side routers or SPA etc.

Re:Ask HN: What tech stack would you choose for building you... by semireg on Monday December 16, 2019 @11:02PM (#21810415)
After 5 years on iOS/Android I wanted to build a cross platform desktop app. I came up with an idea (make thermal label printers a joy to use) and started hacking a proof of concept using https://github.com/electron-react-boilerplate/electron-react....

It’s been an incredible learning process, super laborious and an absolute joy to see people buying my app and emailing with questions and ideas.

I’ve had to learn React, modern JS development, semantic UI, redux, native node modules, maintaining a cross platform build system, publishing on app stores, selling direct and building my own license system using react/express/graphql/jwt not to mention auth, and other APIs, deployment to Heroku... the list goes on and on.

Check out my app at https://label.live

Re:Ask HN: What tech stack would you choose for building you... by Porthos9K on Monday December 16, 2019 @04:40PM (#21807550)
I'd like to use BCHS[1] next time around.

https://learnbchs.org/

I want something that's simple, and reasonably secure by default so that if the crap I build turns out to be insecure, it's my own damn fault.

Re:Ask HN: What tech stack would you choose for building you... by non-entity on Monday December 16, 2019 @05:24PM (#21808059)
So I'm assuming you'd write the application as a a collection of CGI programs? Either that or does OpenBSD's websercer support developing handlers as sort-of extensions like ISAPI with IIS?
Re:Ask HN: What tech stack would you choose for building you... by Porthos9K on Tuesday December 17, 2019 @09:54AM (#21813979)
Yep. I'd use CGI.
Re:Ask HN: What tech stack would you choose for building you... by non-entity on Tuesday December 17, 2019 @10:48AM (#21814666)
I'm actually intrigued, I might try this stack out.
Re:Ask HN: What tech stack would you choose for building you... by maxharris on Monday December 16, 2019 @11:42PM (#21810659)
I'm working on a new frontend framework, as well as a couple of applications that make use of it: https://github.com/maxharris9/layout

One of my goals is for my framework to compete with Flutter. So why not just use Flutter? Two reasons: Flutter's API is object-oriented, and Layout's is functional. I also prefer a declarative style for specifying views, but can't stand Babel's bigness/slowness, so I built a JSX transformer (https://github.com/maxharris9/jsx-layout).

Re:Ask HN: What tech stack would you choose for building you... by noodle on Monday December 16, 2019 @06:33PM (#21808734)
My current swiss army knife is Rails+Vue for web/api, plus React Native for mobile if necessary.

Of course, I'd use something different if the project necessitated anything in particular.

Re:Ask HN: What tech stack would you choose for building you... by mc3 on Monday December 16, 2019 @11:59PM (#21810763)
Getting it done:

Frontend - Typescript/React + miscellaneous libraries. Maybe CSS compiler, maybe raw CSS.

Backend - I'd use C# and .NET but that is for reasons of familiarity. I would also be comfy using NodeJS but I prefer the comparative sanity of C#.NET.

For Fun:

https://safe-stack.github.io/docs/overview/

Re:Ask HN: What tech stack would you choose for building you... by nyxtom on Monday December 16, 2019 @06:36PM (#21808769)
Web/services and keeping it boring and basic:

Aurelia, Mongo, HAProxy, Nginx, Express, Redis, ELK, Ansible

Depends on the dependencies, some things I need have very great implementations and support in golang (network traffic, routing).

Re:Ask HN: What tech stack would you choose for building you... by rsinger87 on Monday December 16, 2019 @06:49PM (#21808890)
Postgres, Django (with Rest Framework) and TypeScript/Angular.
Re:Ask HN: What tech stack would you choose for building you... by gitgud on Monday December 16, 2019 @09:18PM (#21809858)
Front-end = Nuxt (vue) + Vuetify.

- Simple, great abstractions, many enterprise grade components

Back-end = Firebase (Firestore db and Cloud Functions)

- Simple, cheap/free, scalable

Re:Ask HN: What tech stack would you choose for building you... by hpliferaft on Monday December 16, 2019 @08:21PM (#21809546)
React/AWS lambda/AWS DynamoDb+S3 for prototyping CRUD variations.

Anything else would depend on the app's features.

Re:Ask HN: What tech stack would you choose for building you... by hiccuphippo on Monday December 16, 2019 @05:27PM (#21808099)
There's a bunch of new python web frameworks built for asyncio that I'd like to try.
Re:Ask HN: What tech stack would you choose for building you... by mijkal on Monday December 16, 2019 @11:43PM (#21810663)
My side project is React + Firebase (Node functions + NoSQL database + websockets) — love it!
Re:Ask HN: What tech stack would you choose for building you... by toufique on Monday December 16, 2019 @05:30PM (#21808121)
Elixir + Vue
Re:Ask HN: What tech stack would you choose for building you... by patrickgordon on Monday December 16, 2019 @05:57PM (#21808434)
React w/ Typescript

Firebase coz cbf backends

Re:Ask HN: What tech stack would you choose for building you... by suyash on Monday December 16, 2019 @11:51PM (#21810717)
Java, Node.JS and JavaScript.

For Mobile - Android ; Java, iOS - Swift

Re:Ask HN: What tech stack would you choose for building you... by rocketpastsix on Monday December 16, 2019 @05:43PM (#21808265)
Laravel, Vue, Tailwind, MySQL, OpenAPI, JSON:API.
Re:Ask HN: What tech stack would you choose for building you... by bradstewart on Monday December 16, 2019 @06:13PM (#21808587)
Rails

Vue (if necessary)

Re:Ask HN: What tech stack would you choose for building you... by PaulHoule on Monday December 16, 2019 @04:54PM (#21807714)
Websockets.
[dead]
Re:Ask HN: What tech stack would you choose for building you... by dang on Tuesday December 17, 2019 @06:12PM (#21820013)
Please don't do this here.
Re:Ask HN: What tech stack would you choose for building you... by arkanciscan on Wednesday December 18, 2019 @11:08AM (#21826256)
Do what exactly? Participate in discussion? Voice my frustrations? Contradict the popular opinion?

You know, I think I agree. Commenting on this site is a huge waste of time.

Re:Ask HN: What tech stack would you choose for building you... by dang on Wednesday December 18, 2019 @01:31PM (#21827735)
I thought it was obvious, but in case not: please don't post flamebait like "$language can die in a fire". We're trying to avoid programming language flamewars (or any flamewars) here. They get repetitive very quickly, and nasty too.

Also, can you please not post unsubstantive comments like https://news.ycombinator.com/item?id=21822655? We're trying for more thoughtful conversation here. If you wouldn't mind reviewing https://news.ycombinator.com/newsguidelines.html and taking the spirit of this site to heart, we'd be grateful.

Btw, I tend to agree with you on https://news.ycombinator.com/item?id=21810266 and thought that was well put.

Re:Ask HN: What tech stack would you choose for building you... by rvz on Monday December 16, 2019 @06:06PM (#21808517)
> TypeScript can die in a fire, and if you disagree you should join it.

This is probably a poor attempt at satire, but I'll bite. Actually yes, I'd rather disagree and jump in the fire to use TypeScript than to plod along using JavaScript with its clumsy type-system, designed by a team of clapping seals and to watch all the hell it truly brings.

If you think TypeScript should die in a fire then perhaps I'll see all companies using JavaScript in Dante's Inferno.

Re:Ask HN: What tech stack would you choose for building you... by arkanciscan on Monday December 16, 2019 @07:08PM (#21809059)
I don't dislike TS because I love JS so insult it all you like. Besides TS is just a superset of JS so it's still got all of JS's warts. It's just a glorified linter.

I dislike TS because it provides no benefit to me. I already have a type checker, it's called a browser. I dislike TS because a bunch of people who wasted their time learning Java or C# are forcing me to deal with it because they can't do their job without a compiler to tell them how.

You need types, that's your problem, not mine.

Re:Ask HN: What tech stack would you choose for building you... by JamesBarney on Monday December 16, 2019 @07:19PM (#21809151)
It's great that you always write bug free code, but then typescript was not written for you, it was written for the rest of us who write the occasional bug, refactor an API that we didn't realize another developer was using, or can't quite remember the order or shape of args that a library call takes that we only use once every 6 months.
Re:Ask HN: What tech stack would you choose for building you... by arkanciscan on Monday December 16, 2019 @10:49PM (#21810340)
Why don't your tests catch your TypeErrors? You do have tests don't you?
Re:Ask HN: What tech stack would you choose for building you... by stevenwliao on Tuesday December 17, 2019 @02:38AM (#21811497)
Why would you write a test instead of a type declaration if you had the choice?
Re:Ask HN: What tech stack would you choose for building you... by arkanciscan on Wednesday December 18, 2019 @11:13AM (#21826309)
TS checks at buildtime. It can't guard against runtime TypeErrors because JavaScript is a dynamic language (despite all the effort to "fix" that). Tests can catch all TypeErrors, TS can't. Why use two tools to do the job that one can do alone?
Re:Ask HN: What tech stack would you choose for building you... by Can_Not on Tuesday December 17, 2019 @01:49AM (#21811275)
Tests aren't an alternative to types. They're better together.
Re:Ask HN: What tech stack would you choose for building you... by ng12 on Monday December 16, 2019 @07:24PM (#21809193)
I agree that the type checker isn't that useful but I still use TypeScript for two reasons:

1. Accurate autocomplete.

2. Typing my domain models so they play well with autocomplete.

Re:Ask HN: What tech stack would you choose for building you... by arkanciscan on Tuesday December 17, 2019 @12:30AM (#21810930)
The first thing I do when I install an editor is turn all auto-completion off. Especially the auto-closing brackets. Drives me NUTS!
Re:Ask HN: What tech stack would you choose for building you... by gubsz on Monday December 16, 2019 @05:40PM (#21808238)
I can't tell if you're being sarcastic or not, but I'm really curious about the TypeScript hate. Besides some odd type mapping here and there, I've really enjoyed using it over plain old JS.
Re:Ask HN: What tech stack would you choose for building you... by arkanciscan on Monday December 16, 2019 @06:54PM (#21808934)
TypeErrors are just not a problem that I need a compiler to solve for me.
Re:Ask HN: What tech stack would you choose for building you... by odyssey7 on Monday December 16, 2019 @07:55PM (#21809401)
I used to feel that way — and in some situations I still do, like for a short script that I think won’t change much over time. But for a lot of situations I realized that I had so many things to keep track of myself. If there was an easy way for me to be looking back over my shoulder less, like with static typing, I was all for it.

Static typing lets me front-load the effort of making sure many different buggy cases won’t happen. The alternative is for me to think really hard proving to myself that those cases won’t happen each time I come back to the code in the future to add a feature or make a change.

Re:Ask HN: What tech stack would you choose for building you... by arkanciscan on Monday December 16, 2019 @10:31PM (#21810266)
More like front load all the effort of every error that may or may not happen.