Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
royallthefourth
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
royallthefourth
3y ago
Oh, that'd just be a NewThing() constructor. The ThingFactory() can probably take an argument specifying which implementation you need. It's almost always just a small function holding a conditional chain that you don't want
2.
▲
by
royallthefourth
9y ago
> In fact, a few optimizations only work if you're using scalar types for parameters This is the first time PHP has used typehints for optimization, isn't it? It was all safety checks prior to now. Looking forward to more of th
3.
▲
by
royallthefourth
10y ago
The debugging slows the code down a ton in my experience, and it also prevents futures from running in parallel. Trying out the futures code from the guide, failing to disable debugging slows down the final Mandelbrot example by something l