86
BoomeH
7y

You know the cringe you feel from looking at the code you wrote a year ago? Yep. Me too.

Comments
  • 5
  • 3
    rightAnswer 🤣🤣🤣
  • 24
    int thirty = ten + twenty;
  • 1
    Ahhhh what a nightmare. I have no room to talk. My early codes were very lacking in the comment department. Now I can't write a single line without writing at least 3times as much comment. I like to keep my comment/code ratio as high as possible when necessary.
  • 1
    @noshoesplease I've heard a lot of different opinions about commenting. Some claim the code should be so clear that it doesn't need comments, and others won't accept code without it. My short experience tells me it can never hurt the clearability of the code though..
  • 14
    I like the

    var ten = 10;

    Because it's easy to forget how much ten is 😅
  • 7
    @simeg Trust noone, expect nothing
  • 2
    @BoomeH My rule is to comment all functions to explain what they do. Everything else is selfdocumented from variablenames + types imo.
  • 1
    A year ago? I wrote code like this on Sunday writing my first Gulp plugin and trying to understand why it wasn't working 😄😄
  • 1
    @BoomeH made my day 😀
  • 3
    @spongessuck int ten = thirty - twenty;

    Just to be sure.
  • 10
    @dfox this could be fun topic for a weekly. "Post your most embarrassing shit you wrote" =D I know I have some for that category. I suspect we all have =D
  • 2
    My favourite is "hundered". A++, would lol again.
  • 1
    @tomabolt

    @Test
    thirty == ten + twenty;
    ten == thirty - twenty;
    twenty == twenty = twenty;
  • 0
    int ten = 10;

    10/10
  • 0
    Year ago? You mean a month ago?
Add Comment