Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror

Comment Parsing user agent strings = bad. (Score 4, Interesting) 252

I've been developing web applications full time since 1996 and I've never once had to resort to browser detection via user agent strings. It's just bad practice.

The fact that some people have been doing this has led to the very convoluted user agent strings we see today, rather than a simple description of the browser / rendering engine and version.

It's perfectly possible to write code that works cross-browser without having to detect browsers via user agent strings. The closest I've come to any sort of browser specific code is occasionally including IE specific CSS to work around IE bugs, but this included in an IE specific way and is ignored by other browsers.

A browser vendor should be able to put whatever they like in the user agent string, and if that breaks a web site or application, then so be it. It's the fault of the developer for making assumptions.

Submission + - Apple ban "Sweatshop themed" game from app store (pocketgamer.co.uk)

danhuby writes: Apple have removed sweatshop-themed game Sweatshop HD by UK developers LittleLoud from their app store citing clause 16.1 — "Apps that present excessively objectionable or crude content will be rejected.". According to the PocketGamer article, Littleloud's head of games, Simon Parkin, told Pocket Gamer that "Apple removed Sweatshop from the App Store last month stating that it was uncomfortable selling a game based around the theme of running a sweatshop."

Comment Re:A better question (Score 1) 320

Do you really need 3D support for 3D product visualisation? Object rotation videos (like QTVR's Object VRs) have been around for ages. I company I used to work for was creating these back in 1998. It's a series of photos of the actual product, so you can rotate and see the product from different angles. A non-plugin JS version would be trivial to build.

Comment Re:No plug-ins on mobile (Score 1) 320

Safari for iOS and Chrome for Android don't support browser plug-ins.

...which is a problem with the native code route. Java applets weren't a bad solution to this problem, but of some reason they fell out of favour. There were a lot of terrible applets, but there was nothing wrong with the technology in my view. 3D acceleration support via OpenGL / Direct3D is there.

Comment Why? (Score 1) 320

I don't see why we would need pages of information to incorporate 3D elements. The only two uses I can think of are games and gimmicky UI / animations. The former would be better served via native code with a browser plugin (e.g. Unity3D) or a virtual machine (e.g. Java applets). The latter - gimmicky animations - we could probably do without.

A better use of 3D might be to use XML/HTML/HTTP type technologies to model virtual worlds that can be linked together in the same way we link pages together with anchors. We already had this with VRML and it didn't take off. It might have been ahead of its time, as bandwidth was much lower back then and hardware 3D acceleration was less common. I'm not convinced, though.

Comment It'd make my life easier (Score 3, Informative) 244

As a web application developer, this would certainly make my life much easier. I'd estimate that implementing work-arounds for IE can add 30 to 50% on to the initial HTML/CSS build, and IE specific issues add a fair amount of to ongoing support costs. This is for versions = IE8, I'm not sure if IE9 / 10 are better.

Slashdot Top Deals

Vitamin C deficiency is apauling.

Working...