Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

Comment Re:Ugh (Score 1) 278

This really should have been written something like:

#696969 #6A6A6A #6B6B6B #6C6C6C #6D6D6D
#6E6E6E #6F6F6F #707070 #717171 #727272
#737373 #747474 #757575 #767676 #777777
#787878 #797979 #7A7A7A #7B7B7B #7C7C7C
#7D7D7D #7E7E7E #7F7F7F #808080 #818181
#828282 #838383 #848484 #858585 #868686
#878787 #888888 #898989 #8A8A8A #8B8B8B
#8C8C8C #8D8D8D #8E8E8E #8F8F8F #909090
#919191 #929292 #939393 #949494 #959595
#969696 #979797 #989898 #999999 #9A9A9A

...or your preferred 50 shades.

Comment Re:My views (Score 1) 472

Take vector for example, the size() function returns, guess what, the size of the vector.

So I should resort to guesswork and not even read the code, let alone hope for comments?

What if it's not actually vector that I want to use, but something that appears to be very like it, so I assume you wrote it to behave the same way, but for very good reasons, you wrote some things differently.

Suppose I want to use noCommentsBecauseYouShouldJustKnowFromTheCodeVector and call its size() function?

Tried it, it said 16 every time no matter what was in the vector - how do I know whether it's meant to return the element count or the size of the "vector" pointer in bytes? (Or some other calculation with some magnitude, such as capacity or memory usage?)

Also, what happens if the vector is null/uninitialized? Is that the same as when it's empty? For whatever language I use?

How big can its value be? (When it's valid / ever)

Can it be negative?

Are all values unambiguous?

Is it thread-safe?

Is there something else I may have called which will already contain the size value, so I can re-use it to save calling size() now?

Why am I using this vector anyway? Isn't there something better? (And if not, why not? Because there could be a really good reason, which I might not guess.)

Comment Re:Is that a man or a woman? (Score 4, Funny) 559

The London 2012 Olympics has already definitvely tested all of the athletes, during the opening ceremony.

Near the end of Paul McCartney's performance of Let It Be, in the singalong "Na-na-na-nah" part, he made some subliminal audience participation requests:

"Just the men", followed by "Now just the women" - and a host of cameras trained on the athletes recorded who sang along to which section.

Foolproof!

Slashdot Top Deals

The only possible interpretation of any research whatever in the `social sciences' is: some do, some don't. -- Ernest Rutherford

Working...