lostwebsite.net blog

Annex to the Lost Website

Archive for the ‘Programming’ Category

On String.intern()

leave a comment »

Where the author realizes the significance of the String.intern() method

I might have hinted about in in my previous post on the subject of strings in Java, yet I did not realize the significance of String.intern() method. The following code sample demonstrates the behavior of the String.intern() method, similar to what I demonstrated in the post.

See the rest at www.lostwebsite.net…

Written by fdgonthier

November 6, 2009 at 8:00 pm

Bits on info on Java strings

with one comment

Update: I don’t keep IRC logs and thus cited the wrong guy. Sorry Vince.

On this blog entry I will take on an assertion stated by systemfault. He declared on the #programmeur IRC channel on Freenode that:

<systemfault> String foo = new  String("lol"); est pareil que String foo = "lol";
<systemfault> Quand le compilo voit: String foo = "lol";  
              quand il compile, il va vraiment faire String foo = new String("lol");

Which in english means that:

String s = "hello";

is syntaxic sugar for:

String s = new String("hello");

See the rest at www.lostwebsite.net…

Written by fdgonthier

October 30, 2009 at 8:00 pm

Naivety with C++

leave a comment »

Warning, major n00bness ahead.

I’m not a big user of C++, but recently some work I have had to do with .NET has made me use C++/CLI, the .NET version of C++.

See the rest at www.lostwebsite.net…

Written by fdgonthier

October 27, 2009 at 8:00 pm

Posted in C++, Programming

Tagged with , , , ,

Follow

Get every new post delivered to your Inbox.