• da_cow (she/her)@feddit.org
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    3 days ago

    Then you never had to look at your old code (that tends to be of way worse quality than what you are currently coding due to improved skills) xD

    • petrol_sniff_king@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      3 days ago

      I look at my old code all the time.

      If you keep things organized and well documented, its poor quality really shouldn’t bother that much.

      • da_cow (she/her)@feddit.org
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        3 days ago

        While that’s true and I do document my code, I still get the urge to rewrite big parts of it. In the end I will in fact rewrite it, but that’s because I want to turn the original version of the code into a more general system that I can then use for my future work/projects.

        • petrol_sniff_king@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          3
          arrow-down
          1
          ·
          3 days ago

          As long as you’re doing this for fun/function and not because you’re embarrassed, then that’s fine. :p I wrote my own tween library in javascript purely because that just sounded like a great weekend, haha.

          • da_cow (she/her)@feddit.org
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            1
            ·
            3 days ago

            I will turn it into a general system for two reasons:

            1: Because I know I can rewrite my old code in much better quality

            2: Because this is something that I and my work colleagues may need regularly, so we dont have to rewrite it from scratch every time.

    • parip@lemmy.cif.su
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      2 days ago

      Really? I have almost the exact opposite experience when I look at my old code.

      I’m usually afraid that it’s junk and I could’ve done better, but then I’m routinely impressed by what I’ve written and go “Man, I did a good job with this.”

      • da_cow (she/her)@feddit.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 days ago

        For me its because I do not code that mich, so when I coded like 6h a day for about 3 weeks I learned so much, that the stuff I wrote at the beginning of that 3 week time period looks kinda awful. There are some key elements that I would change if I would rewrite it, but I kinda dont want to, just for it to be a bit cleaner, since this would mean I would have to change a shit ton of stuff.