Aman King

Aman King's BlikiControl PanelChange LogBrowse PagesSearch?

Aman King's Bliki

Welcome to my bliki!

My name is Aman King. I'm a software developer working out of India. I used to work for a cool product engineering company in Delhi called GlobalLogic, and am now in Pune working for another awesome company called ThoughtWorks.

Here I'll post my ideas (and opinions on others' ideas) on topics such as Agile, Ruby, Java, coding, a lot of technical stuff, and some non-technical stuff too. Please take a look at the Keywords listed on the left.

If you like what you see, email me at amanking [at] yahoo [dot] com or simply leave a comment on the Talk page of a post. You can also check out my personal website.

Thanks for visiting! Come back often and don't forget to subscribe to my blog feed! Wink

Oh, and btw... the opinions expressed here are those of the author; they are not the opinions of past or present employers or clients. Razz


AmanKing

FileModified: 18 May 2009, 00:48Created: 18 May 2009, 00:48

Jirb Online on Google App Engine

FileModified: 17 May 2009, 09:14Created: 17 May 2009, 09:12

Some time back (around the 2nd week of May '09) I deployed my Jirb Online web application on Google App Engine for Java (GAE/J): http://jirbonline.appspot.com

It was not as straightforward as I'd hoped but was an interesting experience that gave me some insights into dealing with GAE/J and JRuby. This is how I went about it:

Created my GAE/J account

I registered for the GAE account and got an invite for trying out GAE/J. I registered using the mobile phone option: you get a code via sms that you need to complete the process. The Vodafone network in India failed to deliver Google's sms to me but IDEA worked. I got myself: http://jirbonline.appspot.com

... Read More (1001 words)

Individual practices in team setting

FileModified: 6 May 2009, 13:42Created: 6 May 2009, 13:42

There are certain programming practices that work when done at an individual level but need careful application (and probably ceremony) when working in a team.

For example, pulling out small domain classes for things like Money, Range, Link, etc is a good idea. I'm used to doing that in my day-to-day programming... problem is that my team mates have the same good habits. Smile So after a while, you may run into more than one class representing the same thing. If a concept is tied to your project's domain, it is very likely to have an impact on various features (user stories), and hence, different team members may end up having to implement that same concept. If folks do not realize that a class for the concept is already implemented, they may accidentally add more copies of the class. In my current project, we had Link, ServiceLink, and Url almost doing the same thing until we noticed the duplication and made all consumers use just Link.

... Read More (400 words)

Metaclass in Ruby

FileModified: 4 May 2009, 01:41Created: 1 May 2009, 09:57

After writing about the Singleton class in Ruby, it is time to write about the Metaclass.

Note that some people use "metaclass" to mean a normal singleton class (aka eigenclass) but that is incorrect. The Ruby metaclass is a special type of singleton class, one for a Ruby class object (hence the term "metaclass", I guess).

Recapping what we know about the singleton class, in the following example we can guess where the definition of the method find_by_name goes:

... Read More (686 words)

Jirb Online using DWR

FileModified: 18 May 2009, 00:52Created: 1 May 2009, 07:31

A long while back for a Geek Night at ThoughtWorks Pune, I had come up with a JRuby sample web application that simulated jirb.

jirb is the interactive JRuby console that allows playing around with JRuby code in a quick interpreted environment. Plus, since it's JRuby it allows you to interact with Java code too.

Over time I simplified the web application, removing the unnecessary use of an MVC framework (Struts2), going for direct integration of JavaScript and Java code via the DWR AJAX library. The Java objects in turn talk to the JRuby runtime to execute the Ruby scriptlets being sent from the browser.

... Read More (170 words)

Smut on Rails

FileModified: 1 May 2009, 03:00Created: 1 May 2009, 03:00

In the April 2009 edition of the Golden Gate Ruby Conference, Matt Aimonetti gave a talk on CouchDB. The summary provided at the website seems interesting and even useful. Apparently, to prevent any risk of his talk seeming dry, Matt contrasted using CouchDB to performing like a porn star (his slides can be found here).

... Read More (262 words)

Another Geek Night at ThoughtWorks Pune

FileModified: 3 Apr 2009, 10:58Created: 3 Apr 2009, 10:58

On Saturday, 4 April 2009, we are hosting another Geek Night at ThoughtWorks Pune office. We're hoping it'll be a fun event for all technology enthusiasts!

More details here: http://www.thoughtworker.com/events/pune-geeknight


Singleton class in Ruby

FileModified: 4 May 2009, 01:42Created: 11 Mar 2009, 09:14

The singleton class is an often discussed topic among Rubyists, especially new ones who are gradually learning about Ruby's metaprogramming features. There are a number of blog posts or articles already about this... I'll just add one more. Smile

This is my take on the Singleton class, presented in the way I typically explain it to new Ruby enthusiasts.

Firstly, I'll assume that you know that (almost) everything is an object in Ruby, and that includes classes.

... Read More (978 words)

Another Guest Lecture at MIT

FileModified: 11 Mar 2009, 02:53Created: 9 Mar 2009, 14:30

Given that the previous Guest Lecture at MIT that Sid and I had conducted went well with the students and teachers, ThoughtWorks Pune was invited to do another one at Maharashtra Institute of Technology (Pune) on 7 March 2009.

This time it was Dhaval Doshi (fellow-ThoughtWorker) and me as speakers.

Yet again, we did not prepare until the day before the talk. We asked for inputs from a few others in office, and got ideas like tackling Agile or Open Source Software. Although those topics have merit, we weren't sure if they'd click with students, and hence decided to stick with the teachers' preferred topic of OOP.

... Read More (735 words)

Mingle Sequence Diagram macro plugin

FileModified: 25 Feb 2009, 05:20Created: 25 Feb 2009, 05:20

In early February 2009, fellow-ThoughtWorker Sunit Parekh and I released Mingle Sequence Diagram macro plugin.

This Mingle macro plugin helps users draw and collaborate on sequence diagrams (using www.websequencediagrams.com) in their Mingle wiki pages. Any changes to the diagram will be tracked by the wiki history.

The project is open source and available at RubyForge. Any ideas, suggestions or feedback will be appreciated. Please do let us know if you use it on your Mingle projects.

... Read More (128 words)

More Recent Posts.

Last modified 04:30 Wed, 25 Feb 2009 by AmanKing. Accessed 5,016 times Children What Links Here share Share Except where expressly noted, this work is licensed under a Creative Commons License.