Language Issues

Language Issues

Why I prefer Python to Java, in two code samples.

Assignment: Load a remote URL via https, verifying the site certificate against a local root CA certificate.

Java, Android SDK:

1// Load CAs from an InputStream
2// (could be from a resource or ByteArrayInputStream or ...)
3CertificateFactory cf = CertificateFactory.getInstance("X.509");
4// From https://www.washington.edu/itconnect/security/ca/load-der.crt
5InputStream caInput = new

Two very cool things.

First, read this essay about the disaster that is PHP. Every word is correct.

Then, view this photo set.

Dot Dot Dot

In a thoughtful post at the Big Nerd Ranch blog, Joe Conway talks about the relatively new dot notation in Objective-C for invoking messages on objects.

The executive summary is, he doesn’t like it.

He’s making two arguments against dot notation:

  1. While it is now legal Objective-C, it’s an uneasy fit to an enormous history