Sunday, 8 March 2015

Week 7

Stressful

The lectures weren't of course, but the assignment we had due this week. Complete with work due for other classes it became extremely stressful just trying to figure out how to code the game properly (properly meaning by course standards / CSC108 Python standards).

Keeping this in mind, if I recall correctly the stuff we've been doing in lecture has been somewhat similar in that it is another fun data type, linked lists, though it was iterative rather than recursive like the trees we've been doing last week. Blaze it.

I hope whatever we were talking about in lecture doesn't come back to bite me in the ass later, hopefully I'll figure it out on the spot if need be.

Sunday, 1 March 2015

To be marked: Abstract Data Types

Summary of Abstract Data Types

I'm sure we're all familiar with our more common data types that we've been always using, things like lists, strings, integers, etc. However, programming languages, including our wonderful Python, can produce and use various other data types that are more theoretical in nature, which can exist with similar characteristics among most programming languages. These data types are especially useful for simplifying certain algorithms, and can be easily implemented as we have been doing for the past few weeks.

For example, the first abstract data type we discussed was a stack, which was a type of list that had a last-in-first-out structure, such that adding to the stack would always append to the end, and only the last added item could be adjusted or removed. More recently, we've been working with trees, which is a data type that somewhat refers to other versions of itself to create a data tree consisting of a root node which can branch off into different directions, each node containing whatever object it requires depending on what you're using the tree for.

No matter what language you're using, these abstract data types exist in all of them and share similar functionality and uses, and can be incredibly useful for certain algorithms.

Wednesday, 18 February 2015

OOP - Object Oriented Programming

A Bit More Convenience

It's much easier to play something like a board game when you don't need to keep the entirety of the game within your mind. A visual representation, like the physical board game, makes it much easier to keep track of everything going on and much easier to make more complicated moves.

In my high school, the computer science class worked with Visual Basic 08, which was very simple and object oriented using default objects within Windows forms. The class could accomplish quite a few things, despite never really going into advanced coding, I'm pretty sure we finished with creating our own function calls. Though I know more with Python, I'd never be able to make a game as complicated with it as I could with VB, simply due to the differences in languages and how easy object oriented programming can be.

All we need to do is add our own objects and classes within Python, and whenever we need to make complicated programs or games, it is made insanely easier just because we already have an object that can handle most of the complicated stuff itself, rather than hard coding practically everything.
Object oriented programming brings insane simplicity and potential.

Saturday, 7 February 2015

Recursion

Recursion over and over again!


The last week or so we've been tracing recursive functions, simple enough, since they all seem to look exactly the same while doing something different. As soon as you get one recursion down the rest pretty much just fall into place which is extremely useful since I'm pretty sure we're going to end up writing our own recursive functions, and having what they look like ingrained in our brains should help with that.

If we're going to add onto our first assignment for the rest of the assignments, making one of the games use recursive functions is going to be great fun.

Tuesday, 3 February 2015

First few weeks..

Were a little repetitive

I honestly felt like we kept talking about the same thing each week just with different examples in the wednesday lecture. We definitely did learn a few new things such as parent and child classes, property, etc. and most of it what pretty useful for the first assignment, though it didn't help explain the assignment.

Hopefully, we'll continue to learn some fun new things with python such that we're able to code practically anything in the most arbitrarily redundant way and have it still work.

Wednesday, 21 January 2015

First post - SLOG CSC148

I'm not all that great at keeping a blog, it rarely crosses my mind to actually update it and it feels strange trying to appeal to an audience I'm not entirely sure of, but let's have a go.

Why do geeks need to know how to write?

Any profession which requires discussion, deliberation or debate will also require being able to communicate ideas effectively and sometimes persuasively. Geek is a bit of a general term, but let's go with computer scientists. 


The blog article above is written by a computer scientist (geek), about keeping a debugging log. As you could tell from the comments, a lot of other geeks found this information useful or interesting. Mostly all computer science work involves normal English writing, from code comments to debugging logs, and these are things that other computer scientists need to be able to read and understand. It's a profession where one needs to be able to communicate ideas, so it's important that they know how to write.