Further readingCasting an object array to a string arrayat 2008-07-19 in Further reading by friebeWhile testing the new EASC server and client implementations we're currently working on, we asked ourselves how to cast an object array to, for example, a string array. The following is an array of objects consisting solely of strings: Object[] strings= new Object[] { "Hello", "World" };The first thing we tried was to cast it via (String[])strings. This is legal sourcecode but will raise a java.lang.ClassCastException in Java, and a System.InvalidCastException in C#, both at runtime. (more) Exceptions in Javaat 2008-06-25 in Further reading by friebeFound this nice article on exceptions in Java - from a historic overview of Oak, on checked and unchecked exceptions, and asynchronous exceptions it explains nicely (and with code examples) what the Java exception mechanism is about. What I like most are the best practices section, which applies not only to Java:
http://www.javaspecialists.eu/archive/Issue162.html Frank Kleine on Namespacesat 2007-11-11 in Further reading by friebeOn a short note: In Gathering practical experience with namespaces, Frank describes his first impressions of PHP 5.3 with namespaces:
Reminds me of the rule of thumb that one never has enough unittests PHP6 Namespaces patch backportedat 2007-07-21 in Further reading by friebeBeginning of this month, Dmitry Stogov from Zend published a patch implementing namespaces in PHP6. To be able to begin playing around with it without adding further points of possible failures for our XP unittests with new PHP6 (e.g., unicode-related breakage), I started and after a day's work succeeded in backporting the patch to current CVS HEAD, that is, PHP 5.2.4-dev. (more) Scalaat 2007-04-07 in Further reading by friebeFound this while surfing the web for Java 7 ideas:
http://www.scala-lang.org/ I can't believe it's not XML!at 2007-03-31 in Further reading by friebeReally enjoyed reading a weblog entry I found while surfing around for JSON-related stuff. There seem to be a lot of XML folks who can't understand JSON - yes, Dave, it's not even XML. I have a theory on why that is, but to explain it I need to go into a couple other things first. http://www.b-list.org/weblog/2006/12/21/i-cant-believe-its-not-xml Static initializersat 2007-03-29 in Further reading by friebeNice to see other folks are adapting the static initializer idea. Too bad the PHP folks won't. Example: <?php This was originally described in the XP Framework's RFC #0002 as early as November 2003 Five questions about language designat 2006-11-24 in Further reading by kieselThere's a nice write-up of Paul Graham with some of his thoughts about language design. Some of topics he talks about are: ... read more. C#'s "using" statementat 2006-10-22 in Further reading by friebeHaving blogged about Python's new with statement (see entry #117), I decided I'll also mention C#'s using() which is quite similar. From the C# Reference:
(more) "with" elsewhereat 2006-10-08 in Further reading by friebeYou might know the with statement from JavaScript or Pascal (where it saves a few keystrokes by "auto-importing" the object). Person.Name= 'Timm'; The XP framework also has with, not really as statement, but as a noop function: <?php You could basically omit with () and the brackets, they serve no purpose except making the above bit more readable (especially when you're using lots of assignments or method calls on an object). Now in Python, with serves a different purpose - in a quite flexible way: What's New in Python 2.5 - The 'with' statement. |
|