Lemmy - RazBot
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
miridius@lemmy.world to Programmer Humor@programming.dev · 1 year ago

I realised this today

lemmy.world

message-square
26
fedilink
616

I realised this today

lemmy.world

miridius@lemmy.world to Programmer Humor@programming.dev · 1 year ago
message-square
26
fedilink
alert-triangle
You must log in or register to comment.
  • Repple (she/her)@lemmy.world
    link
    fedilink
    arrow-up
    91
    ·
    1 year ago

    I always feel like my code is the best in personal projects when I don’t need to conform to whatever style and architecture has been decided on by history and committee.

    • mathematicalMagpie@lemm.ee
      link
      fedilink
      arrow-up
      65
      ·
      1 year ago

      For me it’s always, “this is hacky as shit, but it works, and nobody will ever see it but me.”

      • Almrond@lemmy.world
        link
        fedilink
        arrow-up
        10
        ·
        1 year ago

        My most arcane pieces of code (abusing null references to make the garbage collector handle object deletion kind of cursed) are usually posted publicly somewhere… If it works and all that.

    • ignism@lemmy.world
      link
      fedilink
      arrow-up
      13
      ·
      1 year ago

      Was gonna say, 1st and 2nd should be switched

  • LostXOR@fedia.io
    link
    fedilink
    arrow-up
    59
    ·
    1 year ago

    Gotta review the 5 line PR ten times just to make absolutely totally sure there’s nothing wrong with it before submitting it.

    • perviouslyiner@lemmy.world
      link
      fedilink
      arrow-up
      37
      ·
      1 year ago

      And then notice the spelling error.

      • YIj54yALOJxEsY20eU@lemm.ee
        link
        fedilink
        arrow-up
        23
        ·
        1 year ago

        My spelling errors only come into existence after I commit.

      • Dhs92@programming.dev
        link
        fedilink
        arrow-up
        6
        ·
        1 year ago

        Just another free PR ;)

      • Korne127@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        1 year ago

        Instant commit --amend + push --force

        • Omid Mnz@programming.dev
          link
          fedilink
          arrow-up
          6
          ·
          1 year ago

          Prefer --force-with-lease. It doesn’t make a difference in this scenario, but it’s a safer habit/default.

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

            There is no reason to force push anymore - force with lease is always preferable. So said, a frequent rebaser.

            • rufus@lemmy.sdf.org
              link
              fedilink
              arrow-up
              4
              ·
              1 year ago

              Wait what is the difference between the two?

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

                Force with lease will send up what your local thinks the most recent commit on the branch was and the host will reject the push if it knows of a more recent commit on that branch. Basically, it saves you from overwriting a commit you didn’t realize existed.

    • SkyeStarfall@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      Don’t want to be the cause of a CVE now, do we?

  • Bilb!@lem.monster
    link
    fedilink
    English
    arrow-up
    34
    ·
    1 year ago

    I have never contributed to an open source project before, so if we exclude the third part this is the reverse of my habits. The stuff I do for work is bare minimum garbage, I freely admit. I really do not like my employer.

    • ProgrammingSocks@pawb.social
      link
      fedilink
      arrow-up
      23
      ·
      1 year ago

      Aaand here’s why production software is so damn buggy. I’m not faulting you personally, just your employer.

  • feedmecontent@lemmy.world
    link
    fedilink
    arrow-up
    33
    ·
    1 year ago

    Nobody can see this -> some people can see this -> anybody can see this

    • miridius@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Perfectly described!

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

    I’ll be honest with ya pal, all 3 of em are pic 1 for the most part

  • sebsch@discuss.tchncs.de
    link
    fedilink
    arrow-up
    16
    ·
    1 year ago

    You saying the code quality of some of my colleagues is even worse on their personal projects? o_O

    • miridius@lemmy.worldOP
      link
      fedilink
      arrow-up
      10
      ·
      1 year ago

      They probably don’t even have personal projects

  • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 🇮 🏆@yiffit.net
    link
    fedilink
    English
    arrow-up
    13
    ·
    1 year ago

    Hmmm… I comment a lot on Lemmy… Maybe I could be more productive commenting code 🤔

  • SomeGuy69@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    I would like to contribute to open source but I’m not confident enough or understand git properly. As solo dev I only have to fulfill my boss’s standards, they seam to be low.

    • towerful@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Yeh, for me git is a backup system.
      My boss gave me a hand on some bits (more, I set up a framework and he could tweak pages). Anyway, I fixed some stuff, tidied some of his shit, then trying to get git to merge that back into his workspace REALLY stretched my knowledge of git LUL.
      I’m sure doing that every day would get me up to speed, but ATM commit/push means “backup” to me

  • ☂️-@lemmy.ml
    link
    fedilink
    arrow-up
    9
    ·
    1 year ago

    invert personal stuff and work and its me

  • Victor@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    That is very noble of you! Hats off.

Programmer Humor@programming.dev

programmer_humor@programming.dev

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]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 2.2K users / day
  • 4.61K users / week
  • 9.31K users / month
  • 17.7K users / 6 months
  • 1 local subscriber
  • 23.1K subscribers
  • 1.37K Posts
  • 46.7K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org