|
Maybe Timothy Leary was right and he saw this stuff coming "Turn On, tune in, drop out", at least on the drop out part.
Along with Antimatter and Dark Matter they've discovered the existence of Doesn't Matter which appears to have no effect on the universe whatsoever!
|
|
|
|
|
A year after Mozilla revealed its strategy to "supercharge" browser games, the future of Web gaming advances to the next level with Epic's Unreal Engine 4 running in Firefox. "Living on a lighted stage approaches the unreal"
|
|
|
|
|
Really impressive!
Along with Antimatter and Dark Matter they've discovered the existence of Doesn't Matter which appears to have no effect on the universe whatsoever!
|
|
|
|
|
Yeah. I had some vague notion that these things were going on somewhere. But I stopped following it back in the VRML 1.0 days.
That was pretty damn impressive.
|
|
|
|
|
New research finds that software developers’ problem solving skills improve with their mood Sorry, I guess I should have warned you before dropping that wisdom on you
|
|
|
|
|
Or Better programmers are the happy programmers.
|
|
|
|
|
Seems self evident. But a study of 42 participants is some world class lazy research.
|
|
|
|
|
As the application source code and supporting tools contribute to both mood and problem solving ability, I'd say that might be a proximate cause to both?
|
|
|
|
|
..it was already widely known that happy people are more productive. One can Google the colors and music that'll "help".
And no, the way of measuring "happy" does not make it more scientific.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
One of the biggest changes is that “simple mode” is now the default for “git push,” which pushes only the current branch to the branch with the same name, and only when the current branch is set to integrate with that remote branch. The mode can be changed from traditional “matching” semantics using the configuration variable push.default. Now even more gitastic
|
|
|
|
|
RE:
Quote: kkthxbye
=shane=
Thanks you very much, shane!
Of all the news letters and e-mail subscriptions, the CP Daily News (Insider?) is the most valuable news to me (never deleted any one without read).
By the way, who is this shane guy?
Is it collective work?
|
|
|
|
|
Well, no one else is replying, so I guess I should.
Bob, Shane (sorry, shane), and I share a cubicle over here in the Code Project Daily News HQ (West Coast). Bob's the manager (so he gets a door) and occasionally provides blurbs, but most of the work is shane and I (but of course, I don't really exist[^]). We all just post using my login out of convenience (as we have one keyboard between us[^]).
TTFN - Kent
|
|
|
|
|
Don't tell me you've also got lasers on your fricking head!
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Don't ask me no questions, I tell you no lies
(I'm working on it)
TTFN - Kent
|
|
|
|
|
Apple's recent security bug was traced to a spurious goto. But that still doesn't resolve the debate over its use. Yarp
|
|
|
|
|
Fire starter >
|
|
|
|
|
only as dangerous as the developer who uses them.
|
|
|
|
|
Can somebody explain this topic?. I am a bit surprised that how it can be harmful.As its the same goto statement which we use in C language.
|
|
|
|
|
Member 10232872 wrote: Can somebody explain this topic? Yep, goto is in C ... and that code is actually using it. If you want an explanation, then there are numerous examples where goto "can" make your code go haywire ... IF you don't keep your wits about you and your code is rather complex.
IMO goto is OK for very simplistic stuff, like the sample in the article. But chances are that an inadvertent double copy-paste (like I'm sure happened in that bug) wouldn't cause a compiler error.
And that's the main reason goto is dangerous. It's much easier writing something in goto which makes no sense - while the compiler would still happily keep on compiling it. In more structured statements the chance is reduced (note not removed) that the compiler will fail to catch such inadvertent mistakes.
I think about the "avoidance of goto" as a form of safety measure I use against my own stupidity and/or tiredness.
For the article's sample I'd have gone for a single if with the options or'ed together, and the fail portion inside the if's then clause (IMO easier to comprehend and more succinct). It would probably compile to the same machine code anyway.
OR (can't say for sure since a lot of the code was removed for that article) I might even think about using something like a hash-set (seeing as all the checks are for equality), though only if the number of comparisons becomes huge. It would be easier to extend later if there's a new type of error code (even at runtime), and for large quantities of such comparisons it might even be more optimal - but most probably it would be overkill for this example.
|
|
|
|
|
The original paper (indeed the original "considered harmful" paper) is here: Goto Considered Harmful (Dijkstra)[^]
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Isn't this a rehash[^]?
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|
|
The error with the two gotos was vague. I would assume that if it compiles, the second goto never gets called. There has to be more to it than that and I hate articles that don't quite explain it.
|
|
|
|
|
Why wouldn't it get called*? The whole problem with that second goto is, literally, that nothing prevents it from being executed.
*: I find that terminology slightly misleading, by the way.
|
|
|
|
|
I'll admit I thought that there were {} around that.
|
|
|
|
|
Does this make it clearer?
if ((err = SSLFreeBuffer(&hashCtx)) != 0)
{
goto fail;
}
if ((err = ReadyHash(&SSLHashSHA1, &hashCtx)) != 0)
{
goto fail;
}
if ((err = SSLHashSHA1.update(&hashCtx, &clientRandom)) != 0)
{
goto fail;
}
if ((err = SSLHashSHA1.update(&hashCtx, &serverRandom)) != 0)
{
goto fail;
}
if ((err = SSLHashSHA1.update(&hashCtx, &signedParams)) != 0)
{
goto fail;
}
goto fail; if ((err = SSLHashSHA1.final(&hashCtx, &hashOut)) != 0)
{
goto fail;
}
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|