And that is why Marcus was a firm believer in the importance of version control.

Similar documents
How to Rescue a Deleted File Using the Free Undelete 360 Program

How Do I Sync My Iphone To Another Computer Without Losing Everything

Getting Help...71 Getting help with ScreenSteps...72

Delete Songs From Iphone Without Itunes Ios 5 >>>CLICK HERE<<<

FILED: NEW YORK COUNTY CLERK 07/31/ :17 AM INDEX NO /2018 NYSCEF DOC. NO. 53 RECEIVED NYSCEF: 07/31/2018

Text 1 Cell Phones Raise Security Concerns at School

Sync Manually Greyed Out Ipad Itunes Wifi >>>CLICK HERE<<<

Amber Weyland: [to cameraman] Just hold it there so we can see Mollie.

Word Processing: Basic Skills

XP: Backup Your Important Files for Safety

TDDC88 Lab 4 Software Configuration Management

Unit 9 Tech savvy? Tech support. 1 I have no idea why... Lesson A. A Unscramble the questions. Do you know which battery I should buy?

Real Fast PC. Real Fast PC Win 7.

Burning CDs in Windows XP

Organizing your Outlook Inbox

Content Versioning Product Sheet

Chapter 1 Operations With Numbers

Office 365 provided by Hugh Baird College

Trying To Uninstall Norton 360 Wont Let Me Connect

Backup using Carbon Copy Cloner

Blog post on updates yesterday and today:

Contents. What's New. Dropbox / OneDrive / Google drive Warning! A couple quick reminders:

This is the story of Santa s Enchanted Mailbox

Tuesday 6th October Agenda

How to Improve Your Campaign Conversion Rates

Robert Ragan s TOP 3

Create your first workbook

Copyright 2004, Mighty Computer Services

Uninvited. Developed by!com Simulations, Inc. MINDSCAPE

You can now give this notecard to people by dragging and dropping it on their avatars.

Fortunately, you only need to know 10% of what's in the main page to get 90% of the benefit. This page will show you that 10%.

Clean & Speed Up Windows with AWO

Using web-based

Movavi Mac Cleaner. Download PDF. Not sure where to begin? Read the Quick Start Guide!

Table of Contents. ShredIt X Read Me.

An Introduction to Business Disaster Recovery

ICS 61 Game Systems and Design Introduction to Scratch

Slick The Split:

Using the Computer for Essays

CBS For Windows CDROM Backup System Quick Start Guide Installation Preparation:

Rescuing Lost Files from CDs and DVDs

Helping the Compiler Help You. Thomas Dy

BCSWomen Android programming (with AppInventor) Family fun day World record attempt

ESCAPE. A MINWOO PARK FILM Press Kit

Who am I? I m a python developer who has been working on OpenStack since I currently work for Aptira, who do OpenStack, SDN, and orchestration

Photoshop Tutorial: Basic Selections

HOW TO INTEGRATE A PAYPAL BUTTON INTO YOUR WEBSITE

COMMON WINDOWS 10 QUESTIONS & ANSWERS

insight3d quick tutorial

The Frugal Computer Guy

The Problem, the Solution and the End FinalPart

MITOCW watch?v=zm5mw5nkzjg

Taskbar: Working with Several Windows at Once

Lesson 2. Introducing Apps. In this lesson, you ll unlock the true power of your computer by learning to use apps!

In our first lecture on sets and set theory, we introduced a bunch of new symbols and terminology.

List of Known Toolbox Problems

What is version control? (discuss) Who has used version control? Favorite VCS? Uses of version control (read)

How Do I Sync My Iphone To A New Computer Without Losing Everything

Accessing E-Books using OverDrive

Welcome to the world of .

ChatScript Finaling a Bot Manual Bruce Wilcox, Revision 12/31/13 cs3.81

Journaling for Memoir Workshop. A Short Course in Writing Deeply. Workbook

Manual Archive Outlook 2007 Doesn't Work

DOING MORE WITH WORD: MICROSOFT OFFICE 2010

7, 8, 8.1, 10. You can still get windows ten upgrade from 7, 8 and 8.1 now. Just need the right file to upgrade, I have it.

RED STAMP MAIL USER GUIDE

WORD BASICS: MICROSOFT OFFICE 2010

Manual Of Ios 7.1 Beta 5 Iphone 4 Performance

CHAPTER 02 No To express feelings is good for your mental health. 054 Cramming for an important exam is never a good idea!

CSCI 1100L: Topics in Computing Lab Lab 1: Introduction to the Lab! Part I

