Saturday 23 November 2013

Properties and Reductions - Week 8

    This week we discussed the built in properties and map reduce. Properties allows us to change how variables are assigned, retrieved, and deleted from a class. Essentially it allows us to dummy-proof a class so that someone can't break it by only accepting certain inputs like with regex tree nodes. In class we haven't had to do something like this because we expect certain types of inputs, but outside in the real world we should account for things like this when working with other people.
    Map reduce just seems like a nice built in function to use for quick computing of lists. The lab brought us back to sorting efficiency's, showing how much a few lines of code can effect the number of operations in the long run. It also showed how with the number of elements in something being sorted, a type of sort may be better at the start but much worse at the end.