Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 17 of 17
Originally Posted by techieMoe I don't think that's necessarily the case. Most programmers I know don't like using someone else's code for things because they can't understand it, not because ...
  1. #11
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Quote Originally Posted by techieMoe
    I don't think that's necessarily the case. Most programmers I know don't like using someone else's code for things because they can't understand it, not because they want "credit". Programmers are notoriously bad at not commenting their code sufficiently and keeping the reasons for their coding decisions in their head.
    I think we're all guilty of that - it's especially prominent with languages like C where habits can vary so much as to obfusticate completely the function. Commenting always sounds like a great idea til your actually coding, then you forget all about it.

  2. #12
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    Quote Originally Posted by bigtomrodney
    I think we're all guilty of that - it's especially prominent with languages like C where habits can vary so much as to obfusticate completely the function. Commenting always sounds like a great idea til your actually coding, then you forget all about it.
    Certainly. I'll be the first to admit that despite my best efforts, the vast majority of my code has very sparse and often cryptic comments that serve to jog my memory but would be unintelligible to another person.

    Java makes it a little harder to do this since (as has been brought to my attention recently) it lacks a preprocessor, so some of the shortcuts (like cout/cin, etc) available in C/C++ that can make the code less obvious aren't available. (I don't want to get into another debate about the merits of having/not having a preprocessor, by the way. It's just an example. )
    Registered Linux user #270181
    TechieMoe's Tech Rants

  3. #13
    Linux Enthusiast carlosponti's Avatar
    Join Date
    Dec 2004
    Location
    Oklahoma
    Posts
    560
    i program in powerbuilder and cant manage to comment my code either. its kind of an epidemic really.
    Blog
    Registered Linux user 396557

  4. #14
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,228
    I agree entirely. Even in class, someone will go "Alex, can you help me with this?" I'll go over, and even with him sitting right there, I will have a lot of trouble with understanding what his code is doing.

    Not only do we keep a lot of reasons in our heads, but people see different ways of accomplishing the same goal. What makes perfect sense to one person may be entirely obfuscated to someone else.

    And as far as comments? Woah nellie! The only time I comment my code is for class, where we have to comment method headers. But I don't comment anything else.
    DISTRO=Arch
    Registered Linux User #388732

  5. #15
    Linux Enthusiast carlosponti's Avatar
    Join Date
    Dec 2004
    Location
    Oklahoma
    Posts
    560
    when i was in school i never commented code of course always got marks off for it but i figured the points were not worth the trouble lol
    Blog
    Registered Linux user 396557

  6. #16
    Banned
    Join Date
    Oct 2007
    Location
    USA
    Posts
    0
    I agree...its a little irritating to go there and find so many dead links and outdated projects.

    They should add a system where people can report an outdated project.

  7. #17
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,082
    Hi, stevebee, and welcome to the forums!

    This thread is over 2 years old already so it's being locked. Also, the advertising in your signature is not allowed on the forums, so your signature has been deleted. Here are the forum rules for your review:

    http://www.linuxforums.org/forum/lin...ums-rules.html

    Sorry for any inconvenience...
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •