Slashdot Mirror


Ask Slashdot: Where's the Most Unusual Place You've Written a Program From?

theodp writes: "Michael Raithel was polling the SAS crowd, but it'd be interesting to hear the answers to the programming questions he posed from a broader audience: 1. What is the most unusual location you have written a program from? 2. What is the most unusual circumstance under which you have written a program? 3. What is the most unusual computing platform that you wrote a program from? 4. What is the most unusual application program that you wrote?"

46 of 310 comments (clear)

  1. Caravan by millwall · · Score: 4, Interesting

    As a consultant in the UK I once worked for a council, programming out of a small caravan. It was cold, wet, and to add to the eeriness one of the guys there kept a collection of jars of pickled eggs on his table.

    1. Re:Caravan by SimonInOz · · Score: 4, Interesting

      The inside of a small yacht, crossing the Atlantic.
      I was sailing (an Iroquois 30' cat, in case anyone's interested), and found sight reduction (yes, a sextant was involved) rather tedious. So I wrote a program for my HP calculator to do the calculations.

      Those HP41C calculators were really neat.

      --
      "Cats like plain crisps"
    2. Re:Caravan by rjune · · Score: 2

      The Air Force developed celestial precomp programs for the HP 41CV. It was nice because if you were doing day celestial you didn't have to remember whether or not the declination of the sun was "contrary" or "same" and it supplied the GHA and declination. (No Air Almanac required for sun shots) You could plot out of your DR position and not have to worry about an assumed position. (This made for small, easy to calculate intercepts) It also applied the coriolis/rhumb line correction. Also, with regard to Hamsterdan, Wikipedia is correct in that you needed to plug in a card reader to update the programs. The N size batteries were kind of a PITA to find, but all in all it was a really useful piece of technology. It kind of funny that this thread was spawned by someone posting in a SAS context. I use Enterprise Guide every day so I guess I span a long range of technology. (Or I'm getting old - but I keep updating my skills)

    3. Re:Caravan by AmiMoJo · · Score: 3, Informative

      I went on-site at the London Olympic Athlete's Village while it was being built to debug the fire alarm system. The place was a building site, people using power tools and making lots of noise/dust all over the place. There were no mains sockets so we cut the plug off the laptop power supply and twisted the bare wires into the fire alarm panel's supply. Obviously I had to wear a very uncomfortable hard hat and steel capped boots.

      There were two of us there, the other guy being the one installing the actual hardware (smoke detectors, motorized vents, extract fans etc.). We communicated by walkie-talkie. I could change something in the code an he could check that the physical device actually reacted properly.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    4. Re:Caravan by dave420 · · Score: 2

      Or, just maybe, he wasn't the owner, and was simply the captain?

    5. Re:Caravan by qume · · Score: 2

      I'm writing this on a sailboat off the coast of Mexico. I'm writing software full time out here. Rails and Unity right now.

      Because all power is from solar and wind, I have to keep a close eye out for processes using too much power as the laptop is the most power hungry device I have.

  2. My Job by cyclomedia · · Score: 4, Interesting

    Just my job, generally. They've no idea how to run a software business, think agile means throwing a constant stream of changing requirements and bugs at you until the minute before "go live" ... then they get annoyed at YOU for not being able to put out an emergency patch release within 24 horus (took me two weeks to track down and destroy a nasty bug, but that was my bad, apparently, not management for letting a piece of shit out the door). then there's finding out that our Prototype area of the system is being released to the public in a fortnight. Via a press release that one of our team happened to notice. And then there's the fact that despite my recommendations the manager decided the best platform was Silverlight with a VB backend. Oh and instead of using the .Net EntityFramework or in fact ANY standard components we'd write our own from scratch. Then be stuck with it for 3 years.

    --
    If you don't risk failure you don't risk success.
    1. Re:My Job by immaterial · · Score: 5, Funny

      A 24 Horus deadline? Just six of those falcon-headed bastards strutting around all godlike and hassling me about missed TPS reports is bad enough, but 24... To be honest, at that point I might just throw myself into the Nile and let my ka move on to the realm of Osiris.

    2. Re:My Job by hughbar · · Score: 3, Informative

      Yes. That's exactly what's wrong with most of agile, lots of project momentum and minimal thought about 'what is this for', 'who wants this', 'will this damage the architecture' etc. Result object-oriented spaghetti and lots of unreadable post-its on a board somewhere in the first circle of development hell.

      --
      On y va, qui mal y pense!
    3. Re:My Job by soccerisgod · · Score: 2

      No, that's what's wrong with people claiming to use agile methods and in reality just acting without plan and reason :)

      --
      If a train station is a place where a train stops, what's a workstation?
  3. modified by jbeaupre · · Score: 4, Interesting

    I didn't write the program, actually a script, but I did modify it to run on a Kindle. The epaper version with a keyboard. Needed some sort of calculations done while traveling without a laptop. Some sort of one line script, but the simplest solution was to take an existing sample script and modify hard coded numbers.

    Yes, modifying a script with a web based editor on an epaper device is a bit awkward. But it got the job done.

    --
    The world is made by those who show up for the job.
  4. *Weirdest* place? by DoofusOfDeath · · Score: 5, Funny

    That would be in the butt, Bob.

  5. Car repair shop for me by Torp · · Score: 4, Interesting

    When I do yearly oil changes and stuff like that it ain't worth going back home in a cab, or getting someone to drive me away, so I just take my laptop, find a quiet-ish corner and make a customer happy.

    --
    I apologize for the lack of a signature.
    1. Re:Car repair shop for me by Torp · · Score: 4, Interesting

      As for most unusual circumstances, about 15 years ago me and the owner (and also programmer) of the company i was working for at the time fixed in 15 minutes a bug that neither of us had been able to fix in the last 2 weeks sober. It was 3 am and we were both dead drunk as we were celebrating someone's birthday at the office :)

      --
      I apologize for the lack of a signature.
    2. Re:Car repair shop for me by Warhaven · · Score: 4, Funny

      As for most unusual circumstances, about 15 years ago me and the owner (and also programmer) of the company i was working for at the time fixed in 15 minutes a bug that neither of us had been able to fix in the last 2 weeks sober. It was 3 am and we were both dead drunk as we were celebrating someone's birthday at the office :)

      Ah, yes, the "Ballmer Peak." A well-documented phenomena.

  6. On the Toilet by necronom426 · · Score: 3, Interesting

    I once wrote the formula for a gravity routine while on the toilet, for a tank game written in Amiga Basic. It was in my head, so I had to quickly get back the the keyboard to type it in before I forgot it :-)

    1. Re:On the Toilet by Opportunist · · Score: 5, Funny

      Weren't you afraid of a core dump? Or, worse, a buffer overflow?

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    2. Re:On the Toilet by coofercat · · Score: 4, Funny

      Just make sure you have the right back end capacity. It's usually just a matter of checking your logs.

  7. The obvious answer by comrade1 · · Score: 2, Funny

    That would be in the butt, Bob.

  8. BBS Camp. by Kaenneth · · Score: 2

    Wrote and debugged a dial up message board server for the Commodore 64 while at camp for 2 weeks.

    In a paper notebook, since this was the 80's are we were 15 miles from the nearest power lines.

    When I got home, I transcribed it, and it worked perfectly. (for a single phone line dial up board for a few friends)

  9. Wind Industry by DeathToBill · · Score: 5, Interesting

    1. From inside the base of a wind turbine tower in rural Inner Mongolia province, China. Or, alternatively, from a caravan in the middle of a forest in Eastern Finland in the middle of winter - minus 30 C outside.

    2. While nearly frozen to death (see 1b).

    3. Wrote a program from? Or wrote a program for? The latter is probably a Danish PLC which I will not name here. It has an in-house OS with an in-house executable format which is based on ELF, loosely enough that none of the standard ELF tools work on it. A serial console is the only debugging interface available. An actual debugger is out of the question. All debugging output is truncated to 20 characters. The thing has a 100MHz CPU and all floating-point math is done in software (no FPU). Its reaction to almost any programming error is to hard reboot (and "programming error" here includes calling printf with any but the most basic formatting string). Perhaps most frustratingly, when it hard reboots it claims to write a stack trace of the faulting code; about 4 times in 5, this is truncated to some extent, often to only the first function in the stack.

    4. A Windows programme to drive EtherCAT IO modules from a standard Ethernet socket.

    Do I win?

    --
    Slashdot - News for Nerds, Stuff that Matters, in ISO-8859-1 Has just realised that beta makes this signature redundant
  10. I program smart buildings... by Lumpy · · Score: 2

    So I have written software sitting on a bucket in the electrical closet many times.
    One place they were grinding the cement floors, so I found the only room that was not a cement cloud, the womens bathroom.
    Behind the racks in an AV closet on the floor.
    One place had no heat at all until my software was up and running, it was winter, so I was in my car with a 200 foot cat5e ran to inside the building to a small switch, and then into their network.

    --
    Do not look at laser with remaining good eye.
  11. Re:Integration testing of PPG software in a prison by gbjbaanb · · Score: 3, Informative

    I wrote the basics of a command and control interface for an Ambulance service. I did this sitting on a server (big tower case) with my laptop on another server tower, precariously balanced because the data was coming in from a serial cable that snaked through a hole in the wall and had a splitter on it, nicely held together with a few cable ties and some blutack. The serial cable was delivering telephony from live 999 calls to the call centre whilst I was trying to "reverse engineer" the data being delivered.

    And all this because the telephony switch company wouldn't give us the necessary information (without paying a very extortionate amount of money for a full SDK) so I could write the code in my cosy office chair. F****rs. No wonder they went bankrupt in the end (around 2008/2009)

  12. by Candlelight by Demerara · · Score: 3, Interesting

    I spent some time writing billing data analysis by candlelight. This, of itself, is not unusual in a developing country (where I lived at the time). But since the client was the electricity company and it was their data being analysed, the irony was not lost on my client who insisted that I never mention this fact to anyone... Well, that's all over now!

    --
    Backward%20compatibility%20is%20over-rated
  13. Under a tree, at the airport by 6Yankee · · Score: 2

    I wrote parts of an aviation photo database while sat under a tree by the airport fence. (Keepin' it real, yo.) Naturally, I picked days when it looked like this, not like this.

    OUL isn't the busiest airport in the world, so it's actually a really peaceful place most of the time, especially if you walk round to the south side. You're right on the edge of the forest, and you hear far more birdsong than jet noise.

  14. Malfunctioning Full Motion Simulator by Anonymous Coward · · Score: 4, Interesting

    In a very expensive 6DOF full motion flight simulator capsule with projectors whilst the motion platform was malfunctioning, all jittery. Was easier to boot up Visual Studio on the system driving the projectors used for visuals and motion then it was elsewhere, so here I was coding in a cockpit that was being thrown about waiting for me to fix it, examining debug data.

  15. Dripping with sweat... by Anonymous Coward · · Score: 5, Interesting

    Dripping with sweat, inside a demountable building with no air con and 12 other programmers + machines (including CRT monitors, heat makers that they are) in the middle of a large black-tar carpark in the middle of an Australian summer.

    The company we worked for was trying to get us to quit, so they dumped us there.

    We quickly reasoned that if they were prepared to pay us for working in debilitating conditions, we were going to take their money and produce the small amount of work it was possible to get done under those circumstances.

    Work attire was the first thing to go, replaced by shorts and hawaiian shirts. Management dropped in and threatened to put a mark on our files - prelude to being allowed to terminate our employment - until we pointed out that it was not in their interest for us to get the work safe authority involved.

    This continued for several months while our effective output dropped to near zero, but they were still paying us.

    Management blinked first. One lunchtime we all watched while the biggest forklift I've ever seen picked up the whole demountable and carried it inside one of the warehouses on site, where it became our home for the next couple of years.

    The warehouse was used for military storage. One day I came into work and looked over at Mark.

    "Hey, Mark" I yelled out.

    "Whaddya want?" he said

    "OK, " I replied, "follow these instructions. Put your chair in front of your monitor. Look at your screen. Now, swivel 90 degrees left".

    Mark was a sport, so he did all that.... pointed straight at his head on the other side of his window was some sort of military artillery cannon. He screamed and fell off his chair. How we all laughed!

  16. LP Mud by Rei · · Score: 5, Interesting

    So this is more of an "unusual way to patch a system" story...

    Back in the day, I used to code for an LP mud, and I accidentally locked myself - and everyone else who wasn't already logged in - out of the mud. The guy who could reboot the thing was often inaccessible, and there was only one person - another wizard (coder) - still logged in, coding away and oblivious to what had just transpired. I managed to get him to resolve the problem by inserting a file in his working directory called "(His name)_PLEASE_DO_NOT_LOG_OUT,_READ_THIS_IMMEDIATELY!!!.txt", which explained the problem and how to fix it. Half an hour later, he noticed the file and undid my mess ;)

    The problem was the consequence of a coding arms race (oh, coding for LP muds was so dang fun.... every instantiated class object is treated as a physical object, its functions can be bound to user commands, and you can override the default interaction functions). Wizards (coders) often made "dest" tools - tools designed to destruct player objects, aka, kick them (temporarily) off the mud and make them have to log back in. Often they were done with artistic fluorishes, such as a long leadup sequence.

    My friend at the time - oh, let's just pick a name nobody would realistically have and call him "Elim" - created this elaborate dest, wherein the target sees him pick up a flower and play "she loves me / she loves me not" with it, and when the last petal is plucked ("she loves me not"), the target would get kicked off. After he used it on me once, I wrote a counter tool which would detect when he was using his dest, and instead kick him off instead with my parody of his dest**. So he wrote an alternative dest tool, which would instantly kick me off without any leadup to detect, and do the flourishes afterward. So I wrote a tool which would be invisible and hop into his inventory and detect when he tried to use his dest tool, take precedence, and kick him off instead; plus a tool that would sit in my inventory and look for any unexpected objects and instantly destruct them. And on and on the code war went. The problem that one night, however, was when a bug led to my inventory-protector desting me and thus dropping to the floor, where it would wait to destruct any objects it could see in the same room (thinking the room was my inventory). And stupid me was coding in the login room at that time (which led to a new policy, never code in the login room! ;) )

    ** My parody of his dest involved sticking a paralyzation object into his inventory (one that would intercept and ignore all of his commands) and had a giant ogre run into the room, pick him as the flower, and play "She loves me, she loves me not" with his limbs making him randomly scream out for help.

    --
    Very well; let this abomination unto the Lord begin!
    1. Re:LP Mud by Rei · · Score: 2

      What? Coded for an LP mud and didn't get into shenanigans? What's wrong with you? ;)

      Let's see... there was the time I unintentionally turned the chat system into a profanity-shouting system I inlined it to record word frequency and added a user command to list the most common words said... which led to people spamming it with profanity (sometimes with automated tools) to try to fill up the top-10 list with cursing.

      It was always fun to impersonate inanimate objects. After all, you could patch the long and short descriptions on your player object to look like whatever you wanted. I found it less fun when another wizard wrote a tool to swap around who controlled what player objects, as it meant I lost all of my aliases, tools, etc. ;)

      I was often accused of going a bit over-elaborate with my coding. For example, instead of a mere hitpoints system, I once coded a system designed to mimic real life, with a character suffering blood loss and varying levels of damage (up to and including complete amputation) of limbs ("limbs" being a loose term including things like the head, torso, etc). Different types of armor would protect different types of limbs, and you could let attacks and defense be random or to focus on particular limbs (which of course affected your likelihood of success). The number, stats, and usage of limbs was variable (aka, it supported radically different species). Males in the game were given an added limb, the "fozzle"; it was left to the users' imagination as to what this might be. ;)

      --
      Very well; let this abomination unto the Lord begin!
  17. At the bottom of a swimming pool by ghenne · · Score: 2

    Using NS Basic for Newton, a complete IDE that ran on the Newton. I wrapped the Newton in a baggie, then went to the bottom of the pool and tapped in "Hello World".

  18. Maasai Community, Rift Valley, Kenya by Port-0 · · Score: 5, Interesting

    Currently I'm sitting in the rift valley of Kenya, in a small rural Maasai community. We are the last house on the power line. No one south of us has any Utility power. We had a Giraffe just outside the back yard a few days back. Internet is via the cell network... there is a single spot in the yard where I've found 3g works. So I've planted a short pole, which has a power and a spot for the hotspot modem to sit. It's covered with a plastic bottle with the bottom cut out. to keep the rain and dust off.

  19. Re:... FROM? by Smallpond · · Score: 3, Funny

    There is no reason to put from at the end. Is stupid just something caught the internet from?

    Prepositions on the end of sentences is something up with which I will not put.

  20. Bees! by MTEK · · Score: 2

    Arrived at a client site and was directed to a terminal in a server closet. As I was making changes to a script something flew past the corner of my eye. There was an active wasp nest above and behind my head. I never coded so fast in my life.

  21. phone by Lehk228 · · Score: 2

    remoted into a server with my old blackberry bold using a SSH app that bound certain keys to the shoulder switches, volume, and custom side buttons, I had volume down bound to tab

    --
    Snowden and Manning are heroes.
  22. this aught to be fun :) by nimbius · · Score: 2

    1. What is the most unusual location you have written a program from?

    while working for a major automotive manufacturer in the south, I once wrote a perl script from 40 feet off the ground in a hydraulic lift to update firmware across several switches in the plant. I was replacing a switch that had been tucked away near a sodium vapour lamp and had melted.

    2. What is the most unusual circumstance under which you have written a program?

    during a celebratory lunch for our team I acted as the on-call engineer, and ended up spending an hour writing a python script to set watchdog bmc timers on servers. I never ate, and cant even remember what speech the manager gave.

    3. What is the most unusual computing platform that you wrote a program from?

    I once wrote a program through a dmx512 board to control conference room lighting and a projector. 5 buttons, one joystick, and a week of hell. i also programmed a 4 button sequence that triggers 'disco mode'

    4. What is the most unusual application program that you wrote?"

    A major insurance company i worked for had an HR office that could never remember to shut off the coffee maker. After several fire department visits I repurposed an old PDU from the datacenter and wired the thing up so the HR department had to send an email to get the coffee maker to turn on for 5 minutes. This started out as a joke, and unfortunately received praise from the office for 'upgrading the coffee maker' :(

    --
    Good people go to bed earlier.
  23. Arlo Guthrie wrote a song while... by Squidlips · · Score: 2

    flying through the air while riding his motorcycle. Does that count?

  24. Combat Software Engineer by arizonahockey · · Score: 5, Interesting
    On Christmas Day 2008 I stepped off a plane at Kandahar Air Field in Afghanistan. After sitting in a cube for the first five years of my career coding, I needed to "go work with some end users" and volunteered to help out the Marine Corps. I was working on the Army Battle Command software of the time, Command Post of the Future. I did not know anything about the military, the ranks, the culture, the protocols. When the first rocket attack alarm sounded (a false alarm), I hightailed it out of the combat operations center where I worked, giving all the seasoned and salty Marines a good laugh. This, and working my ass off coding for them, I guess gets you on their good side. I became part of the team and learned a ton.

    About a month before I left in April, now slightly seasoned myself and quite used to the regular rocket attacks, I was coding up a personnel tracking system in CPOF. For the first time the operations officer could, in real time, know exactly where everyone was for whom he was responsible. It was towards the evening when about 80 meters away you heard the familiar THUD! followed by the alarm 10 seconds later. Not a drill and at this point annoying. Imaging being in the zone for hours, when suddenly you need to stop and run out to a crowded concrete bunker for hours. Damn! I was just about to compile, too. Well, being the operations center, Marines can't just leave. They have to continue running the war. So some them stay with the helmet and vest in case of a direct hit in the operations center.

    Some time later I finally returned and say the assist operations officer, a very tall Marine Major (now LtCol) and one of the nicest guys you could ever meet, taking off his battle rattle. I notice a tomahawk on the back of his vest.

    "Sir, what's up with the tomahawk?".

    "This? Oh, I was platoon leader in Fallujah. Our designation was tomahawk and I was tomahawk-6." I smiled in genuine amazement which quickly turned to sadness.

    "That is so cool! All I've done so far in my life is sit in a cube coding."

    The Major stepped back and said "Wait a minute, you were just coding, weren't you?"

    "Yes. The perstat program for the OpsO."

    "Well, you were just coding under ENEMY FIRE. You are a COMBAT SOFTWARE ENGINEER!". He said with the seriousness you sometimes see in Marine Corps officers. It put the biggest smile on my face for the rest of my time there. On my last day, the team I worked with gave me a flag and plaque designating me a "Combat Software Engineer" which to this day is one of my most cherished possessions.

  25. Trapped in a hotel under local law with a newborn. by netsavior · · Score: 4, Interesting

    When we adopted my daughter, we were not allowed to leave the hotel grounds for 2 weeks, until some specific paperwork went through (or else it was considered felony kidnapping).

    The bank I was working for had this horrible transaction system that had a whole bunch of bugs and was written in a dead language (VB6, oh the humanity). I already had a Java stack running another newer arm of the application. When I landed, I learned that the whole time I was flying out there, I had been getting panicked emails from the higher-ups about how the whole world was finally falling down with this old VB6 horrorshow.

    I rewrote the whole thing. From top to bottom, replaced nearly a million lines of legacy code, in a 2 week feverpitch of sleepless nights and rocking a 2 day old baby in my arms while running unit tests.

    I worked with that application for 6 more years after that... and never had to change a single line of that "Adoption hostage" code. I'm actually shocked it went so well, looking back on it.

  26. Tent in Djibouti by Anonymous Coward · · Score: 3, Interesting

    I got deployed to Djibouti while working on my masters degree. Can't get a masters in math without programming. Can't put any unauthorized software on government computers. VBA in excel was my programming language. It was horrible, but it made me learn.

  27. Re:Early morning coding by drinkypoo · · Score: 4, Funny

    Nobody wants to get woken up at 2am because of a period.

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  28. Submarine by DerekLyons · · Score: 4, Interesting

    *shrug* I wrote several programs for my Tandy PC-2* inside a nuclear submarine (mumble) feet beneath your keel. I also diddled around with BASIC on the IBM-PC clone that Squadron bought and provided to the boats.

    * Obtained from my housemate in exchange for paying up his share of the rent. J. actually one of the best housemates I ever had other than his habit of occasionally blowing his paycheck on some new shiny.

  29. Code triumphs by bhlowe · · Score: 2

    I'd love to hear some stories of coding triumphs... Stories where a bug fix, patch, or hack saves the day or gets it done right..
    Does anyone have any fond memories they'd like to share?

  30. In the middle of the Tuolumne River by rlh100 · · Score: 2

    At San Jose Family Camp in the middle of the Tuolumne River writing a Perl/CGI script to generate sendmail.cf files.

  31. In a monastery by lightperson · · Score: 2

    Was working on some avionics software. Decided to take a sabbatical for spiritual growth. Finished the software remotely. Its flying on many commercial aircraft now. Part of the work involved a shared memory analysis program to ensure that the many tasks behaved - written in VAX DCL. Fixed bugs in website scripts on a "smart" mp3 player.

  32. A tiny Sherpa village by cbhacking · · Score: 2

    I've done a bit of coding on a slightly larger yacht (45', in the Caribbean and crossing the Pacific) but I think the actually weirdest one was something I hacked together at around 3970m (13000') in the Khumbu (Everest region) of Nepal, specifically in the village of Khumjung. Nepal has a weird timezone and only some of our digital cameras supported it, so some of our photos were being created with EXIF data that was off by a bit from the others. So I pulled out my seriously-underpowered-and-lightweight-for-the-time laptop and hacked together something to fix the affected photos so they would line up correctly with the rest.

    These days there are tools that I could have used to script this, but they either didn't exist or I'd never heard of them back then. It's not like we had Internet access in the guest house (excruciatingly slow satellite links could be used to get email, for way too much money, in a place across the village from where we stayed). In fact, we were lucky to have electricity.

    --
    There's no place I could be, since I've found Serenity...
  33. Re:Trapped in a hotel under local law with a newbo by T.E.D. · · Score: 2

    I rewrote the whole thing. From top to bottom, replaced nearly a million lines of legacy code, in a 2 week feverpitch of sleepless nights and rocking a 2 day old baby in my arms while running unit tests.

    And for this amazing feat, in addition tor fixing an emergency they caused by knowingly letting a bad buggy system slide for years, you were of course greatly rewarded. Perhaps a big raise, promotion, a big one-time award a sizable % of the money you saved them, etc..

    (Yes, I'm shooting for +5 funny on this one)