Showing posts with label kids. Show all posts
Showing posts with label kids. Show all posts

Monday, January 23, 2012

Android: Created By Bright Kids

Remember the rant about bright kids with no experience?

Well, turns out, experience is something you *do* get, but sometimes right after the world laughs in your face. And sometimes even that is not sufficient.

Consider, for example, the SensorManager. Consider how it is a concrete class, and there is no way for you to provide *your* mocks to develop an application, unless you add an extra abstraction layer. And how you have to come up with an abomination (see line 81) to fight it?

And how much simpler would it be if they just made SensorManager an interface and made getSystemService() return a concrete implementation?

But I have a hunch that we're stuck with it - it didn't change from Android 1.0 to 4.0.3.

Wonder how many jewels like this are there in Google's APIs.

PS: It is not a fault of OpenIntents' guys that they had to create this abomination, they did the only thing they could under the circumstances - kids at Google didn't leave us any other choice.

Saturday, November 8, 2008

Attitude

Attitude (Воспитание)

My kid decided to show me how grumpy he was by shifting his teenage weight while being perched upon the (pictured above) miserable product of Chinese design and manufacturing genius. With some obvious and some non-obvious consequences.

The obvious consequences were that the said product, predictably, cracked.

The non-obvious were that he was grounded until the product was fixed.

The latter took him getting some familiarity with woodworking tools, seven layers of paint, a few sanding runs, and lots of time.

I don't think he'll be showing attitude anytime soon.

PS: Click on the photo to see some nice design decisions.