Slashdot Mirror


An Army Medal For Coding In Perl

shocking writes: Arizona National Guard member Vivin Paliath was surprised to be commended for writing Perl scripts and Excel macros while his unit was deployed in Iraq. His work automated a number of previously manual processes that were part of the logistics processes of his unit. He wrote, '[A]s a programmer, I'm constantly looking for ways to make my job easy. I didn't want to sit and add qualifications, and print licenses one by one. I was too lazy for that, and worse, the whole thing was horribly inefficient. So I decided to figure out how to automate the process. ... I started writing Perl scripts to query the data. By the time we had reached Iraq, I had a working script that generated licenses as text files for all the soldiers. The script only took a second or two to run, and the longest part of the process was simply printing out the licenses. But I wasn't done yet. I was still annoyed that I would have to add driver qualifications manually. So I wrote another script that would go and add qualifications to drivers en masse. The script even had a configuration file where you could specify what qualifications you wanted to add and to whom."

38 of 192 comments (clear)

  1. CPAN by Megane · · Score: 2

    I'm sure there's a CPAN module for that.

    --
    #naabhaprzrag, #sverubfr-000, #agi-fcbafberq, negvpyr[pynff*=' negvpyr-ary-'] { qvfcynl: abar !vzcbegnag; }
    1. Re:CPAN by fahrbot-bot · · Score: 2

      I'm sure there's a CPAN module for that.

      Emacs has had these functions for *years* ... :-)

      --
      It must have been something you assimilated. . . .
    2. Re:CPAN by kthreadd · · Score: 2

      If only you could remember the keyboard commands to use them though...

    3. Re:CPAN by Penguinisto · · Score: 2

      We like to call them "classes", and there's way more than a thousand. ;)

      --
      Quo usque tandem abutere, Nimbus, patientia nostra?
  2. Shoulda got a purple heart by Anonymous Coward · · Score: 5, Funny

    ...for coding in Perl.

    1. Re:Shoulda got a purple heart by Anonymous Coward · · Score: 5, Funny

      They don't give you a Purple Heart for shooting yourself in the foot.

    2. Re:Shoulda got a purple heart by Atzanteol · · Score: 2

      Because all Slashdot is these days is bitching about which programming languages suck the most.

      --
      "Ignorance more frequently begets confidence than does knowledge"

      - Charles Darwin
  3. I'm amazed he wasn't thrown in the brig. by Anonymous Coward · · Score: 4, Funny

    That sounds like hacking to me.

  4. A purple heart? by Just+Some+Guy · · Score: 3, Funny

    There's a metal for those wounded in combat, and Perl cuts psyches deeply indeed.

    --
    Dewey, what part of this looks like authorities should be involved?
    1. Re:A purple heart? by K.+S.+Kyosuke · · Score: 5, Funny

      I think you meant the Perlple Heart...

      --
      Ezekiel 23:20
  5. What's so Hard to Understand? by qw(name) · · Score: 4, Informative

    Anything that improves the efficiency and effectiveness of our forces deserves recognition. If writing code and automating or stream-lining a process is successful, write the person who did it up for a citation or medal. I did it in the navy 20 years ago and received a NAM (Navy Achievement Award) for my efforts. Not all medals given in the military are for combat duties.

    1. Re:What's so Hard to Understand? by stu72 · · Score: 3, Informative

      It's hard to understand because..

      a) most people probably have little understanding of military awards outside of hollywood and might be forgiven for thinking they are all given for combat

      b) most managers, whether in the military or not, seem woefully clueless about the impact of cumbersome poorly designed systems and the payback on well designed ones (or well designed hacks running on top of the poor system) So that someone even noticed he was more productive, didn't freak out because he did something different, didn't freak out because the different thing involved "programming" *AND* gave him a medal... seems pretty remarkable.

    2. Re:What's so Hard to Understand? by rjune · · Score: 4, Informative

      If you have been in the service it's not hard to understand at all. I received an Aerial Achievement Medal during Desert Storm. Some of the things that I did was to write a DOS Batch file that backed up our flight plans (routing etc. was coordinated with other units to prevent midair collisions), fixed a glitch in the Mission Planning software (ANGPLAN forever!), and prepared more mission packages than I can count. This helped our unit earn a Air Force Outstanding Unit Award (we did not miss a single refueling) Everybody has to do their job for a unit to perform at peak level.

  6. I got a Vietnam Era gedunk medal ... by CaptainDork · · Score: 2

    All I did was float around the Big Pond (East coast) in Uncle Sam's Yacht Club DURING the Vietnam era. I also got a medal for behaving 4 years in a row. This guy actually did something. I enjoyed the article.

    --
    It little behooves the best of us to comment on the rest of us.
  7. Re: This is dumb by Anonymous Coward · · Score: 2, Funny

    Well, at least the Army has 'L' keys that work properly.

  8. Where's my medal? by BenJeremy · · Score: 3, Informative

    I wrote a nice database system to track inventory cards and print out cards that were pretty much identical to the forms our S-4 used back in the late 80s in the Marine Corps. It was much better than the system they had used - which relied on removing old cards, and filling out, by hand, all new cards every time a piece of equipment was checked out or checked in. It helped alot with leakage... and worse, with equipment that was supposedly checked out, but had actually been checked in (and the Marine would then have to incur replacement cost).

    There were other things I worked on, but this one had a significant impact on our effectiveness as a logistics unit.

    1. Re:Where's my medal? by Hey_bob · · Score: 2

      Your OIC/SNOIC might have recommended you for a NAM, Meritorious Mast, or a Certificate of Commendation.. But as they were lacking a streamlined computer system to for the processing of those things in the 80's, it was lost in a stack of paperwork, when some Lance Corporal in S1 became a short timer. The big green weenie strikes again!

  9. Army Commendation Medal by cirby · · Score: 4, Insightful

    One of the criteria is "meritorious service."

    Writing - on his own - a set of scripts that save that much time for his unit? Should certainly qualify.

  10. A virtuous Perl programmer by Chelloveck · · Score: 5, Insightful

    Sounds like someone who embodies the Three Virtues of a programmer: Laziness, Impatience, and Hubris. Well done!

    I'm always amazed at what non-programmers are impressed by. Code up some major application, and... Why doesn't it have this feature? Why does it have that workflow? What kind of colorblind dyslexic idiot designed this UI? But whip up a simple script to automate some repetitive, routine task and you're a genius!

    --
    Chelloveck
    I give up on debugging. From now on, SIGSEGV is a feature.
    1. Re:A virtuous Perl programmer by Durrik · · Score: 2


      </p><p>I'm always amazed at what non-programmers are impressed by. Code up some major application, and... Why doesn't it have this feature? Why does it have that workflow? What kind of colorblind dyslexic idiot designed this UI? But whip up a simple script to automate some repetitive, routine task and you're a genius!</p></quote>

      I'm always surprised at this as well. I had two things I was known for at my previous company. One that I was proud of, a software library that was used across the entire company, across multiple teams (20 project teams), built up a community around, supported and upgraded for 6 years. This was mainly on my own time, but I kept getting requests from other teams to help with integration (which I needed my time authorized for). I kept getting complaints about the library, people wanting to change the flows, wanting to add features in, wanting it to be more light weight, wanting it to be more heavy weight and do more, etc. The library was actually designed with maintenance and long term support in mind.

      The other project, was something that automated a process I thought was stupid. Basically something that took multiple true type fonts, merged them together, and then based on all the localization strings it stripped out all the unused fonts to save on RAM. I threw that together when I was home sick from work with a 103 degree fever during flu season. It was only suppose to live till the end of the current project I was on (2 months). You can imagine how crappy the code was, it barely worked, it barely did what it had to do.

      Guess which one I got more praise and recognition for? Not the properly designed project that affected our customers and revenue flow, but the code vomit (almost literally) project that made people's life in the company easier. Because of the second project I became known as one of the company's expert on true type fonts, and even had the company lawyers call me to talk about licensing of the fonts we used (as if I knew that). And I still had to support that tool 5 years after I wrote it, because it somehow leaked out of the original project which had been shipped and closed down. Just for the record I consider my knowledge on fonts to be slightly above average, but when you consider the average is 'a font is what you select in Word' its not much, no way is that considered an expert in any other area.

      --
      Software Engineer & Writer of Military Science Fiction and Fantasy Blog: petermwright.com Twitter: WrightPeterM
    2. Re:A virtuous Perl programmer by radarskiy · · Score: 2

      "I'm always amazed at what non-programmers are impressed by. "
      Mostly this is because you have a narrow view of your work and don't consider the needs of the people for whom you are actually producing that work.

    3. Re:A virtuous Perl programmer by Registered+Coward+v2 · · Score: 2

      Sounds like someone who embodies the Three Virtues of a programmer: Laziness, Impatience, and Hubris. Well done!

      I'm always amazed at what non-programmers are impressed by. Code up some major application, and... Why doesn't it have this feature? Why does it have that workflow? What kind of colorblind dyslexic idiot designed this UI? But whip up a simple script to automate some repetitive, routine task and you're a genius!

      It wasn't what he did but the results he achieved that earned him a medal. He saw a problem, applied a fix an made life easier for himself and his unit. Just because it was a relatively simple coding effort is immaterial.

      In addition, what is simple to one person isn't to another; it all depends on one's experience.

      --
      I'm a consultant - I convert gibberish into cash-flow.
    4. Re:A virtuous Perl programmer by itsdapead · · Score: 2

      I'm always amazed at what non-programmers are impressed by. Code up some major application, and... Why doesn't it have this feature? Why does it have that workflow? What kind of colorblind dyslexic idiot designed this UI? But whip up a simple script to automate some repetitive, routine task and you're a genius!

      It suggests that one of these things solved a real problem that the users actually had, while the other solved problems that the developers thought the users ought to have.

      A simple solution that does something useful, now, is worth 100 elegant applications that will totally revolutionise your work once they're finished... provided you completely re-arrange your practices to match the software.

      --
      In a survey of 100 programmers, 111111 thought that duck-typing was a good idea.
    5. Re:A virtuous Perl programmer by ChilyWily · · Score: 2

      I completely agree with this comment. I'm currently on a project where the Architect is super impressed that there is an excel style chart I coded up in Java solely because he understands the excel-style table and chart and can speak to it in front of his boss. But a ton of work I did writing some machine learning to detect and display faults in a heat map flew him into a rage of criticism and anger... because to him heat maps are only used for financial data and "not applicable here". He even argued about the color red and green! In my experience, people only appreciate what they understand. And so I have resorted to finding communities where my work is appreciated. No use trying to impress the wrong (uninformed) person. What boggles my mind is how this guy became a Senior Architect in the organization when his appreciation for creativity and considering an alternate point of view is so low.

    6. Re:A virtuous Perl programmer by Kaenneth · · Score: 5, Insightful

      Years ago I was the IT guy for a local government budget office.

      After I stopped the servers from crashing any spending an hour rebuilding every day, and fixed the backup system so it actually backed up data, I had plenty of free time.

      Instead of hiding in my office looking busy while playing MUDS/Nethack I took the time to sit with individual users, and quietly //observe their workflow.//

      They spent most of the day comparing two columns of numbers (one from mainframe, one from SQL) for equality.

      After a quick VBA prototype, they ended up with simple daily reports of where the numbers didn't match, saving about 40 hours a day between the 20 analysts.

      The key thing many IT guys miss, is taking the time to fully understand what the users actually need/want; but instead jump to conclusions that everyone wants what a programmer wants.

  11. Ah, lazy .... by gstoddart · · Score: 3, Insightful

    I was too lazy for that

    More useful things have been invented out of an express desire to be lazy than I can even count.

    The realization of "WTF am I doing this by hand when I can write a script" sparks so many cool things.

    If he streamlined his job and got better results I don't see why he shouldn't get recognition.

    I'm sure the military hasn't introduced the Perl Star or anything, so I'm sure they've worked within existing stuff to say "damn, son, that's some fine work".

    --
    Lost at C:>. Found at C.
    1. Re:Ah, lazy .... by c · · Score: 3, Insightful

      More useful things have been invented out of an express desire to be lazy than I can even count.

      Not so much a "desire to be lazy", but more about pre-empting laziness.

      Laziness is like entropy; it's gonna happen.

      Tedious manual processes are inherently error-prone. If everyone is conscientious and on-the-ball, things generally work, albeit less efficiently than we'd like. But that's not sustainable in the long term... eventually, people get into a groove and start getting sloppy.

      Designing, writing, testing, and rolling out (usually against the inertia of an existing process) a program isn't lazy. It maybe allows the programmer to be lazy later, but in the short term actually a lot more up-front work. It's just a shedload more interesting that the actual work it's replacing, which is usually the main motivation for doing it at all.

      --
      Log in or piss off.
  12. Re:If you can get a purple heart for by Mordok-DestroyerOfWo · · Score: 2

    I find it doubly ironic that the tough guys out there decry our culture of "every child gets an award" but gets choked up every time they see a soldier get a bullshit medal pinned to their chest.

    --
    "Never let your sense of morals prevent you from doing what is right" - Salvor Hardin
  13. Put him where he's needed by Dutchmaan · · Score: 4, Insightful

    Get this man to the VA stat!

  14. Who uses Perl anymore? by techstar25 · · Score: 2

    The next time someone asks "What good is Perl anymore?" or "Who actually uses Perl?" or "Why use Perl?" you can point them to this article. Perl is perfect for this type of quick development. Sometimes the older languages still have a lot of value.

  15. "Office Worker" can go into harms way ... by perpenso · · Score: 5, Interesting

    We used to call guys like that pogues, and we didn't give them medals. On the other hand, if you could introduce efficiency in military bureaucracy, or any bureaucracy really, good on you!

    Careful where you draw the line between "fighting men" and "office workers". I knew someone who was a Yeoman, does the ship's paperwork, on a destroyer during WW2. He only did paperwork between the fighting. When the ship went to general quarters he put down the pencil and became part of the crew of a 40mm Bofors anti-aircraft gun. For those unfamiliar, this was not a gun where the crew had some protection inside a turret. Bofors' crew were on deck and exposed to enemy fire, debris/fuel from aircraft destroyed and friendly fire.

  16. Re:This is dumb by K.+S.+Kyosuke · · Score: 4, Insightful
    Quoting:

    President Kennedy, in a memorandum to the Secretary of Defense, dated 1 June 1962, authorized the award of the Army Commendation Medal to members of the Armed Forces of friendly foreign nations who, after 1 June 1962, distinguished themselves by an act of heroic, extraordinary achievement, or meritorious service.

    He used VBA and Perl in order to successfully speed up military bureaucracy - don't you think that qualifies as both heroic and extraordinary achievement, respectively?

    --
    Ezekiel 23:20
  17. Re:Illegal? by Blrfl · · Score: 4, Insightful

    The government develops tons of its own software.

    What law says that everything has to be contracted out?

  18. Re:This is dumb by ShanghaiBill · · Score: 3, Informative

    Getting a medal for it? That's new.

    No it isn't. Although some medals are hard to earn, others are handed out like halloween candy. The National Defense Service Medal is automatically handed out to everyone that enlists. I got a Sea Service Ribbon just for SHOWING UP when my unit deployed (the alternative was to go to the brig). Achievement Medals are routinely awarded to people that go a little beyond the ordinary in solving problems or innovating. I was awarded two Navy Achievement Medals during my six years of service in the Marines. What is described in TFA is routine. It happens all the time.

  19. One thing to keep in mind... by Hussman32 · · Score: 2
    “Gentlemen, the officer who doesn’t know his communications and supply as well as his tactics is totally useless.” -- General George S. Patton, USA

    Remember before criticizing the US Army, it's considered the best in the world, largely because of quartermaster capabilities.

    --
    "Who are you?" "No one of consequence." "I must know." "Get used to disappointment."
  20. Re: Metal by Anonymous Coward · · Score: 2, Funny

    I have an equivalent script in VB.Net. Without doubt, it's the finest 1,702 lines of code I've ever seen.

  21. Re:This is dumb by dj245 · · Score: 4, Interesting

    Getting a medal for it? That's new.

    No it isn't. Although some medals are hard to earn, others are handed out like halloween candy. The National Defense Service Medal is automatically handed out to everyone that enlists. I got a Sea Service Ribbon just for SHOWING UP when my unit deployed (the alternative was to go to the brig). Achievement Medals are routinely awarded to people that go a little beyond the ordinary in solving problems or innovating. I was awarded two Navy Achievement Medals during my six years of service in the Marines. What is described in TFA is routine. It happens all the time.

    You seem to deride the practice, but handing out halloween candy has a purpose- its a gift to make people want to keep doing what they just did (ie. show up). Small incentives and gifts can be very valuable tools for building relationships. I used to be a field engineer working at power stations. The big thing there was stickers. Millwrights and pipefitters have a tradition (going back probably until the invention of stickers) of collecting stickers and placing them on their hard hats. Stickers are "earned" by attending mandatory safety presentations ("Power Plant XYZ Safety Training 2014"), by belonging to various industry clubs, or just handed out by people (engineers/sales reps) looking to get a favor in the future. A hard hat full of stickers shows that you're an experienced guy who has been around a while. It is a mark of respect and experience. If you work in those professions and don't have a hard hat full of stickers, you're a greenhorn or otherwise somebody who doesn't know what they're doing.

    I've shown up to a power station many times with a roll of stickers, and these guys instantly became my best friend and helped me out greatly in achieving the thing I was there to do. Don't underestimate the value of token gifts.

    --
    Even those who arrange and design shrubberies are under considerable economic stress at this period in history.
  22. Re:This is dumb by Anonymous Coward · · Score: 2, Insightful

    All the perl haters missed the whole point of the story. Someone in IT got appreciated who wasn't on the windows help desk! +1 for skilled employees! We used to have a sign posted at work stating, "Doing a good job here is like wetting yourself in a dark suit. No one notices but you get a warm feeling"