• @[email protected]
    link
    fedilink
    English
    1342 months ago

    All the debugging tools in the world doesn’t beat an excellent sense of intuition and putting that print statement exactly where it needs to be.

      • @[email protected]
        link
        fedilink
        381 month ago

        He works on Linux where he controls the whole stack down to the metal and I love that for him, but other people have to call library code, and them debug that if it doesn’t work as they thought it would.

          • Traister101
            link
            fedilink
            101 month ago

            Yep that’s why I refuse to use standard libraries. It just makes my code too complicated…

        • @[email protected]
          link
          fedilink
          51 month ago

          Right, the amount of times I’ve had to put breakpoints in Django/DRF code to figure out what’s causing that weird undocumented behavior is concerningly large

      • TheHarpyEagle
        link
        111 month ago

        Dude can pry my debugger from my cold, dead hands.

  • @[email protected]
    link
    fedilink
    492 months ago

    echo __LINE__ . "Moo\n";

    Honestly if you’re not including the LoC in your debug statement I don’t even fucking understand you.

    But yeah, senior devs know the power of breadcrumb debugging (because most of us were deeply scarred by gdb).

    • @[email protected]
      link
      fedilink
      582 months ago

      wait she’s getting roasted for it? I haven’t seen that. It just looks like people are making fun comparisons to me.

    • @[email protected]
      link
      fedilink
      10
      edit-2
      2 months ago

      Anybody who knows about this: how do those gizmos help? E.g. earplugs are useful without performance-enhancing.

      • @[email protected]
        link
        fedilink
        English
        262 months ago

        Once you’re at this level, you’re looking to get improvements of a fraction of a percentage. I don’t know the specifics cause I’m not a pro shooter despite being American, but from other high level skill people I know, you hit a point where improvements basically plateau and you have to resort to increasingly niche products to obtain non skill improvements. If you want proof of that, check out calligraphy and fountain pen communities. The amount of money some people spend on things I didn’t know existed is wild.

        (No bad judgement to those folks, I’ve gotten hard into map making and 3d printing lately, so I’m right behind you)

      • @[email protected]
        link
        fedilink
        English
        102 months ago

        Adjustable frames help keep the lens at the correct angle for your eyes if you tilt your head a certain way from my understanding. So if you tilt your head at a certain angle you can adjust the frame to keep your prescription from getting out of focus at that specific head tilt

        • @virku
          link
          51 month ago

          It is also an adjustable, external retina that allows you to let just enough light through, apparently.

          • @[email protected]
            link
            fedilink
            1
            edit-2
            1 month ago

            if you look closely you can actually see a literal blinder over her left eye! the reason it helps is because precision shooting is all about repeatability, and both eyes open is a more repeatable position than closing one eye exactly the same way every time

    • @[email protected]
      link
      fedilink
      51 month ago

      “Hello worl” if I need something quick

      “AAAAAAAAAAAAAAAAA” if I’m lazy and don’t want to have to hunt the output logs for it

  • anti-idpol action
    link
    fedilink
    102 months ago

    tfw I recently worked on a side project where I was too lazy to change the log level but not sloppy enough to use raw printf so I’d just throw stuff into info and then remove the statements once I solved my issue

    • @[email protected]
      link
      fedilink
      31 month ago

      After all, that’s why git is there, to help me remember the shit I put all over the place. (Ok, it might have some other uses.)

  • @Kojichan
    link
    71 month ago

    Ahhh, my favourite debugging combo…

    echo "<pre>"; print_r( "We are here, we are here!" ); echo "</pre>"; die();

    Also fun at parties, hanging out asynchronously, is the ever popular PHP Mail to see if something ran in the background properly, or to get output.