Friday, August 30, 2013

Old dog employing old tricks

I downloaded a code from this tutorial: http://maniacdev.com/2010/08/beginners-iphone-action-game-tutorial


But when compiling, this has an error:
// zero out memory. (do not overwrite isa & mPoolPredecessor, thus "+2" and "-8")
memset((id)object + 2, 0, malloc_size(object) - 8);


The error:
Arithmetic on pointer to interface 'id', which is not a constant size for this architecture and platform


Presumably, that works on older version of Xcode or Objective-C. This is how I was able to make it run:
// zero out memory. (do not overwrite isa & mPoolPredecessor, thus "+2" and "-8")
memset((id) (((int *)object) + 2), 0, malloc_size(object) - 8);



Happy Computing! ツ

Saturday, August 17, 2013

Agile vs Waterfall

Earliest known record of Agile Practice

Winston Churchill on agile: "It is a mistake to look too far ahead. Only one link of the chain of destiny can be handled at a time." -- CompSciFact



Contrast that with waterfall:

"It's called Waterfall project methodology because the products fall downward." - natashairizarry



The reply to waterfall is just as good:

@shanselman @natashairizarry "you end up going over the top and, after a long drop where everything breaks, no one wants to do it again" -- frequentlyrare

Sunday, August 4, 2013

Learning

"Learning Haskell even though you don't use it for work is just like running, cycling, and swimming even though you aren't a pro triathlete." -- https://twitter.com/raganwald/status/333945282226184192

Notable comment:

"@raganwald True for all new modalities. Learn orthogonal to what you know, increase the dimensionality of your mind!" -- https://twitter.com/drsteveplatt/status/335804367070445569


There's a chatter in office about the usefulness(or perceived non-usefulness) of Pluralsight account for all engineers. There are some engineers who thinks it's not useful for them, perhaps they are just learning what they already know. There are tons of courses on Pluralsight that can increase the dimensionality of your mind, don't get stuck with one form of knowledge.


Pluralsight is an apt name, it's where we can see many forms of knowledge.