Floating Point Arithmetic: Issues and Limitations

Floating-point numbers are represented in computer hardware as base 2 (binary) fractions. For example, the decimal fraction 0.125 has value 1/10 + 2/100 + 5/1000, and in the same way the binary fraction 0.001 has value 0/2 + 0/4 + 1/8. These two fractions have identical values, the only real difference being that the first ... Read more

Debugging the issue

Try to isolate the issue. Copy the code that you have issues with and paste it into the clean page template. Can you still reproduce the issue? If no - than you are missing some code from the main template. If you still can reproduce the issue than continue reading. Now you need to start ... Read more

Responsive Image

Links: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images

Programming Humor

monkeyuser.com Real Programmers don't comment their code. If it was hard to write, it should be hard to understand. Six Stages of Debugging That can’t happen. That doesn’t happen on my machine. That shouldn’t happen. Why does that happen? Oh, I see. How did that ever work?

Guard clause

A Guard Clause (one of the SmalltalkBestPracticePatterns, and equally applicable in a whole bunch of languages) is a chunk of code at the top of a function (or block) that serves a similar purpose to a Precondition. It typically does one (or any or all) of the following: checks the passed-in parameters, and returns with ... Read more