So, I took the second test in CS 373 on Friday. It wasn't too bad, however it was an odd mix of material. There were a handful of readings, a lot about SQL and UML, and yet there weren't any questions over them. Half of my crib sheet was about that stuff. I had every database term on there, diagrams of example UMLs, etc, but none of it was necessary. Actually, of all the reading, there was only one related question, which asked what language Twitter converted to from Ruby on Rails. Luckily I remembered that, but I'm sure there were plenty of questions out there along those same lines that I would've completely missed.
Unlike test 1.0, it was practically all writing code. I think I had a handle on most of it. One thing that caused me pause was writing a Python reduce function which behaves more like the actual reduce method, in that the seed is optional. At first I figured to just use 0 if there was no seed passed. But I quickly realized that 0 wouldn't work with multiplication, division, among others I'm sure, and then I realized I wasn't even thinking of that math right. 0-4-3 is different from 4-3 of course. But soon thereafter I had my DUH moment, and knew I needed to use the first element as the seed. So I created an auxiliary function and wrote some logic to setup the seed, then passed it to that aux function. The logic also setup a list without the first element to pass (when appropriate).
In other news, I spent a few hours yesterday trying to find the source of why my website (this website) was so slow. It occurred after upgrading to IPB 3.2 and my current build of ibEconomy. I figured something in the changes I made was putting a strain on the server. Perhaps a loop that was reading more files than it needed... Turns out, other admins using IPB 3.2 also complained of slow load times, and they were also on HostGator. So this morning I purchased a hosting package on Site5. Wish me luck in the transition!
(the reason this post wasn't viewable at first is because I needed to turn off the board during the conversion process)
Unlike test 1.0, it was practically all writing code. I think I had a handle on most of it. One thing that caused me pause was writing a Python reduce function which behaves more like the actual reduce method, in that the seed is optional. At first I figured to just use 0 if there was no seed passed. But I quickly realized that 0 wouldn't work with multiplication, division, among others I'm sure, and then I realized I wasn't even thinking of that math right. 0-4-3 is different from 4-3 of course. But soon thereafter I had my DUH moment, and knew I needed to use the first element as the seed. So I created an auxiliary function and wrote some logic to setup the seed, then passed it to that aux function. The logic also setup a list without the first element to pass (when appropriate).
In other news, I spent a few hours yesterday trying to find the source of why my website (this website) was so slow. It occurred after upgrading to IPB 3.2 and my current build of ibEconomy. I figured something in the changes I made was putting a strain on the server. Perhaps a loop that was reading more files than it needed... Turns out, other admins using IPB 3.2 also complained of slow load times, and they were also on HostGator. So this morning I purchased a hosting package on Site5. Wish me luck in the transition!
(the reason this post wasn't viewable at first is because I needed to turn off the board during the conversion process)








