Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

Comment Re:PHP is fine (Score 1) 182

> Lisp is perfect for you.

We're not talking about other languages. We're talking about how fucked up PHP is.

> it's not like the interpreter is making arbitrary decisions

Counter-example:

http://3v4l.org/tRieg

if( true OR false ) echo "1st true\n"; // OK
if( false OR true ) echo "2nd true\n"; // OK
 
$bar = true;
$foo = false;
 
$wat = $bar OR $foo;
echo $wat ."\n"; // OK: 1
if( $wat ) echo "wat = T|F\n";
 
$wat = $foo OR $bar;
echo $wat ."\n"; // WAT? doesn't print?
if( false OR $bar ) echo "F | bar\n"; // OK
if( $foo OR $bar ) echo "foo | bar\n"; // OK
if( $wat ) echo "wat = F|T\n"; // WAT? doesn't print?
 
var_dump( false OR true ); // OK: bool(true)
$wat = false OR true;
var_dump( $wat ); // WAT? bool(false)

Is to too much for the fucking language to just work ?

Oh wait, I forgot this was a:

Phucked-Up:
Hopeless-beyond-repair
Piece-of-Shit

"programming" language. That explains it!

--
PHP: Designed by fucktards for fucktards.

Submission + - Twitch.tv Security Breach (twitch.tv)

FalleStar writes: Today, the world's largest video game livestreaming website, Twitch.tv, posted the following blog entry:

We are writing to let you know that there may have been unauthorized access to some Twitch user account information. For your protection, we have expired passwords and stream keys and have disconnected accounts from Twitter and YouTube. As a result, you will be prompted to create a new password the next time you attempt to log into your Twitch account. We also recommend that you change your password at any website where you use the same or a similar password. We will communicate directly with affected users with additional details.

The full details of the breach have yet to be released. Back in a 2013 blog post where Twitch reported that one of their CDNs had mistakenly exposed user account information, they mentioned that their user passwords are hashed, but gave no mention of whether or not they are salted. In addition to the blog post, Twitch users are being notified of the intrusion by email.

Comment Re:PHP is fine (Score 1) 182

> from some ideology that isn't based in rational discourse. /sarcasm Ah, so consistency is irrational now.

Only in a brain-dead language can you do stupid shit like this:

echo int ."\n"; // OK: int
 
echo (int) int ."\n"; // WAT? 0
var_dump( (int) int ); // WAT? int(0)
 
echo (foo) ."\n"; // OK: foo
echo (int) ."\n"; // WAT: Parse error
 
var_dump( foo ); // OK: string(3) "foo"
var_dump( int ); // WAT: Parse error

You PHP / Javascript apologists crack me up.

Comment Re:PHP is fine (Score 1, Informative) 182

Only a fanboy makes excuses for why they are too blind to see the many ways it is broken. PHP was designed and developed by a complete fucktard. Let's look at some code ...

php -a
echo true . "\n";
echo false . "\n"; // wat
echo TRUE . "\n";
echo FALSE . "\n"; // wat

Note: The online manual is completely useless:

* true http://php.net/manual-lookup.p...

* false http://php.net/manual-lookup.p...

* TRUE http://php.net/manual-lookup.p...

* FALSE http://php.net/manual-lookup.p...

More stupid shit PHP does ...

if( 1 == "1" ) echo "ok!\n";
if( 0 == "0" ) echo "ok!\n";
if( "0" ) echo "nope\n";
if( "00" ) echo "wat\n";
if( "-0" ) echo "wat\n";
if( "0.0" ) echo "wat\n";
if( 0 == "" ) echo "wat\n";
if( 0 == " " ) echo "wat\n";
if( 0 == " wat" ) echo "wat\n";
if( 0 == "\t" ) echo "wat\n";
if( 0 == "\r" ) echo "wat\n";
if( 0 == "\n" ) echo "wat\n";

In what bizarro universe would this stupid shit make _any_ sense??

