Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
9dev
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
36 ms
·
151.
▲
by
9dev
2mo ago
These "very new things" have, in part, been available for more than 6 years now. Not to speak of all the other PHP features WordPress chose to forgo, like PDO with prepared statements (which completely eliminates SQL injections),
152.
▲
by
9dev
2mo ago
The, uh, WordPress Foundation[0]? [0]: https://wordpressfoundation.org
153.
▲
by
9dev
2mo ago
That might even be a beneficial move, creating (well, actual, not artificial) scarcity works well to draw interest usually. Curious how this one plays out.
154.
▲
by
9dev
2mo ago
...and then the American companies cried Foul! Unfair play! You've got this wrong, see, it was us who were supposed to profit off of the public, not the other way around!
155.
▲
by
9dev
2mo ago
You’re right, of course. Still I think the point stands that PHP has very powerful runtime metaprogramming features that you can build amazing abstractions on top of.
156.
▲
by
9dev
2mo ago
Shame I forgot to add named arguments above, eliminating this problem too: array_map(callback: fn($i) => $i * 2, array: [10])
157.
▲
by
9dev
2mo ago
So, you move into a new flat. In the living room, there's five sockets on the west side, but only one on the east side, and that's planned for a lamp already. Does it make more sense to a) put up your TV and gaming console on
158.
▲
by
9dev
2mo ago
What they do is put lipstick on a pig! There is no need to "reduce" the risk of SQL injections when you can use a safe API that eliminates the entire error class. This is a solved problem for the rest of the world!
159.
▲
by
9dev
2mo ago
> Video streaming or game streaming both depend on close proximity to the end user That's a straw man for this discussion. Yes, there will be a need to place some DCs close to users, but most of them could be located closer to ene
160.
▲
by
9dev
2mo ago
Even just introducing emulation layers for the old parts and making the new parts opt-in would be better than just giving up and keep on going. Plugin authors can choose the new subsystem as they publish updates or new plugins and themes, a
161.
▲
by
9dev
2mo ago
Yeah; the common idea of dignity and self-respect is to replace the duct tape with proper engineering once you're successful though, instead of just taping ever more of it on top and pretending SQL injections aren't really a probl
162.
▲
by
9dev
2mo ago
Let me convince you! :-) There are match expressions and arrow functions: $slug = $title |> trim(...) |> (fn($str) => str_replace(' ', '-', $str)) |> (fn($str) => str_replace('.&
163.
▲
by
9dev
2mo ago
The WordPress codebase is a disgrace. PHP is a beautiful language by now, but they absolutely butcher it and refuse to do anything about that.
164.
▲
by
9dev
2mo ago
Well, in Germany at least - if the living space differs drastically, that is at least 10%, you can lower the rent accordingly and make a demand for a refund of the entire rent you overpaid since you moved in - and you probably should also m
165.
▲
by
9dev
2mo ago
And why not build data centers where the energy is?
166.
▲
by
9dev
2mo ago
Try watching a bit less Fox News and talk to real people sometimes. It helps.
167.
▲
by
9dev
2mo ago
…and define rules for the measurement taken, like no stairs, count areas below roof sloping or outside on balconies etc. with a lower factor, exclude shared areas and cellars/attics, and so on. Not measuring correctly, not publishing t
168.
▲
by
9dev
2mo ago
Right? Germany too. I wouldn’t even have thought this could be a problem…
169.
▲
by
9dev
2mo ago
That kind of emphasises the problem I was referring to; if I pick 200ms, will it stop before doing a proper optimisation because that would make it faster than that? Will it do something stupid to justify pushing from 195ms to >=200ms?
170.
▲
by
9dev
2mo ago
I'm way too afraid of a "paperclip problem"-style target overfitting to use it really; how could I even describe a goal so well it doesn't sacrifice other things that are important to me? Like, if my goal is to make an e
171.
▲
by
9dev
2mo ago
Eh… If I can bring prod down simply by sending CSV with a comma in a field to a prod endpoint, whoever has come up with the most naive CSV parser possible running in prod is responsible for the outage.
172.
▲
by
9dev
2mo ago
…and it's also entirely in character of you representing Microsoft to not reply to my comment :-)
173.
▲
by
9dev
2mo ago
The regulations and requirements are much stricter in Europe, especially around warranty, repairs, and support. There's no wiggling out of that if you sell devices around here.
174.
▲
by
9dev
2mo ago
I take that comic a bit personal, to be honest - I just returned from a two-month odyssey to find a way of offering our customers a simple way of connecting our MCP Server to their Copilot Chat. Digging through a mindboggling number of docu
175.
▲
by
9dev
2mo ago
Posting that here is one of the more promising ways of achieving that
176.
▲
by
9dev
2mo ago
Hah. I feel very much seen by both of these comments, much more than I’m confident to admit. Something I have been struggling with all my life is deciding whether I am flawed in some way, or the other party/the environment is - because
177.
▲
by
9dev
2mo ago
I absolutely despise that C convention if abbreviating absolutely every single thing as much as possible. Yeah yeah, that was necessary back in the day when memory was scarce and editors were awful, but come on those days were almost half
178.
▲
by
9dev
2mo ago
This notion of "the government" is the wrong premise. The US government is (supposed to be, I should say) an elaborate system of checks and balances to enable self-correction mechanisms. The Trump administration has turned that in
179.
▲
by
9dev
2mo ago
That's the malevolent version of it. The alternative might be, I also don't know this from the top of my head and could spend some time to google/ask Claude/read the documentation/familiarize myself with the concre
180.
▲
by
9dev
2mo ago
So why exactly is the department of justice in contempt of congress and a judge right now, refusing to release them? Why are the names of perpetrators in the files censored, while those of victims remained clear? Why has not a single person
More ›