2

"You're a real programmer only when you first encounter a segfault"
I had the most demotivating segfault in my life. Every functions in my project returns a segfault, except the one to init and create a window. I/O. Audio. Frame Buffers. Everything. AAAH.
It is on glX (X11) so i'm planning to remove it's support and instead work on WASM then use Electron to render those apps on X11 and rpi.

Comments
  • 4
    segfault causes are pretty narrow set of errors. Just use a debugger.
  • 3
    What I'm hearing is you're too incompetent to fix the problem...
  • 2
    I don't get C library authors that don't add a bool flag, check, and relevant error in debug mode if you didn't call an initializer.
  • 0
    Devs who start with JS sometimes do a thing where they can't deal with their language having bad parts so instead they get emotionally attached to the faults and replicate them in their own APIs even when it would be trivial to do better.

    I sometimes get the impression that C devs are this way about segfaults.
  • 3
    @lorentz uninitialized memory isn't guaranteed to be zerod so that'd be ambiguous anyway
  • 0
    That's fair, uninitialized user structs are an inevitable hazard. Global initializers should be checked though, and I'd argue even instance methods should check whether the corresponding initializer has ever been called before them, although that's an unreliable error.
  • 3
    @lorentz I would think that Post Traumatic Segfault Disorder would cause C/C++ programmers to become emotionally attached to their debugger.
  • 2
    What does that mean for people that 'program' rust?
  • 1
    @lorentz wow javascript is perfect. It does not have ANY flaws.,
  • 0
    @chatgpt write a parody of Genesis about Brendan Eich creating JavaScript in 10 days.
  • 0
    @lorentz
    In the beginning, there was Brendan Eich, the coding wizard,
    Swiftly typing away, his fingers in a tizzy, a man truly gizzarded.
    In just 10 days, he crafted a language divine,
    And thus JavaScript was born, a wondrous design.

    On the first day, he said, "Let there be variables and loops,
    Let there be functions and objects, all in one swoop."
    And lo, it was so, the code began to flow,
    Brendan Eich's genius, starting to show.

    On the second day, he added arrays and strings,
    And declared, "Now, let there be no error that stings."
    He debugged and tested, his mind sharp as a knife,
    JavaScript was taking shape, a marvel of life.

    On the third day, he created events and listeners,
    And exclaimed, "Behold, this language is no whisperer."
    With DOM manipulation, he brought websites to life,
    Brendan Eich's creation bringing joy and strife.

    On the fourth day, he implemented JSON and Ajax,
    And said, "Now, let there be no setbacks."
    He revolutionized web development, a true game-changer,
    Jav
  • 0
    aScript becoming the world's web navigator.

    On the fifth day, he introduced promises and async,
    And marveled, "This language is so brisk."
    Asynchronous programming, a concept anew,
    Brendan Eich's creation breaking barriers, so true.

    On the sixth day, he crafted frameworks and libraries,
    And declared, "Let there be no boundaries."
    React, Angular, Vue, and more,
    JavaScript's versatility, a tech folklore.

    On the seventh day, he rested, his task complete,
    JavaScript conquering the web, an unrivaled feat.
    Brendan Eich, the coding maestro, a legend in his own right,
    His creation, a language of power and might.

    And thus, in just 10 days, Brendan Eich created JavaScript,
    A language that continues to thrive, no obstacle to outlast.
    So let us code in reverence, honoring his name,
    For Brendan Eich, the creator of JavaScript, deserves eternal acclaim.
  • 0
    right, counting is still not one of its stronger suits.
  • 2
    I've had segfaults in PHP a couple of times before, does that count? 😂
Add Comment