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!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, 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.

more than 5 years ago

Submissions

Domstersch hasn't submitted any stories.

Journals

Domstersch has no journal entries.

Slashdot Login

Need an Account?

Forgot your password?

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>