Wednesday, September 16, 2015

Shorthand Coding

Hi Fam,

So, I'm reviewing some code of one of my peers and I came across a pretty interesting shorthand notation which works and is great.

roomCode = new RoomCode(isThisRoomCodeAvailable() ? getRoomCode() : "");

Now, what I love about this is that it leverages a functional programming concept although within an OO programming framework. The methods are clear as well as the objects created. I hope to continue coding like this moving forward!

Night fam,
G2

No comments:

Post a Comment