The Register Home Page

back to article Developer given Mission:Impossible - fixing rubbish code that could crash a city - simply chose not to accept it

ON CALL Making it through a working week can feel like a dangerous adventure. That's why The Register offers a little certainty and safety by always using Friday morning to share a new edition of On Call – the reader-contributed column sharing your tales of tech support. This week, meet a reader we'll Regomize as "Socrates," who …

  1. LogicGate Silver badge

    "Have you bailed out of a tech support job? If so, click here to email us what happened and why. We promise not to give up on your story. ®"

    Challenge accepted:

    "We can’t bust heads like we used to, but we have our ways. One trick is to tell them stories that don’t go anywhere, like the time I caught the ferry over to Shelbyville. I needed a new heel for my shoe, so, I decided to go to Morganville, which is what they call Shelbyville in those days, so I tied an onion to my belt, which was the style at the time. So, to take the ferry cost a nickel, and in those days, nickels had pictures of bumblebees on ‘em. Give me five bees for a quarter you’d say. Now where were we? Oh yeah! The important thing was I had an onion on my belt, which was the style at the time. They didn’t have white onions, because of the war. The only thing you could was those big yellow ones."

    I wish El Reg all the best in creating a Friday article from that one..

    1. Maximus Decimus Meridius

      Thanks Grampa. Got any lemonade to go with the story?

      1. LogicGate Silver badge

        "Uh-uh-uh. You never know what you’re capable of. I never thought I could shoot down a German plane, but last year I proved myself wrong.”

    2. Paul Herber Silver badge

      You missed bits, you know, like the interesting bit with the lemon.

      1. Anonymous Coward
        Anonymous Coward

        Pull pin, throw lemo'nade at the miscreant who is evil in mine eyes and shall snuff it.

  2. Pete 2 Silver badge

    Could have been worse

    > a dusty CP/M computer with various I/O cards

    It might have been Windows

    1. Paul Herber Silver badge

      Re: Could have been worse

      A GEM!

    2. TooOldForThisSh*t

      Re: Could have been worse

      How about Banyan Vines? Back in my reseller support days we were a Novell Netware reseller but got a call from an office with a Banyan Vines network. Support Manager went to take a look at it and we gave it a pass. He said it was "interesting" but not something we were qualified to support.

    3. steelpillow Silver badge
      Joke

      Re: Could have been worse

      The Speccy was advertised as able to run a power station. I tell you Shirley, it would have been the dead-flesh beastie with an Interface One on the back, in a custom tin box and some kitchen-table RS232-talking card rack. Probably the very prototype Sir Clive based his boast on.

      1. Anonymous Coward
        Anonymous Coward

        Re: Could have been worse

        My recollection was that it was th zx80, not the "far more capable" speccy that the marketing team suggested as capable of running a power station.

        There is another variable to consider - what was the specification of the power station?

        1. steelpillow Silver badge

          Re: Could have been worse

          So you reckon it was a ZX80 in there? Maybe a ZX81 with wobbly RAM pack. No wonder he didn't touch anything!

  3. Korev Silver badge
    Coat

    I'm pleased he had the brain power to back away

    1. Vincent Ballard
      WTF?

      What I don't understand is what he was supposed to be doing. "Bring the client up to speed" sounds like he was supposed to be training them how to use the software, not debugging it.

      1. ITMA Silver badge
        Devil

        The "client" is the turbine.... Obviously.

        It needs be "brought up to speed" without being tripped by the overspeed sensor....

        :)

        1. steelpillow Silver badge

          Pointy-haired manager, rotating machine, hard to tell the difference sometimes. They both hum off-key.

          1. Anonymous Coward
      2. doublelayer Silver badge

        I have had to instruct a user on how to use code I didn't write where all I had to figure out the answer to tell them was the code itself and whatever readme the original devs thought to write, possibly out of date. It often doesn't work.

        1. Doctor Syntax Silver badge

          If you had a readme you were off to a good start. Possibly. The readme might just say "this doesn't work and I can't figure out why"

          Of course the worst thing is when, after looking at it for a while, you realise it was actually you who wrote it.

          1. doublelayer Silver badge

            In my experience, I can almost always count on a readme being present. In the same experience, I can't count on the readme having any text in it. Sometimes, I think devs have left literally or semantically empty readmes as pranks. I think it annoys me slightly less than vibe-coded repos' compendious readmes telling me all the things that the software doesn't actually do yet, but I'm not even sure of that.

            1. mcswell Bronze badge

              ReamDe

              I recently ran across a Readme that was obviously written by an AI. I backed off.

          2. ITMA Silver badge
            Devil

            As long as it doesn't start off with....

            "Abandon all hope, ye who enter here...."

            :)

      3. pirxhh
        Mushroom

        Welp, to train someone, you need to know what the system does, and especially what *not* to do to avoid -->

  4. Sandtitz Silver badge

    OS/2

    'twas about 25 years ago and I was asked to go and replace a network card in a pharmacy PC.

    Upon arriving I was met with a dusty old PC with OS/2 1.x in it with 10base5 connection.

    I was reasonably versed with OS/2 2.1 and Warps but that obsolete thing was just a mystery. I made my excuses and left the premises.

    Not worth the potential trouble of fucking up the whole computer.

    1. GlenP Silver badge

      Re: OS/2

      You've reminded me that I was once asked to look at a PC from a Doctor's surgery that had been used for a proprietary records system, with a view to recovering data from it.

      Once I ascertained that it was SCO Unix* based, that they didn't have any admin passwords, and that the two drives were in a RAID 0 config we had to decline. It was annoying as it could have been quite lucrative for my employer.

      *None of this fancy modern Linux stuff! :)

      1. Bebu sa Ware Silver badge
        Windows

        SCO Unix that they didn't have any admin passwords,

        Pretty common occurrence back then.

        I certainly encountered a system running USL System V/386† in the late 1980s which was used periodically for some statistical analyses but in the intervening time the last person who had used the box had departed and no one knew any password for the box (or had installation floppies or rescue diskette.).

        From what I recall, it was fairly easy to break into it from single user and reset the root password and user account password but the scsi disk was throwing errors all over the place, a problem which, given my presence was only a "grace and favour" courtesy, I left in their incapable hands.

        Now at an age when questions like "did US the nickel ever had bumblebees on the reverse" now seem pressing as against "who gives a rat's" but it appears that gramps recalls the stars on the Shield and Liberty Head nickels as bumblebees. Possibly I was born autistic but we didn't have any of that in those days so I had to make do with being a Right PITA or a congenital BoFH. ;)

        † System Vr3[.2?] like SCO Unix

      2. cdegroot

        Re: OS/2

        I once was in a situation where the records were on a Wang computer and the vendor of the new system insisted that the only way to get the whole accounting system over was to type everything by hand.

        I looked at the Wang:s printer cable, it looked serial, hacked up a little program that made a PC act like a printer on the serial port, and asked them to print all the reports.

        Job done, never needed to touch the Wang :)

        1. Yet Another Anonymous coward Silver badge

          Re: OS/2

          >Job done, never needed to touch the Wang :)

          Said no programmer....no I can't do this it's beneath the proud heritage of el'reg humour

      3. TeeCee Gold badge

        Re: OS/2

        SCO Unix based

        Yup. Right to turn that one down. You could have ended up as collateral damage in a court case just from knowing what it was and how to spell it.

      4. pirxhh

        SCO UNIX

        The lack of admin (root) password would not have been an issue; just image the disks to a new system and then mount the image.

        RAID0 could be the dealbreaker, the proprietary records system may or may not be (in those times, encryption was rare).

  5. AlanSh

    Similar, but not as dangerous

    Working at a small borehole surveying company in the UK, we contracted out for a payroll system. It eventually arrived but had the occasional glitch. I was asked to review it. It was all written in BASIC and had GOTO's all over the place. Just a horrible mess.

    As the OP did, I walked away from it, but then sat down and wrote a completely new payroll system in Fortran which ran on the state of the art Data General Nova 3 - which may give you a clue as to how long ago it was. When it was ready, we threw the old one out and used mine. Worked fine right until we got taken over and the parent company's payroll system was used.

    1. Aladdin Sane Silver badge
      Trollface

      Re: Similar, but not as dangerous

      I've worked for plenty of boreholes.

      1. LogicGate Silver badge

        Re: Similar, but not as dangerous

        Keep in mind that the OP specified that he only worked for a SMALL borehole.

        There is a difference.

        1. Aladdin Sane Silver badge

          Re: Similar, but not as dangerous

          "at a small borehole surveying company"

          Was the company small or the boreholes?

          1. Jou (Mxyzptlk) Silver badge

            Re: Similar, but not as dangerous

            Dentist or Oil company. Choose your fate.

          2. LogicGate Silver badge

            Re: Similar, but not as dangerous

            And that is the power of creative misunderstanding!

        2. Richard Pennington 1

          Re: Similar, but not as dangerous

          My sister was once invited to join a group for a small-bore shooting event.

          She asked who the small bores were ...

    2. big_D

      Re: Similar, but not as dangerous

      You were lucky, I was taken on specifically to maintain such a system (see my comment further down).

  6. ColinPa

    Please can you change your infrastructure to fix this application bug

    I worked in a big product used by most of the world's largest customers.

    I was at a large US government institution. There was a new head of IT strategy (political appointee) who wanted to rip out what was there, and replace it with "scaleable windows boxes" (Just go down to Walmart and buy another 100 machines!).

    One reason for this was they had "lost the application source" (his words) for some of the programs (the techies knew where the source was - it was just a total mess of gotos etc.).

    Rather than fix some bugs in their code - they wanted us to change our product to fix problems in their application. I kept a straight face and said I would take the request back to our management, but I expect the answer was no.

    When I mentioned this to the technical guys I was working with, they rolled their eyes, and sadly smiled, saying don't worry - it will be some other impossible request next week.

    1. FirstTangoInParis Silver badge

      Re: Please can you change your infrastructure to fix this application bug

      About as good as most of the political appointees in the current US administration then. At least the UK does use actual elected politicians to run its departments, even if there might be little value add now and again.

      1. phuzz Silver badge

        Re: Please can you change your infrastructure to fix this application bug

        The politician is nominally in charge of the department, but it's actually run by the Civil Service.

        eg HMRC is run by this guy, but the politician in charge is whoever is named "Exchequer Secretary to the Treasury".

        I guess a politician is better than just getting one of el Predidante's mates to do the job, but not many politicians have any training in anything relevant or useful.

        1. DJV Silver badge

          Re: not many politicians have any training

          Most politicians are as trainable as the average moggy. However, a politician's verbal output is very comparable to what the average moggy deposits in a litter tray.

          1. ITMA Silver badge
            Devil

            Re: not many politicians have any training

            "Most politicians are as trainable as the average moggy."

            Sir Humphrey Appleby may take a contrary position to your postulation about the receptibility of felis catus to behaviour modification strategies.

            1. Anonymous Custard Silver badge
              Pint

              Re: not many politicians have any training

              I'm glad I'm not the only one who got strong "Yes (Prime) Minister" vibes from this part of the comments.

              Have one of these on me for the weekend...

              And for those who don't know the shows, they are very highly recommended viewing.

              1. IanRS

                Re: not many politicians have any training

                They are also still as relevant as when they were first produced, unfortunately. Unfortunately for the state of the UK government that is, not for for entertainment purposes for which they excel.

                1. Doctor Syntax Silver badge

                  Re: not many politicians have any training

                  I think that nowadays we have rather more SPADs than in those days and more political interference in appointment to top positions in the Civil Service.

                2. Anonymous Coward
                  Anonymous Coward

                  Re: not many politicians have any training

                  Sadly for the USA, having Sir Humphrey, et al, in control of the USA would probably be an improvement. (For the slower of thought, I'm not saying that it would be a good thing, Just better than what we've got now.)

            2. Anonymous Coward
              Anonymous Coward

              Re: not many politicians have any training

              Yes, cats are very trainable as long as the cat wants to learn. Even orange ones often come up with solutions you haven't taught them.

              1. ITMA Silver badge
                Devil

                Re: not many politicians have any training

                Oddly (or maybe not), most cats thinks humans are very easily trained.....

                The old saying - dogs have owners, cats have "domestic staff".

  7. Jou (Mxyzptlk) Silver badge

    New TheReg Tag "Not Me!"

    There are so many "I won't touch that" scenarios around, it should make enough stories for it's own tag!

    1. robinsonb5

      Re: New TheReg Tag "Not Me!"

      The software equivalent of Derek Lowe's hugely-entertaining "Things I Won't Work With" series?

      1. Aladdin Sane Silver badge

        Re: New TheReg Tag "Not Me!"

        Meatloaf's lesser known hit:

        I'd Do Anything for IT (But I Won't Do That)

      2. Jou (Mxyzptlk) Silver badge

        Re: New TheReg Tag "Not Me!"

        Dioxygen Difluoride...

        Thank You!

        1. just4this Silver badge

          Re: New TheReg Tag "Not Me!"

          Crater Makers

        2. Fr. Ted Crilly Silver badge
          Mushroom

          Re: New TheReg Tag "Not Me!"

          Worthy of John D Clark is that.....

          Utter Madness

        3. Michael Strorm Silver badge

          Re: New TheReg Tag "Not Me!"

          Here's the complete list of "Things I Won't Work With" articles including countless classics such as "Sand won't save you this time".

          1. Jou (Mxyzptlk) Silver badge

            Re: New TheReg Tag "Not Me!"

            And don't skip reading the comments below his posts... Similar quality to what you can get here, if not better!

        4. WolfFan

          Re: New TheReg Tag "Not Me!"

          FOOF! We loves it! I've never actually seen it in the wild, but have read about it in action, both fiction and non-fiction. Apparently it sets the water vapour in air on fire. FOOF is on my list of substances to be observed, not played with, and any observation should be from at least one kilometer.

          Note: 'foof' is apparently the sound it makes when a small quantity of liquid FOOF is dripped into water. Someone else can verify if this is true.

        5. Not Yb Silver badge

          Re: New TheReg Tag "Not Me!"

          Reminds me of that line about ClFl3 "hypergolic with such things as cloth, wood, and test engineers, not to mention asbestos, sand, and water"

          It's one of the few chemicals that covering a spill with sand won't help.

        6. This post has been deleted by its author

    2. Bebu sa Ware Silver badge
      Windows

      Re: New TheReg Tag "Not Me!"

      >There are so many "I won't touch that" scenarios around

      If you ever work with R&D chemists there are places you wouldn't want to go let alone touch.

      "What are the black and yellow chevrons on the foor and the big black safe next to them for?"…

      "HF? Sorry I think I need to be in another building." (Only one of the many horrors lurking in the labs and stores.)

      When the firealarms went off Rincewind was an also-ran when came to my speed of evacuation.

      "NEXT TIME."

      1. Anonymous Custard Silver badge
        Headmaster

        Re: New TheReg Tag "Not Me!"

        I'd avoid the semiconductor manufacturing industry then.

        HF - check. F2 - check, ClF3 - check, various other acids - check, Silane - check, Phosphene - check, HCl - check, Hydrogen - check, pure Chlorine - check.

        The general mantra is, if you use it, treat it as probably something that will be trying to kill you in some fashion or other.

        John D Clarke's quote about the merits of running shoes as PPE is very much on-brand (except we have to wear safety boots).

      2. IanRS

        Re: New TheReg Tag "Not Me!"

        I once worked in a clean-room facility where there was HF acid stored. The 'emergency rinse' shower within the room had a pull chain which basically opened the bottom of a cubic meter water tank in the ceiling. As far as I know it was never actually needed before the building burned down.

        1. Anonymous Custard Silver badge
          Boffin

          Re: New TheReg Tag "Not Me!"

          Liquid HF needs much more than that, at least if you like your skeleton, nervous system or indeed living beyond next week should it splash onto your skin in any significant amount.

          It's one of those ones I'd urge people of a nervous disposition or a weak stomach not to research into any further, or indeed to go anywhere near.

          1. andy the pessimist Bronze badge

            Re: New TheReg Tag "Not Me!"

            HF is used inside a semiconductor fab. Its used to etch silicon dioxide on wafers.

            Very dangerous stuff.

            It cannot be diluted to make it safe. It has to be neutralised to make it safe. It carries on etching anythinguntil it is neutralsed.

          2. DoctorPaul Bronze badge

            Re: New TheReg Tag "Not Me!"

            Back in the 1970s I did evening classes making stained glass panels, loved it. One of the techniques involved acid etching glass. Only one acid does that. Don't know where the tutor got it from and we did the etching in the back yard of her house. "The past is a different country"

        2. DS999 Silver badge

          How long would that water have been there?

          Though I suppose smelling bad and being covered in whatever had grown in that water during the intervening years would be better than whatever HF would do to you.

      3. Anonymous Coward
        Anonymous Coward

        Re: New TheReg Tag "Not Me!"

        "If you ever work with R&D chemists there are places you wouldn't want to go let alone touch."

        Reminds me of an old joke - how do you tell a physicist from a chemist in the bathroom?

        .

        .

        .

        .

        The physicist washes his hands AFTER using the toilet.

        1. Doctor Syntax Silver badge

          Re: New TheReg Tag "Not Me!"

          With microbiologists it's before and after.

        2. mitch 2

          Re: New TheReg Tag "Not Me!"

          Also curry chefs.

      4. Doctor Syntax Silver badge

        Re: New TheReg Tag "Not Me!"

        HF? Like most things, providing you know to treat it with respect and do so it's OK.

        I occasionally used it when a core for pollen analysis extended into the subsoil. One stage in the preparation was boiling in HF in platinum crucibles and centrifuging in polypropylene tubes. I think SWMBO probably did more of that sort of material than I did. We're both still here nearly six decades on. The HF was used sparingly so a 1l bottle lasted a long time.

        It took a long time for me to work out why no amount of tightening the seals on the trap would stop the sink leaking (a Belfast sink in Belfast). Somebody had emptied their HF supernatant without running water into the sink and the glaze was now porous.

        Something similar - in the next job panicky people would occasionally bring in red and black seeds to be checked to see if they were precatory seeds (Abrus precatorius) which they were. A colleague, a toxicologist who hailed from East Africa where they were common, said there never any poisonings there; people know the dangers and treated them with respect.

      5. Paul Cooper

        Re: New TheReg Tag "Not Me!"

        For a while, my office was the other side of the corridor from a lab where they routinely used HF to dissolve rocks to liberate fossilised pollen (don't ask me how that worked - I kept well clear). I recall that it took them quite a while to commission the labs - the fume cupboard exhausts had been installed incorrectly by the contractor!

        1. Doctor Syntax Silver badge

          Re: New TheReg Tag "Not Me!"

          Sporopollenin, which is the material that forms the fossils, is amazingly durable except in neutral to alkaline soils where there's microbiological activity. NaOH, HF, a nasty mixture of acetic anhydride and conc. sulphuric (explodes in contact with water), don't affect it except that acetylation turns it a bit yellow.

    3. Doctor Syntax Silver badge

      Re: New TheReg Tag "Not Me!"

      Nole me tangere

  8. Bebu sa Ware Silver badge
    Windows

    Important life lesson: "Some things are best left alone"

    Ought to be in bold capitals flashing alternately between red text on green and green text on red.

    Personally I would punt for the stronger "Most things are best left alone."

    The sentiment is echoed in the Vetinari family motto in Discworld Latatian "Si non confectus, non reficiat" which is politely rendered as "if it aint broke, don't fix it" but I suspect more literally "if it's sweet, don't shit on it."

    The contemporary FAFO is just a modern variation on the same theme.

    1. Ochib

      Re: Important life lesson: "Some things are best left alone"

      If you put a large switch in some cave somewhere, with a sign on it saying 'End-of-the-World Switch. PLEASE DO NOT TOUCH', the paint wouldn't even have time to dry.”

    2. Vincent Ballard
      Headmaster

      Re: Important life lesson: "Some things are best left alone"

      Considering the possible options for confectus, I think the most contextually appropriate literal translation is "If not worn out, don't repair".

      1. Antron Argaiv Silver badge
        Thumb Up

        Re: Important life lesson: "Some things are best left alone"

        I have recently discovered the German word: Verschlimbessern

        To break something while trying to fix it. Literally, I think, to make something worse while trying to make it better.

        1. Jou (Mxyzptlk) Silver badge

          Re: Important life lesson: "Some things are best left alone"

          Yes, that word has the same meaning as Don McMillan "Engineering successful day" : Solved three problem, creates six new.

          I have one more for you: "Zu Tode optimieren." Literally: "optimize 'til dead."

        2. pethan

          Re: Important life lesson: "Some things are best left alone"

          Kaputreparieren - when you do maintenance on a time basis, disassemble the machine that is working well, replace bearings and seals and assemble it, and now it fails.

          1. Jou (Mxyzptlk) Silver badge

            Re: Important life lesson: "Some things are best left alone"

            > Kaputreparieren

            1. Kaputtreparieren. Two "t".

            2. Actually not used in Germany, at least not as much as you might expect. Some words don't make sense.

  9. Anonymous Coward
    Anonymous Coward

    Ok. So this is a kinda not my job story.

    I was given a request to look at a billing database and fix it as it stopped working. This was, wait for it, MS Access...

    The lad had left but his database was the messiest shit I had ever laid my eye's on. There was code which switched to macros (why the hell did you do that when you could have just stayed in code?) then to reports which there were no reports that needed to be run, it was just an excel output to generate the billing file for another system. It was like going down a rabbit hole of moving from this to that then back again just to get to what the hell it was doing.

    It took me a whole day to figure out what was going on and I finally got to the bottom of the problem. To this day I still can't work out whether it was intentional or was just down to how fucking useless they were but there was a table. A table with each days date in it and when it got to the end it stopped working. All you had to do was add more dates. Literally a table with each day in it as date format.

    This was absolutely not part of my job so I offered to re-write the whole thing but they would be paying me 2 days overtime for the privilege because I really didn't have the time to spare with my own job. They declined. I fixed it 3 more times before I left as a favour because it had yet more issues than the one I highlighted. I'm guessing it's dead now. It was only a quarter million pound of billing each month to be fair...

    I'm generally the most helpful IT guy but there are some things I won't get involved in when it means putting myself way outside of my working hours for a department I don't even work in. Trying to fully reverse engineer that would have been extremely painful. Sometimes you just have to say no.

    1. Doctor Syntax Silver badge

      There seems to be a way of thinking that runs along the lines of "Macros (or whatever) sound cool. Let's try it here." It's probably the same mentality that thinks "I'll press this big red button to see what it does."

      I encountered a C program written my a COBOL programmer who put in a lot of macros to make it more COBOL like. Eventually, when I needed to alter things inside some instances of some macros I just ran it through the C pre-processor to get rid of them all.

      1. Paul Cooper

        "Numerical Recipes" was a goto book for scientific Fortran programmers in the 80s. It was a marvellous compendium of all sorts of mathematical procedures. But as C became more popular, they brought out "Numerical Recipes in C" which provided C code to cover the same content. Unfortunately, they did this using some horrible kludges to make C behave like Fortran. I particularly remember the function they provided to make arrays 1 based (as in Fortran) rather than 0 based (as they are in C). It was a classic illustration of the ancient maximum "You can write Fortran in any language"! I still have both on my shelf....

    2. TSM

      I had to apply a similar fix to one system - also an Access database - in my very early days at my current (>20y) employer. There was a table with two columns, which were months in YYYY MM format and in MM YYYY format. Budgets could not be entered until the appropriate entries were added to this pointless table. Speculation around the office was that this was intended as job security for the contractor who built it, as direct access to the table was hidden away; however my colleagues had discovered that it could be accessed as a linked table (from a scratch database maybe? I don't remember the details) and this fix applied without calling the contractor in.

      That database and front-end was otherwise sane and reasonable, we'd just outgrown it (and the business process around it was awful, with each office having their own version). I did have the actually fairly interesting experience many years later of doing some heavy refactoring of another Access database (and front end) supporting a critical business process. That one was much more nightmarish in design (it's always a good sign when, among properly named queries, you also have query1 up to query55), but I was able over a couple of weeks to (a) get the thing working again (the XP virtual server it had been running on had finally carked it and we were standing it up on Win10, so there were some issues), (b) fix some longstanding bugs and correct some business logic that had evolved in the 10+ years since it had been last touched, and (c) get the daily process down from 2.5 hours to 15 minutes. There were many more opportunities for improvement, but diminishing returns vs exponential increases in the amount of time it would take to understand and rewrite sanely everything that it was doing meant that it was not worth anyone's time.

  10. Robin

    Interesting indeed

    a visit to a power station sounded really interesting

    They are indeed! I worked for a recently-built one way back before I went to uni and loved it. That was also pre-Matrix so I'm guessing it was around the same time as TFA. I was tasked with all kinds of interesting things which allowed me to explore all the different areas, and I'm able to confirm the OP's thoughts on turbine blades from when one of them broke off, flew through the machine casing and out of the roof of the whole building.

    I also got to work night shifts and was once completely in control of the whole thing when my supervisor went to make us some tea. My instructions were something like "If that display there goes orange, press this. If this one here goes red, come and get me."

    I even managed to write some code and I'm *reasonably* certain it's not the stuff mentioned in the article...

    1. Inventor of the Marmite Laser Silver badge

      Re: Interesting indeed

      That wouldn't happen to have been Aberthaw B station, would it?

      I recall visiting there in the late 70s and being told the tale of condensate pump failure and no standby being available, leading to condensate backwashing into the LP turbine, resulting in a bit of a mess*

      *Most of the LP turbine left via the roof, the main shaft - 22" diameter chrome moly steel - bent and the main bearing bolts, 1¼" diameter, parted in a textbook tensile fracture. They called in the National Spare.

      If you wore black leather shoes there, they'd polish up with a lovely deep shine.

      1. Robin

        Re: Interesting indeed

        It wasn't, but having read this the more I think turbine manufacturers need to improve the glue that holds the blades on!

    2. Anonymous Coward
      Anonymous Coward

      Re: Interesting indeed

      My thermodynamics instructor brought a turbine blade to class one day. It had an odd weight-like piece attached to it. He said one of those had come off, chewed its way through the downstream turbine blades, punched right through the pumps, and came back around for another pass, destroying the (originally) upstream blades.

  11. ComputerSays_noAbsolutelyNo Silver badge

    Sometimes the best move in a game is to not play at all

  12. MarkMLl
    Mushroom

    Ouch, on many fronts.

    I've certainly worked with people who believed that any time you installed software it left it in a state where anybody else could purloin the source.

    I've also come across people running CP/M (strictly, CCP/M-86) in an environment where people knew what "prompt critical" and "scram" meant.

    Fortunately, I've never come across a safety-critical system where the code that animated it could be edited interactively.

    1. Excused Boots Silver badge

      Re: Ouch, on many fronts.

      Hmm, ‘prompt critical’ not something you want to hear when operating a reactor, as things can well go bad, quite quickly, and by quickly, read tiny fractions of a second.

      1. Boris56789

        Re: Ouch, on many fronts.

        I remember a joke my dad told me. He said when Chenoybil happened they had a special box to open in case of emergency.

        Inside it had a letter. Only open, if a criticality is about to occur. Just said the words "Pray".

        That is one dark humour, but every time I have had a job come up for a nuclear plant for just doing management reporting, I just think hell no as I don't want to be there when you hear that alarm. Containment building or not.

        If the British, Russian and Americans have had criticality issues and the Japanese you know it's just playing roulette and hoping your not there when the bullet hits the chamber.

        1. Robert Carnegie Silver badge

          Re: Ouch, on many fronts.

          But each time something went wrong, they learned what to not do next time. ;-)

  13. Bebu sa Ware Silver badge
    Windows

    Back then…

    I don't think power engineers had much confidence in computers or electronics generally, and mechanical engineers even less. I imagine that fail·safes built into the turbines and generators were electro-mechanical as would the primary feedback control. Synchronous machines are really brutally basic steam age technologies.

    My guess is the CP/M monitoring box logged all sorts of maintenance relevant data and flashed the amber or red lights on the control room consoles. The techs probably just looked at the dials and meters, and listened to the turbines and generators like an old school auto mechanic.

    Nowadays everything is controlled by legions of shitty SBC boxes connected to the Internet from which any toe·rag in a basement in Krapistan can screw with.

    1. Sam not the Viking Silver badge

      Re: Back then…

      To be fair, we used electronics and computers as soon as they became available for our rotating equipment. Mechanical over-speed trips are nightmarish devices to set and once fixed on the rotor, recalibration becomes a bit of an issue....

      On initial setting during manufacture, the bare rotors were subjected to an 'over-speed' test just to ensure nothing came off at normal speed + margin. The room (we called it a 'cell') where this test took place was un-manned with no windows and steel doors. The rotors themselves were enclosed in another thick, steel enclosure, just in case..... It was frighteningly noisy..... For obvious reasons, the actual speed was measured by sensors rather than a hand-held mechanical tacho...

      As I recall, the staff all had hair (I should say, those that had hair...) which stood up. No-one had a beard....

      I have been on a site where the customer was having 'problems' with a sister-company's machine. I saw the huge cracks in the rotor; it was obvious that they had 'saved money' by using a cheaper grade of metal. Well that turned out well for them. When they questioned my observation, I invited them to come and stand next to the machine when we ran it up.....

    2. JWLong Silver badge

      Re: Back then…

      >> I imagine that fail·safes built into the turbines and generators were electro-mechanical as would the primary feedback control <<

      Not really, most critical safety systems today depend on pure mechanical controls. I was trained in rebuilding/overhauling/testing mechanical safety systems for propulsion boilers/high pressure steam systems in the USNavy.

      As far as being in a space when a generator turbine comes apart,------you don't want to be there.!

      https://www.google.com/search?udm=14&q=copes+water+level+control

  14. NXM Silver badge

    Phones

    When I were but a nipper I was asked by a family friend who was the head of the local hospital to have a look at their phone system. It was an impenetrable collection of wires and racks with some sort of computer in charge, and no manual at all.

    I walked away. One of my better decisions.

    1. Someone Else Silver badge

      Re: Phones

      "Yeah, it looks like a phone system, alright....sorta. See Ya!"

      1. Rob Daglish

        Re: Phones

        Phones i eventually figured out, my failure to walk came at the local theatre's lighting rig, youthful bravado, and a desire to impress people with my allround technical prowess...

        It took most of a day, a bit of googlefu and a sleepless night to realise that the Strand dimmer packs had 10 outlets which were paired, not independent. I *wish* I'd grasped that before I wiped the lighting desk because i'd convinced myself there muat be something wrong in it's programming I couldn't find causing it to double up.

        That then led to me panicing about having to figure out how.to tell it to work the moving lights, which involved morw googlefu, finding some patch files and then programming them into the desk with a floppy disk, which was not the easiest thing to find, wven as far back as 2013...

        I was reasonably convinced I'd gotten away with it until after we ran the first show, when the theatre manager arrived wanting to know how i got the movers working as tbey'd been unable to use them for 6 months.... at whjch point i had to confess my misdeeds and explain. He was very cool.about the whole thing, and actually asked me to work there on a casual basis as part of the tech team.

        You'd think an experience like that would teach me to walk away from stuff I knew nothing about. Sadly, it didn't, alrhough I wish it had!

    2. DS999 Silver badge

      Re: Phones

      In my first "real" post college job I worked for a medium sized engineering firm, one of four people in MIS (management information systems - which tells you something about their mindset that it was still named that in the 90s)

      We had sort of a dual role, supporting the corporate systems which were a VAX mini, Novell mail and file servers, internet router with T1 connection, FDDI rings, and phone system, and also the engineering workstations which were a combination of PA-RISC workstations and some older Apollo Domain systems. There was also a project just beginning to implement SAP on HP-UX servers.

      I already had lots of experience with PA-RISC and Apollo which was the reason I was hired but my boss wanted me to gain some knowledge of that corporate stuff, especially the VAX and phone system. I was completely uninterested in that so I did my best to always arrange some "emergency" with the engineering application support people (one for EE who dealt mostly with Mentor, one for ME who dealt mostly with SolidWorks) to pull me away anytime I was scheduled to sit with the guy on our team who was the VAX specialist, and especially when I was scheduled to sit with the guy who was the phone/Novell specialist!

      I worked there for a little over a year and I'm proud to say my planned ruses were so successful that while I did end up executing a few commands on the VAX I never had an account created on Novell and never even learned where the phone system lived let alone saw it or touched it! The VAX guy went off for six weeks of SAP Basis training during my time there but the phone/Novell guy handled the VAX stuff during his absence. The VAX guy, now worth a lot more after being fully trained in SAP Basis, left a few months after I did for double the salary so if I hadn't already left there would have been no way I could have avoided learning all that crusty old tech - a lucky escape!

  15. Conrad Longmore

    Not safety critical

    Back in the days of Y2K remediation I visited a branch facility where there was an 1980s-era Epson QX10 CP/M machine sitting proudly on top of the PABX, it had probably been powered on about 15 years previously and just worked. Decided it probably didn't even have a real time clock and left the damned thing alone. They also had a multiplexer for talking to the corporate mainframe which had been built BY HAND and paired with an identical multiplexer in the main office. Left that alone too. On the plus side, the staff canteen served beer and steak and kidney pies for lunch.

    1. Caver_Dave Silver badge
      Boffin

      Re: Not safety critical

      I wrote a debugger on an Epson QX-10 (Zilog Z80) to single step an Epson PX-4 for my development.

      I was very happy when it was replaced with an Epson QX-16 as it had a HDD.

      [Interesting fact about the QX-16 was that it also had an 8086 processor and so could boot in CP/M or DOS. I wrote code that ran unchanged on DOS and CP/M on the QX-10 as the BIOSs were so similar.]

      Icon as even Epson UK used to ask me about their computers.

  16. big_D

    Go To A

    My first professional gig was working on a corporate reporting system. It allowed the users to enter the numbers for various part of the COA pack them up and send them off the to HP 3000 mini computer at corporate HQ in Luton... It was pretty advanced for the time, worked on CP/M and MS-DOS running on HP 125 and 150 PCs respectively. It had forms, which were controlled by a config file, which said which field was shown where and what values it could accept, so changing the COA was just a matter of editing the config file.

    That was the good news. The bad news is, I had to maintain the code and add new features and fix bugs... For a system written in MS BASIC by FORTRAN programmers and maintained by COBOL programmers. I don't think a single one of them ever opened the BASIC manuals.

    The menu structure was controlled by computer GOSUBs (GOSUB a*10000) and computed go tos everywhere.

    The program was hitting the 64KB memory limit on CP/M and MS-DOS wasn't much happier about it, the compilers were constantly spitting out their dummies! So I had to reduce the size of the code. There were hundreds of lines of code scattered throughout the code that were commented out, because they were no longer needed. Fine, I thought, let's get ride of those, that will fix the problems I'm having with the memory limits. WRONG! Go back to the previous paragraph and see if you can work out why my predecessor hadn't deleted the commented out code!

    Yep, the b*****ds had GOSUBs and Go Tos jumping into the middle of a bunch of commented out code and everything collapsed in a heap! In the end, I got rid of all the commented out code itself, just leaving the line numbers with a REM as a place holder - I spent about a week trying to work it and get the code to jump to correct positions, but I gave up and took the QAD approach to the problem.

    Why did I say they never opened the BASIC manual? This is why:

    100 A = 1

    110 PRINT "(escape code for something)";

    120 PRINT B$(A)

    130 A = A + 1

    140 IF A > C THEN GO TO 110

    Yes, they had never got as far as a FOR...NEXT loop let alone a REPEAT...UNTIL or a WHILE...WEND. Every time there was a need for a for loop etc. it was written as above, incrementing the variable and checking to see if it had reached its maximum value, and if it hadn't, it jumped back to the start of the loop!

    I suffered from BASIC PTSD after that project, but I did such a good job of getting it all working again, that I was given a 100% payrise at the end of the project - I only got the gig, because I wanted less than their minimum salary, when I started. Being cheap, they took a chance and then found out I was worth a proper salary to keep me there.

    1. Caver_Dave Silver badge

      Re: Go To A

      That menu system with GOSUBs (GOSUB a*10000) was fairly standard practice and more efficient than the equivalent large switch statement now.

      1. NetMage Bronze badge

        Re: Go To A

        Not more efficient than switch statements in any compiled language, where switch statements that can be optimized become the machine code equivalent of a computed goto.

        1. that one in the corner Silver badge

          Re: Go To A

          I hope your downvoters never claim to have implemented a language. At least, not a good one. Not even a version of BASIC.

          GOSUB 1000*A

          may *look* efficient to you, but just where in memory is the target line?

          It isn't going to be at any easily-calculated address - for starters, there could be anything from 1 to 1000 lines of BASIC between a=k and a=k+1 (please tell me you haven't forgotten that gaps between adjacent line numbers in BASIC are arbitrary). No matter how your BASIC worked (be it compiled or an 80's style microcomputer interpreter) there is no way it could avoid doing a search at runtime to find the target line for a calculated jump like that. A plain old GOSUB 27 could at least have the 27 be replaced by the actual address, in either a compiled or interpreted form, but your calculated GOSUB could land anywhere! Even in the crudest forms, A would be 16-bit and nobody is going to replace that expression by a 65536 entry table of possible targets (most of which won't exist) because just how do you think you've told the language what the possible range of values for "a" is? There isn't even any reason for it to suspect that "a" is using a continuous range of values: one day option 3 is removed from your menus, all the lines from 3000 to 3999 are deleted and someone jiggers with the code that renders the menu to avoid leaving a gap *and* to avoid having to renumber all the remaining lines (you can't just go REN 10,10 'cos now *none* of your computed GOSUB/GOTO lines will reach their intended targets).

          At least in a large switch statement, the interpreter/compiler has at least been told by the code precisely which lines are possible targets for the jump!

          There is a reason why a Pascal/C/C++ or similar compiler likes you to use the values from an enum as labels for a switch statement, to the extent that there will even be an warning message to point out that you've not included every member of the enum in your targets: the compiler WILL generate a fast and efficient direct jump table in those languages.

          Weirdass languages with Johnny-come-lately switch statements (cough - Python - cough) that are effectively only computed targets - well, they may look neat to write but they've got to have a stupid amount of implementation logic to scan every target before being able to generate a best-case optimised result. Assuming they'll bother.

      2. that one in the corner Silver badge

        Re: Go To A

        You were doing so well with the "standard practice" (especially as WHILE-WEND means you have a really flash version of BASIC). So could get a thumbs up for that.

        But then you go and spoil it with the claim about being efficient compared to a switch statement (ref my response above), so gotta take the point away again.

    2. disgruntled yank

      Re: Go To A

      This is the sort of coding I refer to as "preloopsarian", used when one has discovered assignment and branching but not yet iteration.

      1. Pascal Monett Silver badge
        Devil

        The prehistory of programming.

        Fascinating.

      2. Diogenes

        Re: Go To A

        My first real programming assignment after finishing my training in the 80s was renaming variables in a Pl1 program. While they were meaningful, they could be in any one of English, German or French, depending on what was shortest ( I made the mistake of confessing to being fluent in German and comfortable in French) - that was the only program that programmer had written before he was sacked, I was employed as his replacement.

        My second assignment was to reverse engineer a 5000 line Pl1 program written in the late 60s it was all gotos and variables like A, B C C1 D etc and bring it up the current programming standard. Being young and dumb I had no fear. Although Nasti Spiderman diagrams were our standard for program documentation, I spent a week doing a bastardised flowchart before touching 1 line of code.

        Both jobs were done by hand on coding sheets which went to the lovely ladies in the punch room.

        Both were given to me as make work as I had finished my training weeks before expected, and the project I was supposed to be on hadn't been stood up yet. Got through both jobs faster than estimated, and were the only jobs I ever did using punch cards. We got terminals , 1 between 2 when I went to my project.

    3. IanRS

      Re: Go To A

      In the early 90s I was working on a summer work project on building an imaging sensor in pure hardware. It was an interesting project but I made the mistake of saying I had some programming experience, and so got moved onto a software project that they did not have anybody available for. I had to port an application written in HP Basic running on an HP workstation to be in HP Basic running on a PC. The two versions of HP Basic were very nearly compatible.

  17. I was Spartacus
    Mushroom

    Want to know what over speed looks like?

    I worked for a company in Manchester that used to make these turbines for power stations. They made the whole spinny fan thingy. And yes, they are seriously large and impressive. One of the things they have a huge, heavy, concreste flywheel that add sufficient inertia that changes to the running speed are damped out. Modest amounts of too much or too little steam doesn't significantly change the rotation speed.

    And they test these things. Of course they do. And on one over-speed test the concrete flywheel failed. Litterally destroyed itself. Made a hell of a mess in the machine shop floor. Mor impressive was the hole in the roof where one piece escaped the containment that was specifically designed not to allow this, but had, well, never been adequately tested. It landed over a mile away in some poor sods garden and missed hist kitchen by less than a metre. He made a hell of a mess of his trousers, as well.

    1. Sam not the Viking Silver badge
      Pint

      Re: Want to know what over speed looks like?

      Almost certainly, we worked on the same contracts, with the Manchester company being the customer for our rotating machines. Our salesman in that area was very friendly with Emil, and as well as doing good business together, they told the very best stories, parts sometimes quoted in the comments section.

      Older engineers are a great source of experience, tales and humour. (Example: Our man in Hong Kong, British, was known to us as Lim Pan Sheik. When he greeted you in the usual way, it was difficult to keep a straight face...)

      Have one of these --->

    2. David Hicklin Silver badge

      Re: Want to know what over speed looks like?

      Not overspeed but an almost trousers moment

      Fresh out of school in the late 1980's I started at a local engineering works that made generators and one machine that had in the workshop was programmed using punch tape. It made it very versatile for complex jobs and it had a vertical hydraulic piston that lifted the tool out of the way, or dropped it back down to start working.

      One day the chain over the top of the piston failed and it launched itself straight through the roof to land on the main road outside - thankfully it missed any traffic.

  18. Will Godfrey Silver badge
    Unhappy

    Approaching one Christmas

    There was a very small company that printed personalised Christmas cards. There was only one machine. It was positively ancient and would light up but not actually run.

    It was mostly TTL logic but with one anonymous Eprom where the program resided. This had an ominous bulge and crack. I called my boss and described the situation. That was passed round to the other engineers, but unfortunately there seemed to be no way out. The machine manufacturer was also unknown, so there simply was nothing we could do.

    That was the saddest situation I was ever involved in.

  19. Boris the Cockroach Silver badge

    Another from my

    younger days...... that spaghetti code I knocked up for a power station :)

    More serious.... a trip to one of the AGR stations and we're standing on the reactor lid looking at the refuelling machine.

    "What the fleck was that?" as we felt a sudden 'thump' through our shoes and we're ready to sprint for the exits.

    "Oh thats just a twitch" goes the guide, "It does that from time to time and we dont know why..."

    Well at least the station is downwind of here...

  20. AVR Silver badge

    The reverse situation

    Once I had to try and fix & maintain a bunch of Microsoft Word templates without documentation but with a whole lot of stuff going on in VB code. I actually managed to track down one of the people who'd written them (there was a team), but she looked at me blankly and explained it'd been more than a decade since she touched them and she had no idea what she'd done. You could put her down as the person who sensibly backed away in this case.

    1. Korev Silver badge
      Coat

      Re: The reverse situation

      So vbHey then

  21. Bryan W

    Crap code

    It is this developer's position that code that works is better than all the imaginary presentations, books, articles, whining and LinkedIn posts about how code should actually be written but no one ever follows. I have never encountered a piece of operational software that is NOT a hot f'n mess outside of the academic sterilized dellusions of FOSS. FOSS is the exception, not the rule, though big tech and friends will happily sell you the courses and tools to meet those unrealistic standards for your in house software.

    So the very idea that a working, functioning system is "crap code" not worth working on is funny to me because usually the people spouting that kind of stuff are inexperienced half arsed nitwits regurgitating Medium articles who couldn't code their way out of a wet paper bag without importing it from Node and are better suited to selling cloud automation subs to script kiddies who think they are sysadmins.

    1. doublelayer Silver badge

      Re: Crap code

      It is this developer's position that you should see more crap code. Plenty of production systems have problems like that, but they do benefit if you can get them fixed. Usually, the deficiencies aren't required for it to work, they're because it was written quickly or someone doesn't know why that's bad. A lot gets sacrificed in practice from the theoretical ideal, but that doesn't mean the sacrifice is a good thing.

      You assume that the software was functioning correctly. We don't know that. We don't know that because finding out what it was supposed to do is difficult if the code is impenetrable. If it's really important, then we can get out the scratch paper and reverse-engineer from what we have. Many of us have done such things, but only when it justified the substantial work it takes. In this story, we don't know if that was justified, and even if it was, it wasn't a good thing to do on the live system, in a running power plant, with the clients watching you puzzle over things. You're giving code too much credit for simply running.

    2. Anonymous Coward
      Anonymous Coward

      Re: Crap code

      As a developer/maintainer of both production-machine code and tools to work with it, I have definitely seen some functional but crap code. For example, at one point in the process, the user is required to type in the type/source of a particular raw ingredient. There's a dozen different options, with subtly different physical properties, and the code adjusts the ratios of how much of other ingredients to add later based on what is typed in. (Being a bit vague on purpose; this is my present employer!)

      Originally, there were 4 constants holding the 4 default ratios, then individual constants for each exception, and a giant nested IF statement to choose between them. Something like:

      If (source = "ABC") then

      ratio1 = defaultratio1

      ratio2 = defaultratio2

      ratio3 = ABCratio3

      ratio4 = defaultratio4

      else if (source = "DEF") then

      ratio1 = DEFratio1

      (etc)

      When we upgraded to a new computer system, I got official approval to upgrade this section of code to a 2D array (source vs ratio), with one line to look up and assign each ratio. As we later added a couple sources and a couple new ratios to set, this has been a major help.

      The original version was, indeed, functioning exactly as designed. It worked fine. It was still awful.

      https://thecodelesscode.com/case/23

      1. Excused Boots Silver badge

        Re: Crap code

        Da fuq!

        What, why, why way!!!?

        But yes, something might well work perfectly, doesn't mean its correct.

    3. Pascal Monett Silver badge
      Windows

      Re: Crap code

      Um, sorry, but in my almost 40 year career in programming I can tell you that crap code exists.

      It happens particularly often when a programmer who knows one language is called upon to create functionality in a language he doesn't know but is similar enough.

      The basic rule is that he then writes stuff as in the language he knows, when the language he is using actually has other entities that could do the job better.

      So you end up with language-A style programming in a language-B module. If you're an expert in language-B, you can spot it instantly and it is very painful. Especially since it works, and to remove the pain you will be spending hours (if not days) replacing the offending code and, especially, making sure the proper code does the job.

      It's functional, yeah, but it's like using GOTO instead of calling a sub procedure (and yes, I have seen that).

    4. that one in the corner Silver badge

      Re: Crap code

      > I have never encountered a piece of operational software that is NOT a hot f'n mess outside of the academic sterilized dellusions of FOSS.

      Gentlemen, I believe we may have just found the person responsible for all the crap code we keep encountering. Who may well have been shunted from project to project to minimise his impact on everyone else's work, whilst being told his "expertise is better used over here", until the PMs found his level, code not even he could make worse, hence his "dellusion" that the rest of us are, compared to him,

      > inexperienced half arsed nitwits regurgitating Medium articles who couldn't code their way out of a wet paper bag

      And as for describing FOSS as "academic sterilized" anything, I guess there is a chunk of FOSS that was released from academia, but there is plenty of that which is still in need of a jolly good tidying up. Perhaps, just perhaps, he is not as well-exposed to the big wide world of programming as he believes himself to be and, amongst other things, hasn't taken into account that all the well-known FOSS projects are looked at by many thousands times more people than the largest closed-source ever will be, so the value of making it just a bit neater is multiplied by that factor. Good code in FOSS isn't academic, it is basic business sense.

  22. ecofeco Silver badge
    Windows

    Specific instances of this?

    No.

    Many instances, of wildly different sorts across a lot of wildly different industries? From processes, to systems, to mechanical, to legal? Yes.

    Backed off as far as I could and C'dMA with as high a mountain of documents as I could make. And sometimes lost my job.

  23. Anonymous Coward
    Anonymous Coward

    Not quite a not my job post, but I visited a power station some years ago. We had flogged them some video capture kit and they complaining it was slow and not working properly.

    Switched PC on, straight away it came up with an error message about SMART error, imminent disk failure backup your files before data loss.

    Their response - "Oh, it was always does that!"

    Funny enough, our kit worked fine with replacement drive, but did wonder how they dealt with error messages with the generator. At least it wasn't a nuclear power station!

  24. Boris56789

    Working for a tiny consultancy

    When I started my career in the early 00s, had the fun of being given a Crystal reports manual for Win 95 and the machine and version were like. 20 generations later lol.

    I did it as I was young and stupid and nothing blew up, but did think I hope I get this right and bugger all makes sense from the book or the app and this was for creating vin reg docs for a Japanese brand of cars that are all hatch backs and seen as sporty.

    Thankfully got it working, but said id never do that again.

    Other time was a Sap install had been switched on and the departments budget was way off. Working with accounting clerk and translating German built into an the fly calc made by Sap was able to re engineer the calc and confirm the actual budget was in line and it was a sap bug.

    That's why they say you are implementing sap and in some cases you have just switched it on.

    That was very much the latter

  25. david 12 Silver badge

    iI didn't back away

    As I've written previously, for a decade I made a living as a BASIC programmer. A niche left empty because (as shown here), most people who knew BASIC weren't programmers, and most programmers didn't know BASIC. And yes, loadable objects, library code, computed goto's and embedded binaries all made undocumented code hard to follow. But at least (apart from the embedded binaries), the 'source' code was there.

    1. DoctorPaul Bronze badge

      Re: iI didn't back away

      Started off coding in BASIC, luckily BBC BASIC. That was good enough to do full-screen interactive video before anyone had heard of the IBM PC - BBC Micro, specialized video card, Philips analogue laser disc player. Dabbled a little with 6502 and 68000 assembler, looked at the Z80 and went WTF? From there progressed to Turbo Pascal and then Borland Delphi (best programming environment ever IMHO) for more multimedia development until the consumer Internet arrived and I spent the next 20 years or so trying to pipe multimedia through a straw. Saw the quote from the inventor of C++ something like "In C it's possible to shoot yourself in the foot, with C++ you can blow your whole leg off" and thought I'd give that a miss.

  26. Fred M

    Tom Cruise would have rewritten it in Rust on the spot. As Rust didn't exist back then, Tom Cruise would have first written Rust.

  27. Primus Secundus Tertius

    Make a flowchart

    In my experience, to get useless code working you have to analyse it. Construct a flowchart of what it actually does, then alter the flowchart and code until it does what it is supposed to do.

    1. Doctor Syntax Silver badge

      Re: Make a flowchart

      If it's OO also create an inheritance diagram.

  28. StargateSg7

    This one is a completely contrarian comment to the current what NOT to touch scenario and it is a tale that espouses the SHEER JOY of finding something utterly refreshing TO REDO!

    Waaaaaaaay back in the day in the late 1980's when the predecessor to a certain north Canada Data centre was NOT having its circuit breakers used to flash cook and explode Ham Hocks and Turkeys at 400,000 volts and 500 to 1000 amps or so, a crusty old manager far above my pay grade, wrote an entire 1000 Server board cooling system regulation software system entirely in COBOL and a few or many years later, our boorish, whiskey-and-rum besotted DBMS admin-rated and mechanical engineering crew were unceremoniously paid some pretty big CANADIAN PESOS to take a gander at our crusty now-well-retired-and-Tuscany-Italy-living code master to see how we could upgrade the then VAX-6XXX-something cooling code to run on a UNIX system in Objective-C/C++ which was just about that time getting REALLY popular with coders!

    Lo and Behold! What we saw and we were utterly MADE IN AWE OF, was the FINEST, most well-commented, most well-documented, most easy-to-read code we had EVER SEEN where even the equivalent of X = X + 1 was turned into "NOTE: Control variable for water level control loop at 27 C to 48 C narrow operational temperature range. Ensure any decision-tree code using this value to decided when to change a flow value during this loop, has a lower and upper bounds check of +27 C to +48 C (NEVER go below and never go above) and ensure anytime coolant flow temperatures get down to 30 C or up to 45 C raise warning semaphore FlowTemperatureWarningSemaphore to a value of 1 for temperatures 30 C and below and to 2 for temperatures 45 C and above and set to ZERO for nominal all-is-well 31 C to 44 C temperatures, and when temp is out-of-bounds do show warning line of text on CRT screen #2 which is the local machine control diagnostics screen which is to ALWAYS be placed to the LEFT of the centre operating console to ensure one needs only glance slighty to the left to see the bright yellow background line colour with dark navy blue text in high contrast."

    Such COPIOUS code notes told us everything we needed to know! We simply wrote a set of functions in C that ingested all the COBOL code and ALL COMMENTS and converted and exported out the KEY COBOL operators and comments to C/C++ and all key iterative loop code and all equivalent if-then-else statements which took but a snowy weekend to do!

    By the time the next Friday rolled around, we were ITCHING to flash cook another winter turkey into megawatt pieces but NOT due to frustration but rather IN GREAT CELEBRATION as a 100,000+ LINES of ultra-well-documented COBOL code was pretty much ENTIRELY auto-recoded into C++ AND WAS ACTUALLY WORKING VERY VERY WELL on a physical water loop test circuit all running on a SINGLE BOARD BOX that was an oil-cooled VME-bus dual Intel 80386 CPU-based real-time hard-interrupt-base UNIX system that comprised of a single 50 cm by 50 cm by 50 cm black box with four RS-232/RS-422 and four SCADA-like control ports on the back and two fail-safe real-time UNIX OS'es that could fail-over in less than 3 seconds to the other running-at the-same time OS keeping the last known GOOD cooling level intact!

    What a dream to see fail-overs working correctly! What a stunning victory to see coolant levels at a nearly-constant 36 C !!! What a stunning almost-too-easy code-conversion task that MANY had said would take up to 18 months to 2 YEARS to complete when it took a mere 11 days of recoding and 14 days of 24/7 testing and that was only because at least a FEW of those days in our remote location had us too besotted and too sleepy to even THINK about getting out of our warm down-comfortor beds to even BOTHER looking at the code when the outside temperature was a moooose-tache crackling -46 Celcius in the morning!

    AND WHAT A COMPLETE AND UTTER SURPRISE TO ALL when we reported back to our Admin Superiors that ANOTHER actual mechanical and electrical engineering team was needed RIGHT AWAY in our cold northern Canadian remote woods location in order to disconnect/switch out the current COBOL VAX boxes with the new single box system since it seemed EVERYTHING NEW was working JUST FINE in the test system!

    After handing off the keys and the finely-detailed well-illustrated Aldus Pagemaker-made 300 dpi 120 page black-and-white printed 5th Grade ENGLISH MANUAL OF OPERATIONS AND MAINTENANCE that took a mere 6 days to write by merely copying the source code comments and rewriting them in grade-school English, we were sent off back home for 3 months and when we all came back to blow up another whole ham hock on a 400 KV test circuit breaker line, we were pleasantly surprised to find no more VAX and no more fan noise!

    Twas met with a nearly silent oil-cooled industrial VME box securely bolted down in a properly air-conditioned, EMI/RFI-hardened AND well-padlocked closet connected to an analog pump controller that used a set of 24 volt signal generators telling which valves should route coolant at whatever desired temperature to whichever data centre motherboard at whatever time of day to keep the temperature at a safe +27 to +48 Celcius range ALWAYS!

    I later found out much much later that the VME box had worked for a FLAWLESS 30 YEARS being replaced ONLY ONCE due to failing on-board capacitors and is STILL in the upgraded version of that data centre as of 2026 and another TWO SUCH STILL-VME-BUS BOXES are sitting well-packaged and re-tested thrice-yearly in the same control closet IMMEDIATELY READY to replace the currrent one, but containing motherboards that are all solid-state capacitors rather than electrolyte versions! The entire system will last another 65 years and that C++ temperature control code will be 100+ years old by then!

    Sometimes things JUST GO PERFECTLY RIGHT and you get extremely lucky and can TOAST A COMBINED ONE HUNDRED GLASSES WORTH OF $250 Quid bottles of ROYALLY-embellished SCOTCH over-and-over-again to the utter greatness of an ULTIMATE FIGHTER CODER at their genius best!

    Oh to the great, divine and well-retired Mr. M.C. Fetuzzi! We who are about to code in C++, Salute You!

    May ALL code we ever meet and convert be as utterly well-commented and fully-documented as yours most certainly was!

    We bow down to our knees to your COBOL CODING easy-to-convert-to-C++ source code making greatness!

    V

    1. anonymous cat herder

      Yes! Code can be written well, you just have to write it with the next coder (or future you, when you've forgotten it all) as the intended audience. Any fool can write code that the computer will run, it might even pass all the tests, but only good programmers can tell the story in a way that the next programmer will understand. This is at the core of writing maintainable software.

    2. that one in the corner Silver badge

      Well, if true, that is a great experience.

      The only trouble is, the other tales we've heard from Mr StargateSg7 about the amazing North Canadian Aerospace company do rather shake one's confidence in the accuracy of the this reporter and hence the veracity of the story.

      How are your Quantum Wells doing these days?

      1. bigphil9009

        Thank god there's someone else here who sees through the complete load of codswallop that eminates from the person concerned's fingers.

  29. James R

    Does a jet turbine count?

    I had the honour to work on the FADEC software for the RR Trent 400 turbofan for the new B747-400 which had never flown back then. Think it had a overspeed shut down among hundreds of other failsafes, half of them later removed during live 24h turbine tests at a nearby RAF base and later test flights because they prevented me the engine starting with no underlying issue, or parameters updated. One I stumbled across was a turbine shaft excessive twist/torsion detector over the whole jet. The level of monitoring and measurement was astonishing along with the various control models which we were integrating. Got the job because I knew assembler for the CPU they were using although we were not writing it that directly. Related to the Z80 which I knew from hobby programming games and various projects as a kid. Thank you Sir Clive (RiP). First serious programming job was for a Z80 industrial microprocessor controller for weaving machine coupled to a BBC Micro. Years after uni and other CPUs languages did the FADEC using Z8000. It was in using a model based architecture that reflected the extremely sophisticated control model. Everything had to be reentrant with no polling. Interrupt driven control software wasn't allowed. Had some amazingly clever and knowledgeable people integrating all that and the working on the wider design. It was fully fly by wire and dual redundant.

    I spotted an issue with the FADEC software with bytes swapped with some 16-bit analogue to digital converter driver software. I tweaked to match the electronics, that was sent away for 2 weeks of automated testing at the RR head office on a mainframe which was pretty extensive.

    That was during my 6 months probation before they let loose on my own because it was considered safe and low risk. Before that worked in the defence industry in similar roles and the my first civilian job after the Berlin Wall came down and that previous company kept me on with a promotion but I knew all the interesting work was drying up. The new company kept me on and. It was massively boring compared to what we doing before and left looking for new challenges as overseas. We did the V22 Osprey tilt rotor actuator before I started. No more turbines though.

    I take it this was before the days of PLCs and SCADA are used for power stations and the like. Your system probably spoke to them hence all the cables and stuff. You made the right decision, would have done the same. It reminds me of some of the old CPM computes which had in built BASIC.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon