News for hackers. Stuff that matters.
Re:Go in Production – Lessons Learned by pjmlp on Saturday November 07, 2020 @03:26AM (#25013813)
Here is the thing, I have been doing Web development alongside native for a couple of decades now.

This Go enlightment seems to only touch those that don't realize that programming to interfaces was already a thing back in Objective-C and WebObject days, or using Smalltalk categories (later formalized as traits in Pharo).

Also that languages like Java and .NET also have a similar Http server on their standard library since Java 6 (2006) and .NET 2.0 (2002).

The reason we don't use them beyond toy examples, is that they don't scale when things start getting hard and something like IIS, ngix or similar is called into action.

Re:Go in Production – Lessons Learned by bokwoon on Saturday November 07, 2020 @06:47AM (#25014547)
Could you explain what you mean by things start getting hard? Why did the languages you mentioned stop using their HTTP interfaces?
Re:Go in Production – Lessons Learned by pjmlp on Saturday November 07, 2020 @04:20PM (#25019526)
Because that is just the basic, when doing web applications, besides handling HTTP requests you need:

- workload distribution - security and authentication - role management via some form of directory services like LDAP or AD - running tasks in background in response for certain events - mapping into various kinds of databases and information sources - handling caching - have a way to manage reusable components of html/css/js + respective backend code

Yep one can make use of libraries to achieve all of that, but then most likely they don't compose in an easy way, nor make an eco-system.

Re:Go in Production – Lessons Learned by AsyncAwait on Saturday November 07, 2020 @04:27AM (#25014052)
> The reason we don't use them beyond toy examples, is that they don't scale when things start getting hard and something like IIS, ngix or similar is called into action.

Hmm? You seem to be mixing two things here. Nobody is suggesting not using NGINX/Caddy etc. The comment was about being able to go very far with just the standard library.