Live data from Hacker News

Viewing profile — hynek

hynek

HN member
Joined
Thu, Mar 26, 2009, 9:17 AM UTC
HN karma
819
Public activity
175 items

About hynek

I’m a software engineer at an ISP and spend too much time on FOSS.

aspe:keyoxide.org:5KLULPTEPFVHZUBX2QRS4XM2M4

Recent public activity

  1. comment
    Comment #44822016

    The fancy word for that is Vertical Slice Architecture btw and it's the only way for complex apps that doesn't end in chaos.

  2. comment
    Comment #44308511

    Yes, because it's showing how the simplest-possible mock already gets ugly if you don't follow the advice. Making the example more complicated would dilute the point it's making. T…

  3. comment
    Comment #44308334

    > I’m not sure this is good advice. I prefer to test as much of the stack as possible. The most common mistake I see these days is people testing too much in isolation, which leads…

  4. comment
    Comment #44094542

    Pretty good, except it’s not Bismarck but Fontane. ;) Also, I’m comparing myself to CGP Grey, not whatever it’s transcribed. :D

  5. comment
    Comment #44092078

    ha, I wish I saw that while working on that talk! adding it to the resources!

  6. comment
    Comment #44091953

    Shouldn't some AI be able to clean that up for you? This seems something LLMs should be well-suited for. --- FWIW, I'm the speaker and let me be honest with you: I'm super unmotiva…

  7. comment
    Comment #44090848

    that's a reference to my attrs library which is what data classes are based on. It originally used @attr.s class C: x = attr.ib() as its main api (with `attr.attrs` and `attr.attri…

  8. comment
    Comment #41457953

    Both PDM and Poetry are a) 90% solutions that only cover what their respective authors need (and this is indeed what Python is drowning in) and b) written in Python which makes the…

  9. comment
    Comment #41447881

    That is inaccurate. Both Rye and uv have the same goals and support virtualenvs. uv is meant to supplant Rye eventually (it mostly already has: see also this post by the creator of…

  10. comment
    Comment #41447840

    It’s much, much faster both in creating virtualenvs and installing the dependencies. And if you use lock/sync, you get a cross-platform lockfile that you only got with PDM and Poet…

  11. comment
    Comment #39466201

    The burpee exercise is named after the US physiologist Royal Huddleston Burpee Sr. I know y’all want to fact-check this – I sure did when I heard it the first time: https://en.wiki…

  12. comment
    Comment #36614747

    I guess PEP 703 has to be auto-accepted now. I don't make the rules.

  13. comment
    Comment #34337286

    Conceptually, Cython is mainly for accelerating Python code, and can _also_ access C code. Meanwhile CFFI is specifically for calling C code and nothing else. I recommend the video…

  14. comment
    Comment #34336507

    Right, but that would take some really deep patching of code I don't control, just so it works in development. If this were a production issue, I would probably fork the driver and…

  15. comment
    Comment #34336295

    You mean at the Python driver level? Unfortunately, that doesn't work with ctypes. I've tried it by adding the DYLD_LIBRARY_PATH to os.environ before calling ctypes.LibraryLoader.L…

  16. comment
    Comment #34336143

    That doesn't help you if there's a surprise call to /bin/sh or /bin/bash somewhere in the call stack. Keep reading, I know it's long but I tried to make it comprehensive. :)

  17. comment
    Comment #34336127

    They did (it's me :)) and unfortunately in this case rpath can't be used, because that particular Python driver uses ctypes ( https://docs.python.org/3/library/ctypes.html ) to ope…

  18. comment
    Comment #32908830

    Heh sorry I put the date there in the draft phase because I planned for publishing on Tuesday. It got done earlier and I pushed it out in a bit of a hurry because I was leaving and…

  19. comment
    Comment #31841511

    I’m aware of all the problems that e2e tests have, and yet I find it more useful to have 1 test that adds something to a basket and 1 test that removes it than 100 unit tests witho…

  20. comment
    Comment #31841360

    No, it doesn’t pass over that. It specifically points out that it’s a simplistic example for illustration that probably wouldn’t be worth it. And yet the effects are visible and so…

  21. comment
    Comment #31839131

    I’m sorry I’ve apparently misunderstood your point. I guess I’ve never seen too brass imparting more than a big picture “we’re writing tests now”.

  22. comment
    Comment #31838827

    I know you’re being facetious but: the lesson is rather that mocking generic third-party APIs is so easy, that you can end up in mocking hell real fast. And that you should take th…

  23. comment
    Comment #31838776

    One of the reasons I wrote the linked article is that the wisdom around is quite fragmented and one (there’s always more than one) frustrating answer is good design makes software …

  24. comment
    Comment #31838692

    Cue Mock Hell https://www.youtube.com/watch?v=CdKaZ7boiZ4 :)

  25. comment
    Comment #31838436

    I can assure you that it is possible and meaningful to have full code coverage in certain contexts (for instance for important projects that get only rarely touched) and doesn’t in…