Home » Author Archives: Prasanna Kumar

Author Archives: Prasanna Kumar

Structural (or) Type Safe Duck Typing in Scala

scala-logo

Structural typing as defined by Wikipedia “A structural type system (or property-based type system) is a major classof type system, in which type compatibility and equivalence are determined by the type’s structure, and not by other characteristics such as its name or place of declaration “ Strutural types in scala allows code modularity for some specific situations.For instance, if a ...

Read More »

Loan pattern in Java (a.k.a lender lendee pattern)

java-logo

This post is about implementing loan pattern in Java. Use Case Implement separation between the code that holds resource from that of accessing it such that the accessing code doesn’t need to manage the resources. The use case mentioned holds true when we write code to read/write to a file or querying SQL / NOSQL dbs. There are certainly API’s ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Advanced Java Guide
  • Java Design Patterns
  • JMeter Tutorial
  • Java 8 Features Tutorial
  • JUnit Tutorial
  • JSF Programming Cookbook
  • Java Concurrency Essentials