This is LnxPrgr3's Typepad Profile.
Join Typepad and start following LnxPrgr3's activity
Join Now!
Already a member? Sign In
Recent Activity
Keith h, You do know PHP has include, include_once, require, and require_once, and even use, right? Distros also like to ship PHP in pieces, so you wind up installing more than the core language to actually use it. If you build from source, you have to install all the dependencies for each of the included libraries, or it doesn't get built. I'd imagine "cheap, shared hosting" has already taken care of this, so maybe you've never had to install these packages yourself. Someone had to. I'll also freely admit to knowing almost nothing about Microsoft's compiler toolchain, yet I've managed to write C++ and C# on Windows without this being a problem. I've written plenty of Java, too, without having to care how the compiler gets invoked. This isn't the issue you think it is. If the chief complaint about non-PHP languages is "newbies have to learn too much to use them," let me suggest you have to learn a lot of things to use PHP well too. If you don't like thinking and learning, I suggest another career.
Toggle Commented Jul 1, 2012 on The PHP Singularity at Coding Horror
Adding a month to a UNIX timestamp, C vs. PHP: That's right: PHP managed to screw up a perfectly good C API. How do you screw up a trivial wrapper around a C function? Sure, I can make this code clearer by asking for an associative array, but that's not the default behavior. That still doesn't let me pass the array back into mktime, for two reasons: mktime expects each element it cares about as a separate argument, and mktime doesn't use compatible bases for the month or year. This type of nonsense is spread out all over the language. Yes, things have improved with PHP 5 over 4. At least objects are passed by 'sane reference' now (there's no other way to get a sane reference in PHP, so in 4 you were screwed unless PHP's odd take on references happened to work out for you). PHP's learned to fake it a little better, but it still does not behave like a reasonable language. Sure, you can get work done in PHP, but I'm all for coming up with something better and using it wherever it makes sense.
Toggle Commented Jun 29, 2012 on The PHP Singularity at Coding Horror
LnxPrgr3 is now following The Typepad Team
Jun 29, 2012