GeekArticles
Programming
Delphi
Programming
DelphiStress Calculator For A (Delphi) Programmer
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?
Sponsored Links
Related Topics
Subscribe via RSS
Delphi
- A load of ASP.NET related tutorials, articles, tips and tricks!
- How to move PageControl's tabs using drag'n'drop
- Charts in database applications
- Creating Components Dynamically (at Run-Time)
- The role of the "AOwner" parameter in the Create constructor
- Creating a roll up form (with animation)
- Poll: Do you already have some experience with Delphi?
- Creating a database from Delphi code
- TMemoBar - T(Custom)Memo extender
- How to click-and-select a line in TMemo
