Tuesday, 1 March 2016

OOP (Object-Oriented Programming): Somewhat Ouroboric


Object-oriented programming refers to a programming language model conceptualized around the manipulation of objects. Who would have guessed that? The objects act as instances of classes, which typically determines their type. OOPs contain attributes that are described by methods, or the rules/the form of procedures that comprise the functional code. The objects involved are very basic in their data structure as they are assigned to carry memory addresses in the system. The different objects are understood to be different instances of classes, having their own functional methods, properties, attributes, and behaviours, used to distinguish themselves from other objects so they may be processed and manipulated for an intended result.

This paradigm is very intuitive; many concepts follow this design, such as the Jungian notion of the psyche, or even the conceptualization of a concept. An analogy I like using is it is similar to the idea that people are a disturbance that is excited by energy, and guided by the forces that make up the rules of the universe. Atoms (atomic features, analogous to an object) are matter, and through some forces, come together to create the building blocks of life, then single cell organisms, and then eventually us. They may be paralleled to the relationship of objects to classes. Atoms become things and things become other things with diverging properties or altered applications of forces/rules due to their interaction of other forces. This is similar to the building of classes, and then the bridging of subclasses from classes. There is a defining and creation of a membership to a concept of reality through certain essential qualities. Qualities defined as being necessary and sufficient.

OOP's are useful for computer science and have a great potential for being able to translate real-life instances into code, as the context that is embodied or simulated, becomes self-contained. This is the nature of many ideas and instances in the real world. The information and context may handle and manipulate
 themselves. 

Sunday, 28 February 2016

Mid Semester Already? D:

Survived the week miraculously.

Surprisingly finished the assignment on time. I completely appreciate commenting now! Commenting out the steps needed for each line of code seriously helped with completing the assignment. Thank you, 108!

This week, we covered recursions. Recursion makes code even simpler, that is if you're implementing it correctly. Especially when you're looking at the different depths of a function. Tracing through your functions is extremely important for this step, to make sure that the code is doing what you think it is doing. However, I am a little hesitant about using it. It's like treading new water, which does make me feel a little anxious. But I guess with more practice, it should work out better.


-Sid

Friday, 12 February 2016

Nodes of Information

Week 3:

Still dying.

Due to the lab this week, I have been thinking a lot on nodes, specifically with linked lists. They are object types with a value and a reference to some other object. This is interesting. I feel this is similar (albeit, a simplified model) to cognition… More specifically to the whole first gen. cognitive science notion that cognition is computation, proposed by Thomas Hobbs. In the mind, there are engrams (a place of encoding for certain memories) and then there are neural assemblies, or encoding assemblies, where neurons fire together at certain oscillations and at specific intervals for both encoding and retrieving memories.  Each node is comparable to an engram, but in a highly simplified extent since neurons have a multitude  of axons and dendrites, branching out and creating synapses at various locations (i.e. engrams are difficult to locate).

In combination with queues and stacks/ sacks, I am curious if whether incorporating both these forms of code with Linked Lists, whether this could facilitate a function similarly to that of working memory. Of course, the point of a class is to simulate an instance in reality (like with the point class referring to a class Point). Working memory assembles the appropriate information due to certain cues. These cues then locate information from certain ‘nodes’ so they may be used. The information, however, appears in the short term memory for a moment to perform a task before disappearing. Parallels can be drawn between how working memory retrieves information and to a queue, where information is added to the back of a queue while information is removed at the front of a queue.
(As an aside, the word queue has too many unnecessary letters, wouldn’t you say?)


Of course, I am making a gross, over simplification of how working memory may function by relating the classes, and nodes with linked lists (of information), but perhaps there may be a potential to mechanize cognition this way? I am still rather unsure of this. 

Wednesday, 3 February 2016

Linked Lists, Whosits, and Whatsits

It is week 4 now. Somehow, I am still surviving.

I have befriended PyCharm, finally. Though, it seems to nag me ever so often for my redundant parentheses. It helps to make the code easier to read, PyCharm. Quality over quantity. Calm yourself.

So much has happened. We've learned about linked lists, which seem easy enough to follow. But of course, one can never be too careless. Professor Heap emphasizes this point.

Link lists describe a way of simple categorization to me. Of course, they are not nearly as malleable as compared to the way humans categorize. They are described in two forms: wrappers or nodes.

Wrappers are like little units inside other units. For instance the notion of what classifies something as a cat will be described from a top-down process, going from a detailed or autonomous feature and then trickling down to generalize, or in terms of linked lists, looking at values within a sublist towards the outermost list.

Node organization of lists are akin to the nodal organization of a feature map, but of course, with not as many branching points. Rather than being a web of information of values or "features," linked lists form a linear connection pattern. An example would be having 'soft kitty' in the initial value in the list, then a node, connecting that  value to the next value, which might be 'warm kitty,' then another node connecting that value to the next similar object, 'little ball of fur." This nodal linkage continues to some indicated end point, where the list terminates.  

Wednesday, 27 January 2016

I Still Don't Know How to Computer.

It's week three, and does anyone else feel like they're drowning in school work already? Back to the sleep deprived, and coffee-fueled existence I have come to dread.

Anyway, introduction! This is my first Blog. I am only doing this to receive my (hopefully easy) 6% for this course. (To be honest, I'm already wishing this year was over).


The thing I find with computer science is that if you get distracted for even a second, you go from knowing  and understanding concepts A and B, to being asked to explain some concept Q, but you don't know Q because you have the attention span of a goldfish. So you instead sit in class with a poker face, nodding in agreement to the professor, but internally you're screaming that you don't know what's going on because you missed concepts C to Q. You realize you've made all the bad life decisions for wondering, "is there an English to Slang translator and where can I find it?" instead of paying attention in class. (Spoiler: there are a few). All I know is that there has been a huge shift, and not necessarily smooth shift from 108 and 148.


Cheers.


-Sid