After a “break” last week for the holidays, during which I tried not to forget too much, tried to learn something about Typescript and AngularJS, and watched some videos on Microsoft Virtual Academy, we were back to work today.
If Coding from Scratch (the “part 1” of the 12 week CoderCamps bootcamp) was mostly a refresher and felt like an easy stretch, this first day started off with a bang and some challenging homework. It’s not easy being online in a “mixed” online/in-person class. You have to be more vocal to get attention – and when your headset is not playing nicely with WebEx … well, that can be a problem!
For day two we dug back into Typescript and the wonders of objects, arrays of objects, arrays in general, and some overview of loops, strings and dates. The trickiest part for me was getting my head wrapped around the Array.reduce method which just didn’t seem to compute until I had that magic “A-HA!” moment where I realized that the first argument in the callback is whatever the current value (second argument) was the last time it passed through the array. So if the current value is a (numeric) property of an object, it is simply the value of that property that is held in the first argument, not the object. Ahhhhh – the relief when that all clicked into place. In my defense I was hampered by being a remote attendee and unable to see the whiteboard in the classroom while it was being explained with diagrams on said whiteboard (something that did get fixed).
Day three was spent back in my comfort zone of object oriented programming. With ECMAScript 2015 there is full support for items such as classes, interfaces, namespaces, and even modules. Our homework was to create a “vehicle customizer” using the concepts of classes and inheritance. This also required some DOM updates (good review of what I learned in the first three weeks) and writing out the customized vehicle(s) to an array. I didn’t quite have time to finish all the DOM updates, but if you use dev tools in your browser to look at the console, you should see the array of vehicles logged there.
Most of the fourth day was spent with Ajax. This topic was almost completely new for me, although we spent some time on JSON which, if you’ve been following my blog, you may remember I used a little in my final project for the “part one” of this bootcamp. I got quite excited to see JSON.stringify and JSON.parse again! Then we were off to more advanced topics such as httpRequestObjects which are used for making calls to Web APIs: think of when your weather app shows your local weather: chances are it’s making a call to a weather service API.
Very cool stuff.
The homework for this weekend is quite the challenge …..
Essentially we’re building a variation on PacMan, complete with brain-eating zombies threatening to destroy our heroine (I’m using MsPacGal, no less). Here she is:
With that, I’m off to watch the remainder of an AngularJS introductory video (ng-app, ng-MainCtrl, $scope, and ng-repeat, here I come!)