Lambdas vs Closures

28 May 2015 | | functional programming

Differences between Lambdas and Closures

A Lambda Expression is merely an anonymous function - a language construct. Giving a lambda a name makes it a named function.

Continue Reading →

Hibernate Custom UUID generator

03 Feb 2015 | | java, hibernate

Use a custom uuid generator in Hibernate.

Many web applications these days use UUIDs as primary keys in their database. While this approach has its pros and cons (see Primary Keys vs GUIDs), one of the principal advantages is that you can generate these ids outside of the database.

Continue Reading →

The Diary of an AAPtard

18 May 2014 | | rant, politics

Wednesday, 16th April 2014

Tomorrow’s voting day. Have my shiny new voters card. Now just have to vote, to make a difference. Haven’t figured out whom to vote for. Almost all parties are saying the same thing - “Vote for Change”. I’ll vote for change. I’m sick and tired of… of what really? Umm…corruption. Yeah, I’m sick of corruption. That’s what I am sick of. The corrupt traffic cop who fined me 500 bucks for drunk driving and didn’t pay it to the govt. The neighbourhood street cleaner who took extra money to clean up just because I dumped a load of broken glass on the street outside - what am I supposed to do? Wait for the BBMP truck and go to work a little late? Too bloody inconvenient.

Continue Reading →

1 2 3 4 5 6