Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

Comment They "say"? (Score 2) 572

Female Passengers Say ...

As much as I love bashing the TSA, could we please get some statistics to back this up first, and then deal with it properly rather than just whining? I want to get the problem solved, but "I feel like some crime has been committed against me" is even weaker than the standard RIAA logic...

Comment Re:Well...does it matter? (Score 1) 356

I feel that the default desktop of a distro is the one that gets the lion's share of the TLC

From the distro, sure; but isn't most work on all desktops done by the upstreams? Enlightenment isn't officially supported by any distro AFAIK, and it runs wonderfully just having the official E team working on it and no interference :P

Comment Re:Tough platform (Score 1) 142

I still opine that the rapidly changing selection of APIs, libraries, ...

I've had the stand-alone flash player installed in my home directory for a while, moving with me across distros and hardware -- it was installed on 32-bit debian in 2006, and it's still working on my 64-bit ubuntu 11.10 install today.</anecdote>

Comment Re:boot time? (Score 1) 183

I have a hanns-g monitor with nothing smart about it at all, and it takes 10-15 seconds to go from power on to displaying something, and has 5-10 seconds of blankness when switching resolution (even "switching" from 1080p to 1080p). Much slower than even their slightly older models, and I have no idea why. I dread to think how painful it would be with an OS installed...

Comment Re:XBMC on a Raspberry Pi (Score 3, Interesting) 183

XBMC already runs nicely on the pi; the software-rendered GUI maxes out the CPU (I'm not sure if this is before or after the software renderer improvements they're working on), but hardware accelerated 1080p30 playback is fine - one of the XBMC developers was given access to an alpha board IIRC. Apparently the integration is one of the many things the Pi people have been asked not to talk about, so I presume things are brewing behind the scenes and they don't want to be assaulted with questions until it's 100% finished.

Comment Re:Its Late, I'm Dumb, or Both (Score 2) 377

As I understand it, the magnet is effectively the hash of the .torrent file; given the magnet, a client will connect to the distributed database of .torrent files and download it from there, and then carry on as if it had downloaded the .torrent over HTTP. Like a meta-bittorrent, using P2P to take the load away from TPB's centralised servers :-P

Comment Re:PHP and Python (Score 1) 519

"There's no function to modify one part of the URL" Because you're running a front loaded controller, duh. Check your Cake how-to don't blame PHP.

Third party frameworks are required for basic web functionality, in a language whose explicit primary market is web apps?

"string" + "string" is valid code No, it's $string.$string. What you wrote is Javascript. Again, don't blame PHP if you can't keep your syntax separate.

Wrong, "." is correct for string concatenation, "+" however is perfectly valid PHP syntax. PHP will accept the code, run it, and do something stupid with it. Using "." for concatenation is rare, but I can live with it, and I accept that it's my fault for getting them confused - however, "foo" + "bar" should in that case be a syntax error or a cast-to-int error, not a valid way to specify numeric zero.

In general, the PHP philosophy of "we know parse errors are annoying, so we'll silently make a guess at what you might mean, and then do something unrelated" is a really bad philosophy for a programming language to have.

As for your parse_str() rant, it works as advertised. I would recommend you RTFM.

I have RTFM, I know that it works as advertised. The way that it is advertised as working is retarded and inconsistent, even by PHP standards :-) "It's documented, so it's a feature" is a terrible excuse, but it's the excuse that seems to be used for pretty much the entire platform (see: some function names have underscores and others don't, see also func($haystack, $needle) vs func($needle, $haystack), see also how all across the documentation there are caveats, warnings, and gotchas that a developer needs to know, where in any good language the standard library just works no questions asked...).

The symlink() not working as advertised on windows is a Windows / Linux operating system compatibility issue that Microsoft won't fix. It has nothing to do with PHP.

If it doesn't work, why is the function there? In several other cases, platform-specific functions are left undefined on some platforms, so you can do "if(function exists) {use function} else {use backup}", which is fair enough. But now I have to do "if(function exists and platform isn't windows)" because it's defined but broken. If PHP was at least consistent in its brokenness, I could put up with it; but every part of it seems to be broken in a different way.

Your issues surrounding PDO and MySQL, Postgres, MsSQL etc.. exist with all Languages, even on Windows. So I don't see how this has anything to do with PHP, at all.

False, the issues I've mentioned in PDO aren't there in any of the Python or Java database abstraction layers I've used. Sure, the SQL syntax can be different depending on the back-end; but in PHP, the abstraction layer itself acts differently depending on the back end.

"lots of things break in weird ways under "safe" mode" Yeah, that safe mode, total crap. People should be told to not rely on it, it should totally be deprecated, there should be better more reliable ways to protect your database from SQL injection, and OH WAIT! There is, there are, there have been for a few years now... If you can't keep up, don't blame the language.

My own servers are relatively up to date, but when I'm writing code to be distributed, I need to keep dealing with PHP's inbred mutant history. Yeah, all languages improve and writing to a legacy spec is annoying, but I've never met a language whose legacy is as horrible and as alive as PHP's.

This also reminds me of the red vs blue quote; PHP proponents keep admitting that version $current-1 was completely stupid and broken, claiming that version $current is good. It isn't, it's still crap, it's just going to take you until version $current+1 to realise it. Again, yes, other languages improve -- but when I look back on old versions of C or Erlang I think "those are good, but the new features make life easier", I don't think "whoever designed this must've been dropped at birth, but I'm sure upgrading to the latest version will make everything perfect and they'll never make a mistake like that again".

Bonus problem! Keeping up to date is a pain in itself, when the PHP devs are happy to break compatability and only increment the minor version number.

You should consider Logo.

Funnily enough, Logo was my first programming language - while restrictive, I found it far more pleasant to work with than PHP; behaviour was consistent, predictable, and sensible. I didn't need to memorise the list of documented WTFs, I didn't need to deal with the interpreter crashing with no debug output, I didn't need to file bug reports when basic language features (not even API features, but the language itself) are broken...

Slashdot Top Deals

You must realize that the computer has it in for you. The irrefutable proof of this is that the computer always does what you tell it to do.

Working...