Navigation überspringen
Morning camping rant: tabs vs spaces.
0:00 / 3:07

Morning camping rant: tabs vs spaces.

Uncle Bob Martin

@unclebobmartin290.271 Follower

Auf X besuchen

37.633 Aufrufe

Morning camping rant: tabs vs spaces.

10 Kommentare

Kommentare aus dem Originalbeitrag auf X (Twitter)

  • Profilbild von Cameron Harder-Hutton

    @camhahu

    2 vs 4 spaces is the real debate

    13 Likes

  • Profilbild von //DJK

    @slashslashdjk

    4 is default in most things. I stopped giving a shit and just use defaults.

    4 Likes

  • Profilbild von Zbyněk Říha ✡

    @rastakayakwana

    Tabs versus spaces are a matter of semantics. An indent is a tab, a space is just a space, a space between something. The correct indentation is a tab.

    4 Likes

  • Profilbild von Soren

    @sorenblank

    i miss the bathrobe ngl

    3 Likes

  • Profilbild von 🐧 🇪🇺

    @tackline

    I was with the rant until two spaces. That's insufficient indent. Four is too much. 3 is the magic number.

    3 Likes

  • Profilbild von Anthony Melei, M.S.

    @meleitech

    Once again more great memories from uncle Bob. Defined columns assembly language and Fortran when I learned programming. Sometimes I miss those days. Then I also like learning all the new techniques from the evolving advanced languages.

    3 Likes

  • Profilbild von Daryl Barnes

    @darylbarnes

    2 spaces? Them’s fightin’ words sir!

    3 Likes

  • Profilbild von looney

    @C8Luna

    Bar tabs are superior to twitter spaces

    2 Likes

  • Profilbild von chart_map

    @chart_map

    Tabs are so much better than spaces. You can set the indent to what you prefer, e.g., 2 or 4 or 8 or change it on the fly. It’s easier to work with indented languages like Python where hunting down space discrepancies is a can be a pain. Less typing is good.

    2 Likes

  • Profilbild von Os

    @elosoter

    Then TAB is superior

    2 Likes