News for hackers. Stuff that matters.
Re:How I Fired Myself by paganel on Wednesday February 27, 2013 @12:52PM (#5293737)
As a programmer I consider myself very lucky that one of the first advices I got when I was a junior was from one of my senior colleagues (and a very smart guy): "one of the most valuable qualities of a good programmer is courage".

Seven and a half years later I make sure that I pass that knowledge on to my junior colleagues. I'm proud to say that just in the past 2 weeks I've said this twice to one of my younger team-mates, a recent hire, "don't be afraid to break things!"

Re:How I Fired Myself by yaj on Wednesday February 27, 2013 @02:00PM (#5294111)
This is the right thing to encourage but I just would like to add always have a backup.

"Don't be afraid to break things as long as you have a backup".

It might be a simple version of the previous code, database copy or even the entire application. Do not forget to backup. If everything fails, we can quickly restore the previous working version.

Re:How I Fired Myself by sixtypoundhound on Wednesday February 27, 2013 @03:46PM (#5294791)
I would go one step farther....

Every production deployment should involve blowing away the prior instance, rebuilding from scratch, and restarting the service; you are effectively doing a near-full "restore" for every deployment, which forces you to have everything fully backed up and accessible...

Any failure to maintain good business continuity practices will manifest early for a product / employee / team, which allows you to prevent larger failures...

Re:How I Fired Myself by mcherm on Wednesday February 27, 2013 @10:13PM (#5296745)
Spoken like a man who has maintained applications but never databases.

In the world where data needs to be maintained, this is not necessarily an option. In the bank where I work, we deploy new code without taking any outage (provide a new set of stored procedures in the database, then deploy a second set of middleware, then a new set of front-end servers, test it, then begin starting new user sessions on the new system; when all old user sessions have completed the old version can be turned off). Taking down the database AT ALL would require user outages. Restoring the database from backup is VERY HARD and would take hours (LOTS of hours).

That being said, we do NOT test our disaster-recovery and restore procedures well enough.

Re:How I Fired Myself by mikec3k on Wednesday February 27, 2013 @02:37PM (#5294352)
Use source control. You can always revert.
Re:How I Fired Myself by ghjm on Wednesday February 27, 2013 @01:10PM (#5293832)
This is correct and is the way it should be. So how come the programmers are always politically gunning for the keys to the production server cabinet, where you do have to be afraid to break things?
Re:How I Fired Myself by ramchip on Thursday February 28, 2013 @10:28AM (#5299052)
Are they? Where I work (a bank) we were more than happy to move to read-only access to prod servers, and pass by a support team when we need to deploy things.
Re:How I Fired Myself by bcbrown on Thursday February 28, 2013 @01:42AM (#5297449)
That's where raises and bonuses come from.
Re:How I Fired Myself by danso on Wednesday February 27, 2013 @01:42PM (#5294020)
Heh. Another way I would say that is that "discretion is the better part of valor" And, to rip-off Hitchhiker's Guide to the Galaxy, "cowardice is the better part of discretion"...in that if fear makes you judiciously check your backups and write tests, then that's not a bad thing at all.
Re:How I Fired Myself by ritchiea on Wednesday February 27, 2013 @01:57PM (#5294092)
I believe developers need the courage to do what we feel is necessary and the paranoia to quadruple check our work and assumptions.
Re:How I Fired Myself by Retric on Wednesday February 27, 2013 @04:48PM (#5295198)
Paranoia is often useful, but with a good enviorment, and tools it's rarely need. I find bad assumptions often cause the worst problems. Break things regularly and you end up with fewer assumptions about the code base / production environment which is a vary good thing.
Re:How I Fired Myself by chris_mahan on Wednesday February 27, 2013 @07:35PM (#5296121)
I don't trust tools unless I wrote them myself, in which case I know there will be bugs in them.
Re:How I Fired Myself by Shorel on Wednesday February 27, 2013 @05:06PM (#5295294)
My own rule now is:

The bug is in the part that I though it was so obvious, I missed some check.

Re:How I Fired Myself by PeterisP on Thursday February 28, 2013 @07:24AM (#5298345)
Hmm, is it courage like "real men test in production environment" ?