5
PHP5-CLI versus Python CLI
I just thought this was kind of interesting. Out of the box CLI comparison of PHP and Python type errors
Python
>>> test = 123
>>> test2 = "ewfwef"
>>> test / test2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for /: 'int' and 'str'
PHP
$test = 123;
$test2 = "werwe";
echo $test/$test2;
Warning: Division by zero in Command line code on line 1
It’s nice that python tells you what is really wrong here, you can’t divide an integer by a string! PHP on the other hand implies that $test2 is equivalent to 0.
It should be noted that python is doing a trace and PHP is not. Doing a trace on the error in PHP would give more information but since PHP is very weak with types, you would probably have to notice the error on your own.
28
OS Critique: Mac
We visited Best Buy last night to check out Macs and netbooks. MacBooks are sleek, though that can be taken multiple ways. For some it means smooth and pretty. For others it means slippery. As more and more people adopt Macs, it makes sense to take a look at the ups and downs of their OS and interface. A lot of people are enamored with the Cupertino Kid, though a friend of mine remarked that a computer whiz he knows has become “measurably dumber” since becoming a Mac user. Let’s take a look at what the virtues and vices of a Mac.
read more
26
I’m Here Because Someone Lacks Discretion
Well, Tom has suckered me into joining the blog. I tried blogging once, but it’s hard to keep the momentum going when you’re posting about offshoot/hybrid philosophy. Fortunately, this time it’s up to Tom to keep the momentum going. I’ll probably be posting about operating systems, Python, and because I first learned to program on a Commodore 64, I’ll probably be looking for old (really old) computers still active in the wild. For instance, I know of at least one water treatment plant that monitors arsenic levels with an Atari.
read more