Chris Jung, Garrick Li, Luyi Lu, Grant Neubauer CSE Autumn d: Usability Testing Review. Usability Test 1

Week - 01 Lecture - 04 Downloading and installing Python

LeakDAS Version 4 The Complete Guide

Julie Rand LIS Fall Usability Study

Enterprise PDM Best Practices to Avoid Losing Work

(Refer Slide Time: 06:01)

Before you archive your Membership Plus data, be sure you have a current backup of your data set.

3d: Usability Testing Review

Tips and Ticks

Teacher Guide. Edline -Teachers Guide Modified by Brevard Public Schools Revised 6/3/08

Read & Download (PDF Kindle) Data Structures And Other Objects Using Java (4th Edition)

Post Experiment Interview Questions

News English.com Ready-to-use ESL / EFL Lessons

Occasionally, a network or a gateway will go down, and the sequence. of hops which the packet takes from source to destination must change.

Life After Microsoft Outlook

Lesson 2 page 1. ipad # 17 Font Size for Notepad (and other apps) Task: Program your default text to be smaller or larger for Notepad

Earthwork 3D for Dummies Doing a digitized dirt takeoff calculation the swift and easy way

Teamwork ATLAS.ti 8.x Windows + Mac (Mixed Teams)

Understanding Browsers

Handout 4: Version Control Reference

DARING CHANGES IN ENTERPRISE GUIDE WITH A SAFETY NET

DOING MORE WITH WORD: MICROSOFT OFFICE 2013

Final Project Report

Helpful information for everyone

Windows 7 Will Not Load On My Computer Says I'm

MANAGING YOUR MAILBOX: TRIMMING AN OUT OF CONTROL MAILBOX

>print "hello" [a command in the Python programming language]

Hello, and welcome to another episode of. Getting the Most Out of IBM U2. This is Kenny Brunel, and

Project Collaboration

I DO NOT OWN ITUNES OR ANYTHING IN THE THUMBNAIL THIS IS ALL OWNED BY APPLE.

Transcription:

Computational Fairy Tales - Computer science concepts as told through fairy tales. By Jeremy Kubica (computationaltales@gmail.com) CFT #16: Version Control in Magic Spell Development Version control refers to the process of managing changes to a piece of work, such as a computer program. One of the primary benefits of a version control system is that is maintains previous versions of the work. This is important for both: backing up the work against unexpected loss and allowing the developer to access previous versions of the work. For example, a developer might want to revert some part of the work back to a previous state (e.g., reverting a function to before a bug was introduced). The wizard Marcus kept his apprentices very busy. In his opinion, work was the best way for them to learn. Plus, it was quite convenient to have someone help with the less glamorous work. It was not as though Marcus actually wanted to do any of that work himself; he had more important things to do, such as developing new spells. Developing new spells was Marcus's favorite task. There was a deep challenge to creating a new spell. First, you had to determine what you wanted the spell to do. Second, you had to determine the overall flow of the spell. Third, you had to isolate and develop the subcomponents of the spell. How would you initiate the transmogrification? How would you know when to stop? He likened the process to writing a symphony or to creating a complex computer program. It could take him months to create the perfect spell. And that is why Marcus was a firm believer in the importance of version control. At the end of every day, he would have his apprentice copy down all of his notes onto a fresh roll of parchment. This meant all notes -- a perfect copy of the current state of Marcus's notebook. The apprentice would label the parchment with that day's date and file it in a special drawer. Thus, if Marcus ever needed access to an old version of his work, he could simply retrieve the correct parchment. One day, his apprentice Shelly started to complain bitterly. "Why do I have to keep copying down your notes? You have everything in your notebook already. And you are just going to change things again tomorrow. Like this paragraph on mixing the potion. Yesterday, I copied down almost exactly the same thing. Except today you crossed out 'Stir 3 times clockwise' and replaced it with 'Stir 4 times counter-clockwise'. Why did I bother copying it down yesterday? Why not just wait until you are finished?" "Two reasons," Marcus began calmly. He enjoyed explaining the logic behind good spell development almost as much as he enjoyed spell development itself. "First, for safety. Do you remember that time last month, when I accidentally set the room on fire? It was while I was working on the spell to cure dry skin. My lab notebook completely burned up." "But, sir." protested Shelly. "That was an exceptional case. How often do you accidentally set your notebook on fire? Is it really worth that much effort? Couldn't you just make a copy of the final product? That way you would never lose a spell that is finished. You could only loose parts of unfinished work." Even as she spoke, Shelly considered her own question. In the one year that she had been Marcus's apprentice, he had managed to accidentally set five different notebooks on fire. Maybe he did have a point about backing up his work. Or perhaps a better solution would be for him to avoid working on spells involving fire. She quickly decided not to raise either of these points. "I would have still lost days of valuable work!" exclaimed Marcus. "A complex spell might take months to develop. It is simply not worth the risk." "Then why not just use a magic mirroring spell on your notebook. Surely, you do not need a whole new copy each night. You could just have a single, identical copy in some safe location -- like New Pompeii." argued Shelly. Marcus smiled. "I do that too. I mirror all my notebooks to a castle out in the country. But there is another reason to copy my notes: developing a spell is not always a straight line process. Sometimes, I make mistakes and need to go back to what I was doing before." Shelly looked confused.

