where does the term computer bug come from
Software bug
Programming languages include features to help prevent bugs , such as static type systems , restricted namespaces and modular programming . For example , when a programmer writes ( pseudocode ) LET REAL_VALUE PI = `` THREE AND A BIT '' , although this may be syntactically correct , the code fails a type check . Compiled languages catch this without having to run the program . Interpreted languages catch such errors at runtime . Some languages deliberate exclude features that easily lead to bugs , at the expense of slower performance : the general principle being that , it is almost always better to write simpler , slower code than inscrutable code that runs slightly faster , especially considering that maintenance cost is substantial . For example , the Java programming language does not support pointer arithmetic ; implementations of some languages such as Pascal and scripting languages often have runtime bounds checking of arrays , at least in a debugging build .
Programming languages include features to help prevent bugs , such as static type systems , restricted namespaces and modular programming . For example , when a programmer writes ( pseudocode ) LET REAL_VALUE PI = `` THREE AND A BIT '' , although this may be syntactically correct , the code fails a type check . Compiled languages catch this without having to run the program . Interpreted languages catch such errors at runtime . Some languages deliberate exclude features that easily lead to bugs , at the expense of slower performance : the general principle being that , it is almost always better to write simpler , slower code than inscrutable code that runs slightly faster , especially considering that maintenance cost is substantial . For example , the Java programming language does not support pointer arithmetic ; implementations of some languages such as Pascal and scripting languages often have runtime bounds checking of arrays , at least in a debugging build .