Why Should PHP ever be taught in school?
Original post provide by PHP Everywhere - By John LimHappy New Year Folks! Let’s keep on blogging.
This posting by Ka-Ping Yee on why PHP should never be taught is precisely why PHP should be taught. If something is popular but hard to understand then we need an education process. To just shake our heads and give up is simply immature (or trolling). Otherwise we might as well say that English (or any other spoken language for that matter) should not be taught, because spoken languages are illogical, imprecise and therefore … useless
Most programming languages have similar gotchas. Oracle’s PL/SQL has “” being equivalent to null. Javascript believes that 0 and “” are equivalent. C has non-zero being equivalent to boolean true. Lisp’s gotcha begins with ( and ends with ) — (just a joke). Java’s gotcha begins with J2EE and the obsolete baggage that comes with it.
PS: The confusion is because === is the real equality operator and should be used here. In PHP, == is equality after typecasting, where 0 == “0″ and “” == “0″ evaluating to true are accepted conventions. They are useful constructs in many situations in a similar vein to C’s convention of 0 being boolean true and non-zero being boolean false, which the critics cleverly ignore. See the PHP Manual on type comparisons
Previous Articles:Best Motherboards With Large RAM Capacity?
Can anyone relate their experiences with working with Vista or Linux machines running with large RAM (>8GB)? What is the best motherboard (Intel or AMD) and OS combination for workstation applications in terms of cost and reliability?"Read more of this story at Slashdot.
Gen Y Hits The Library The Most -- But Not For Books
The reason most cited for visiting their local public archive? Not books. Most were seeking gaming software programs, characters in the Second Life virtual world and online help with homework." Another way to think about the results: about 47 percent of Americans didn't visit a library even once last year.Read more of this story at Slashdot.
IPhone Wants To Hang On To The Old Year
pdclarry writes "Users of the iPhone have noticed that it is showing December 31, 2007, even where it is already the new year. There have been a number of reports confirming the problem: Bug in Clock, Problem with New Year: My Clock — shows wrong year, Worldclock went wrong for "tomorrow" items."Read more of this story at Slashdot.
The Rising Barcode Security Threat
You might scoff at this as a highly unlikely hacking platform but from the article, 'FX tested the access system of an automatically operated DVD hire shop near his home. This actually demanded a biometric check as well, but he simply refused it.
Reinhold Weber's Blog: From PHP To Ruby - 30 Similarities And Differences
If you know PHP, this should give you a good and quick insight in what Ruby is all about and how it compares to PHP. Some of the similarities include the dynamic typing, class scoping, heredoc abilities and current object references.
More Articles:
Computer Glitch Halts Seattle New Year's Fireworks
The source of the problem is reported to be a corrupted file that wasn't checked until the last minute. After two reboots, the fireworks had to be detonated manually. And yes ... one blog commenter, claiming to have worked on prior shows, said that the shows run on Windows."Read more of this story at Slashdot.
Apricot Team Selected For Fully Open Source 3D Game
crush writes "The Linux Game Tome notes that the final team to produce a fully Open Source 3D game using the CrystalSpace engine and Blender has been chosen. The project (known as Apricot) aims to produce a cross-platform, 3D game with completely Free (CCA) graphics, music and code.
27 Billion Gigabytes To Be Archived By 2010
The reason for the data avalanche? Archive data. In the private sector alone electronic archives will take up 27,000 petabytes (27 billion gigabytes) by 2010. E-mail growth accounts for much of that figure."Read more of this story at Slashdot.
Office 2003 Service Pack Disables Older File Formats
Naturally, they did this by default, and then documented a mind-bogglingly complex workaround (KB 938810) rather than providing a user interface for adjusting it, or even a set of awkward 'Do you really want to do this?' dialog boxes to click through.
Pop3-stream
Package: pop3-stream Summary: Stream wrapper to access POP3 messages like files Groups: Email, PHP 5, Stream wrappers Author: Rick Hodger Description: This class implements a POP3 stream handler that can be used to access messages in mailboxes using POP3 as if they were regular files.