Ideally, in a perfectly written computer program, with a perfectly designed computer language, with a perfect SCID/ IDE, it should be possible to change any line/element of the program in isolation without having to make any supporting changes elsewhere. The program should still function in a reasonable way. For example, you should be able to change the allowable bounds on a field variable in one line of code (which might result in it internally being promoted from int to long), without having to manually adjust any other code. The basic principle is you should have to tell a computer any one fact, or decision in only one place. For example, you should have to tell a program which colour scheme to use in precisely one and only one place, and by ‘one place’ I mean one line of code. Real life computer languages and IDEs put up huge roadblocks to getting anywhere close to perfection.
![]() |
recommend book⇒Refactoring : Improving the Design of Existing Code | ||
| hardcover | kindle | ||
|---|---|---|---|
| ISBN13: | 978-0-201-48567-7 | B000OZ0N4Y | |
| publisher: | Addison-Wesley | ||
| published: | 1999-07-08 | ||
| by: | Martin Fowler, Kent Beck (Contributor), John Brant (Contributor), William Opdyke, Don Roberts. | ||
![]() |
recommend book⇒Code Complete : A Practical Handbook of Software Construction | |
| paperback | ||
|---|---|---|
| ISBN13: | 978-1-55615-484-3 | |
| publisher: | Microsoft Press | |
| published: | 1993-05-14 | |
| by: | Steve McConnell | |
| Gives lots of practical advice on optimising. He talks mostly about C with examples in Fortran, Pascal, Basic and Ada. He doesn’t talk about Java. It didn’t exist when the book was written. | ||
![]() |
recommend book⇒Refactoring Workbook | |
| paperback | ||
|---|---|---|
| ISBN13: | 978-0-321-10929-3 | |
| publisher: | Addison-Wesley | |
| published: | 2003-09-06 | |
| by: | William C. Wake | |
| has exercises and real world examples. An emminently practical book. | ||
| You can get the freshest copy of this page from: | or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror) | |
| http://mindprod.com/jgloss/refactoring.html | J:\mindprod\jgloss\refactoring.html | |
![]() | ||
| Canadian Mind Products | ||
| mindprod.com IP:[65.110.21.43] | ||
| view Blog | Your face IP:[38.107.191.109] | |
| Feedback | You are visitor number 46,307. | |