Profile cover photo
Profile photo
Parag Shah
Parag's interests
View all
Parag's posts

Post has attachment

Post has attachment
+Naresh Jain sir I would like your opinion on my answer on this test driven related question.

I think there is yet one more way to solve the issue which is to have a factory provider which returns an appropriate factory based on the environment, but I did not mention it because the levels of indirection were getting a bit too high...

Would like to know your thoughts !

Post has attachment

Post has attachment
A course on digital photography from Stanford

Just wanted to see what code looks like on Googe Plus

package util;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;

public class SqlUtil {
public static void printTableContents(String tableName, Connection conn) {
System.out.println("Printing contents of table '" + tableName + "'");
try {
String sql = "SELECT * FROM " + tableName + ";";
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery(sql);
while( {
StringBuffer buff = new StringBuffer();
ResultSetMetaData meta = rs.getMetaData();
int colCnt = meta.getColumnCount();
for(int i = 1; i <= colCnt; i++) {
buff.append(" ---- ");

} catch(SQLException sqle) {
System.out.println("Could not print table contents due to an Exception " + sqle);


Post has shared content
I really really love this company. Instead of building fancy stuff for the elite alone, they go out of their way, invest hundreds of millions of dollars to build really inexpensive stuff for people who simply find the same stuff otherwise completely unaffordable.

Tatas also make the worlds least expensive automobile - about $2500 - $3000 and its a pretty good one at that price They make potable water safe by providing high quality water filters for USD 20 And it is not just another altruistic business - it is the same corporate which also acquired Jaguar / Land Rover and Corus Steel. Basically a ethical corporation with a strong commercial basis and yet a very big heart.

One thought however - with Indian real estate being so expensive given its population density (I wouldn't be surprised if urban land is more expensive than in most NA and West European parts) - placing the house somewhere could still cost a packet.
Wait while more posts are being loaded