PHP is just as bad as Javascript's == operator. If you are just going to force people to use === for type safety, then _maybe_ you just rethink what the equality operator is _supposed_ to do.

Submission + - Apple Makes Good on It's Promise to Double MacBook Pro Performance (computerworld.com) 2

Lucas123 writes: Benchmark tests performed on the 2015 MacBook Pro revealed it does have twice the read/write performance as the mid-2014 model. Tests performed with the Blackmagic benchmark tool revealed read/write speeds of more than 1,300MBps/1,400MBps, respectively. So what's changed? The new MacBook Pro does have a faster Intel dual-core i7 2.9GHz processor and 1866MHz LPDDR3) RAM, but the real performance gain is in the latest PCIe M.2 flash module. The 2014 model used a PCIe 2.0 x2 card and the 2015 model uses a PCIe 3.0 x4 (four I/O lanes) card. Twice the lanes, twice the speed. While Apple uses a proprietary flash card made by Samsung, Intel, Micron and SanDisk are all working on similar technology, so it's likely to soon wind up in high-end PCs.

Submission + - Boeing patents 'Star Wars'-style force fields (cnet.com)

schwit1 writes: Aircraft and military manufacturer Boeing has been granted a patent on a system that is designed to prevent explosion shockwaves from harming a target.

The system is not designed to prevent direct impact from shells or shrapnel; rather, it is designed to protect a target — such as a vehicle or building — from the damaging effects of shockwaves from a nearby explosion.

Comment Re:List culled from public sources, and here it is (Score 1) 336

/Oblg. Captain Obvious ...

Captain Caveman
Captain Crunch
Captain Falcon
Captain Jack Sparrow
Captain John Carter
Captain Obvious
Colonel Jack O'Neil
Colonel Sanders
Colonel Sandurz
Commander Riker
Commander Shepard
Corporal Punishment
General Confusion
General Hospital
General Protection Fault
General Recklessness
General Tso
Kernel Lingus
Kernel Panic
Major Dad
Major Damage
Major Malfunction
Major Woody
Private Affairs
Private Benjamin
Private Browsing
Private Parts
Sgt. Bilko
Sgt. Slaughter

Submission + - New Estimate: Billions of Milky Way Planets are in the Habitable Zone (sciencedaily.com)

Press2ToContinue writes: Astronomers have discovered thousands of exoplanets using the Kepler satellite. By analyzing these planetary systems, researchers have calculated the probability for the number of stars that might have planets in the habitable zone. The calculations show that billions of stars in the Milky Way will have one to three planets in the habitable zone, where there is the potential for liquid water and where life could exist.

Submission + - Brute Force Sony Online Entertainment Account Password Resets (sonyentertainmentnetwork.com)

Ebola-Masks writes: Since SOE will not honor my request to remove my email address (and associated continuous spam emails), the company continuously emails me password reset emails for my 'account'. I have asked thier customer support on three separate requests to remove my mistaken email address from their system. I have discovered that the password reset link that they won't stop sending me, is vulnerable to brute force attack due to the lack of failed attempt lockouts. Question, since SOE keeps directly sending me password reset email/links, is it legal for me to actually try to brute force the account reset?

Submission + - Finland's Education System Supersedes "Subjects" With "Topics" (independent.co.uk)

jones_supa writes: Finland is about to embark on one of the most radical education reform programmes ever undertaken by a nation state – scrapping traditional "teaching by subject" in favour of "teaching by topic". The motivation to do this is to prepare people better for working life. For instance, a teenager studying a vocational course might take "cafeteria services" lessons, which would include elements of maths, languages, writing skills and communication skills. More academic pupils would be taught cross-subject topics such as the European Union — which would merge elements of economics, history, languages and geography. There will also be a more collaborative teaching approach, with pupils working in smaller groups to solve problems while improving their communication skills.

Slashdot Top Deals

Long computations which yield zero are probably all for naught.

Working...