Live data from Hacker News

Viewing profile — Dan42

Dan42

HN member
Joined
Tue, Aug 19, 2008, 10:13 PM UTC
HN karma
148
Public activity
45 items

About Dan42

No profile information was provided.

Recent public activity

  1. comment
    Comment #46907843

    That article was clearly written by AI, based on data from 20 years ago.

  2. comment
    Comment #46398978

    Yeah, it doesn't work with keyword arguments. In the playground I tried a simple keyword with default value, and it converted to the wrong thing, as if "someone" was a valid type. …

  3. comment
    Comment #45626828

    This is really cute and heartwarming. Back in the day, a lot of people including me reported feeling more comfortable in Ruby after one week than all their other languages with yea…

  4. comment
    Comment #45549465

    Wow. You are me.

  5. comment
    Comment #45372874

    I see posts like this one pop up from time to time. I love it. Based on my 30y of exp that's also the workflow I converged on. It seems to me like every experienced and skilled dev…

  6. comment
    Comment #45365565

    Actually you're right, it is an implementation detail. The original isn’t mistaken, it’s just showing the lo-to-hi partitioning pass rather than the from-both-ends version I had in…

  7. comment
    Comment #45365141

    I'm pretty sure the swapping is a fundamental part of the quicksort algorithm, not a mere implementation detail. That's the reason quicksort is an in-place algorithm.

  8. comment
    Comment #45364120

    This is cool, but missing a LOT of details between steps 4 and 5, which is the meat of the quicksort. Actually, the first and last elements of step 4 would be swapped, which means …

  9. comment
    Comment #45169724

    This article really resonated with me. I've been trying to teach this way of thinking to juniors, but with mixed results. They tend to just whack at their code until it stops crash…

  10. comment
    Comment #45020602

    Reading this, I couldn't help but think these guys really know where their towel is. The opposite of enshittification?

  11. comment
    Comment #44700560

    Beautiful. I had that exact computer model 30 years ago.

  12. comment
    Comment #44227401

    > Don't we have decades of research about the improvements in productivity and correctness brought by static type checking? Yes, we have decades of such research, and the aggregate…

  13. comment
    Comment #42635180

    > This is incorrect, according to this comment from the Firefox implementer who delayed the feature. He intended the roll back to be temporary. [0] I see no such thing in the link …

  14. comment
    Comment #42629856

    No, please, just no. The idea of using PUT, DELETE, or PATCH here is entirely misguided. Maybe it was a good idea, but history has gone in a different direction so now it's irrelev…

  15. comment
    Comment #42279270

    grep has a --line-buffered option that does the job fine in most cases. Just set in your aliases grep='grep --line-buffered', that way you get the correct behavior when you tail lo…

  16. comment
    Comment #42002966

    I'm 47 and I also have never heard this in my life. So I don't think it's just a matter of younger generations.

  17. comment
    Comment #40105857

    An order of magnitude is a bit much. I'd say quick and dirty gets you 3 shots, while slow and beautiful gets you 1. And if you succeed, it means the result is dirty/ugly code that …

  18. comment
    Comment #39217631

    It's the first time I hear "Mikado" but it's pretty much the commit policy I established for work, and we call it micro-commits. http://lucasr.org/2011/01/29/micro-commits/ https:/…

  19. comment
    Comment #38824554

    I can't believe such satirical gold is getting downvoted.

  20. comment
    Comment #38799216

    Yep, this is pretty much what I've settled on myself. GET for read, POST for write. And a url made of a slash-terminated "resource" followed by an "action" verb. user 123 + edit = …

  21. comment
    Comment #37615476

    Thank you for saying that, it save me the trouble of writing it. This apples-to-oranges comparison (strawman? motivated reasoning?) unfortunately makes me mistrust this entire arti…

  22. comment
    Comment #37213341

    Fully agree. When the user selects a file via the file selection dialog, that automatically implies s/he has given permission to read that file. So the Flatpak libportal approach h…

  23. comment
    Comment #37101492

    I wonder what would be the performance characteristics of using the top 2 bits to mark 63-bit integers. So 00xxx are positive integers and 11xxx are negative integers. That way all…

  24. comment
    Comment #36395312

    Oh, that's very close. And a Steve Yegge blog post fits the era I'm thinking about. I think what I read was less rambling, with a narrower topic, but it was very very close to this…

  25. comment
    Comment #36395258

    That's interesting. A bit all over the place, but that's expected of C2 :-)