Life's Miscellaneous Et Ceteras

A college student's frivolous reflections on life, love, and the universe.

home | blog | photography

Questionable Coding Practices

Posted on March 23rd, 2008 at 6:09 PM

As I'm trying to finish up one of my programming projects, I was scanning through some of the code I had written and found something that was rather... interesting.

Normally, I consider myself a good programmer, but sometimes I have to take shortcuts and cut corners.

Here is a snippet from one of my recent projects in my CS 375 Compilers class:

/* Increment the index and return the next entry 
   we can use as a label. New entry should be 
   validated as well and safe for whomever wants 
   to peek at it. */

int GetNextLabel ()
{
    return 3;
}

The amount of code like this seems to be proportional to the margin of time between the due date and the time I actually finish the assignment.

Hmm...

This entry was filed under Computers and Programming and Humor

There are 2 comments.
  1. March 24th, 2008, 5:17 PMan anonymous parasite said:
    COOL!
  2. November 12th, 2008, 4:14 AMmicmncjvhh said:
    GjbsVv pcqvvxxjkrrn, [url=http://embwzuldfpcx.com/]embwzuldfpcx[/url], [link=http://heljovhpibvw.com/]heljovhpibvw[/link], http://xdcvcucndbpo.com/

Random Photos

Lake Sky 2Looking ThroughAustin 2Downtown DallasIMG_9390Leaf DetailCockpit view 2

Status

Facebook Updates

Recent Music

Now Playing

You Have No Idea What You're Getting Yourself IntoYou Have No Idea What You're Getting Yourself IntoDoes It Offend You, Yeah?

Recent Songs

  • Weird ScienceDoes It Offend You, Yeah?
  • We Are RockstarsDoes It Offend You, Yeah?
  • Where I StoodMissy Higgins
  • Back in BlackAC/DC
  • Battle RoyaleDoes It Offend You, Yeah?