Live data from Hacker News

Viewing profile — TheNewAndy

TheNewAndy

HN member
Joined
Tue, Aug 03, 2010, 12:29 PM UTC
HN karma
497
Public activity
198 items

About TheNewAndy

No profile information was provided.

Recent public activity

  1. comment
    Comment #47020865

    One obvious benefit for a header only library is that it suppresses the warning you get when a static function isn't used.

  2. comment
    Comment #46350311

    I wrote nearly all of https://apps.apple.com/us/app/two-birds-one-stone/id15396463... on a train without internet. It was about a half hour journey, and I found that in such a shor…

  3. comment
    Comment #44589805

    Not really a shell one liner, but ctrl+r (a readline command to do an incremental search backwards through history) is something that has been present on every shell I've used for …

  4. comment
    Comment #44412689

    Perhaps I am wrong, but the videos on this channel seem to have scripts that seem like they are very much AI written. I watched this video a week or so ago, and a few more on the c…

  5. comment
    Comment #43724797

    The game was 2d, and I just used the stuff in SDL_render.h for doing the graphics. SDL2 has input stuff built in, so that is easy. I didn't need networking for my game, so I didn't…

  6. comment
    Comment #43724241

    If you just want to write C and are ok linking to stuff that is in other languages, then I used SDL2 for my game which I wrote in C and is on the app store. It was a very pleasant …

  7. comment
    Comment #42845391

    If you believed the pointers didn't alias and they actually did then you replaced slow incorrect code with fast incorrect code

  8. comment
    Comment #42672192

    Thanks for the constructive example of the rust doc. I am not making things up when I say that the very first question I had about how to use this module, either is not answered, o…

  9. comment
    Comment #42671683

    "Never" is a big call. In this specific case, your tool requires a web browser (though I'm assuming that there is a non-web browser form of what is being sold here). Maybe you are …

  10. comment
    Comment #42671664

    That's an interesting assertion, but not one that matches the experience I've had. It is one of those things that sounds "obviously true", but in practice I've found that it doesn'…

  11. comment
    Comment #42671545

    Personally, I'm happy to just let a Sufficiently Advanced Compiler do link time optimizations to deal with that level of optimization and either take the hit, or make more things p…

  12. comment
    Comment #42671516

    This is probably something where it comes down to preference and familiarity. I would much prefer a simple text file for documentation that I can grep, open in my text editor, modi…

  13. comment
    Comment #42671465

    Right, but as soon as you have private stuff in your header file, that is leaking implementation details. Yes it is kind of true that these are compile time checked to make sure th…

  14. comment
    Comment #42671339

    You will be pleased to know that you are not the only one who does this. I previously went down the rabbit hole of fancy unit test frameworks, and after a while I realised that the…

  15. comment
    Comment #42671323

    That is less about header files, and more about how machine code works. If you want to have some abstract type where you don't let people know anything about the innards, but you d…

  16. comment
    Comment #42671205

    Header files are one of the things I miss the most about languages that aren't C. Having a very clear distinction between public and private, and interface and implementation is on…

  17. comment
    Comment #42105041

    The opal app will do what you want. It isn't exactly what you wanted, but it is certainly possible to do

  18. comment
    Comment #41857135

    I used to like having nice strings to go with my asserts and would often do something like: assert(condition && "explanation of assert"). Now I think that the whole point of an ass…

  19. comment
    Comment #41084547

    Volume controls also shouldn't just be a flat wideband gain - they should respect how we actually perceive sound so the timbre doesn't change as the level changes (when you turn th…

  20. comment
    Comment #41074327

    I have a pretty simple game on the iOS app store. It is simple enough that I have probably written it about three times. One of the times I tried to do everything the "apple happy …

  21. comment
    Comment #41043887

    How do European timezone rules bother you?

  22. comment
    Comment #40775095

    How does putting NFC in the tickets prevent this?

  23. comment
    Comment #40744280

    I would consider a proof to be a "repeatable argument". One you could show to someone and expect them to be convinced by it. I think it is a defensible viewpoint that a proof in co…

  24. comment
    Comment #40256406

    How does it solve the Byzantine generals problem?

  25. comment
    Comment #39784792

    The user of the build system defines boolean variables for any aspect of the build system that they think might be helpful. There are booleans for types of compiler flags (e.g. sho…