by akor on 4/3/14, 12:30 PM with 11 comments
by shubb on 4/3/14, 12:46 PM
Safety nets for developers include automated tests, rolling out upgrades to a 'pre-production' clone of your real server before doing the real upgrade, and keeping your code in version control so you can reverse mistakes quickly.
For database work, not working on the production database, lots of backups, and using transactions all work for me, but some databases support Point In Time recovery if you have it turned on.
But what works best is doing code reviews, including reviews of SQL that is going to be executed against the database. Two heads are better than one.
by bjourne on 4/3/14, 4:27 PM
Anyway I dont think you can prevent screwups in general. The only thing you can do is have systems in place which mitigate the consequences of screwups. Like unit tests and backups.
by psyklic on 4/3/14, 3:56 PM
by gee_totes on 4/3/14, 3:46 PM
by stesteau on 4/3/14, 12:52 PM
by petervandijck on 4/4/14, 11:29 AM
2. Pair programming.