Docsity

Why so software engineeringy?, Exams of Network Technologies and TCP/IP

Partial preview of the text

Download Why so software engineeringy? and more Exams Network Technologies and TCP/IP in PDF only on Docsity!

Why so software engineeringy? Athula Balachandran Wolf Richter

Are we really

that serious?

Case Study: from Industry

Imagine you are a police officer on the road at 2:14am and there is a van weaving around on the road in front of you and it is obviously full of people who are dressed alike and have many different pieces of luggage and other objects that you can't quite see clearly in the vehicle.

Mission critical applications?

You reach over to your laptop mounted in your police car and key in the make model and license number and state. The message on the screen says: Sorry, this application is not available for the next 30 minutes.

What do you do now?

You have no information from a mission critical system with access to all sorts of databases including who the owners of the vehicle are, who might have leased it, rented it, or is the main driver for it, and intelligence data bases that can tell you if it might be illegals or terrorists, or some other sort of criminal. As a single police officer who has to deal with this now, when backup is 20 minutes away and you do not know if these people will be armed and desperate enough to shoot first.

Why?

The reason the data is not available is that there was no backup that took over immediately on failure. We deal with this in many ways, short term with clustering servers, having mirrors or RAID for data, should data storage fail, network redundancy should a network connection fail. However, there may also be a deeper reason for the failure which is dealt with in another way; disaster recovery and above that COOP or Continuance Of OPerations should a major disaster occur.

We'll be focusing on: Backups Code Documentation Source Control Management Code Structuring and Modularity

Subversion: svn

svn Repository Usually remotely hosted, shared with a team. Working Copy Your private universe, before commit. svn commit svn checkout svn update svn commit

Types of Repositories

Type Meaning file:/// Direct local disk access http:// WebDAV protocol via Apache https:// HTTP with SSL svn:// Access svnserve via custom protocol svn+ssh:// Same as svn://, via ssh tunnel

Daily workflow with svn

● Check for any remote updates ● Do your work ● Test your work ● Check differences, try to isolate changes ● Check for any remote updates ● Commit your work

Example repository

> svn update At revision 0. **> echo 'this is a test' > test

svn add test** A test > svn commit -m 'added a test' Adding test Transmitting file data. Committed revision 1. > svn update At revision 1. > echo 'new text!' > test svn status M test > svn diff Index: test =================================================================== --- test (revision 1) +++ test (working copy) @@ -1 +1 @@ -this is a test +new text! > svn update At revision 1. > svn commit -m 'updated text' Sending test Transmitting file data. Committed revision 2.

Dealing with collaboration

● Lock-modify-unlock ● svn lock ● Modifications... ● svn unlock ● Copy-modify-merge ● Optimistically edit things ● Merge any files that others also commit

Merging in Practice

2> svn update Conflict discovered in 'test'. Select: (p) postpone, (df) diff-full, (e) edit, (mc) mine-conflict, (tc) theirs-conflict, (s) show all options:

Merging options

Type Meaning postpone Mark conflict for later resolve diff-full Show all changes edit Use an editor to resolve mine-conflict Accept your version only theirs-conflict Accept their version only show Show more/all options