7
galena
13d

Spending more time debugging a language than actually writing code

Comments
  • 3
    it's the javascript/typescript-way.
  • 0
    I spent 4 hours rewriting how I represent types in rust yesterday
  • 0
    @tosensei debugging in JavaScript was very quick for me actually

    finding the bug is "hard", but fixing it is trivial

    finding the bug is like 2 minutes max if you've used the language any degree of time though
    I mean, I guess before they added promises which don't have stack traces
    or maybe some retard just wrote async code incorrect and then you have to rewrite the whole thing correctly
  • 1
    I ran into a node optimization flaw that screwed up my code.

    `(a || b).foo()` caused the runtime to replace all references of `a` earlier in the function with a shallow copy missing its inheritance. Using `a ??= b` and `a.foo()` instead avoided this. Very odd, and took awhile to troubleshoot.
  • 0
    @Root I have never ran into something so odd 👀
  • 0
    @jestdotty Not my first run-in with compilers, unfortunately. Most were with MSVC++
Add Comment