This course is called Computer Science I, but we won't be doing science. We won't be constructing theories or doing experiments. Also, we won't be spending significant time on how computers work!
Someone once said that naming this discipline Computer Science is like calling carpentry "Hammer Science." We use computers as tools, and the tools are important, but the discipline is not only about the tools themselves.
So, if CSE131 is not really science and it's not really about computers, then what is this course about?
This course is about
Process and Procedure
For our purposes, we define:
When people describe activities, though, they don't like to keep every single detail in their heads. For example, if you asked me for walking directions to my house, you would be annoyed if I began, "first, uncross your legs and get out of your chair. Then, put your right foot in front of your left..."
We like to hide the details, not because they are unimportant, but because they are not "interesting." If we had to keep all the details in our heads, we could never get anything done.
In this course, we'll see many forms of abstraction for hiding different kinds of detail. Abstraction is extremely important for building any kind of complex system, because without it the problem becomes overwhelming and unmanageable. Also, abstraction to allows us to model the world (real or imagined). We often like to represent physical or virtual reality inside the computer in order to simulate events, make predictions, or just store and retrieve information. We do this by creating an abstraction of real world, retaining only the relevant information and ignoring other details. For example, in a database of people, the people aren't really in the computer, but there's a collection of attributes that describe them. Which attributes we choose to represent depends upon the problem to be solved. Making this choice is an important part of the design of our solution.
Decomposition
It's also important not to solve the whole problem at once.
To reiterate, this course is about
Our solutions will be software systems consisting of collections of communicating components. The components will be implemented using various forms of abstraction to hide detail, and will work together to carry out the desired computation.
The processes to be carried out to and the components that embodies them will be described as computer programs written in some language.
Syntax and Semantics
Every language has:
Elements of Programming Languages
The languages we use to describe processes that take place inside a
computer are called PROGRAMMING LANGUAGES.
We want programming languages to support writing programs that are
Designing programming languages is an ART (not a science) and using them is also an art. We strive for elegance & simplicity in the way we describe software systems.
You can think of each object as modeling some real world or abstract thing. Each object has:
For example, a telephone book object might have a list of names and phone numbers as its internal representation. One of its methods might be to look up the phone number for a name you provide.
Most of this introduction may seem kind of vague right now, but it is a useful overview to keep in mind as we proceed through the course. Don't worry. Things will become clearer as we go. In your first programming assignment in CS101, you will define one simple class with some simple methods. Then we will build up gradually to solve more complex problems using abstraction and decomposition. Sometimes, we will provide you with objects (to create graphics, for example) that you will incorporate into your own programs.
Now, let's start from the beginning...