Sunday, March 1, 2015

Object Oriented Programming

The goal of object oriented programming is to use objects to make replace as many actions as possible. Main concepts of OOP are classes and inheritance. Classes help as group together objects with the same properties and assign actions to them. Inheritance allows us to add extra features to our classes and customize them for different tasks without rewriting the code. These tools together obviously make writing complicated code a lot easier. Another cool feature of OOP is that it allows different people to work on different parts of the same problem independently from each other.
Suppose I need to use class written by somebody else o solve some problem. I don't need to understand how every class works to be able to implement it.  All I need to know is it's public interface. On the other, person designing this class is free to update it's internal mechanics however he wishes as long as public interface remains the same. 
OOP is fun...

Sunday, February 8, 2015

Recursion




Recursion is a very useful concept in programming.  I expected it to be a very different and somewhat hard to grasp concept, but, surprisingly, it was seems pretty easy and straightforward so far. We weren't given any serious problems to use it for though, just some tracing exercises and some basic functions.

Sunday, February 1, 2015

CSC148 — first impresions


I had some experience with programming before, so 108 was mostly refreshment of what I already learned about Python in my physics courses. I was looking forward to CSC148 with excitement,  as for a first serious course in programming, and my expectations regarding 148 weren't false!
 148 started with the dive in object orientation — a very interesting idea that changes the way one looks at programming. I no longer view my code as an advanced calculator, a linear sequence of operations which only exists to solve some particular problem. Assignment 1 taught me treat my classes as independent entities that have life of their own besides solving one particular problem; to design my code in a such a way that it's functionality can be extended in future with minimum effort and without breaking it's initial structure. Assignment 1 was fun, even though I spent quite some time figuring out was exactly I am expected to do, and why do I need to use those classes that don't seem to have any purpose on the first sight.


One the other note, lectures are quite slow and I kind of miss online format of learning which we had in 108. Online lectures have a lot of advantages. First of all, I can the play with the code and implement concepts which I am being taught right away, which greatly increases depth of understanding. Secondly, I can spend less time on those parts of the lecture that seem easy to me, and go watch several times those, which are hard. Lastly, it is just so nice to study whenever it is most convenient to you and not being constrained by a lecture schedule. I wish that in the future all of the programming will be taught online.
That's all for now. See you in the next chapter!

Sunday, January 25, 2015

Why geeks need to know how to write.


Why geeks need to know how to write?
Because everybody needs to know how to write.
In today's world communication is more important than ever and writing is one of the primary forms of communication.
Being good at communicating with others was always valuable, but in the past it was somewhat less important for people engaged in technical disciplines. Great scientists of the past often made breakthroughs in their fields working alone. Single mind could cover a significant fraction of a human field of knowledge; diligence and cleverness were more important in technical field, than ability to communicate.
But things change. As the complexity of technology and societal structure increases, the value of individual decreases because one person can comprehend very narrow fraction of knowledge. Developments in science and technology require integration of ideas, threfore most of the scientific and industrial tasks are done by groups of specialists rather than by one clever individual. Communication and sharing of knowledge are essential for the productive work.
For that reason, ability to present ideas in written form is crucial for anybody to succeed in a technical discipline.