tchncs
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
𝔻𝔼𝕍𝕀𝕃𝕀𝕊ℍ@lemmy.worldBanned from community to Programmer Humor@lemmy.ml · 2 年前

C++ Moment

lemmy.world

message-square
154
link
fedilink
1K

C++ Moment

lemmy.world

𝔻𝔼𝕍𝕀𝕃𝕀𝕊ℍ@lemmy.worldBanned from community to Programmer Humor@lemmy.ml · 2 年前
message-square
154
link
fedilink
  • HopFlop
    link
    fedilink
    arrow-up
    10
    arrow-down
    3
    ·
    2 年前

    Why would I use spaces if I use tabs? Also, it seemd like a huge waste of time hitting the space bar so many times…

    • merc@sh.itjust.works
      link
      fedilink
      arrow-up
      9
      arrow-down
      2
      ·
      edit-2
      2 年前

      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
        ·
        edit-2
        1 年前

        Removed by mod

        • BeardedGingerWonder@feddit.uk
          link
          fedilink
          English
          arrow-up
          3
          arrow-down
          1
          ·
          2 年前

          I use vi without syntax highlighting.

          • FlorianSimon@sh.itjust.works
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            1 年前

            Removed by mod

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

              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
                ·
                edit-2
                1 年前

                Removed by mod

    • elauso@feddit.de
      link
      fedilink
      arrow-up
      1
      ·
      2 年前

      deleted by creator

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.

  • 121 users / day
  • 900 users / week
  • 2.53K users / month
  • 6.19K users / 6 months
  • 849 local subscribers
  • 41.4K subscribers
  • 1.99K Posts
  • 41K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.16
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org