Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mrkeen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
511.
▲
by
mrkeen
1y ago
Similar experience with windsurf. I had a class of 5 or so test methods - ABCDE. I asked it to fix C, so it started typing out B token-by-token underneath C, such that my source file was now ABCBDE. I don't think I'm smart enough
512.
▲
by
mrkeen
1y ago
As empty as "thoughts & prayers". The system is either working as intended or it should be changed. The current system is that murder (among private civilians) is already illegal. You walk around with your gun, kill whomever
513.
▲
by
mrkeen
1y ago
Now we can type out the same semantics, and remain clueless about what it means, but with a new obfuscated syntax which stops us from asking about the semantics.
514.
▲
by
mrkeen
1y ago
Or they've seen enough good languages to push Java down.
515.
▲
by
mrkeen
1y ago
In this case that’s the >>= from Maybe.Monad. As long as you satisfy the signature, it’s happy . do has nothing to do with Monads! Who lied to you? Could have been a stronger point by using a non-monadic >>=. I've b
516.
▲
by
mrkeen
1y ago
It was a better model for reasoning about concurrency, i.e. evaluate two expressions , rather than where virtual threads is headed, i.e. "you don't have to learn anything" - just spawn two threads , keep writing sequences o
517.
▲
by
mrkeen
1y ago
I skip reading anything "written" by my analyst and get on with the work. If I have a question I can just ask ChatGPT, perplexity and Gemini.
518.
▲
by
mrkeen
1y ago
It's an interesting way to divide up a country's labour. 50% do child rearing, and the other 50% do literally all other professions. If you did have such a large cohort engaged in that activity, there should probably be some kind
519.
▲
by
mrkeen
1y ago
CAP applies here. If you ask your cache for a value, it could choose to reply now , with the information that it has - favouring A. Or it could wait and hope for more accurate information to return to you later, favouring C. 'Cache&#x
520.
▲
by
mrkeen
1y ago
So hypothetically , if you could add new methods to an existing class, it would solve the problem?
521.
▲
by
mrkeen
1y ago
The only thing missing here is separation of files. Assuming the whole Stringify section goes into a new file (likewise with FunctionCall) then I agree that this solves the expression problem.
522.
▲
by
mrkeen
1y ago
I was also confused by the claim that Clojure solves it and Haskell does not. > run into annoying boilerplate related to the orphan rule I always forget this, but it's not an orphan if you put the instance in the same module as the
523.
▲
by
mrkeen
1y ago
I use effects to make guarantees about what the code will and won't do. When Option was retrofitted onto Java, the NPEs didn't disappear. We got Options that could be null, but more importantly, devs (and the standard library) co
524.
▲
by
mrkeen
1y ago
> Solving the “what color is your function” problem. Eh. I currently use monads for my effects, and am open to the idea of language-based effects. But this isn't a solution to the colour problem - it is the colour problem. The c
525.
▲
by
mrkeen
1y ago
Doing it this way maxes coupling and minimises cohesion. Your language will have a number of phases/passes to carry out. Let's say LambdaLifting, TypeChecking and Inlining. All the code for lambda lifting belongs in one module, a
526.
▲
by
mrkeen
1y ago
The author didn't see fit to mention that you just flip the arrows. Classes/Structs know about their children. Relations know about their parents. If you want crazier m*n relationships you use an association table. Did the author
527.
▲
by
mrkeen
1y ago
It's a little different. You pay money, have vendor lock-in, get one answer, and there's no upvotes/downvotes/accepted-answers/moderation or clarification.
528.
▲
by
mrkeen
1y ago
> For example COVID emergencies were kept in effect long after it was appropriate. COVID didn't get the memo. Both Hazelo and Abuhl, who were election observers, challenged a mask mandate in the ballot counting room imposed by I
529.
▲
by
mrkeen
1y ago
I don't disagree, but it's useless because it's not instructive. You can agree with it or dismiss it. You can tell yourself you're doing it when you're not. It doesn't say how to do anything. Compare with &
530.
▲
by
mrkeen
1y ago
> Peter Marks was the prior head of CBER since circa 2012. Peter Marks was dismissed by RFK over vaccines. > Nothing about the position has changed since he left. I can't dispute this, so what conclusion is left other than Prasad
531.
▲
by
mrkeen
1y ago
I grew up with a ranked voting system. It has effectively been a two party system regardless. I don't think people know how it works and just treat it like first past the post. Proportionate representation seems like it's probab
532.
▲
by
mrkeen
1y ago
This sort of stuff: https://justinas.org/the-bizarre-world-of-v
533.
▲
by
mrkeen
1y ago
> Am I missing something I need, but just ignorant, or is that just needless complexity that a lot of people fall for? Ignorance plays a big role. If you don't perceive, e.g. a race condition happening, then it's much simpler
534.
▲
by
mrkeen
1y ago
Managers only have one phrase in their vocabulary: "Get this one feature out as quickly as possible." Everything else is just making devs 'heard' (so they can get back to feature). There have been a few variations over t
535.
▲
by
mrkeen
1y ago
Using AWS was supposed the way to avoid the cost of an ops team. Now every developer also has to be DevOps, learning docker, kubernetes and CI systems instead of just focusing on development. Also we all still have ops teams.
536.
▲
by
mrkeen
1y ago
> Also it seems that it requires locking? STM requires locking in the same way that GC requires malloc. It gets it right so that the programmer doesn't mess it up.
537.
▲
by
mrkeen
1y ago
> Because of those "inaccessible" rules, we can never have a readwrite reference and a readonly reference to an object at the same time. I can't not see this as a good thing. It's almost at the level of "the onl
538.
▲
by
mrkeen
1y ago
A CRUD architecture with proper ACID is an OK contender against other possible architectures. Personally I always go for event-sourcing (a.k.a. WAL per the article's title). But a CRUD that doesn't do ACID properly is crap. And
539.
▲
by
mrkeen
1y ago
> That way you can send as many retries as you like, as long as they’ve all got the same idempotency key - the operation will only be performed once. I worked in an org where idempotency meant: if it threw an exception this time, it need
540.
▲
by
mrkeen
1y ago
> The typical example for ACID DBs are bank transactions; imagine a bank accidentally undoing a transaction upon server crash That's why they don't try to do it that way! But it's still an informative way to think about i
More ›