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
@fredbrooker @phpstan @PHPCSFixer or just go with some another language ;-)
Of the ones you listed the only acceptabke ones are:
Ruby
Python
C++
NodeJs
Rusr
Golang
Java
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
@fredbrooker @janantos @ondrej
No shortage of thrm in this business for sure.
@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.
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
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 @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.
I was sticking to the list fred used
@fredbrooker @freemo I was referring to using Kotlin in Backend side
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.
@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.
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)
@freemo @fredbrooker and we are back to Erlang/OTP and distributed Mnesia, never understood how someone can name data storage system like this :-)
5+ nines sla refer to very high availibility servers.
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.
@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
@freemo @janantos
for Web Servers? shit no 😂