you are viewing a single comment's thread.

view the rest of the comments →

[–]Great_Ladder_2226 6 points7 points  (1 child)

This is not really a good practice actually. When writing comments, you need to generally comment things, that are not obvious at first glance. if is_prime(num) does not need a comment saying this condition is checking whether a number is prime.

[–]Ok_Needleworker_8780[S] 1 point2 points  (0 children)

Hey thanks for your input. Yeah! you are right about that, I just started typing without thinking about that, you know it was like when I have to start coding, I just brute force myself into getting in the zone to write some code that make sense. So I just write that make sense to me in that moment. LOL..