Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

We are sorry to see you leave - Beta is different and we value the time you took to try it out. Before you decide to go, please take a look at some value-adds for Beta and learn more about it. Thank you for reading Slashdot, and for making the site better!

Comments

top

Companies Waste $2.8 Billion Per Year Powering Unused PCs

Domstersch Re:Magic smoke (348 comments)

Hydro does this very easily. You put exactly enough water through the gates to match demand, and leave the rest to back up behind the dam for later use. Too much water? Just overflow a little, bypassing the generators.

more than 5 years ago
top

NZ File-Sharers, Remixers Guilty Upon Accusation

Domstersch Re:little australia (449 comments)

You do realise every single MP for National voted for the Copyright Reform Bill, right? You realise that they strongly support section 92A, right?

more than 5 years ago
top

PHP Gets Namespace Separators, With a Twist

Domstersch Re:what wrong with (523 comments)

Have you ever tried $X - > member (where $X is an instantiated class object?)

That's not whitespace around operators. That's replacing one operator with two (minus and greater than). Of course that'll make a difference, but my point was that whitespace around the operator currently doesn't and shouldn't in the future. Don't misconstrue it. To be clear, the reason meaningless whitespace around operators is is that both of the following work the same way:

$a->someMethod()->someOtherMethod();
$a->someMethod()
  ->someOtherMethod();

Now, though, you're proposing that namespaces shouldn't be allowed to have the same name as any variable, class or constant. Are you mad? You realise that name conflict resolution is what namespaces are for, right? Yet you want to make it the case that if I'm using a Date namespace, I can never have a variable or class called date/Date? That's crazy.

The "just make sure your names are memorable, distinctive, and you're good to go" rule is what PHP currently has, with class names for instance. And it's the problem that namespaces are designed to solve, not make worse.

about 6 years ago

Submissions

Domstersch hasn't submitted any stories.

Journals

Domstersch has no journal entries.

Slashdot Login

Need an Account?

Forgot your password?