juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2010-01-14 04:48 pm

toJSON on par with toString

I've been thinking lately... say, you are writing a pojo, and it is a good practice to have a good toString(), right? How about toJSON/fromJSON? seems like it would be a good idea to have it everywhere as well, what do you think?

[identity profile] ivan-gandhi.livejournal.com 2010-01-15 03:02 am (UTC)(link)
I know c# is a more advanced language than Java.

We have "extension methods" in python, in scala, in javascript...

[identity profile] xeno-by.livejournal.com 2010-01-15 11:26 am (UTC)(link)
Tho Java has one thingie I crave for when programming in C#. Static imports. They have much more limited area of use than extension methods, but in the cases of applicability they just rock.