"Remember when you copied down the spell for silencing marching bands?" Marcus asked. Shelly nodded. Of all the spells that she had seen Marcus develop, that was one of her favorites. She had tried it at halftime during her brother's high-school bocce game. In the middle of a song, all of the instruments had gone completely silent. All of the band members were completely confused. Of course, Shelly still felt a little guilty that she had not bothered to learn the reverse spell. "During the middle of developing that spell, I changed a block at the end." continued Marcus. "I removed all of the instructions for using the wand and started over. I threw out two weeks worth of work." Shelly remembered clearly. She had muttered a lot of nasty things under her breadth when she had seen the paragraphs crossed out. "But then what happened?" asked Marcus. Shelly thought back. "You put them back in a few days later." "Yes!" agreed Marcus. "It turns out that I had not factored the wind into the spell yet. So I was just able to modify the wording. The original wand instructions were fine." "I don't understand," sighed Shelly. "Version control allows you to go back and recover previous versions. If I change my mind and alter an instruction, then I cross it out in my notebook. It is gone from my notebook and the mirrored copies. But I might need to be able to go back and look at the old version. There might be something there that I need later." "Why not just keep everything in the current notebook?" asked Shelly. "You could add comments saying 'Don't do this' or 'Ignore this' so that you know which instructions are old. That way you would never need to throw anything out." "That would be too messy. How would I ever read a spell?" argued Marcus. "Version control is cleaner. I can make whatever changes I want, and I know that I can always go back to a previous version if I need it." "But " started Shelly, but she had run out of arguments. She could clearly remember many instances when he made major changes to a spell, and then had backtracked the next day and reverted them. During the development of the Spell of Singing Rocks, he had gone back and forth three times on a single approach. Each time he changed his mind, she had been able to retrieve an old scroll so that he did not need to start from scratch. "But my hand hurts from copying the same instructions over and over." Shelly finally admitted. Marcus tried to look sympathetic. "I know that it can be a tiresome task. That is why I have apprentices do it for me." His statement did not make Shelly feel any better. - please read the next 3 pages to learn how to recover and restore files in Dropbox. Copyright Jeremy Kubica 2011. This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. For all other uses please contact the author.

How do I recover old versions of files? Dropbox is like a time machine. It keeps snapshots of every change in your Dropbox folder over the last 30 days (or more with the Packrat feature). So even if you saved a bad change, or if the file has been damaged or deleted, you can restore the file to an older version with only a few clicks. On the Dropbox website To find the file's version history online, click on the file from the file browser and select Previous versions from the blue action bar at the top. If you've deleted the file by accident, you'll want to recover the deleted file first. View deleted files and Previous versions options from the website Restoring a previous version Once you click on Previous Versions, you'll be sent to an online list of the various snapshots Dropbox has taken during the history of the file. When you see the file you want to restore, select the radio button the to the left of the file and press the Restore button. Restore previous snapshots from Previous Versions on the website

On Windows You can find a list of previous revisions by right-clicking the file from your desktop. Hover your mouse over the Dropbox submenu and select View Previous Versions... Choosing View Previous Versions... from the context menu Clicking on View Previous Versions... will take you to the Dropbox website to view old revisions. From there, you can follow the website instructions below to recover an old version or even undelete a file removed by accident.

How do I recover deleted files? Dropbox keeps snapshots of every change in your Dropbox folder over the last 30 days (or more with the Packrat feature). So if you accidentally pressed the delete key and erased something crucial, you can restore the file with a few clicks. Recover deleted files on the Dropbox website You can recover any file deleted in the last thirty days from the Dropbox website. 1. Click the Show deleted files button from the blue action bar at the top of the file browser The Show deleted files button from the Dropbox website 2. All deleted files will show up in gray. Select the deleted file you want to recover 3. Press the Restore link from the blue action bar at the top of the file browser