SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Non-Member
    Join Date
    Apr 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up important: Share your small programming error here.

    hi,

    I want to interview some PHP programmers.. Please post your small errors in PHP here...

    I would love to here a tons of questions.

  2. #2
    SitePoint Wizard silver trophy Jelena's Avatar
    Join Date
    Feb 2005
    Location
    Universum, 3rd Corner
    Posts
    3,000
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    This forum is full of small errors in PHP people post on regular bases. I don't understand what's your intention.
    -- Jelena --

  3. #3
    SitePoint Addict jtresidder's Avatar
    Join Date
    Nov 2003
    Location
    Southampton, UK
    Posts
    345
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Small errors that caused the most headaches? I wrote a function to return the shortest distance between two tiles in a hexagonal grid that would intermittently return a number that was 1 count too small. After literally an entire day of going through the logic step by step in my head with various test cases it turned out to be a '<' instead of a '<=' in one single expression. The worst thing was, when I checked back through my scribblings that I'd done before typing up the function, it was there all along, I'd just mis-copied it. The air was suitably blue for about an hour


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
  •