73

So my brother had a school project for which he got an 9. I looked at this code and saw this comment. I laughed so hard. 😂

Comments
  • 25
    if(boolean == true)

    He deserves a zero
  • 15
    @@AlgoRythm I'm more frustrated with the double return of list and count.
  • 13
    And concatenating with string to do int.parse when the result was an int to begin with :/
  • 2
    "0 references"

    makes sense I guess.
  • 1
    I'm not mad *exhales loudly*
  • 2
    @zvyn I've seen word from senior devs, that doesn't mean it should be approved.
  • 0
  • 0
    @irene he means it doesn't need to explicitly uses == true
  • 0
    9/100?
  • 0
    Lol I feel your brother. Is he in an Intro to Programming class?
  • 1
    @suprano Yep. First year as software programmer. And learning it from school only.
  • 1
    @BreakDancerHD he'll get there. Heck in my beginning days I suffered at times too.
  • 1
    @suprano@suprano I know. I let him try to learn it himself since i also learned it that way and been doing it for almost 5 years now. But if he has questions or something else i help him and try to teach him. It’s kinda ironic tho since i’m just 18 and he is 23 and the little brother teaches the older one. But i don’t mind. I know what we both have been through and I hope he will keep learning and become a great programmer.
  • 0
    @zvyn I know right. Problem is, I’ve seen code from “Senior” developers that is even worse than this. 😂😭
  • 0
    @upDog 9/10 But somehow he is one of the best coder of the class. But he also got bonus points for using MySQL instead of XML while they have not even learned MySQL yet i think.
  • 1
    @BreakDancerHD brothers help each other no matter the age difference. It's all good. Keep it up.
  • 3
    To the people who are saying he should be expelled or given a zero
    Fuck you.
    Don't tell me that when you guys started programming you knew every fucking thing! And even if things like not writing the else block with single return statement (and returning after the if block ends instead) is obvious to us it may not be obvious to newbie programmers. We have all been there and learned from practice/experience.
    You can shove your arrogance up your ass.
  • 2
    @YourNemesis Amen! Well said.
  • 0
    @irene Well that explains it. Majority of newbie programmers do make that mistake though.
  • 0
    @YourNemesis I'm not sure if you also mean me with that message, but I'm of the opinion that a 9 out of 10 should be production ready code.

    I'm not saying he should fail the class, but I am saying that I don't see this as a 9. Especially in the western culture where people think a 6 is good enough.

    I would, depending on the rest of the code but assuming its like this, maybe give a 7 or a 7.5. I would also tell the student to try to look at it to see if they can optimize it if they can do that without help they can get extra points.
  • 0
    @irene and I agree with you agreeing with me :D
  • 0
    boolean brother;
    int grade = 100;

    if (brother.isKissAss() == true)
    grade -= (100 * grade) / 100;

    printf("You got an F.\nSo F U!");
  • 0
    @irene Ha ha.
    Just wanted it to look a little bit longer.
Add Comment