RE: Satellite-killing software

Subject: RE: Satellite-killing software
From: "Steve Hudson" <sh1448291904 -at- gmail -dot- com>
To: "'Peter Neilson'" <neilson -at- windstream -dot- net>, <techwr-l -at- lists -dot- techwr-l -dot- com>
Date: Fri, 6 May 2016 20:06:10 +0700

ROFLMAO!!!! OMG - this so needs to go into a uni curriculum somewhere as an
example of What Not To Do!

However, minus kudos for not having a routine that was commented thusly:

/* returns the value calculated from the state */

< still chuckling>

I was going to write 'chuckling still', but I have never seen a laugher
vaporiser / condenser for the fun stuff

-----Original Message-----
From: techwr-l-bounces+sh1448291904=gmail -dot- com -at- lists -dot- techwr-l -dot- com
[mailto:techwr-l-bounces+sh1448291904=gmail -dot- com -at- lists -dot- techwr-l -dot- com] On
Behalf Of Peter Neilson
Sent: Thursday, 5 May 2016 20:29
To: techwr-l -at- lists -dot- techwr-l -dot- com
Subject: Re: Satellite-killing software

On Thu, 05 May 2016 00:34:59 -0400, Keith Hood <bus -dot- write -at- gmail -dot- com> wrote:

> It's not Friday yet but what the heck . . . I saw a story about that
> Japanese satellite that failed in flight, on a site called
> hackaday.com.Apparently it malfunctioned after a software update went
> awry.
> I'm offering 5 to 2 they didn't bother to comment the code. Any takers?

I think they commented the code and then wrote more code based upon reading
the comments instead of the code. Only certain of the comments in code are
good enough to instill caution and perhaps inspire a search for deeper
understanding. My favorite one of those is this:

/*
* Switch to stack of the new process and set up
* his segmentation registers.
*/
retu(rp->p_addr);
sureg();
/*
* If the new process paused because it was
* swapped out, set the stack level to the last call
* to savu(u_ssav). This means that the return
* which is executed immediately after the call to aretu
* actually returns from the last routine which did
* the savu.
*
* You are not expected to understand this.
*/
if(rp->p_flag&SSWAP) {
rp->p_flag =& ~SSWAP;
aretu(u.u_ssav);
}
/*
* The value returned here has many subtle implications.
* See the newproc comments.
*/
return(1);

See https://www.bell-labs.com/usr/dmr/www/odd.html for Dennis Ritchie's
explanation.

Here's a picture of Dennis with friends:
https://commons.wikimedia.org/wiki/File:Usenix84_1.jpg
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Visit TechWhirl for the latest on content technology, content strategy and
content development | http://techwhirl.com

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

You are currently subscribed to TECHWR-L as sh1448291904 -at- gmail -dot- com -dot-

To unsubscribe send a blank email to
techwr-l-leave -at- lists -dot- techwr-l -dot- com


Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
http://www.techwhirl.com/email-discussion-groups/ for more resources and
info.

Looking for articles on Technical Communications? Head over to our online
magazine at http://techwhirl.com

Looking for the archived Techwr-l email discussions? Search our public
email archives @ http://techwr-l.com/archives


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Visit TechWhirl for the latest on content technology, content strategy and content development | http://techwhirl.com

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-

To unsubscribe send a blank email to
techwr-l-leave -at- lists -dot- techwr-l -dot- com


Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
http://www.techwhirl.com/email-discussion-groups/ for more resources and info.

Looking for articles on Technical Communications? Head over to our online magazine at http://techwhirl.com

Looking for the archived Techwr-l email discussions? Search our public email archives @ http://techwr-l.com/archives


References:
Satellite-killing software: From: Keith Hood
Re: Satellite-killing software: From: Peter Neilson

Previous by Author: RE: Microsoft developer doc revamp
Next by Author: Re: How to Refer to Software Versions ?
Previous by Thread: Re: Satellite-killing software
Next by Thread: Microsoft developer doc revamp


What this post helpful? Share it with friends and colleagues:


Sponsored Ads