For backend: what’s it gonna be?
PHP or NodeJS 🤔
PHP
59.9%
NodeJS
23.8%
I reply below
16.3%
Poll ended at .
@nixCraft Golang or anything NOT php/nodejs!
@nixCraft php ftw! (yes, the bar is that low)
@alexey88008 @nixCraft I like Go better. Zig really hit me in the face sometimes with simple JSON parsing stuff.
@nixCraft what kind of hellscape are you creating?

@nixCraft Rust for high throughput, Go for everything else

Never ever again Node.js....

@nixCraft literally anything besides PHP or Node.

Good flamebait, 8/10 trolling.

@nixCraft I'd shy away from either in favor of Elixir, but PHP isn't so bad these days, I'm told.
@nixCraft write your backend in C from the ground up
@nixCraft if I can get away with it, PostgREST. Failing that, I'd prefer Python (with FastAPI or Flask) before I'd resort to PHP, although I can tolerate PHP if it can't be avoided
@nixCraft iirc we killed any serverside javascript back in 1998 .. did you miss that memo too ?

@nixCraft Honestly, PHP is great for everything that's too complex to handle and requires a DB setup.

On NodeJS, you can make an API faster as light long you don't juggle with data transformation, DTO or whatever the gods have decided to fuck you over.

@nixCraft Bash. I did that once.
GitHub - raspbeguy/wgss: Wireguard self-service: a web portal for your users to manage their Wireguard access alone

Wireguard self-service: a web portal for your users to manage their Wireguard access alone - raspbeguy/wgss

GitHub
@raspbeguy @amberdambey @nixCraft
Python 🐍 it’s multipurpose and “easy”

@nixCraft

What do you want to do?
I would avoid the JavaScript world and anything there you can build security problems with wrong input lengths.

@nixCraft both are horrible, although PHP might be the slightly less horrible option. I prefer either Python or Rust for all stuff.
@nixCraft choosing between dogs shit and dogs piss
@nixCraft I heard that PHP is good nowadays but I absolutely despise JS. So easy choice
@nixCraft Guess I'll make popcorn and wait for the flames.

@nixCraft I still like GHC Haskell for a production backend. But, I voted "NodeJS" because it is the more reasonable of the two options. I wouldn't write (most) of the JS directly tho; I'd use PureScript to generate it.

If you HAVE to use the "PHP Runtime", then *at least* use Hack to save your sanity. https://hacklang.org/

Hack

Hack is an object-oriented programming language for building reliable websites at epic scale

@nixCraft
The best language: Bash

With our beloved web framework: Bash on Balls…
https://github.com/jneen/balls

GitHub - jneen/balls: Bash on Balls

Bash on Balls. Contribute to jneen/balls development by creating an account on GitHub.

GitHub

@nixCraft

obviously #awk, but would also consider /bin/sh for my cgi-bin/ needs. 

@ed1conf

there is awkiawki a very lightweight wiki implementation

http://awkiawki.bogosoft.com/

@nixCraft

awkiawki - A Tiny And Fast WikiWiki-Clone Written In (n|g|m)awk

awkiawki - A Tiny And Fast WikiWiki-Clone Written In (n|g|m)awk

@ed1conf @nixCraft I HAVE BEEN THERE AND DO NOT RECOMMEND.

/me tries to suppress twitching eye

@nixCraft Java. Not cool, but fast and safe <ducks>
@nixCraft PHP will outlive humans 😂
@nixCraft I'm still trying to get into Rust, but I find it about an order of magnitude less productive to write Rust instead of Go, maybe I've just not had my personal epiphany yet but Go just feels a lot more like the pseudo-code I'd jot down to solve a task.
@nixCraft
Python's Django REST framework
Powerful yet easy to program
@nixCraft For me: in Backend nothing else than Erlang/Elixir anymore. Had never better performing and maintainable code. Unbeatable the possibility to do up-/downgrades without loosing a single TCP Connection – customers don't realize the change, especially if you only patch some errors.
@grefeng @nixCraft so we're arguing about which of our pickup trucks is best for off road and you just roll up in your tank.
@richardjh @nixCraft To stick with your analogy: Erlang/Elixir is more like a small car if you want to run it economically. It even runs on embedded systems (see the Nerves project). It was originally designed for telephone systems that need to run without intervention, even in remote and inaccessible areas. But you can also run it in large clusters on large servers. You decide how much of an "off-road truck" you want it to be.
@nixCraft Python. Perhaps golang if I have to worry about dependencies
@nixCraft Probably depends on the actual constraints. By default I'd choose Ruby but for some special needs I could use C or maybe Rust (either through Ruby bindings or standalone).