‹ BackHN Continuity

Thread

Small programming tricks

681 points · 294 comments · signa11

  1. customguy · · focus · HN ↗
    I am so proud of this (I'm sure others came up with it way before me, but I still came up with it all by myself!)

        //*
            normal path
        /*/
            debug path
        //*/
    
    take away the the first slash to toggle the debug zone ON!
    1. pillmillipedes · · focus · HN ↗
      I once took the time to figure these out for all the languages I use

      here's python:

          #'''
            normal path
          '''
            debug path
          #'''
      
      when I comment out python code I do it with ''' ... #''' so I can uncomment it with 1 keystroke
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.