if you want to learn PHP, the best way to do is 1) install phpstan and phpcs 2) analyze your code and bump the level up to 9

@phpstan @PHPCSFixer

#PHP #code #programming #ProgrammingEducation

@janantos

which one?

ASP.NET 😂
Ruby 😳
Python 😵
C++ 😶
Nodejs 😂😂😂
Rust 😎🥃
Golang 😎🍸
Java 🐢

Follow

@fredbrooker

Of the ones you listed the only acceptabke ones are:

Ruby
Python
C++
NodeJs
Rusr
Golang
Java

@janantos

@fredbrooker

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

@janantos

@freemo @janantos

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

@freemo @janantos

BTW our famous Czech @ondrej maintains PHP PPA for Debian and Ubuntu

@freemo @janantos @ondrej

also KNOT DNS created by Czech NIC is used by Cloudflare

Czechs everywhere 😜😎

@freemo @janantos @ondrej

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...

@fredbrooker @freemo @ondrej yep Jaroslav Heyrovský received Nobel Price for polarography and electrochemistry.

@fredbrooker @freemo well I have seen and worked in environment where historically was app written in PHP/Laravel serving higher millions daily and there have been a lot of issues with it. Horizontally scale this setup was virtually pain even if the app have been reasonably designed to do so.

@freemo @janantos

anybody who tried nodejs knows it's a hell

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

@fredbrooker

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

@janantos

@freemo @janantos

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

@fredbrooker @janantos

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.

@freemo @janantos

the only fine thing about Python is their beer session Pyvo

@freemo @fredbrooker 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.

@janantos @freemo

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

@janantos

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.

@fredbrooker

@freemo @fredbrooker 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.

@janantos @freemo

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

(Sodium encrypted cookie for Auth)

@janantos @freemo

well, Redis sessions will do

when Redis crashes, the whole system crashes

🤔😳

@fredbrooker

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)

@janantos

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

@janantos @freemo

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

@janantos @freemo

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

@janantos @freemo

authentication should be baked into Auth cookie, encrypted, protected

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

@freemo @janantos

high availability hell 😂

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

@freemo @janantos

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

1. Correct addition and subtraction of 1.
2. Cache management.

@fredbrooker

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.

@janantos

@freemo @janantos

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

@freemo @janantos

my Hetzner server has 246 days uptime

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

@fredbrooker @freemo 5 nines means 99.999% in human words this translate to
▪ Daily: 0.86s
▪ Weekly: 6s
▪ Monthly: 26s
▪ Quarterly: 1m 18s
Yearly: 5m 13s

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.