+ Reply to Thread
Results 1 to 2 of 2

Naming conventions and code maintenance

  1. #1
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Naming conventions and code maintenance

    Dealing with other peoples code came up in a thread today and I posted the following link, i remember reading it ages ago and have just re-read it. Is is one of the funniest things I've read re coding and an epic masterpiece in its own right. Followed properly you can guarantee you'll never be out of work!

    I can't decide which is a better tip
    1. Misleading names

      Make sure that every method does a little bit more (or less) than its name suggests. As a simple example, a method named isValid(x)should as a side effect convert x to binary and store the result in a database.
    1. or
    1. Choose variable names with irrelevant emotional connotation. e.g.:
      • marypoppins = (superman + starship) / god;

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Naming conventions and code maintenance

    I had a Java class in college a few years back in which I used some of the suggestions on that page. Sadly, it usually takes more effort to obfuscate your code than to just write it properly in the first place. I suppose with practice it becomes much easier, though.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1