Johnnei's World
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Matriks404@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 years ago

"So let's simplify code a bit today..."

lemmy.world

message-square
15
link
fedilink
229

"So let's simplify code a bit today..."

lemmy.world

Matriks404@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 years ago
message-square
15
link
fedilink
alert-triangle
You must log in or register to comment.
  • Wolfizen@pawb.social
    link
    fedilink
    English
    arrow-up
    51
    ·
    2 years ago

    Simplifying doesn’t have to mean fewer lines. LGTM.

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

      Yeah, too simple is sometimes bad too. I had to refactor for better readability and it added 3k lines. But it was easier for everyone to understand the code. :)

  • EpicFailGuy@kbin.social
    link
    fedilink
    arrow-up
    22
    ·
    2 years ago

    @Matriks404

    I pray that all those extra lines are comments.

    • mb_@lemm.ee
      link
      fedilink
      arrow-up
      12
      ·
      2 years ago

      Removed unreadable // Added /* */ on their own lines with fancy design above and below comments

    • Matriks404@lemmy.worldOP
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      Some of them, yes.

    • Fushuan [he/him]@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      ctrl+P > format.

      Git explodes.

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

      Then the code is noisy. And that isnt simplyfied it is made noisy/clustered up.

      • Zron@lemmy.world
        link
        fedilink
        English
        arrow-up
        10
        arrow-down
        2
        ·
        2 years ago

        Your username is very fitting

  • tias@discuss.tchncs.de
    link
    fedilink
    arrow-up
    15
    ·
    edit-2
    2 years ago

  • Eufalconimorph@discuss.tchncs.de
    link
    fedilink
    arrow-up
    12
    ·
    2 years ago

    If GitHub’s UI isn’t saying “infinity files changed” you’re not trying hard enough.

  • iHUNTcriminals@lemm.ee
    link
    fedilink
    arrow-up
    10
    ·
    edit-2
    2 years ago

    By simply I thought you meant delete the project.

  • CommunicationOk3492@feddit.de
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 years ago

    Ahh, yes, tracked eight hours of refactoring today…

  • fiah@discuss.tchncs.de
    link
    fedilink
    arrow-up
    6
    ·
    2 years ago

    I’ve done worse

  • Dr. Coomer@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    2 years ago

    Pov: you find an image of a coconut in your code and try to remove it

  • boletus@sh.itjust.works
    link
    fedilink
    arrow-up
    5
    ·
    2 years ago

    Brought in a feature from a fork of our engine at work the other day. 8000 additions and a bunch of deletions and fix commits.

    And apparently that’s a pretty small merge…

    Took me days just to review it.

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.

  • 191 users / day
  • 518 users / week
  • 1.81K users / month
  • 10.3K users / 6 months
  • 1 local subscriber
  • 35.6K subscribers
  • 1.69K Posts
  • 36.5K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org