Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

Mitch Hughes

@Mitch Hughes
About
Posts
3
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Programming Question
    M Mitch Hughes

    In the late 70's and early '80s, CompSci students (me) at the University of Texas at Austin still submitted programs on card decks to the CDC Cyber. We reused general routines (stack, queue, io) by adding cards onto the end of the deck (they were too cheap with space to let us store the code as linkable libraries). Each of those "chunks" was color coded (with a Sharpie) on the top so we could tell them apart. Since we used Pascal, there were no line numbers that the mechanical sorter could use to put them in order, so when the operator dropped them we were SOL. So we learned to draw a diagonal line across the top of the deck to help visually sort them. I still write bat files because: they can be maintained by non-developers, you can't lose the source if changes need to be made, and everyone knows how to invoke a batch file (there are still many people who don't know how to invoke a .vbs script).

    The Lounge question xml

  • How come I get a rounded number when I multiply doubles?? [modified]
    M Mitch Hughes

    [Stepping on my soapbox] When dealing with floating point numbers, you should never assume that a number will be stored exactly. While some numbers can be stored exactly, most will not be. From the cases I have encountered, too many people assume that a floating point number is good enough for exact numerical needs. But if the value 24.24999999999999 instead of 24.25 would be considered incorrect in your application, you should not be using floating point values. Time and time again I have been called in to analyze why dollar values were coming in off by a penny or two (or more), and it has always* boiled down to the choice of using floating point representation to store exact values. * Since 1992 I have encountered only 2 instances where the problem was an actual bug in the library.

    C# help question

  • So time to change my mythology....
    M Mitch Hughes

    We tried to be clever with names that were like bad jokes. We had a private printer for our team, and the share was password protected. To connect to the printer you entered "NET USE \\paddy\giveadog abone". Our lab manager was especially evil, and he used to drop files for us on his machine named "Whack". So the URL was usually something like "\\whack\whack\whack\..." And if those doesn't make any sense to you, then you should know that we usually pronounce "\" as "whack".

    The Lounge sysadmin question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups