Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×

Comment Re:PHP harder to test than C++ (Score 1) 752

> But how exactly do you go about doing unit tests of the front end of a web application?

Unit testing in PHP isn't different than in other languages. You split code into testable chunks and hammer them with PHPUnit.

> due to all the javascript stuff that lives on the browser these days.

How is that related to C++/PHP? And would you just run Facebook without unit tests? (good luck!)

Anyway, for JS there's Selenium and it can integrate with PHPUnit. UI testing is difficult, and browser-hosted tests are especially fragile and finicky, but that's not PHP's fault and C++ won't fix it.

Comment Re:Interpreted Languages... (Score 1) 752

> If there is so much PHP out there, why wouldn't/couldn't there be an efficient compiler

There is PHC and Roadsend.

However there are PHP-specific problems that make it harder than it should be.

PHP's "standard library" is heavily dependent on the interpreter, so you either lug it around and maintain its state, or rewrite 5000 methods.

And there's of course eval(), extract(), dynamic include/autoload and other magic that makes static analysis pretty hard or impossible.

Comment Re:PHP harder to test than C++ (Score 1) 752

This is not a problem in PHP.

If you have editor with auto-completion, misspellings are uncommon. Other kinds of errors are caught (and logged) as soon as faulty code is executed. With short edit-run cycle it's pretty quick.

It's not perfect, but OTOH C++ compiler won't tell you about all memory leaks, dangling pointers and buffer overflows at compile time.

C++ has runtime errors too, and you won't easily get logs with line numbers where your memory corruption happened.

Cellphones

Palm Pre Development In the Browser 53

introspekt.i writes "Palm is building upon the Mozilla Bespin project to deliver an IDE for the Palm Pre entirely in the web browser. Apps can be developed on the server and then downloaded and deployed locally. It is an interesting tool, especially given that WebOS is so web-centric. This tool comes as a supplement to the existing development tools for Eclipse and the command line released by Palm earlier this year. The project is open to anyone who registers as a Palm developer, which is free to do."
Cellphones

iPhone Has 46% of Japanese Smartphone Market 214

MBCook writes "Despite claims earlier in the year that the iPhone was hated by Japanese consumers (later disproved), the iPhone has been doing well in the land of the rising sun and the evidence is in. Apple has taken 46% of the Japanese smartphone market, cutting in half the once 27% market share of the previous lead, Advance Sharp W-Zero3 (Japanese site). The article includes a large chart of the market share of Japanese smartphones over the last 3 years."
The Courts

Judge Orders Permanent Injunction Against Psystar 242

AdmiralXyz writes "It appears to be the end of the road for infamous Mac clone-maker Psystar, as a federal judge has issued a permanent injunction against the company, banning it from selling its OS X-based hardware products, following November's ruling that Psystar was guilty of copyright infringement under the Digital Millennium Copyright Act. Specifically, Judge William Alsup's ruling prevents Psystar from 'copying, selling, offering to sell, distributing or creating derivative works of Mac OS X without authorization from Apple; circumventing any technological measure that effectively controls access Mac OS X; or doing anything to circumvent the rights held by Apple under the Copyright Act with respect to Mac OS X.' The ruling does not include Psystar's Rebel EFI software, which (in theory) allows users to boot OS X onto some Intel computers, but Alsup said that too would be unlikely to stand up in court if Apple decides to make a formal challenge."
Patents

Apple Counter-Sues Nokia Over Patents 137

adeelarshad82 writes "About two months ago Nokia sued Apple for infringing Nokia patents in its iPhone. The 10 patents in the lawsuit, filed in the US state of Delaware, relate to technologies fundamental for devices using GSM, UMTS and/or local area network (LAN) standards. The patents cover wireless data, speech coding, security and encryption and are infringed by all Apple iPhone models shipped since the iPhone was introduced in 2007. In the latest development to the case, Apple said Friday that it had filed its own suit against Nokia, countering Nokia's claims of patent infringement with its own."
Google

Google Upgrades Chrome To Beta For OS X, Linux 197

wkurzius writes with this nugget from Mac Rumors: "As anticipated, Google has finally released an official beta version of its Chrome browser for Mac. The initial beta version, termed Build 4.0.249.30, requires Mac OS X Leopard or Snow Leopard, and is only compatible with Intel-based Macs." And hierofalcon writes with word that Chrome has also been made available as an official Linux Beta.

Comment Re:HTTP authentication (Score 2, Interesting) 49

It has been discussed recently on HTML5 WG.

Browsers' UI for HTTP authentication so far is absolutely awful, and there's no standard mechanism for logging out.

Although HTTP Digest authentication does offer slighly better security than cookies, HTTP authentication is helpless against any MITM attacks.

There have been proposals to give HTML forms front-end for HTTP authentication, but they haven't gone anywhere, since there is little to gain (same UI as cookie-based auth, negligible security improvement) and backwards compatibility is poor.

Software

Submission + - Opera 9.5 Alpha Released (opera.com)

Khuffie writes: "Opera has finally released the long-awaited alpha of version 9.5, codenamed Kestrel. This release includes many new features, such as full history search (which searches the actual content of pages in your history), improved speed thanks to a brand new rendering engine, synchronized bookmarks and much more! You can download it for Windows, Mac and Linux."

Slashdot Top Deals

The key elements in human thinking are not numbers but labels of fuzzy sets. -- L. Zadeh

Working...