![]() |
![]() |
#1 |
"Lucan"
Dec 2006
England
647410 Posts |
![]()
No doubt many of you have read innumerable
humourous/sensible(?) snippets of advice on this subject. My favourite one (by far) is this: "Never annotate. Code which was hard to write should be hard to understand." David |
![]() |
![]() |
![]() |
#2 |
"Richard B. Woods"
Aug 2002
Wisconsin USA
22×3×641 Posts |
![]()
I wrote no internal comments in the first, very short, assembly language program I coded while being paid to be (supposedly) professional.
I quickly became ashamed of that omission and did not repeat it. Last fiddled with by cheesehead on 2011-03-18 at 02:36 |
![]() |
![]() |
![]() |
#3 |
Dec 2010
Monticello
111000000112 Posts |
![]()
I frequently spend more time on the spec than the program itself...
Assembler costs 10-15x more than the same program in high level language, and changes the nature of the problem that actually gets solved 30 million lines of Windows cannot be correct, cannot be made correct. |
![]() |
![]() |
![]() |
#4 |
Tribal Bullet
Oct 2004
2×3×19×31 Posts |
![]()
Just so we get the basics out of the way...
(When I was younger I'd collect other people's collections of internet jokes, and when someone sent me another I'd mail them back the whole batch). |
![]() |
![]() |
![]() |
#5 | |
Nov 2003
22·5·373 Posts |
![]() Quote:
well defined. Consider the task of putting specs for Windows into (say) Backus-Naur form. Yikes! |
|
![]() |
![]() |
![]() |
#6 | |
May 2008
Worcester, United Kingdom
52610 Posts |
![]() Quote:
Brian Gladman |
|
![]() |
![]() |
![]() |
#7 | |
May 2008
Worcester, United Kingdom
2·263 Posts |
![]() Quote:
Brian |
|
![]() |
![]() |
![]() |
#8 |
"Lucan"
Dec 2006
England
11001010010102 Posts |
![]()
Glad to see that this thread has "taken off".
Since it's my birthday, I'm going to insert a musical jest (as many of you know I'm inclined to do) A few days ago I asked my (female and beloved) doctoress about her affection for and taste in music. She replied "I can take it or leave it". I (optimistically) considerd the interpretation might have meant "if you passionately like some pieces, you are very likely to dislike others". I asked her to clarify this potential ambiguity, and she explained that she didn't go into record shops and buy CDs. I enquired about her father's age and tastes. She said "75 and a sort of polymath" I said I was referring to his taste in music. "Something like the Bluespots" she replied. I laugh. "I suspect you meant the Inkspots". That is my idea of a humorous exchage between very good friends! David Choosing my favourite is impossible Last fiddled with by davieddy on 2011-03-18 at 23:30 |
![]() |
![]() |
![]() |
#9 | |
Dec 2010
Monticello
5×359 Posts |
![]() Quote:
And add, correctness is more important than fanciness. |
|
![]() |
![]() |
![]() |
#10 | |
Dec 2010
Monticello
5×359 Posts |
![]() Quote:
I think correct behavior for an OS can at least begin to be defined, and it can be trivially shown that Windows doesn't meet it. 1) The operator is in control of the system. a) A misbehaving program can always be killed b) A request for shutdown is always respected. c) The only persistent, automatic results of "Viewing" documents involves log entries and possibly a cache of the document. d) in a world where the programmer of a given program is unknown, the programs should not have the full priveleges of the user invoking them. e) A secure system console is required. 2) The file system acts in a well-defined manner. a) The only operations allowed to a program which is automatically run when inserting removable storage media involve translation to and from filesystem calls and the low-level format on the medium. The operating system enforces this. 3) The operating system must not have memory leaks 4) The operating system must not expect to be rebooted, ever. 5) The operating system must not need to write significant amounts of state to disk to shut down. One more thought, from Fred Brooks "The Mythical Man Month": Windows is an example of the "second system effect". The first system was the DEC VAX running VMS, which was an absolutely beautiful machine. |
|
![]() |
![]() |
![]() |
#11 |
May 2008
Worcester, United Kingdom
2×263 Posts |
![]()
As I have already said, your comments are wrongly directed at Windows since they apply to _all_ commodity OS's - i.e. those used in computer systems sold into the commercail and retail markets.
The only OS's that have been even _remotely_ close to being verified against formal behavoural specifications are very specialised and not even remotely capable of meeting the needs of ordinary commodity computer users. Commodity Operating systems are designed to meet the needs of the vast majority of users, almost all of whom have a much stronger interest in functionality than in correct OS behaviour. And, sadly, functionality and dependability are diametrically opposed requirements. Brian Gladman |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Looking for MAC GPU programmers | ET_ | GPU Computing | 16 | 2013-11-10 19:45 |
Looking for advice for a new PC.... | petrw1 | Hardware | 39 | 2009-07-11 13:38 |
PS3 programmers(program conversion for pay?) | jasong | Programming | 5 | 2007-12-16 00:10 |
Mac OS X programmers? | Prime95 | Software | 18 | 2007-05-30 18:43 |
request for script(programmers please read) | jasong | Sierpinski/Riesel Base 5 | 6 | 2005-05-11 20:09 |