Sunday, 29 March 2015
The End?
Could it really be the end already?
Just a few short months ago the course was beginning and I was setting up this blog. I'll very likely post some other things here for personal enjoyment but definitely not at the rate a course schedule encourages me to. For now, I'll just review the hurdles:
Recursion. It wasn't the easiest conception to envision once the problems became more comlicated, but I think my last assignment really will prove how far I've come.
Linked Lists. I'll level with you all: I messed up Linked Lists last test. I'm going to get my act together for the exam, and could use all the good luck I can get. (And hard work too I guess)
But here we are looking at measuring program times for our 2nd last week. A concept explained in our class accomplished more than the last two weeks of the other course I'm taking that explains "big-O" notation and so on.
Here's to an excellent year and hopefully and excellent exam mark to show for it!
Cheers
ES
Sunday, 22 March 2015
Back in Time
Hello again! This week, despite the low amount of posts, I'm looking back at the past in regards to this blog. Post #1 Specifically.
Ahh. Post #1. Simpler Times.
Ridding my eyes of the rose-tinted nostalgia glasses, It's clear that I was speaking outside of direct experience. As an observer I seemed to have plenty to say about communication in computer science, and can't really say I disagree with myself here or on such an observation.
"if you can't communicate your ideas or code to the other people on your team you're actually a liability, even if you produce amazing code"
Woof. Strong words. I can't deny I still agree with them though. A great way to get nowhere fast in the world (I imagine) is be a poor communicator. Ask me who I'd rather work with, an average-skill person with above average communication skills or an above average skill person with average communication, an I'll always pick the good communicator. We'd just get more done.
"That's why "geeks" should write, especially logs like this one will hopefully become. If you log a problem the solution may come to you more easily."
The words of a hypocrite! Who is this guy?
I won't give myself too hard a time but clearly my notebooks get more attention than this blog. I'm searching the margins of my pages when I could just be archiving and accessing my problems right here. That way I'd be working on my communication at the same time, and it's never too late to change! All in all though, it's been a good term. Here's hoping the exam goes well for everyone!
Cheers,
ES
Sunday, 15 March 2015
Last Week
Yet another week has come to pass, and with out most recent test out of the way I'd say it's time to reflect.
Altogether it could have gone better, and mismanaged time is a key concern of mine during tests. This one was no different, but it still seemed I'd fallen short of where I wanted to be once time ran out. The final question was in regards to linked lists, and ultimately navigating them is still an issue for me. For example, determining where a value is in a linked list and placing a new value in it's place is not as simple as it sounds. One drawback when it comes to thinking with linked lists is a lack of spatial numbering (like that of a normal list). There's no LL[10] to get the tenth value in a linked list, instead only a reference to the front is available.
I ran aground during the test when I had to modify a linked list and couldn't accurately tell if I correctly altered the list without ruining whatever came before it. It was frustrating to say the least. I haven't found the time to hammer out the correct solution on my own just yet, but I'm not giving up while there's such an obvious hole in my learning. You win some you lose some!
Cheers and see you next week,
ES
Altogether it could have gone better, and mismanaged time is a key concern of mine during tests. This one was no different, but it still seemed I'd fallen short of where I wanted to be once time ran out. The final question was in regards to linked lists, and ultimately navigating them is still an issue for me. For example, determining where a value is in a linked list and placing a new value in it's place is not as simple as it sounds. One drawback when it comes to thinking with linked lists is a lack of spatial numbering (like that of a normal list). There's no LL[10] to get the tenth value in a linked list, instead only a reference to the front is available.
I ran aground during the test when I had to modify a linked list and couldn't accurately tell if I correctly altered the list without ruining whatever came before it. It was frustrating to say the least. I haven't found the time to hammer out the correct solution on my own just yet, but I'm not giving up while there's such an obvious hole in my learning. You win some you lose some!
Cheers and see you next week,
ES
Sunday, 8 March 2015
Linked Lists: Lists with Links
This week the main topic of focus has been linked lists, a chain of information in which a single list contains two values, one object and a link to another list of the same, or else None.
My most common hiccup when thinking about this concept is the difference between linked list and nested list. It helped to punch one out and compare it to what a linked list has been described to me as.
While a nested list's lists literally contain a list as their second (or third, or fourth... etc) value, the difference between such a list and a linked list is that the simplicity of a linked list is in it's two-value length: a data value, and then a reference to another list of the same type (or None if at the end of the list).
Nested Lists are Russian Dolls, Linked Lists are Conga Lines:
In all honesty, Conga lines really are a lot more fun.
Cheers!
ES
My most common hiccup when thinking about this concept is the difference between linked list and nested list. It helped to punch one out and compare it to what a linked list has been described to me as.
Nested List -> [1, [2,[3, None]]]
While a nested list's lists literally contain a list as their second (or third, or fourth... etc) value, the difference between such a list and a linked list is that the simplicity of a linked list is in it's two-value length: a data value, and then a reference to another list of the same type (or None if at the end of the list).
Nested Lists are Russian Dolls, Linked Lists are Conga Lines:
In all honesty, Conga lines really are a lot more fun.
Cheers!
ES
Sunday, 1 March 2015
Object-Oriented Programming: One of the rare instances where objectification isn't cruel
After graduating from the limited sensorimotor stage of one's infancy, the human brain is capable of understanding that there exist instances of things in our life, such as people places and things which are unique and not nessecarily limited to the ones we can currently see, feel or hear. Object-Oriented Programming is, in my understanding, object permanence (knowing something can exist with or without it being currently in play) for the coding process. Consider an example challenge:
We'd like a write a program about pens. Perhaps for organizing types of pens. We know that not all pens are the same. How will we be able to work with pens, telling them apart from each other, easily representing what they are? OOP helps.
We know pens have different colours, and we can organize characteristics like this one in an Object. This makes sense of course. Pens are, in fact, objects. But just like in real-life: it's quite handy to have a basic idea of what a pen is in order to avoid confusion.
![]() |
| Are quills pens? Depending on the design of your program, quite possibly. Confused? |
So! We've decided pens are something important enough that our program will deal with them as instances of a Pen object. Listing off colour as a characteristic of interest, we write code that allows us to create pen objects with strings representing names and colours. Our lives just got a whole lot easier. Why?
Because we can now more easily manipulate the idea of pens in our code, write code that allows us to compare them, which then allows us to more easily organize them. Wait, wasn't that what we were trying to do at the start?
"We'd like a write a program about pens. Perhaps for organizing types of pens." -Adventures in SLOGing 2015
Well, there we go. Just by doing a few simple steps we've created a sensical basis for our program, and that's good in more ways than one.
Because we've written up Pens as an object and attentively commented our code (obviously) it's far easier for an outside party to view and understand what we've written, as well as modify individual parts of the code without as great a risk of messing things up. Presto: versatile, understandable, and effective code.
I struggle to come up with a complex problem that wouldn't benefit from code written in an Object Oriented design, but realize I am only starting out on the learning process.
Until next week, cheers!
- ES
Subscribe to:
Posts (Atom)






