background preloader

Programming

Facebook Twitter

Development

Database. .net. Java. Code. Evalcode. Fail-fast. Fail-fast is a property of a system or module with respect to its response to failures.

Fail-fast

A fail-fast system is designed to immediately report at its interface any failure or condition that is likely to lead to failure. Fail-fast systems are usually designed to stop normal operation rather than attempt to continue a possibly flawed process. Such designs often check the system's state at several points in an operation, so any failures can be detected early. A fail-fast module passes the responsibility for handling errors, but not detecting them, to the next-higher system design level. Fail-fast systems or modules are desirable in several circumstances: Six ways to write more comprehensible code. I learned to write, clear, maintainable code the hard way.

Six ways to write more comprehensible code

For the last twelve years, I've made my living writing computer games and selling them over the Net using the marketing technique that was once charmingly known as shareware. What this means is that I start with a blank screen, start coding, and, a few tens of thousands of lines of code later, I have something to sell. This means that, if I make a stinky mess, I'm doing it in my own nest. When I'm chasing down a bug at 3 a.m., staring at a nightmare cloud of spaghetti code, and I say, "Dear God, what idiot child of married cousins wrote this garbage? ", the answer to that question is "Me. "