Recursion (just because)
The idea of recursion is to repeat a process multiple times to achieve a goal. The base of recursion is to ask if something happens and then if the result is not fulfilled, repeat the process on a modification of the original given material or a different set until a result is returned. This is wrapped up into a single function which you can call and then it calls itself until a final return statement is given.
For example, one could have a function that subtracts 1 from i and returns the string 'yes' if i - 1 <= 0 and if i != 0, return the function on i - 1.
I have run out of things to say on recursion.
Saturday, 28 February 2015
Wednesday, 11 February 2015
Week 6
Object orientated programming concepts.
This revolves around using and creating objects and methods to be used for what ever you needed them to do. The creation of classes and methods for those classes allows you to make specialized systems. Sub classes are even more specialized than the original class allowing you to inherit traits from the super class while also creating new code in the subclass that wont interfere with other sub classes which also inherit traits from the same super class.
I am really bad at this.
This revolves around using and creating objects and methods to be used for what ever you needed them to do. The creation of classes and methods for those classes allows you to make specialized systems. Sub classes are even more specialized than the original class allowing you to inherit traits from the super class while also creating new code in the subclass that wont interfere with other sub classes which also inherit traits from the same super class.
I am really bad at this.
Saturday, 7 February 2015
Week 5
Tracing recursion so far seems simple, implementing it slightly less so although that mainly applies to cases of multiple counts of recursion at the same time. The format is simple yet I keep forgetting what it is, even though it's been over two weeks. As of now, I have run out of thoughts to write down and record, how disappointing.
In an unrelated note, I think assignment 1 went well.
In an unrelated note, I think assignment 1 went well.
Subscribe to:
Posts (Atom)