Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mrkeen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
271.
▲
by
mrkeen
7mo ago
> First, the null pointer is essentially inevitable if you want to model the world, which has references (things containing denotations of other things). I took major exception to this. The real world doesn't have non-things, and r
272.
▲
by
mrkeen
7mo ago
The benefit of values over classes is that they do not hide machinery. If you x.getY(), is that a member access, a computed value, or a network fetch? Will it lazy-instantiate a log4j singleton and start spamming my IDE with red text?
273.
▲
by
mrkeen
7mo ago
> just have the take! function return an optional map A map of what ?
274.
▲
by
mrkeen
7mo ago
Because people like TFA pay them not to. It doesn't matter how much you hope Apple changes course - you vote with your wallet.
275.
▲
by
mrkeen
8mo ago
Yep, JavaScript got the bad version from Java too! https://news.ycombinator.com/item?id=42816135
276.
▲
by
mrkeen
8mo ago
I read the article. Parent's comment about automation is spot on. TFA didn't describe any GUI interaction in detail, or even suggest that there was a way to achieve these goals without needing a meatbag to physically interact wi
277.
▲
by
mrkeen
8mo ago
It's too much of a stretch to call null an escape hatch, or to pretend that code reviews will somehow strip it out. The OpenJDK HashMap returns null from get(), put() and remove(), among others. Is this just because it hasn't bee
278.
▲
by
mrkeen
8mo ago
Just as bad if it's human. No information has been shared. The writer has turned idle wondering into prose: > Once threads actually run concurrently, libraries (which?) that never needed locking (contradiction?) could (will they o
279.
▲
by
mrkeen
8mo ago
Property appreciates over time. It's a cheat-code for more money, not a wasteful expense.
280.
▲
by
mrkeen
8mo ago
It made no reference to the 'shared' in 'shared state'. No mention of asynchrony, multithreading, or the race condition that TFA encountered.
281.
▲
by
mrkeen
8mo ago
This is one of those cases where software transactional memory really shines. You can often take the naive solution and it will be the correct one. Your code will looks like your intent. TFA's first attempt: async def drain_reques
282.
▲
by
mrkeen
8mo ago
It's the definition of simple that's the problem. For any definition of simplicity you might have, someone has an equal and opposite definition. Take these two alternatives: class UserService { PostgresDatabase db; }
283.
▲
by
mrkeen
8mo ago
One more opinion piece uselessly recommending "simplicity" with no code samples or concrete takeaways. > It also shows up in design reviews. An engineer proposes a clean, simple approach and gets hit with “shouldn’t we future-p
284.
▲
by
mrkeen
8mo ago
And God help you if you think that a PM will ever learn that software is a system that you run, not an artifact to be completed and forgotten about. If you're operating 5 buggy services, the PM will opt for 6 buggy services over 5 work
285.
▲
by
mrkeen
8mo ago
> The future we are barreling towards is one where the PM is the most important role in a company Our productivity went up when our PM was absent. The impact was significant enough to be recorded and discussed at the following retro. A
286.
▲
by
mrkeen
8mo ago
The regime won't be touched by this. Israel will bomb a few hospitals and universities, and the US will park some battleships nearby and unfurl a "mission accomplished" banner. After a few fake declarations of ceasefire, the
287.
▲
by
mrkeen
8mo ago
I hadn't heard of openrouter.ai. I have heard of OpenAI. Is this like Windows and MacOS not being in the top 10 of distrowatch.com?
288.
▲
by
mrkeen
8mo ago
Was the original blog post wrong?
289.
▲
by
mrkeen
8mo ago
> They help define and navigate the representation of composite things as opposed to just having dynamic nested maps of arbitrary strings. What would you say to someone who thinks that nested maps of arbitrary strings have maximum compat
290.
▲
by
mrkeen
8mo ago
I'd wager a fair share of grads don't yet understand:/ > The transaction didn't help. Postgres's default isolation level is READ COMMITTED — each statement sees all data committed before that statement started.
291.
▲
by
mrkeen
8mo ago
This paragraph rubbed me the wrong way too. > work that could be done efficiently by the RDBMS the RDBMS? You're only using one? Why not spread the work out a little? Even if you think you write all your queries efficiently, no
292.
▲
by
mrkeen
8mo ago
What concrete interests would you like such a union to protect? Should a strike happen if devs are told to use Claude, or should a strike happen if devs aren't given access to Claude?
293.
▲
by
mrkeen
8mo ago
> What were you expecting to find? > functions like this for example std::process::exit
294.
▲
by
mrkeen
8mo ago
Suppose you're receiving bytes representing a User at the edge of your system. If you put json bytes into your parser and get back a User, then put your User through validation, that means you know there are both 'valid' Use
295.
▲
by
mrkeen
9mo ago
If you spend your life talking about bool having two values, and then need to act as if it has three or 256 values or whatever, that's where the weirdness lives. In C, true doesn't necessarily equal true. In Java (myBool != TRUE)
296.
▲
by
mrkeen
9mo ago
My Claude instance informs me of this. There's a banner up the top telling me to invoke "/extra-usage". When I do so, it tells me it's an unknown skill, and keeps going with the usual "let me know if I can hel
297.
▲
by
mrkeen
9mo ago
I lean on types heavily as my vehicle for change. My UserService doesn't know that it's talking to a UserDB (ironically I learned this from Uncle Bob). All UserService knows is it has a dependency which, if passed a UserId , wi
298.
▲
by
mrkeen
9mo ago
I was recently switched from Java to C# at work. Initially I was impressed by the null detection. Then I found out about defaults. Way worse than null. C and Go can demand a bit of ceremony with manual error checks. Things get bad if you
299.
▲
by
mrkeen
9mo ago
I can't make a Mappable interface, and have my classes implement map(f). Because map(f) will necessarily return Mappable, not my class itself. So no method chaining for me. Also null. Yeah I know it's contentious. People don&#
300.
▲
by
mrkeen
9mo ago
TIL about Monofunctor. Pretty nifty. It's for cases where your type is a container of something (as opposed to anything ). I.E. you can .map (or .Select if you're .NET-inclined) over the Chars in a String, but not some other
More ›