Would You Add Easter Eggs To Software Produced At Work?
Mr. Leinad writes "Do you add Easter Eggs to the software that is produced at the office? I mean, if you have complete control over the final product, do you spice it up with that little personal touch, which, as unlikely as it is that anyone will see, carries with it an 'I was here' signature? I've just finished the development of a large software product, and I have a couple of days left to try to add my own personal Easter Egg code, but given that the software is quite professional, I don't know if I should. What do you think? Should we developers sign our creations?"
Subtlety is key, even if it's for something like proving the program was coded by you if some asshole attempts to take credit...
Of course! Doing so in an unobtrusive, unharmful way only adds charm to the product.
Need an automatic screenshot taker? Try here.
Is a pending accident waiting to happen. Maybe because the change adding the Easter Egg the application have a problem (security, speed, space, whatever), maybe people find or know about your easter egg, do every possible misuse of the application to try to find another, and something breaks somewhere. And adding something not requested/approved by your company is a bad precedent, another way to put an "i was here" message is called "backdoor".
If your "easter egg" causes bugs that end up costing the company money, your ass is grass.
These make for great legends, but as much as I hate to admit it, I've gotten very serious about my work. Easter eggs are not generally appreciated by the Powers That Be, or by clients paying big cash for a product. My personal reputation, and producing a quality product have become important to me.
There's also the fact that that more code == more bugs. You can't get around that. Why open up a professional product and your reputation as a developer by making it more likely that you'll screw up?
I can see certain exceptions to this - for instance, games with easter eggs (approved, of course) can add to the charm of a product. An easter in egg in Quicken would be less cool.
This is the voice of World Control. I bring you Peace.
Your name should be all over the code you write... In the comments/remarks as defined by whatever language you're using.
Speaking as a Software Engineer (I consider myself a professional); you are undermining the customer's trust in your product simply to massage your own ego. Customers are naturally concerned about integrity and security (more so today than ever before). Once you've demonstrated a desire to hide "secret features" in their products, they may start to wonder what other (perhaps malign functionality) is lurking in the code.
That's just good practice. You should put in a handful of bugs and see how many your QA department finds.
If you put in 10 and they find 8 of those plus 24 other bugs, then you can roughly estimate that there are about 30 bugs in the code that you have to fix.
Test your testers.
---
ECHELON is a government program to find words like bomb, jihad, plutonium, assassinate, and anarchy.
How are your going to be able to explain NOT fixing a bug that got through in your code when you had time to include an un-spec'ed Easter egg?
This isn't about charm. This is about having to explain to management why a customer is unhappy.
Speaking as a Software Engineer (I consider myself a professional); you are undermining the customer's trust in your product simply to massage your own ego. Customers are naturally concerned about integrity and security (more so today than ever before). Once you've demonstrated a desire to hide "secret features" in their products, they may start to wonder what other (perhaps malign functionality) is lurking in the code.
Thank you. I was starting to think that attitude was entirely missing from the Slashdot crowd. "Easter Eggs", bah. Programmers and engineers should make their mark in the world by designing and implementing quality products and not, as you say, massaging their obviously-inflated egos.
The higher the technology, the sharper that two-edged sword.
A humorous error message often brightens the day of the poor guy in operations who has to report back to the developer.
Blar.
Easter Eggs? No, funny comments/error messages, and bizarre variable names, absolutely.
I will never forget the day a student who was using my software for a project asked during a meeting what an 'out of cheese' error was. The poor kid was so confused :)
Nothing really tops the Amiga's "Guru Meditation Error".
The higher the technology, the sharper that two-edged sword.
I normally put one in that if you hold down CTRL and click a certain area of the screen it'll say something like "Programmed by x, y and z". Just so I know I'll always have a little bit of me in there.
only stuff that appears in compiled code should count. Unless you are talking scripts
from 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
to 45 2F 6E 40 3C DF 10 71 4E 41 DF AA 25 7D 31 3F
but if you are proud of what you have achieved, go ahead, it is a human right. I did it a couple of times when it seemed appropriate, and it was never a problem. If you are in a position where you are responsible for creating the system, it is just your decision.
If you need a rational argument for doing it: It might make the team more proud of the product, more productive for future releases, projects or products. A company is about people, and it is a people issue.
And when even weapon designers can put easter eggs into missiles, I can't imagine anything to be too serious to pull it off; a product just may be too boring or suck too much to deserve an easter egg.
An easter egg is just a sign that the people who made the product did care about it, and are proud of it. An easter egg is like a medal or decoration for the product.
p.
Without order, nothing can exist. Without chaos, nothing can be created.
I am a robot. I do only as instructed. Beep beep. Bloop Bloop.
Be insulting if you wish. If you're a programmer or a software engineer, one day you may get involved with a project that has a serious penalty for failure (and no, I don't mean a bank or e-commerce Web site or something equally safe.) Believe me, when that happens you'll change your tune and get pretty damn serious. "Easter Eggs" and other irrelevancies suddenly become significant liabilities, and you don't even think about them anymore.
I'm happy when a customer notices that the software functions well, is easy to work with, and is solid. In other words, if get noticed it's because I did my job right, not because of some childish desire for attention.
Still, if you work on trivial applications it's okay to treat them like toys, I suppose. I don't, on either score. In any event, I agree with Burnhard. It boils down to whether you want to satisfy some psychological need, or want to earn the trust of both your employer and your customers. The latter is usually more satisfying.
You decide.
The higher the technology, the sharper that two-edged sword.
It sounds like you shouldn't do it, at least in this particular case. You say that "the software is quite professional," which makes it sound inappropriate. When you work on a fun product whose target audience would appreciate such things, you'll already know that Easter Eggs are fine.
Pass for now, and perhaps look for more fun projects in the future.
how the hell is this modded down? the best code is no code, adding random crap will only have your customers wondering what other random crap is floating in there.
Rocket science is easy. Neurosurgery, now *that's* difficult.
Authority is never worth respecting merely because it's authority.
If you mod me Overrated, you are admitting that you have no penis.
I was working on a Web App that has date fields. There is an example of how to format the date next to it and I put my wedding day. The spec did not call for any certain date. I can look at it years from now and see where I left my mark.
I do not get any more adventurous then that. Once were were going to make a database table called WEGAS, which stood for Who Else Gives A Shit, it was a list of people who wanted to be notified when the issue/ticket was updated. We chickened out and called it Notification.
Also if you have a small shop, then it is fun, but in a larger shop it is usually frowned upon. then you also may have to explain it in a code review. So just stay light like I do.
Once I wrote in the document about paging I put "Example page 7 of 9". to me this is an Easter egg. I could have but page 3 or 10, but that means nothing, and 7 of 9 works just as well.
Wrong approach, hand him a Terry Pratchett book and tell him to look for the answer, his life will be better.
Uhm, RAID 10 on databases has for a very long time been the defacto way of doing things (mirror and stripe everything). And your comment below about it being a raid 5 raided over 5 makes little sense - to me it seems like you have no idea what you are talking about.
Granted these days you would most likely opt for RAID 60 if you got the money for it, but RAID 10 is still the best price/performance for databases.
No, I wouldn't expect that. But I would not be very surprised if a "Kilroy was here" showed up on the firewall, or someone's name was written underneath the trunk upholstery. People have been doing stuff like that since the Egyptian Pharoahs played Dungeon Draggin' with thousands of slaves.
When our name is on the back of your car, we're behind you all the way!
You are just upset because you know in your heart that he is correct.
There is no "-1 offended" or "-1 you don't agree with me" mod options for a reason.
But that's not the choice you're being given. I'd say a better analogy is choosing between a doctor who gives you an EEG with regular white pads and a doctor who gives you an EEG with pads that are colored like nipples (or polka-dots at a family doctor). You're getting the same quality of work (or at least the quality is unaffected by this particular variable) with only slight change in aesthetic.
I'm not disagreeing with your main point about software integrity, but your analogy struck me as disingenuous.
My take would be the bogus waste of time for the testers. Each known, introduced bug consumes resources that would go to actual testing. Add to that, it's not the programmer's responsibility to test QA, it's theirs to test him/her and if they find a shit load of bugs, he/her might start seeking employment for being a crappy programmer. And I sincerely doubt anyone will believe or be humored by the revelation they were purposefully introduced.
Yeah, I'm a level seventy. So what?
... anyone who's worked in this industry knows that management can be ignorant, paranoid, and unwilling to change.
... Many queries were made and security operations attempted to track down who had made the "unauthorized script".
You bet. Anyone who's working in this industry also knows that some programmers think they're God's gift and know more the the entirety of the rest of the organization.
I care about keeping the business running.
Kinda contradictory.
If you had said "most of the time", I would agree. But I cannot accept that it is always in my best interest.
If you mod me Overrated, you are admitting that you have no penis.
Yeah, but as a former elementary school computer lab volunteer, please, do not code error dialogs like, "out of fucking memory" or "something fucked up" in your otherwise kid-friendly game. I can guarantee, no matter how unlikely you think the error is, it WILL come up in a classroom setting.
Comment of the year
*WRONG* You guys are the reasons why software sucks in general, the damned cowboy attitudes. Professional developers leave the need to "leave their mark" at home. You're not a fucking dog needing to pee on a tree to show "your mark".
Some of the responses in this thread make me think a lot of the folks responding either don't do contract software development for a customer, don't work on any sort of mission critical software, or aren't terribly mature.
An easter egg is: a) extra code that could introduce a new bug (accidents happen, even in easter eggs - I've seen a screwed up easter egg crash a program and leave the machine locked up)
b) something that is not part of requirements and if caught during client code reviews or after installation, would put your employer in a complicated position since your spending time on such an unallocated task could basically be considered a form of fraud if the client is paying for your services
c) a sign of vanity - professionals do the job, do it well, and move on, not write silly-ass amateur crap just to amuse themselves and stroke their egos
d) something some other poor software engineer might have to fix or remove and they might not find so darn funny
A professional should take satisfaction in a job done well.
Do civil or mechanical engineers leave easter eggs? Do nurses? Do doctors? Grow the hell up... people bitch about software folks never being given the same respect as other engineering fields and it is the attitude of the average programmer that has a sizable part in explaining this.
Would you want your doctor leaving an easter egg? Would you want your dentist? Or would you find it funny if your phone dialed random numbers on some developers birthday? Or if your traffic light flashed all green every summer solstice? I think not.
I suspect the gulf here between those respondents who manage programmers and deal with clients or who work in any form of mission critical software or professional services and those who write shrink-wrapped software or less critical applications when it comes to easter eggs is probably sizable. All it takes is seeing a co-worker having his ass kicked because a manager had his chewed off by an angry client to understand that, in professional environments, this kind of stuff doesn't fly (and shouldn't).
You're not paid to be an artist. If you were, they'd cut one copy of your code and display it up in a museum. You're paid to implement requirements as defined by your employer and possibly your customer. When you aren't doing that, you're basically screwing the pooch and exploiting your employer. Some may feel justified doing this, but that's a crock. If you don't like the job, GTFO. If you do like the job, be a professional and leave the high-school hijinks behind.
(And yes, I've worked for 15 years in mission critical software for the police, the military, air navigation training systems, cell phone portals, VOIP and call processors, HR systems, and so on, so it does colour my view on easter eggs...)
-- Mal: "Well they tell you: never hit a man with a closed fist. But it is, on occasion, hilarious."
Although I agree with the general gist of your post (not the tone mind you) this need to leave something personal in a major work is not a new thing.
Workers in cathedrals of all times always took a bit of time to leave personal marks, from signatures to most complex features (faces, figures, etc) to sign a piece of work well done.
Electronics Engineers nowadays make minuscule engravings in the circuits they design.
Civil Engineers and Architects very often leave an small sculpture, signature, aesthetic feature that is not in the specifications but that adds a final personal touch.
I can't imagine that a client paying for a service that is delivered in time and budget would object in the terms you are putting to a silly joke, but I tend to agree that in the case of software, unlike an added feature to a bridge or a building, a joke can always bring a system to its knees (even if it is coded carefully and cleanly, software is exponentially complex, so it is almost impossible to foresee all the possible conditions under which an Easter Egg could cause havoc).
IANAL but write like a drunk one.
In civilized countries only junkies and alcoholics don't eat or have a roof over their heads (if the US is civilized is open to discussion, they don't even have socialized health care).
If you live in Somalia, Ethiopia or Sudan then yeah, your are fucked if you lose your job, but an British, German or Japanese person worrying about going hungry or homeless is frankly ridiculous, I don't know about the US, but I did not see any shanty towns the few times I was there (although it seems some are goring outside some towns in Texas....)
IANAL but write like a drunk one.
As much as we would all like our names on our work, many of us work under contract to create software that then belongs to the client. Unless you have it in the contact, and/or it is in the specification that an about dialog displays the programmer's name, doing this may be actionable. Many companies where the owners are developers themselves are ok with this because they understand. Some companies feel they need plausible deniability in case a developer runs afoul of the law, like that file system guy. Did IBM really want everyone to know Easywriter was written by Captain Crunch? Not really. In fact that was quite a lapse of judgement. Support people just hate hearing from users that unknown functions exist when undocumented keystrokes are entered. I suspect this kind of thing originated in game software mostly. In retrospect, people would be surprised at all the software I have written, and I wish I had the ability to have my name displayed when people are at an ATM machine, or use a SCSI hard drive...
Newsflash - QA don't exist to find your bugs.
They already have more possible tests to run than they can actually run in the time allocated. The QA role is one of risk management - test planning is used to select tests that assess and eliminate as much risk as possible in that time. That selection is based both on experience and assumptions. One of those assumptions is that the developers aren't being jackasses. Believe it or not, but a lot of QA comes down to trust. If QA ran a full performance test suite and code audit against revision X of your code and found no performance problems, but on the other hand found a bunch of functional bugs, then when you are developing revision Y, QA are likely to prioritize functional testing not performance testing. The regression test suite may include some performance testing, but basically QA will make the assumption that this code is unlikely to contain performance issues and plan testing accordingly. By deliberately introducing bugs you are screwing with those assumptions - and those bugs may not be tested because of those same assumptions.
Your statistical analysis is also flawed.
1) Since you don't get to determine which test suites are being run, you don't know which of your bugs the test suites couldn't have caught. You cannot use the percentage of found deliberate bugs to extrapolate anything.
2) Even if you had intimate knowledge of the test suites and test plan and introduced bugs accordingly, it would only tell you that 2 of the test cases either weren't run, were run incorrectly, or had results misinterpreted. It would tell you nothing about how completely or accurately the other test cases were executed, nor how completely the test suites covered the code. You'd still be wrong to extrapolate.
3) Even if you _could_ extrapolate this number, you'd still be wrong. So, you've estimated 30 bugs. What are you going to do with that number? Hunt down 30 bugs, fix them and declare the product bug-free? Wrong. There's always more bugs.
4) Assuming for a minute that you live in a parallel universe where there aren't more bugs. Now you've got to find them. Finding the first 10 might be fairly easy, but after you've run every test scenario and test suite related to this code, and implemented and run every unit test possible, and delayed the release by several weeks (if not months) you still will not have found all 30.
5) Assume for a minute the impossible has happened. You found them all. You won't fix them all. Each will be triaged and the risk of fixing it versus the risk of not fixing it assessed. The risk of fixing it now versus the risk of fixing it later, etc. Most of them won't get fixed now (that's why everyone has a long bug list). You have no way of predicting what ratio will get fixed.
6) Even if everything else that I've said so far is completely wrong, you are still wrong. You have 40 bugs to fix, or were you planning to leave the deliberate bugs in the released product?.
Since you seem to have plenty of time on your hands, perhaps you could use it to a more productive effect by (a) spending it on design, code review, documentation, unit test development etc, ie one of those things that often get neglected but are actually useful in developing good software, (b) giving the code to QA earlier, (c) squashing another bug from the ever-present bug list, or (d) if you're really so fantastic that you've already done all of that, maybe you could help one of the more junior developers become a better coder.
Just about the only thing that you shouldn't be doing is adding non-required unspecified code (easter eggs) or deliberately introducing bugs that will later need to be fixed (if you remember). The only effect of both of those behaviors is to add unnecessary risk. Let me repeat that in case it didn't sink in the first time.
The only effect of both of those behaviors is to add unnecessary risk.
Grow up. Be professional. Start treating your QA folk with courtesy and respect. They are not 'testers' and do not need to be 'kept honest' nor tested. They need to be able to trust you so that they can help you produce quality software.