4 ms·
I love PHP. I really do. Everyone knows about its flaws in syntax, function names, argument order, and so on, but as someone who learned PHP and used only it fo
by pests 11y ago
I love PHP. I really do. Everyone knows about its flaws in syntax, function names, argument order, and so on, but as someone who learned PHP and used only it for years certain paradigms and programming styles it uses really messed me (and I think others) up when switching languages:
- arrays are hashmaps/multi-dimensional aka one-size fits all (no need for more complicated data structures)
- everything is single-request and single-process (no lifetime management or persistent state, lower need to worry about memory leaks, no threads or processes, no real timers or async)
- copy on write