I feel really good today. Can you guess why?
That's right, I think I've covered everything you need to know to get started in Computer Science! This marks the end of my CS 101 posting!
At this point, I think I'm ready to start turning these posts into my first book, <Title to be determined>. That's
If I hand you a black box with one unlabeled button, what do you think that box can do? How do you think the box works?
Unfortunately, programs are essentially black boxes. Unless you have either written or read the entire source code, you can't really know how the system is supposed to work.
Quality often looks like a buzzword to programmers and users. What is quality, we wonder, and how can we honestly know whether a product is quality? We have three measures in the software world for quality: operability, maintainability, and transferability.
Operability refers to how the system operates (kind of self-explanatory). While there are many subjective
In the past few posts, we have considered that programs can be composed of smaller parts. The ability to reduce a program to a collection of smaller, connected algorithms is known as modularity.
When we consider a set of modules (smaller algorithms which are connected to form a program), we can consider a measure of
We have discussed development of software from the point of view of the programmer and the whole lifecycle. However, we should also look at how this development appears at the management level.
This is the most hated development model, and rightly so.
This development model assumes that we take each stage on in one go, work
Software is a program designed to solve a problem or fill a niche. Usually, software development goes through the following phases.
Before you can solve a problem, you must identify what that problem really is. We need to identify the following things if we want to make a useful product:
User - Is this designed for
Programs go through a variety of stages on the way to execution. Depending on the type of language, some steps may be added or removed to the list, but here are the stages for a compiled language like C.
All programs start with a problem which needs to be solved. This problem could be as
Programming makes our lives easier, but most people don't fully understand how much easier.
Programming began with gears
That's right, folks. Long ago, when you wanted to do math quickly, you had to use something like an abacus or slide rule. Sure, you had geniuses like Babbage with his mechanical adding machine, but these were very
Many problems in this world require us to perform a series of steps over and over, looking for the correct result. In computer programming, we have three ways to do this.
Keep it Simple
Of course, if you really want to make this easy for yourself, you just write the solution as one big block. This
Programs are composed of algorithms - recipes for completing simple tasks. The steps used to compose an algorithm can be classified into sequences and decisions.
Sequences and Decisions
A sequence of instructions is a step-by-step flow, with only one possible path. These are the meat of the code, as these do the heavy lifting.
A decision is