Tech Tutorials Database
GeekArticles Programming Delphi
 

Stress Calculator For A (Delphi) Programmer

 
Author: delphi.about.com
Category: Delphi
Comments (0)

in <a Errors</i></a> ::I love the comment Robert Oschler left to my <a Those Negative Boolean AND Bitwise Expressions :(</a>. <p><code><pre> by Robert Oschler <b>function</b> StressLevelInProgramming : extended; <b>begin</b> the constant 0.001 was added to the Max() function in the denominator because once the number of hours left on the project is less than 1, the stress/pain approaches infinity asymptotically. And to avoid a divide by zero Exception of course.</i> result := AbsDistance(intendedFunction, actualFunction) * (1 / Max(NumHoursTillDeadline, 0.001)); <b>end;</b> </pre></code> <p>Have you noticed how time passes by more quickly as you approach The function you are working on seems more complicated than when you created the function header and perfectly knew what the function should return and how to code it? <p>Finally, the stress calculator you can use to explain to your boss why the Deadline should be tomorrow and not today :) <p>Can you come up with a more accurate function?

Read More...




Sponsored Links




Read Next: Rename a Directory / Folder Using Delphi Code



 

 

Comments



Post Your Comment:

Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe