4

I hate it when my teacher underestimates my skills in programming, he/she tells me to rewrite again even though its just the same logic... I got shorter lines of code, he/she wants longer and readable code 😠😠

Comments
  • 8
    Readable code is more maintainable in the long run. This benefits you and your future colleagues as well.
  • 0
    @Makenshi yeah i want that one, thats why i put comments...
  • 2
    Even still comments are important but understanding each line is jewelry for the one who’s unfamiliar and debugging your error code..therefore simplicity beats being an ass and trying to complicate the code by shortening it..
  • 4
    @Clueless Comments are less valuable than good readable code. Comments can lead you astray as accompanied code can be changed without changing the comments as well.

    Ideally comments should only add sensible information to your code. They shouldn't be needed to comprehend your code.

    They are no substitution for readable code.
  • 0
    Well.. This was in my vb subject, perhaps there are built in functions that can be used to shorten my code rather than use lengthy code which could get buggy just like my friend's code.

    Also, i do lengthy codes but not that will give me a headache
  • 0
    A mentor once told me "you're not here to show off your complex coding skills, but to make something the UX team can work with"
  • 0
    Try reading 'Clean Code'. It's interesting and enriching :)
  • 0
    Thanks for the wonderious wisdom that you gave to me... I'll keep this in my head and use it as a reference... I really appreciate it.
  • 0
    As a hobby I like to take simple data structures like tree/linked list/etc and code them in languages im learning in as clean a manner as possible usually refactoring them a few times as I learn the language, the code at the end usually is so clean. Its great because afterwards you can use them as a design reference when coding other stuff else.
  • 0
    Ummmm... That's what you should be writing.

    Code is not meant for computers to read but for humans, it also executing is a side effect. Someone said that, can't remember who. Anyway, readability and maintainability come way before anything else, even performance, is most cases. Because, your code can be fast as fuck but if the next dev can't understand it hell fuck your magic right up.
  • 1
    I do this so that my classmates wont copy my code.. I use different libraries, but in the end... I still need to have a formulated, readable code for programmers. I learned new things in life as a programmer, thanks rants
Add Comment