sensualjava.blogspot.com
Red and Sensual Java: March 2010
http://sensualjava.blogspot.com/2010_03_01_archive.html
Wednesday, March 3, 2010. After delivering the keynote at JavaEdge2009. Asserted that Israel is ready. For the "polyglot" era. Ronen, Ophir and I decided to verify this assertion, so we are happy to announce the creation of " Sayeret Lambda. The Israeli " Lambda Lounge. The group contains researchers, consultants, students, and industry professionals, interested in Scala, Clojure, Erlang, Lisp, Prolog, Smalltalk, Ruby, Fan, Groovy and so on. Programming language geeks in Israel are welcome to join.
sensualjava.blogspot.com
Red and Sensual Java: Sayeret Lambda
http://sensualjava.blogspot.com/2010/03/sayeret-lambda.html
Wednesday, March 3, 2010. After delivering the keynote at JavaEdge2009. Asserted that Israel is ready. For the "polyglot" era. Ronen, Ophir and I decided to verify this assertion, so we are happy to announce the creation of " Sayeret Lambda. The Israeli " Lambda Lounge. The group contains researchers, consultants, students, and industry professionals, interested in Scala, Clojure, Erlang, Lisp, Prolog, Smalltalk, Ruby, Fan, Groovy and so on. Programming language geeks in Israel are welcome to join. I am ...
sensualjava.blogspot.com
Red and Sensual Java: Null-safe access to properties
http://sensualjava.blogspot.com/2007/11/null-safe-access-to-properties.html
Wednesday, November 7, 2007. Null-safe access to properties. First I am going to show a nice side-effect of using properties with google-collections. Like many others I am annoyed to write code of the style. Bar getBarOfThing(Thing thing) {. Bar bar = null;. Foo foo = thing.getFoo();. Bar = foo.getBar(). All the null checks make it unreadable. And heaven forbid I forget one null test. BOOM! Foo = new Function Thing,Foo () {. Public Foo apply(Thing from) {. Return from.getFoo();. Return from.getBar();.
lavnish.blogspot.com
Java , J2EE: April 2012
http://lavnish.blogspot.com/2012_04_01_archive.html
Java , J2EE. Corner of the web where i pen down my tech experience. Tuesday, April 24, 2012. What will Class.forName do while loading drivers. ClassforName() returns a type of java.lang.class. It is used to create an instance of a driver and register it with the DriverManager. When you have loaded a driver, it is available for making a connection with a DBMS. In a program named DynamicLoader have line like …. Class toRun = Class.forName(args[0]);. Java DynamicLoader Echo ONE TWO THREE. I wasn't perfectly...
lavnish.blogspot.com
Java , J2EE: February 2013
http://lavnish.blogspot.com/2013_02_01_archive.html
Java , J2EE. Corner of the web where i pen down my tech experience. Friday, February 1, 2013. At http:/ www.fh-wedel.de/ si/. The SOAPAction field of the HTTP-Header identifies the purpose of the SOAP-HTTP request. The value of this field is a URI without special requirements due to presence or format. A HTTP client which sends a SOAP request has to use this header field. SOAPAction: " http:/ www.aktien.de/. Https:/ forums.oracle.com/. Subscribe to: Posts (Atom). FEEDJIT Live Traffic Feed.
lavnish.blogspot.com
Java , J2EE: December 2012
http://lavnish.blogspot.com/2012_12_01_archive.html
Java , J2EE. Corner of the web where i pen down my tech experience. Sunday, December 23, 2012. Hadoop : Was the job really successful. An accurate determination of success is critical. The check for success primarily involves ensuring that the number of records output is roughly the same as the number of records input. Hadoop jobs are generally dealing with bulk real world data, which is never 100% clean, so a small error rate is generally acceptable. Reporter.incrCounter( "Input", "Exception", 1 );.
lavnish.blogspot.com
Java , J2EE: January 2013
http://lavnish.blogspot.com/2013_01_01_archive.html
Java , J2EE. Corner of the web where i pen down my tech experience. Saturday, January 26, 2013. Enums why cant we override equals. In the java.lang.Enum class. Equals method is like. Public final boolean equals(Object other) {. Return this= other;. Actually overriding it with something else d. Es not make sense hence its fin. As for Enums equals() and = are the same things. Is the same as "any", whereas "T" means "a specific type". So, compare these interfaces:. When to use which one. Boolean t = true;.
sensualjava.blogspot.com
Red and Sensual Java: How not to implement Comparable
http://sensualjava.blogspot.com/2008/12/how-not-to-implement-comparable.html
Thursday, December 11, 2008. How not to implement Comparable. I have already blogged about the danger of numeric overflows. I recently came across this example in Java course materials (! Public class Foo implements Comparable Foo {. Private int number;. Public int compareTo(Foo o) {. If (this = o) return 0;. Return number - o.number;. How do you think Integer.MAX VALUE compares to negative numbers? Public class Foo implements Comparable Foo {. Private long id;. Public int compareTo(Foo o) {. I wonder, i...