ProIT
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
AgreeableLandscape@lemmy.mlM to Programmer Humor@lemmy.ml ·
edit-2
5 years ago

Tabs vs Spaces

lemmy.ml

external-link
message-square
12
link
fedilink
238
external-link

Tabs vs Spaces

lemmy.ml

AgreeableLandscape@lemmy.mlM to Programmer Humor@lemmy.ml ·
edit-2
5 years ago
message-square
12
link
fedilink
alert-triangle
You must log in or register to comment.
  • davidgro@lemmy.world
    link
    fedilink
    arrow-up
    17
    arrow-down
    1
    ·
    2 years ago

    Loving these 3 year old posts on the “Hot” view. (Not sarcasm, these are great)

    • camr_on@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      2 years ago

      It’s like when youtube recommends a 9 year old video and all the comments are from the last month lol

    • zbecker@mastodon.zbecker.cc
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      @davidgro @AgreeableLandscape

      Are you using hot or active? If you’re using active it is because someone posted a comment, as it works via most recent comment instead of post date

      • Perhyte@lemmy.world
        link
        fedilink
        English
        arrow-up
        6
        ·
        2 years ago

        They show up in Hot too. Probably because someone on this server loaded the post to make that comment, so it got imported to the server. I guess Hot sorts based on (score and) “new to me”, not “new”.

        • Streetdog@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          I’m just here for the moment. Keep it up.

        • zbecker@mastodon.zbecker.cc
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          @Perhyte

          oh that might be the case that it is new to the server. I didn’t even think about that.

  • devious@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    2 years ago

    Enable “Show whitespace characters” master race!

    • Onlytanner@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      2 years ago

      Exactly. I only started doing this maybe in the past year and since then I’ve become so anal about consistency with my whitespace lol.

  • zqwzzle@lemmy.ca
    link
    fedilink
    arrow-up
    4
    ·
    2 years ago

    It’s easier to do Fibonacci indentation with spaces. https://imgur.com/gallery/JrSd8WS

    • Nailbar@sopuli.xyz
      link
      fedilink
      arrow-up
      7
      ·
      2 years ago

      I was hoping that link would have been an example of what that would look like

      https://devhumor.com/content/uploads/images/October2016/fibbonaci-indentation.jpg

  • whoamibro@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    2 years ago

    I do 8 spaces to make my code ultra-readable and to discourage too much nesting of things.

  • rehabdoll@lemmy.world
    link
    fedilink
    arrow-up
    1
    arrow-down
    22
    ·
    2 years ago

    Obligatory https://youtube.com/watch?v=SsoOG6ZeyUI

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: [email protected]

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.

  • 48 users / day
  • 1.82K users / week
  • 2.61K users / month
  • 10.4K users / 6 months
  • 1 local subscriber
  • 35.7K subscribers
  • 1.72K Posts
  • 38.1K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org