Further readingGenerics in C#, Java, and C++at 2009-11-14 in Further reading, RFCs by friebeIn this interview from quite a while ago Bruce Eckel and Bill Venners talk with Anders Hejlsberg about generics implementations in C# and Java - the differences in their implementations, type erasure vs. runtime instantiation, reflection and how they compare to C++'s template mechanism. This has inspired us to come up with RFC #0193 - and moving our generics implementation closer to the one in the CLR. Type hinting discussion and contractsat 2009-07-12 in Further reading by friebeIn the recently ongoing type-hints discussion on the PHP internals mailinglist (see also the PHP Wiki), an interesting proposal was made. It suggests using functions to verify argument types instead of introducing a type checking mechanism which is not strict enough for some, not flexible enough for others and too magic for yet another group. <?phpSee also here, here and here. PHP-Arrays: Maps and listsat 2009-04-05 in Editorial, Further reading, RFCs by friebeIn the PHP world, arrays are maps are lists: <?php Now this is (almost) perfect as long as you stay inside the PHP world; the only thing you have to know is when to be able to use array functions operating on "associative arrays" (like asort) instead of "numeric arrays" (sort), which is usually achieved by a bit of discipline. This is where a slight problem even inside the PHP world (and that's why it's only almost perfect) starts showing: There is no easy way to keep the both apart. (more) Casting 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 |
|