‹ 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. normie3000 · · focus · HN ↗
      It's awesome in both senses! How readable has it become for you over time? Because on first glance and without syntax highlighting it's a head-scratcher.
      1. customguy · · focus · HN ↗
        With syntax highlighting I instantly know what it is :) But to be honest it's just for when I find myself toggling something a lot during development.. but still am too lazy to make a variable.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.