Oddbean new post about | logout
 @ddc3da8f 

Of the ones you listed the only acceptabke ones are:

Ruby
Python
C++
NodeJs
Rusr
Golang
Java

@90991173 
 @b05df304 @90991173

for Web Servers? shit no 😂 
 @ddc3da8f 

Depends what your writing it for... ill be honest while im happy to run a php app despite the fact that i know how to code in php id never personally code up an app in php, thats just my preference

@90991173 
 @b05df304 @90991173

I write mediocre apps since 1998
David Grudl is our PHP God (Nette framework, Tracy, NEON) 
 @b05df304 @90991173

BTW our famous Czech @8aabb2c9 maintains PHP PPA for Debian and Ubuntu 
 @b05df304 @90991173 @8aabb2c9

also KNOT DNS created by Czech NIC is used by Cloudflare

Czechs everywhere 😜😎 
 @ddc3da8f @90991173 @8aabb2c9 

No shortage of thrm in this business for sure. 
 @b05df304 @90991173 @8aabb2c9

I think that Czechs are only well known for beer and contact lenses 😂 

most people don't know about KNOT DNS server or polarographic analysis... 
 @ddc3da8f @b05df304 @8aabb2c9 yep Jaroslav Heyrovský received Nobel Price for polarography and electrochemistry. 
 @90991173 @b05df304

Czechs received 6 Nobel prices 
 @b05df304 @90991173

anybody who tried nodejs knows it's a hell

Rust and Golang for Web? sure, your productivity will drop to 5 % 
 @ddc3da8f 

No i agree most of those languages arent the best for web apps.

Nodejs works, i dont like it as a web app server side language but it works (id take it over pho)... rust and go lang suck, php is better those are your only other choices...

Ill take ruby, java, or python over ruby for a webapp in a beartbeat though

@90991173 
 @b05df304 @90991173

I know about Ruby companies in Czechia - all available rubyists work there, like 30 😂 
 @ddc3da8f @90991173 

Never claimed ruby was a great choice for work. Just that id use it over php if i were picking a modern web project if those were my choices.

Personally i wouldnt use ruby for webapps, though i love it for scripts and personal projects. 
 @b05df304 @90991173

the only fine thing about Python is their beer session Pyvo 
 @b05df304 @ddc3da8f if you say Java, we should also say Kotlin. However if I would be tasked with 5+ nines SLA than I would take into consideration Erlang/Elixir perhaps Scala with their Actors models. 
 @90991173 @ddc3da8f 

I was sticking to the list fred used 
 @90991173 @b05df304

Kotlin is good! I wrote my first K app for Android some 5 years ago even without any K knowledge, that's awesome 😂 but who likes compilation and fucking with Play Store when there's PWA 
 @ddc3da8f @b05df304 I was referring to using Kotlin in Backend side 
 @90991173 

Most php programmers in my experience dont have a clear separation of front and back that talk via a rest layer like we tend to do with modern web apps.

@ddc3da8f 
 @b05df304 @ddc3da8f and if they do, they than do not separate data model and this will kill them during horizontal scaling because they are not stateless :-) you have idea how many state full micro services I have seen in my live in terms of for example login sessions. Technically impossible to horizontally scale. 
 @90991173 

Preaching to the choire

@ddc3da8f 
 @90991173 @b05df304

my CMS is sessionless, I can scale up right away 😂

(Sodium encrypted cookie for Auth) 
 @90991173 @b05df304

well, Redis sessions will do

when Redis crashes, the whole system crashes

🤔😳 
 @ddc3da8f 

thats why you run redis in a high availibility cluster itself... To create high availibility servers all your services need to be capable and running in high availiblity mode as well (usually means multiple servers all staying in sync somehow)

@90991173 
 @b05df304 @ddc3da8f and we are back to Erlang/OTP and distributed Mnesia, never understood how someone can name data storage system like this :-) 
 @90991173 @b05df304

PHP session cookie is the worst shit concept I have ever seen in my life 😎 
 @90991173 @b05df304

I have seen PHP session problem solutions like MySQL storage, Redis, NFS, rsync and Syncthing.... 😂 all the worst nightmares possible 🙆 
 @90991173 @b05df304

authentication should be baked into Auth cookie, encrypted, protected

session data should be in local storage and sent when needed as an encrypted object 
 @b05df304 @90991173

high availability hell 😂

then you migrate everything to Cloudflare and pay $200 a month from Bali 
 @b05df304 @90991173

There are only 3 important hard problems to solve in IT.

1. Correct addition and subtraction of 1.
2. Cache management. 
 @90991173 @b05df304

what's 5+ nines? 🤔 
 @ddc3da8f @90991173 

5+ nines sla refer to very high availibility servers. 
 @b05df304 @90991173

I'd still go for PHP 8.2 😂 
 @ddc3da8f 

To each their own, you write in whatever you enjoy...

All I know is I dont mind running a php web app, they are easy enough to use for a system admin for a service...

But I will never ever start a project in php and would avoid programming the language if I ever could despite understanding the language.

@90991173 
 @b05df304 @90991173

and that's correct way to do it ❤️

I plan to rewrite my CMS to Golang one day, but for prototyping it's not well suited 
 @b05df304 @90991173 

my Hetzner server has 246 days uptime

we had over 300 days as a common uptime on OpenBSD in the 90s