tchncs
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Matriks404@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 年前

"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 年前
message-square
15
link
fedilink
alert-triangle
You must log in or # to comment.
  • Wolfizen@pawb.social
    link
    fedilink
    English
    arrow-up
    51
    ·
    2 年前

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

    • Rooki@lemmy.world
      link
      fedilink
      arrow-up
      28
      ·
      2 年前

      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 年前

    @Matriks404

    I pray that all those extra lines are comments.

    • mb_@lemm.ee
      link
      fedilink
      arrow-up
      12
      ·
      2 年前

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

    • Matriks404@lemmy.worldOP
      link
      fedilink
      arrow-up
      3
      ·
      2 年前

      Some of them, yes.

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

      ctrl+P > format.

      Git explodes.

    • Rooki@lemmy.world
      link
      fedilink
      arrow-up
      2
      arrow-down
      10
      ·
      2 年前

      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 年前

        Your username is very fitting

  • tias
    link
    fedilink
    arrow-up
    15
    ·
    2 年前

  • Eufalconimorph
    link
    fedilink
    arrow-up
    13
    ·
    2 年前

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

  • iHUNTcriminals@lemm.ee
    link
    fedilink
    arrow-up
    10
    ·
    2 年前

    By simply I thought you meant delete the project.

  • CommunicationOk3492@feddit.de
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 年前

    Ahh, yes, tracked eight hours of refactoring today…

  • fiah
    link
    fedilink
    arrow-up
    6
    ·
    2 年前

    I’ve done worse

  • Dr. Coomer@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    2 年前

    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 年前

    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.

  • 190 users / day
  • 728 users / week
  • 2.18K users / month
  • 7.2K users / 6 months
  • 842 local subscribers
  • 39.5K subscribers
  • 1.95K Posts
  • 40.4K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.14
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org