Ever wished you could test in production? You can! And you can do it safely. The scientist library allows you to craft experimental re-implementations of existing chunks of code. Learn how to deploy the old with the new and collect data on how well the replacement matches the original's behavior.
- [Instructor] "I don't always test my code, … "but when I do, it's in production." … I'm not sure who I should attribute this quote to, … but it's always made me laugh. … I have worked with people over the years … who've shared this attitude. … Heck, I was a person with that attitude long, long ago, … before I discovered how much I enjoyed testing. … But what if this wasn't a joke? … What if you could actually test in production? … Turns out with the right tools, you can. … A few years ago, … GitHub released a Ruby library … that they aptly called Scientist. … This library lets you craft an experiment … to see if a refactoring behaves exactly the same … as the code that it's replacing. … The experiment is safely conducted in production … using production computing resources … and production data. … The results of running the experiment … will let you know whether or not your refactored code … has the same behavior as the original … that it's meant to replace. … And if you're not working with Ruby, …
AuthorM. Scott Ford
- Assessing the technical debt
- Creating and running a test suite
- Handling failing tests
- Updating dependencies and tools
- Paying down technical debt
- Remaining test driven
- Monitoring code quality
Skill Level Intermediate
Agile Software Development: Code Qualitywith M. Scott Ford1h 40m Intermediate
Agile Software Development: Refactoringwith Richard Kasperowski1h 31m Intermediate
1. Getting Started: Review the Technical Debt
2. Fence in the Technical Debt
3. Improve Your Tools
4. Pay Down Technical Debt
5. Keep Technical Debt at Bay
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.