Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
shikck200
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
31.
▲
by
shikck200
2y ago
Why is the only PHP defence i hear always the same "use a framework!". I did those for decades, and they always end up sucking. Either you need to hack around them, they have shitty defaults and finally they are abandoned and bitr
32.
▲
by
shikck200
2y ago
Last time i looked PHP still had no generics, and the "typesystem" is mostly a joke. All the builtin functions still have no namespaces, and no forced types. PHP still coerces strings to ints and vice versa. PHP still has serious
33.
▲
by
shikck200
2y ago
Real numbers is hard to measure with PHP. This is because of the weird world of CMS systems (like wordpress). From all PHP code out there WordPress is most likely taking 80% of all the online deployments. So is it really PHP anymore? Its ju
34.
▲
by
shikck200
2y ago
Indeed. Ocaml is GC'd, and that makes the implementation different. However, the question was about compile times, and i dare to say Ocaml is one if the fastest ones out there, even tho it has an rich and expressive typesystem. The con
35.
▲
by
shikck200
2y ago
Ocaml
36.
▲
by
shikck200
2y ago
Some issues with pagination. I would recommend a non limit offset combo. Right now i get an error: "You tried to access /world/" when manually change the offset.
37.
▲
by
shikck200
2y ago
My first impression was the same. Mostly from the screenshots, each one had multiple places with an "emacs" text element. If this is not bound to emacs, what the hell is the emacs thing doing there?
38.
▲
by
shikck200
2y ago
The author clearly does not weigh in on the "whys" some things work in Go like they do. So, adding an extra struct field results in the base value, and by design this should be used as a base default. The go proverb make base va
39.
▲
by
shikck200
2y ago
That was a ballpark estimation, and while pure req/sec is usually irrelevant, it still comes in when the load starts to increase and you need to squeeze every last drop of perf. PHP usually is doing poorly, even with its "cache&qu
40.
▲
by
shikck200
2y ago
Its obvious that this has been possible before. It always was bad practice to do so, no matter of the language. I for see people starting returning `$this` and having these really complex chains of getters. Its going to turn into even more
41.
▲
by
shikck200
2y ago
I really dont want to access a property and have it do any sort of magic behind the scenes. This is just bad. Now a property lookup could do some IO, or even throw an exception. PHP should not aim to please the framework of the month, but i
42.
▲
by
shikck200
2y ago
Seems like that requires some sort of ad-hoc PHP extension. These are not in the standard PHP distribution? I would not want to rely on some random PHP extension that maintained by a single guy for anything production grade. Compare that to
43.
▲
by
shikck200
2y ago
Does anyone really FTP files like its 2003? Even in PHP you deploy with some sort of tool, like docker etc. The reload page thing is pretty much solved in all languages with a watcher. entr is a universal one, thats written in C and fast as
44.
▲
by
shikck200
2y ago
Looks like PHP is going even further towards Java. I really loath getters/setters with passion. I really wish PHP instead focused on getting some sort of concurrency builtin and proper unicode string literals. That should be the main f
45.
▲
by
shikck200
2y ago
See my above comment for a semi detailed version of how we do things.
46.
▲
by
shikck200
2y ago
We started small. And prototyped with just a single feature. Basically we generate code in our src folder under a reserved namespace, and other PHP code can then use that code with imports. As we grow, we might want to split this into separ
47.
▲
by
shikck200
2y ago
We actually target a HUGE legacy PHP codebase (its over 16 years old, with over 1M LOC) with Haxe. I would not EVER write vanilla PHP for anything else than a toy website, because there is no amount of testing that makes it stable enough. W