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 🐢

@fredbrooker

Of the ones you listed the only acceptabke ones are:

Ruby
Python
C++
NodeJs
Rusr
Golang
Java

@janantos

@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

Follow

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

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.