Live data from Hacker News

Viewing profile — acprog42

acprog42

HN member
Joined
Mon, Feb 18, 2019, 8:44 AM UTC
HN karma
13
Public activity
8 items

About acprog42

No profile information was provided.

Recent public activity

  1. comment
    Comment #19818333

    But killing an ant with a nuclear bomb is moar funnier! Don't stop the fun!

  2. comment
    Comment #19191546

    Which brings us back full circle to the point I was originally trying to convey: if a coding standard forces you to write more convoluted and harder-to-read code just to work aroun…

  3. comment
    Comment #19190166

    Yeah, seems like it actually allows my second example which is good! :)

  4. comment
    Comment #19190137

    Sure, that would pass the `grep -r goto ` test, but is just a more convoluted way of doing the same thing.

  5. comment
    Comment #19189969

    > Most Misra software is embedded without dynamic allocation though True, but I've seen enough MISRA code bases plagued with the "Christmas tree" layout even if dynamic memory allo…

  6. comment
    Comment #19189955

    True, it would be kind of analogue to try/except/finally if you do that.

  7. comment
    Comment #19189485

    Too little karma to edit and fix indentation. Anyway given the above functions, think about adding support for only returning the buffer if the file contains a specific word. While…

  8. comment
    Comment #19189442

    > You can have 100% MISRA conformant spaghetti. IMHO some of MISRA rules lead directly to hard to read/maintain code. Consider a function that: 1. opens a file 2. allocates enough …