Bit Goblin/Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
devilish666@lemmy.world to Programmer Humor@lemmy.ml · 1 year ago

C++ Moment

lemmy.world

message-square
155
fedilink
1.01K

C++ Moment

lemmy.world

devilish666@lemmy.world to Programmer Humor@lemmy.ml · 1 year ago
message-square
155
fedilink
  • merc@sh.itjust.works
    link
    fedilink
    arrow-up
    9
    arrow-down
    2
    ·
    edit-2
    1 year ago

    Why would I use spaces if I use tabs?

    To comply with Python’s best practices:

    https://peps.python.org/pep-0008/

    Also, if you work on the Linux Kernel, you’ll see a mix of tabs and spaces:

    https://elixir.bootlin.com/linux/latest/source/block/bfq-iosched.c#L390

    Also, it seemd like a huge waste of time hitting the space bar so many times…

    You use an editor that doesn’t auto-indent?

    • FlorianSimon@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      I assume this was a joke 😁

      • BeardedGingerWonder@feddit.uk
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        1
        ·
        1 year ago

        I use vi without syntax highlighting.

        • FlorianSimon@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Please don’t hack me, mister FBI

          • BeardedGingerWonder@feddit.uk
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            1
            ·
            1 year ago

            To be fair you can totally bind an arbitrary number of spaces to tab in vi. I’ll dig out the syntax highlighting file some time. Oh and I use vim really.

            • FlorianSimon@sh.itjust.works
              link
              fedilink
              arrow-up
              2
              ·
              1 year ago

              I do use neovim myself too 😁

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 62 users / day
  • 410 users / week
  • 2.46K users / month
  • 8.98K users / 6 months
  • 1 local subscriber
  • 35.8K subscribers
  • 1.68K Posts
  • 34.9K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org