‹ BackHN Continuity

Thread

Jev-Leftpad

234 points · 87 comments · fka

  1. shawabawa3 · · focus · HN ↗
    poor implementation

    jev should only have the choice of space_0 or space_1, then recurse on n-1

    this extends the implementation to infinite padding and is cleaner code

    1. weego · · focus · HN ↗
      Maybe for Enterprise scale, for ramen scale hackers if you need 15 spaces you just add 5 to start with then use space_10. Clean and, importantly, dry.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.