Here we are in the middle of summer and my student activity has almost come to a complete halt. The danger is that I become too complacent and won't be able to gear up for the September onslaught. So how to avoid this inevitability? Start studying now (or soonish). Since the main course I am taking in the fall is the one I backed off from the summer session I have a good place to start. I need to determine how far ahead of the course I want to be and if there is any benefit to that. Should it be a baseline skim through all of the material or start working through the problem sets in the hope I will be a few weeks ahead all the way through the course. Not sure if there is a right answer to that. I know I will be annoying the TAs by asking them questions about material that might be weeks in the future but at least I won't be behind.
Interesting trap I find myself in. Since this is my second degree I am regarded as a fourth year student when it comes to the University prioritizing course sign up. This would be great if the current round of courses I plan on taking weren't first year. So even though I was able to start adding courses in the earliest time slot I couldn't sign up for the first year courses I need since they are restricted to first year students only. Now I am waiting for the general window to open so I can get the courses I need. If all goes well this will be the last session that I will want restricted courses but it is a conundrum.
I have been doing a lot of research on the field(s) that I am ultimately interested in to determine what specialization makes the most sense. In my working life I have gravitated to the data and analytics realm. This has given me a huge amount of practical knowledge around how to construct and use data to determine the past present and future. I have been fortunate to have good staff that could translate my logical modelling into programs and routines. So the question I have been asking myself is do I need to know how to do the math and programming or do I just continue to hire smart people to do it for me? And if I am just going to hire smart people do I even need to be spending time on learning the constructs myself.
The answer to this is determined by where am I going and what am I trying to achieve. My initial thought was to become a math geek and spend my time doing theoretical problem solving and teaching. Now I have looked into it a bit more what I really want to do is an extension of the work I have been involved in over the last fifteen years. Data and analytics is the big umbrella I have worked under and my specific interest is how to glean useful non-intuitive information from large data sets. The biggest thing for me is in the field of pattern analysis.
Pattern analysis encompasses many areas with my main interest being how to look at a data landscape and find patterns that are repeated that can be applied to predict future occurrences. This can encompass straight forward behavioural analysis, determining an event occurring based on similar data patterns observed in the past. Or it can take the form of machine learning, observing patterns to create a model of the world that allows recognition of an object that is like a previous series of images but not an exact match. It is the latter of these two that I find the most intriguing.
This is where I come back to what is my specialization. Based on my research on people in like fields to this are either computer science or statistics geeks. I am leaning towards computer science since that is where the bulk of the machine learning work is happening. In the end I do believe it is a blend of the two. So this is a departure from the pure math world which is ok, math is never far away in any of these disciplines. Now all I have to do is finish the pre-requisite courses and get accepted to the computer science program. It is becoming an adventure!
Monday, 3 August 2015
Saturday, 13 June 2015
Studying to study
Buried in my swotting up on pre-calculus and have come to the conclusion that I have forgotten more than I remember. And that is by a long shot. I was probably a bit naive thinking that I could catch up on the fly during the course. I probably didn't properly assess the scale of what I have forgotten. I guess in general you only retain what is important for current problems and jettison anything that doesn't appear to have relevance. The instant recall isn't working that well so I find myself re-learning stuff that I used to know. Has been a tough slog so far.
I am hoping that this is the only course that will require this much pre-work. If not it will take forever to get though this degree. Since first year Calculus is the "elimination" course for a number of programs it makes sense that it is hard. Hard to believe I used to be good at this stuff. I can only hope I have the brain power to be good again.
Other than that the summer is going well. One adjustment I have made is cutting down on the extracurricular activities that I normally do. I find that even though things like athletics are not academically based they still require brain power. That has surprised me. I thought I could keep going along with my triathlon sports and just study in addition. Not so much. I have scaled back the number of times I am out training and seems to have helped the studying. Don't know if it is just a blip during this course prep or something that will be more permanent. We shall see.
Still on the bench a bit about staying in math or switching to computer science or statistics. From what I have identified so far the CS/Stats disciplines are the most desired in the data analytics field. Since that is where my interests lie that makes sense. I do believe the math route has its own different set of rewards. Need to give it a bit more thought. My current course tree would restrict my choices a bit. It would be a lot easier if I didn't work full time having to make course choices based on lecture times.
I am hoping that this is the only course that will require this much pre-work. If not it will take forever to get though this degree. Since first year Calculus is the "elimination" course for a number of programs it makes sense that it is hard. Hard to believe I used to be good at this stuff. I can only hope I have the brain power to be good again.
Other than that the summer is going well. One adjustment I have made is cutting down on the extracurricular activities that I normally do. I find that even though things like athletics are not academically based they still require brain power. That has surprised me. I thought I could keep going along with my triathlon sports and just study in addition. Not so much. I have scaled back the number of times I am out training and seems to have helped the studying. Don't know if it is just a blip during this course prep or something that will be more permanent. We shall see.
Still on the bench a bit about staying in math or switching to computer science or statistics. From what I have identified so far the CS/Stats disciplines are the most desired in the data analytics field. Since that is where my interests lie that makes sense. I do believe the math route has its own different set of rewards. Need to give it a bit more thought. My current course tree would restrict my choices a bit. It would be a lot easier if I didn't work full time having to make course choices based on lecture times.
Saturday, 23 May 2015
Finally, a setback
It had to come someday. Things were not going to be all sunshine and lollipops. I charted a straight line with the expectation that there would wobbles to the left or right periodically. Time to back off and do some re-planning. I am good at planning, it's what allowed me to be a very good project manager. So here I am with my project manager hat on.
I guess I should say what the actual setback has been. This summers course was calculus. I figured it was the hardest of the first year level courses so it would be best to do it in isolation without any other subjects clouding my mind. What I hadn't thought through was the implications of doing the course in half the time. The compression turned out to be a killer when you have a very busy full time job. I don't think I gave enough weight to how much brain time my day job occupies. I might have only been taking one course but I also spent eight hours a day with my brain engaged on problems and decisions. Only so much brain to go around.
So where do I go from here. Well the good news is that not all is lost. I have pulled out of my summer calculus foray early enough that no monetary or academic damage has been done. The one big thing I have taken away from this is that it is really important to understand pre-calculus so the logic jumps required in proofs are intuitive. How do I know which established rules apply in a certain situation.
I am not sure if the rest of my class were nodding their heads because they understood or because they thought they understood. I guess that will be determined by the pass rate in the class. All I can say is that at this point my knowledge from thirty years ago isn't recallable at the rate needed to do calculus in a compressed format. I felt like there was no time to absorb the information before the next problem hit.
My summer now becomes a do calculus before I do calculus exercise. I will be taking it again starting in the fall at a normal pace which gives me the opportunity to learn the material before I have to learn the material. It probably means I will end up doing double the work but over a much longer period of time so it will be manageable. That is my goal at least.
Of course this changes my plans for how I am tackling the rest of my courses since I am dealing with prerequisites for other courses. I also need to be aware of when courses are available in the evenings since I need to keep my day job. I feel some time with the course calendar will be useful to plot this out. I also will be cognizant of the brain capacity required. How does the saying go, "the best laid plans of mice and men ...". Need to do some realistic planning and avoid too much optimistic planning.
It is off to do calculus problems now to get ready for September. Oh, I might try to enjoy the summer a bit as well. It does look like it is going to be a sunny day.
I guess I should say what the actual setback has been. This summers course was calculus. I figured it was the hardest of the first year level courses so it would be best to do it in isolation without any other subjects clouding my mind. What I hadn't thought through was the implications of doing the course in half the time. The compression turned out to be a killer when you have a very busy full time job. I don't think I gave enough weight to how much brain time my day job occupies. I might have only been taking one course but I also spent eight hours a day with my brain engaged on problems and decisions. Only so much brain to go around.
So where do I go from here. Well the good news is that not all is lost. I have pulled out of my summer calculus foray early enough that no monetary or academic damage has been done. The one big thing I have taken away from this is that it is really important to understand pre-calculus so the logic jumps required in proofs are intuitive. How do I know which established rules apply in a certain situation.
I am not sure if the rest of my class were nodding their heads because they understood or because they thought they understood. I guess that will be determined by the pass rate in the class. All I can say is that at this point my knowledge from thirty years ago isn't recallable at the rate needed to do calculus in a compressed format. I felt like there was no time to absorb the information before the next problem hit.
My summer now becomes a do calculus before I do calculus exercise. I will be taking it again starting in the fall at a normal pace which gives me the opportunity to learn the material before I have to learn the material. It probably means I will end up doing double the work but over a much longer period of time so it will be manageable. That is my goal at least.
Of course this changes my plans for how I am tackling the rest of my courses since I am dealing with prerequisites for other courses. I also need to be aware of when courses are available in the evenings since I need to keep my day job. I feel some time with the course calendar will be useful to plot this out. I also will be cognizant of the brain capacity required. How does the saying go, "the best laid plans of mice and men ...". Need to do some realistic planning and avoid too much optimistic planning.
It is off to do calculus problems now to get ready for September. Oh, I might try to enjoy the summer a bit as well. It does look like it is going to be a sunny day.
Friday, 15 May 2015
Tougher than I thought
I am into week one of my summer calculus course and have discovered a major pitfall in returning to school after a long time away. The expectation that the students have just finished the pre-university level courses. In this case it is high school calculus which I completed the best part of thirty years ago. So even though I follow through on the logic of what is being taught I am scrambling to remember small things like how to treat a negative exponent or that you can't divide two sides of an equation by x if x is squared on one side. Pretty basic stuff that I am sure is stored somewhere in recesses of my brain.
I am going to have to tackle this problem quickly or I will get too far behind. Fortunately I have a long weekend this week which is going to involve a lot of remedial review of pre-knowledge. I am glad I have a very encouraging wife or this might not be going well. Not sure she understands why I decided to put myself through self imposed punishment. At some points I am not sure why I am doing it. As in all things I have to continue to focus on the goal and accept that there will be tough periods along the way.
I almost succumbed to the enormity of the task during my previous course. At some points I looked ahead at what was expected of me and wasn't sure how or if I could do it. Sure enough when I just walked through the material as it was presented everything was achievable and I ended up with a decent result (final exam mark isn't in yet but hopefully that is consistent with my other marks). So that is the approach I am going to take here. Don't look too far ahead in the text book and concentrate on the problems at hand.
One of the nice things about math/science type courses is they are based on problems. If I am not getting a concept I can just do more problems until it makes sense. I think this is why I always received higher marks in these types of courses than in word based courses. I can read material and understand it but I am not so good a regurgitating it. Problem solving is just applying a technique that I have drilled into my brain from doing lots of similar problems.
I have to say getting used to the rhythm of calculus lectures is taking some adjustment. It flows in a this makes sense, so than this makes sense, so then this makes sense format. I find myself stopping and thinking "why did that make sense" and then I am scrambling to catch up. I guess this is where doing lots of problems will help, I can to stop and figure out why that step was logical. The why is pretty important to me.
Off to do more problems and hoping not all of my knowledge of decades ago is lost forever!
I am going to have to tackle this problem quickly or I will get too far behind. Fortunately I have a long weekend this week which is going to involve a lot of remedial review of pre-knowledge. I am glad I have a very encouraging wife or this might not be going well. Not sure she understands why I decided to put myself through self imposed punishment. At some points I am not sure why I am doing it. As in all things I have to continue to focus on the goal and accept that there will be tough periods along the way.
I almost succumbed to the enormity of the task during my previous course. At some points I looked ahead at what was expected of me and wasn't sure how or if I could do it. Sure enough when I just walked through the material as it was presented everything was achievable and I ended up with a decent result (final exam mark isn't in yet but hopefully that is consistent with my other marks). So that is the approach I am going to take here. Don't look too far ahead in the text book and concentrate on the problems at hand.
One of the nice things about math/science type courses is they are based on problems. If I am not getting a concept I can just do more problems until it makes sense. I think this is why I always received higher marks in these types of courses than in word based courses. I can read material and understand it but I am not so good a regurgitating it. Problem solving is just applying a technique that I have drilled into my brain from doing lots of similar problems.
I have to say getting used to the rhythm of calculus lectures is taking some adjustment. It flows in a this makes sense, so than this makes sense, so then this makes sense format. I find myself stopping and thinking "why did that make sense" and then I am scrambling to catch up. I guess this is where doing lots of problems will help, I can to stop and figure out why that step was logical. The why is pretty important to me.
Off to do more problems and hoping not all of my knowledge of decades ago is lost forever!
Saturday, 2 May 2015
On to summer
Been silent for a while, decided to recoil a bit from studying and prep for exams. I do find writing an exam a curious thing. The goal is to show how much of the course material you have absorbed and can apply in a three hour window. Writing a computer science exam was even odder. Computer code is inherently a keyboard activity and I have the habit of writing from the inside out. This mirrors my thought process when trying to solve a problem but it doesn't work as well pen on paper. I will have to figure out how to do this better if I am going to keep on writing computer science exams.
So now it is on to summer school. Decided to tackle one of the tougher courses in a compact timeframe, not sure how this is going to go. Could be great since it is very focussed or it could be a disaster due to lack of time to contemplate the subject matter. I am pretty contemplative so I fear this will be an issue. The fact I learnt the pre-requisite content thirty years ago might be an issue as well. Will be interesting to see how it pans out.
I am starting to meander through the various specialties that are in my field of interest. I started out signing up for math which I thought contained the best focus and direction of where I want to go. Turns out that computer science or statistics covers the data world and math is more of the theoretical physics based path. I do like physics but my real passion is in data. This goes back to my am I having fun post which covers the need to take something that you love to get the best marks and subsequently the career that is right for you. I still have one more course to cover before I can apply for computer science so I am going to punt the decision until then.
I can see the logistics of scheduling courses around my job is going to become harder after next term. I am fortunate that I have a very flexible workplace that allows me some leeway in when I can take courses (extending a lunch period or leaving a bit early and make the time up later). At some point I think I will have to take a few twelve week leaves to get all of the courses in I require. Again, something I am able to do but it does come with a cost.
Many things to ponder but for now it is on to prepping for calculus.
So now it is on to summer school. Decided to tackle one of the tougher courses in a compact timeframe, not sure how this is going to go. Could be great since it is very focussed or it could be a disaster due to lack of time to contemplate the subject matter. I am pretty contemplative so I fear this will be an issue. The fact I learnt the pre-requisite content thirty years ago might be an issue as well. Will be interesting to see how it pans out.
I am starting to meander through the various specialties that are in my field of interest. I started out signing up for math which I thought contained the best focus and direction of where I want to go. Turns out that computer science or statistics covers the data world and math is more of the theoretical physics based path. I do like physics but my real passion is in data. This goes back to my am I having fun post which covers the need to take something that you love to get the best marks and subsequently the career that is right for you. I still have one more course to cover before I can apply for computer science so I am going to punt the decision until then.
I can see the logistics of scheduling courses around my job is going to become harder after next term. I am fortunate that I have a very flexible workplace that allows me some leeway in when I can take courses (extending a lunch period or leaving a bit early and make the time up later). At some point I think I will have to take a few twelve week leaves to get all of the courses in I require. Again, something I am able to do but it does come with a cost.
Many things to ponder but for now it is on to prepping for calculus.
Friday, 3 April 2015
Reflections on intro to comp science
The latest twelve week stint is up with the end of classes for intro to comp science. The one thing I notice after being in the work force for so long is that the semesters feel really short. Time flies by while you are having fun? Maybe. It is good to be able to focus on discrete problems over a short period of time. Out in the project/business world not much gets completed in twelve weeks. I think if I adopted that schedule my team would rebel!
The one thing I liked about intro to comp science was the need to think about a problem. I didn't always make it to the right answer and sometimes it was a struggle (hello assignment 2). Overall I think it has been a success if not perfect. Had some very frustrating hours where I knew the logic of a piece of code but couldn't get the syntax to cooperate. A couple of epiphany moments would have been useful earlier in the course which would have saved me some fruitless hours. I guess I should look at it as a process. Not every problem will be clearly defined in the real world so learning how to peel through the layers is crucial.
The big thing I got from assignment 3 was that I need to think from the inside out, not the outside in. To this point I have usually tackled problems by peeling the onion, remove each layer to see what is next. What I realize now is that starting at the centre of the onion and adding layers on is very efficient in the programming world. Definitely results in less lines of code. I think it will take a bit of time before I really have this baked in my brain.
The uncomfortable thing for me in this course was not always understanding what a question was asking. I usually think of myself as being pretty astute at understanding and following instructions. A couple of times when I got either a test or lab quiz back I looked at what the answer should be and realized I had somehow read the question wrong. Fortunately it didn't do too much damage to my overall mark but I do like to get things perfect when I actually understand the subject matter. Something to watch out for in the future.
Time to hunker down and get studying for the exam. It will be interesting to redo all of the labs and see if problems from the early weeks are easier now that I have finished the course. Wish me luck!
The one thing I liked about intro to comp science was the need to think about a problem. I didn't always make it to the right answer and sometimes it was a struggle (hello assignment 2). Overall I think it has been a success if not perfect. Had some very frustrating hours where I knew the logic of a piece of code but couldn't get the syntax to cooperate. A couple of epiphany moments would have been useful earlier in the course which would have saved me some fruitless hours. I guess I should look at it as a process. Not every problem will be clearly defined in the real world so learning how to peel through the layers is crucial.
The big thing I got from assignment 3 was that I need to think from the inside out, not the outside in. To this point I have usually tackled problems by peeling the onion, remove each layer to see what is next. What I realize now is that starting at the centre of the onion and adding layers on is very efficient in the programming world. Definitely results in less lines of code. I think it will take a bit of time before I really have this baked in my brain.
The uncomfortable thing for me in this course was not always understanding what a question was asking. I usually think of myself as being pretty astute at understanding and following instructions. A couple of times when I got either a test or lab quiz back I looked at what the answer should be and realized I had somehow read the question wrong. Fortunately it didn't do too much damage to my overall mark but I do like to get things perfect when I actually understand the subject matter. Something to watch out for in the future.
Time to hunker down and get studying for the exam. It will be interesting to redo all of the labs and see if problems from the early weeks are easier now that I have finished the course. Wish me luck!
Tuesday, 31 March 2015
Abstract data revisited
I don't think I gave this topic much consideration, a passing reference at best I think, the abstract data type. The foundation for my intro to comp science course, it is how the house is put together on top of an existing foundation.
Back at the beginning of the course I didn't really give much thought to why this concept was so important. I could see how it worked, making a new data type that is specific to a group of programs that is a modification of an existing set of functions. This seems to be most effective when dealing with an object that has a set of common internal values like a flight that has seats, passengers etc. Before I gave this much thought I had moved on to object orientated programming.
Through the course assignments where we got to play with games I started thinking about the data type more. Being able to pack a bunch of reusable code in an object with properties that can be referenced is very helpful. It took a while for me to get my head transitioned from creating functions to creating methods. I am sure my life in this course would have been easier if I had come to this epiphany earlier. Guess that is the learning process.
This became a particular problem in dealing with the recursion of objects. I was constantly trying to pull the properties out of an abstract data type and forcing changes to them while passing them through recursive method calls. This turned out to be a very bad idea! Glad I have turned the corner now and now I let my abstract data type do the work for me. I guess sometimes you have to touch the stove when it is hot to know that isn't a good idea. Onward I go, putting my best abstract data type muscles to work in finishing off the course!
Back at the beginning of the course I didn't really give much thought to why this concept was so important. I could see how it worked, making a new data type that is specific to a group of programs that is a modification of an existing set of functions. This seems to be most effective when dealing with an object that has a set of common internal values like a flight that has seats, passengers etc. Before I gave this much thought I had moved on to object orientated programming.
Through the course assignments where we got to play with games I started thinking about the data type more. Being able to pack a bunch of reusable code in an object with properties that can be referenced is very helpful. It took a while for me to get my head transitioned from creating functions to creating methods. I am sure my life in this course would have been easier if I had come to this epiphany earlier. Guess that is the learning process.
This became a particular problem in dealing with the recursion of objects. I was constantly trying to pull the properties out of an abstract data type and forcing changes to them while passing them through recursive method calls. This turned out to be a very bad idea! Glad I have turned the corner now and now I let my abstract data type do the work for me. I guess sometimes you have to touch the stove when it is hot to know that isn't a good idea. Onward I go, putting my best abstract data type muscles to work in finishing off the course!
Monday, 23 March 2015
Getting my rhythm back
Finally starting to recover from the obsessiveness that was assignment number two. Still have ideas of how I can improve the resulting code but it is time to move on. Every week we learn some info that gives new insight into previous assignments/tests/labs. I plan on reviewing the course problems from the beginning and see what I would have done differently if I had only known more stuff. Should be fun.
This week was a switch of gears. No more new code, time to look at how to construct test cases. The hardest part seems to be in the determination of what an effective test case looks like. I was used to boundaries and combinations. Now additions to use predictive results based the probability of a function/method being correct. The idea is to isolate the return value in enough cases to be confident that the result is not random. Never really thought of it this way, will take some time to bed it down.
Difficulty at this point in the course is keeping the school being out of the work place. Sometimes it all gets a bit muddled and will have to make sure that I can shut down school brain when work needs to get done. Not a big issue at this point but something to be conscious of. So off into the last few weeks of intro to computer science!
This week was a switch of gears. No more new code, time to look at how to construct test cases. The hardest part seems to be in the determination of what an effective test case looks like. I was used to boundaries and combinations. Now additions to use predictive results based the probability of a function/method being correct. The idea is to isolate the return value in enough cases to be confident that the result is not random. Never really thought of it this way, will take some time to bed it down.
Difficulty at this point in the course is keeping the school being out of the work place. Sometimes it all gets a bit muddled and will have to make sure that I can shut down school brain when work needs to get done. Not a big issue at this point but something to be conscious of. So off into the last few weeks of intro to computer science!
Monday, 9 March 2015
Tough week
Had my first difficult week of my return to school adventure. Got caught up in trying to solve a specific problem with an assignment and lost track of time. It is a bit disappointing since I had a working version of the assignment two days before it was due. Needless to say during the week the new material in lecture got me thinking about a better way of doing a major part of the assignment. Difficulty being I didn't have enough time to finish the new version and ran up against the deadline.
Lessons learned. The day an assignment is due is for perfecting only, no new designs allowed! Perfection is great but sometimes good will suffice. Given an infinite amount of time you can always improve something but an infinite amount of time is never available.
All that being said, I did finish the assignment post deadline to see if what I was trying was really better. Good news is that it worked much better than I thought it would and it was elegant as well. I like elegant. Not sure I get any bonus points for that.
This week is a reset. There is a test that I need to get my head into. I have to drop my obsessing over an assignment that is in the past and start looking forward again. So head first into binary trees and linked lists. I like the potential, especially of breaking a tree into a series of linked lists. It is the concept that got me into trouble on last weeks assignment.
Time to be a better more pragmatic student!
Lessons learned. The day an assignment is due is for perfecting only, no new designs allowed! Perfection is great but sometimes good will suffice. Given an infinite amount of time you can always improve something but an infinite amount of time is never available.
All that being said, I did finish the assignment post deadline to see if what I was trying was really better. Good news is that it worked much better than I thought it would and it was elegant as well. I like elegant. Not sure I get any bonus points for that.
This week is a reset. There is a test that I need to get my head into. I have to drop my obsessing over an assignment that is in the past and start looking forward again. So head first into binary trees and linked lists. I like the potential, especially of breaking a tree into a series of linked lists. It is the concept that got me into trouble on last weeks assignment.
Time to be a better more pragmatic student!
Saturday, 7 March 2015
Recursion, thoughts
If it is good to do it once, doing it again must be better right? Hence the efficacy of recursion. I always wondered how to travel down a path when you don't know where it stops. It reminds me of the excitement when I was a child in wondering into a forrest or a field with no idea where it was taking me but I knew would lead me to someplace interesting. I liken recursion to getting to that interesting place.
Of course there is an imminently practical need for recursion. I come across it a lot in my day job, the need to fit everything into a pre-defined box whether it makes sense or not. How do you draw the box if you don't now how big or what shape the box is? It is nice that in programming there is a way to resolve this problem.
The key element to make this work is defining the correct base case. In learning this construct I spent a lot of time hitting the escape button while my little program went into an infinite loop. Not unlike when I started using where clauses (I still mess these up more than I care to admit). I think the key is knowing when to use recursion and when too much of something isn't necessarily a good thing (see opening statement).
As in all things it is important to know when it applies. Dealing with aggregated data is always problematic. Recursion is a great solution in dealing with data that is in a ragged hierarchy where base data is at different depths (how many levels of summation are required). One approach is to convert all of the data to the same structure. Not ideal but it is the most common approach I see. I like that recursion can remove this very painful step.
The most difficult part at the outset was determine when recursion was the right solution. I have a tendency to try to apply a new concept to everything. It is my way of determine the boundaries of a particular approach. I wrote quite a few instances of recursive silliness in the process. I think I have the handle on it now but I know there will be many instances of wrongly applied recursion in my future. I like the idea of drawing a picture of what I need from a program before I start typing. This seems to mitigate choosing the wrong programming construct.
So my conclusion on recursion, it is a great solution to many problems but make sure you draw a picture first!
Of course there is an imminently practical need for recursion. I come across it a lot in my day job, the need to fit everything into a pre-defined box whether it makes sense or not. How do you draw the box if you don't now how big or what shape the box is? It is nice that in programming there is a way to resolve this problem.
The key element to make this work is defining the correct base case. In learning this construct I spent a lot of time hitting the escape button while my little program went into an infinite loop. Not unlike when I started using where clauses (I still mess these up more than I care to admit). I think the key is knowing when to use recursion and when too much of something isn't necessarily a good thing (see opening statement).
As in all things it is important to know when it applies. Dealing with aggregated data is always problematic. Recursion is a great solution in dealing with data that is in a ragged hierarchy where base data is at different depths (how many levels of summation are required). One approach is to convert all of the data to the same structure. Not ideal but it is the most common approach I see. I like that recursion can remove this very painful step.
The most difficult part at the outset was determine when recursion was the right solution. I have a tendency to try to apply a new concept to everything. It is my way of determine the boundaries of a particular approach. I wrote quite a few instances of recursive silliness in the process. I think I have the handle on it now but I know there will be many instances of wrongly applied recursion in my future. I like the idea of drawing a picture of what I need from a program before I start typing. This seems to mitigate choosing the wrong programming construct.
So my conclusion on recursion, it is a great solution to many problems but make sure you draw a picture first!
Monday, 16 February 2015
Object Oriented Programming, thoughts
This weeks opinion piece/assignment is about Object Oriented Programming concepts and what I think of them. As in all things there are the good, the bad and the ugly. I will start with the good. There seems to be a nice compact organization about the way like actions are grouped together. The class system, computer not social, is a logical grouping of similar activities (methods). I can see how over the long run especially with large complex programs that farming off repeatable activities into methods allows the underlying logic of those methods to be changed without effecting the downstream functions that are using them. As long as the functionality of a method doesn't change than improvements can be made without destroying the whole and with limited duplication of effort.
Now on to the bad. This is where we end up going down the rabbit hole. Not everything can fit in the nice construct of a class but there is the temptation to try anyway. This is akin to finding a nice colour of blue paint, you paint one room with it and you think it looks so awesome that you proceed to paint every room in the house the same colour. The paint is still a nice colour but now your house looks ridiculous. It is pretty simple logic to go from classes being good to having everything in classes as being better. That is one possible outcome, but not the only possible outcome!
And finally the ugly, unreadable code. I think this is where we take the bad to the extreme. Chopping things into smaller and smaller classes and sub-classes so it becomes difficult to know which class is doing what. At some point the programmers using your classes won't know where to look for things and end up writing functions that recreate what exists in multiple classes. I am sure nobody wants to end up there but I can definitely see it happening.
My overall impressions are very favourable and enthusiastic for OOP. I can see why the programming world has gone this direction since it makes such logical sense. As long as I stay aware of the possible pitfalls and not get carried away (like I did with recursion) then all will go well. I think the goal is consistency. Be organized at the start and only the good will happen, not the bad and the ugly.
Now on to the bad. This is where we end up going down the rabbit hole. Not everything can fit in the nice construct of a class but there is the temptation to try anyway. This is akin to finding a nice colour of blue paint, you paint one room with it and you think it looks so awesome that you proceed to paint every room in the house the same colour. The paint is still a nice colour but now your house looks ridiculous. It is pretty simple logic to go from classes being good to having everything in classes as being better. That is one possible outcome, but not the only possible outcome!
And finally the ugly, unreadable code. I think this is where we take the bad to the extreme. Chopping things into smaller and smaller classes and sub-classes so it becomes difficult to know which class is doing what. At some point the programmers using your classes won't know where to look for things and end up writing functions that recreate what exists in multiple classes. I am sure nobody wants to end up there but I can definitely see it happening.
My overall impressions are very favourable and enthusiastic for OOP. I can see why the programming world has gone this direction since it makes such logical sense. As long as I stay aware of the possible pitfalls and not get carried away (like I did with recursion) then all will go well. I think the goal is consistency. Be organized at the start and only the good will happen, not the bad and the ugly.
Sunday, 8 February 2015
But is it fun
Not sure if this student thing is supposed to be fun. When asked by colleagues of my impressions of doing school work again I tell them I am having fun. It is an interesting reaction that occurs. How can school work be fun? You have a strange definition of fun! Is there some sort of masochistic rule you apply to the phrase fun? I think they are all valid responses so I thought it my be 'fun' to delve into it a bit.
My first thought is that when school is a means to an end, like getting a great job, it takes on a 'must-do' factor that removes any concept of fun. Since that isn't why I have gone back to school this is removed as a constraint. But then I think why didn't I view school as fun the first time around. Is that a restriction that I placed on myself that has led to the career I have had and my subsequent need to do it all again.
The treadmill that is high school, bachelors degree, MBA is all about getting a better job. You look at the patterns of our parents and their peers and determine what you think defines success and try to emulate that path. If my universe was populated with health professionals would the defined path be medical school? I grew up in a neighbourhood full of accountants and middle managers so that was my barometer of what success looks like. The result was Commerce/Economics undergrad followed later by an MBA. Very useful in my current career I must say.
The question is did I have fun. I learned a lot of stuff that I found interesting, and a great deal I didn't. I am a curious sort so learning new things is always exciting. But once I have learned something do I really feel excited by applying the knowledge. I always tell my staff and colleagues that I am a fountain of useless trivia. Sometimes I think that is the bulk of what I achieved with my education. Setting the bar a bit low isn't it.
What is the difference this time? Why do I now believe that school is fun? I think a lot of it stems from mid-career, mid-life self assessment. At some point you start to understand what kind of work makes you happy. There are a lot of things that I am very good at but not as many that I am great at. That is the thing that I didn't understand when I was younger, just because you are good at something doesn't mean that should be the path you choose. What I have now determined is that I want to spend my time doing stuff I am great at and I think that is where the fun comes in.
Of course it is easier for me now that I am not scrambling to get a job so I can pay my student loans (I graduated the first time during a recession). The one thing that I have learned from my time in business is that if you are doing something you are great at then the money/career/accolades will follow. This doesn't always line up with the concept of getting a job. I am not sure you know what you are great at versus good at when you first go to school. You probably have a idea of your good attributes but that doesn't necessarily lend itself to discovering great. I think the problem is when you stop examining what you are good at and accept the career path as determined by your first job you might not achieve all that you can. Counting the years to retirement is not something I want to end up doing.
One thing I have observed about myself and others is that when you are working on something that involves your great then time disappears. I can go for hours working on something that involves my 'great' skills and not even stop for food. I can't say that about the bulk of the work I do for my job. And after all that I emerge thinking that was fun. When work involves something I want to do then it really stops being work, if you view work as a four letter word.
And this is where I get back to fun. If you are learning and doing things that you truly feel are fun then that is probably close to where your great lies. It also helps in the marks department. How many people have you come across taking a course that isn't in their aptitude but they need it for the career they want. Sometimes you have to look at why that course is required and if it isn't your aptitude then perhaps your career direction is mis-aligned.
I am having fun because I am taking courses that focus on my great. I also carry a lot of good things with me as well which can improve my ability to do and make money at great. Nothing I have done or learned previously has been wasted and will definitely come in handy in the future. But I do like having fun.
My first thought is that when school is a means to an end, like getting a great job, it takes on a 'must-do' factor that removes any concept of fun. Since that isn't why I have gone back to school this is removed as a constraint. But then I think why didn't I view school as fun the first time around. Is that a restriction that I placed on myself that has led to the career I have had and my subsequent need to do it all again.
The treadmill that is high school, bachelors degree, MBA is all about getting a better job. You look at the patterns of our parents and their peers and determine what you think defines success and try to emulate that path. If my universe was populated with health professionals would the defined path be medical school? I grew up in a neighbourhood full of accountants and middle managers so that was my barometer of what success looks like. The result was Commerce/Economics undergrad followed later by an MBA. Very useful in my current career I must say.
The question is did I have fun. I learned a lot of stuff that I found interesting, and a great deal I didn't. I am a curious sort so learning new things is always exciting. But once I have learned something do I really feel excited by applying the knowledge. I always tell my staff and colleagues that I am a fountain of useless trivia. Sometimes I think that is the bulk of what I achieved with my education. Setting the bar a bit low isn't it.
What is the difference this time? Why do I now believe that school is fun? I think a lot of it stems from mid-career, mid-life self assessment. At some point you start to understand what kind of work makes you happy. There are a lot of things that I am very good at but not as many that I am great at. That is the thing that I didn't understand when I was younger, just because you are good at something doesn't mean that should be the path you choose. What I have now determined is that I want to spend my time doing stuff I am great at and I think that is where the fun comes in.
Of course it is easier for me now that I am not scrambling to get a job so I can pay my student loans (I graduated the first time during a recession). The one thing that I have learned from my time in business is that if you are doing something you are great at then the money/career/accolades will follow. This doesn't always line up with the concept of getting a job. I am not sure you know what you are great at versus good at when you first go to school. You probably have a idea of your good attributes but that doesn't necessarily lend itself to discovering great. I think the problem is when you stop examining what you are good at and accept the career path as determined by your first job you might not achieve all that you can. Counting the years to retirement is not something I want to end up doing.
One thing I have observed about myself and others is that when you are working on something that involves your great then time disappears. I can go for hours working on something that involves my 'great' skills and not even stop for food. I can't say that about the bulk of the work I do for my job. And after all that I emerge thinking that was fun. When work involves something I want to do then it really stops being work, if you view work as a four letter word.
And this is where I get back to fun. If you are learning and doing things that you truly feel are fun then that is probably close to where your great lies. It also helps in the marks department. How many people have you come across taking a course that isn't in their aptitude but they need it for the career they want. Sometimes you have to look at why that course is required and if it isn't your aptitude then perhaps your career direction is mis-aligned.
I am having fun because I am taking courses that focus on my great. I also carry a lot of good things with me as well which can improve my ability to do and make money at great. Nothing I have done or learned previously has been wasted and will definitely come in handy in the future. But I do like having fun.
Monday, 2 February 2015
week four, intro to comp science
Into week four and starting to get the rhythm of the course. Busy week last week with the first assignment due along with the regular lecture/lab routine. Got to experience recursion and how to trace how the program runs through the loops. Didn't find it the most intuitive exercise. More an issue with how to represent the traces that were already identified than what the program was actually doing. Think I have it straight now, will find out on the mid-term this week.
It was good to get the assignment running early so I could spend a good amount of time tuning. Had written a nice little routine for the computer to choose moves in Subtract Square. Unfortunately couldn't use it in the assignment since it was too specific to the one game type. Hopefully I will get to pull it out again down the road. Overall pretty happy with the results from the assignment. It was good to force the use of subclasses to really get a good understanding of how they work.
Looking forward to the mid-term, will be a good indicator of how much I have absorbed so far.
It was good to get the assignment running early so I could spend a good amount of time tuning. Had written a nice little routine for the computer to choose moves in Subtract Square. Unfortunately couldn't use it in the assignment since it was too specific to the one game type. Hopefully I will get to pull it out again down the road. Overall pretty happy with the results from the assignment. It was good to force the use of subclasses to really get a good understanding of how they work.
Looking forward to the mid-term, will be a good indicator of how much I have absorbed so far.
Monday, 26 January 2015
Why geeks should know how to write
The topic of the week is "why geeks should know how to write". I am not sure if I can refer to myself as a geek or not so I will take the third party view. Based on my experience being able to write is the equivalent of being able to communicate in the modern business world. As much as we would like to think otherwise, writing presentations and emails is at the core of communication. People have a primary method that they take use to take in and understand information, either written, aural or visual. Any good communicator utilizes all three.
Geeks commonly rely on technical speak when conveying their ideas. This can work in geek to geek communication but invariably fails once non-geeks are involved. The best way to rectify this is to learn how to write clear, concise and focussed communications. Think of writing as a form of persuasion. For your brilliant idea to be picked up and propagated you need to build a compelling case. Just saying it is good is not enough. This is where the writing comes in. Being able to write equates to being able to communicate ideas to a broad audience.
Most of a geek's time is spent on projects. The number one cause for a projects going sour is communication. What can be inferred from this is that good communication will result in a successful project, or at least not a disastrous one. The programmers that are in constant demand are the ones that have worked on successful projects which means they can communicate and hence write. So if for no other reason geeks should know how to write so they can get fun and interesting work. It is a small thing but being able to communicate ideas to non-geeks is as important as writing brilliant code.
Geeks commonly rely on technical speak when conveying their ideas. This can work in geek to geek communication but invariably fails once non-geeks are involved. The best way to rectify this is to learn how to write clear, concise and focussed communications. Think of writing as a form of persuasion. For your brilliant idea to be picked up and propagated you need to build a compelling case. Just saying it is good is not enough. This is where the writing comes in. Being able to write equates to being able to communicate ideas to a broad audience.
Most of a geek's time is spent on projects. The number one cause for a projects going sour is communication. What can be inferred from this is that good communication will result in a successful project, or at least not a disastrous one. The programmers that are in constant demand are the ones that have worked on successful projects which means they can communicate and hence write. So if for no other reason geeks should know how to write so they can get fun and interesting work. It is a small thing but being able to communicate ideas to non-geeks is as important as writing brilliant code.
Thursday, 22 January 2015
Welcome to the greying student
Why the greying student? I guess it is a bit of a pun on what I think is going to happen to my hair as I go though being a student again. I should probably set some context for the purpose of this blog and why it might be interesting to return to periodically.
Starting a blog was a suggestion from my introduction to computer science professor. By suggestion I mean mandatory course requirement. So instead of looking at this as something that I have to do I will use it as a way to track my journey back to being a student again. I am interested in seeing how my opinions evolve throughout my current course and all those that follow. I am on course number two so still have lots of enthusiasm and positive feelings!
I already have a degree, a career and a pretty normal life. Why did I decide to become a student again? It definitely wasn't to get a job, I have one of those. I am actually exploring what the next career will be. And by next career I mean interesting work that doesn't need to be driven by getting to the next pay grade.
So off we dive into the life of a student that doesn't need to be here, just is really interested in learning new things.
Starting a blog was a suggestion from my introduction to computer science professor. By suggestion I mean mandatory course requirement. So instead of looking at this as something that I have to do I will use it as a way to track my journey back to being a student again. I am interested in seeing how my opinions evolve throughout my current course and all those that follow. I am on course number two so still have lots of enthusiasm and positive feelings!
I already have a degree, a career and a pretty normal life. Why did I decide to become a student again? It definitely wasn't to get a job, I have one of those. I am actually exploring what the next career will be. And by next career I mean interesting work that doesn't need to be driven by getting to the next pay grade.
So off we dive into the life of a student that doesn't need to be here, just is really interested in learning new things.
Subscribe to:
Posts (Atom)