|
Excellent piece of out-of-context quoting. I stand by what I said, Dijkstra who argued that goto should be eliminated from high-level languages.
I also think he's right. I've seen goto abused plenty of times, without exception in situations where there are alternatives that would have been better employed.
The only possible exception is for machine-generated code, for example compiler generators sometimes use goto's to encode finite state machines. Even then it can be dubious.
In modern languages, goto can be even more harmful - for example jumping between scopes where construction/destruction should have been invoked for example. There are almost always better alternatives. Goto's always reduce readability of code, as they can obscure flow of control.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Rob Grainger wrote: Excellent piece of out-of-context quoting. Where? I didn't quote anyone, AFAIK.
Rob Grainger wrote: I stand by what I said Ditto, since I haven't heard any convincing arguments yet.
Rob Grainger wrote: I've seen goto abused plenty of times Does that make goto harmful? Come on, the "on error resume next" or empty catch-block is more dangerous, and more often abused.
Rob Grainger wrote: goto can be even more harmful - for example jumping between scopes where construction/destruction should have been invoked for example. ..gimme an example in code, and I'll prove that "IF" is just as harmful by duplicating the goto-effect.
Rob Grainger wrote: Goto's always reduce readability of code, as they can obscure flow of control. ALWAYS and CAN are contradicting each other there. Same thing can be done with other structures.
Rob Grainger wrote: There are almost always better alternatives. True, but that doesn't make goto harmful, does it?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
The World Wide Web is a smashing technological success. But the man who invented it wants it to break down more cultural barriers, thwart government snooping, and let the Web run applications not just house documents. So, what have you done for us lately?
|
|
|
|
|
In March 1989, British scientist Tim Berners-Lee published a paper proposing an "information management" system for his laboratory. His supervisor, Mike Sendall, scrawled some brief comments on the cover: "Vague, but exciting." What's this 'web' thing, is it worth looking into?
|
|
|
|
|
Valve has made Dota 2‘s Direct3D to OpenGL translation layer open source. This is the piece of code that allows Valve to take a standard DirectX Windows game that uses the Source engine (Dota 2, Team Fortress, Portal), and easily bring it over to Mac OS X or Linux/SteamOS. Insert DirectX tab into OpenGL slot
|
|
|
|
|
Have your kids racked in-game purchases without your permission? A new lawsuit against Google, which follows a successful one against Apple, aims to recover some of that money. "Teach your children well"
|
|
|
|
|
Alternatively, set up an account that can't be charged to and no more in-app purchases. It's not hard.
|
|
|
|
|
Apps, Tablet PC devices, etc. are not for five-year-olds. They should be playing with real kids on real playgrounds instead of being dumbed down and consumerized from the ground up. There's been an interesting, serious report on German TV a few months ago that outlined the reasons why it's not a good idea for children's mental development to let them interact with all these gadgets.
|
|
|
|
|
I regret that I have but one upvote for you.
TTFN - Kent
|
|
|
|
|
Exactly right, our youth seems to be pulling away from physical social interaction and that's a shame.
|
|
|
|
|
|
"Be smart and make all purchases require a password."
That's exactly the problem here, having purchased an app there's a half-hour window where any further purchases go through automatically. That's bad design on Google's part, hence they're being sued. All seems fair to me.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
My kid bought $20 on his Kindle, then went on to buy $100 more because he thought it was play money. That's when I enabled security and now require a password for in-app and any purchases.
|
|
|
|
|
Hm... Don't know about security features on "smart phones" as I do not use them. But I know that also many computer-literate people use ONE single account (which is then an administrative one!) on their computers for all members of their family, including their pre-school kids. With passwords stored on the computer for convenience, shopping is such easy, that 30 minutes window mentioned in the article is not required either...
|
|
|
|
|
We've just announced Google Docs and Sheets add-ons — new tools created by developers like you that give Google users even more features in their documents and spreadsheets. Joining the launch are more than 60 add-ons that partners have built using Apps Script. Now, we're opening up the platform in a developer-preview phase. If you have a cool idea for Docs and Sheets users, we'd love to publish your code in the add-on store and get it in front of millions of users. Relive those heady days of VBA programming
|
|
|
|
|
Demand for technical workers lures B.S. candidates in CompSci. Sharpen up your quicksort code, there's about to be a lot of requests for it
|
|
|
|
|
In another news, the number of CSci graduates who are able to solve the FizzBuzz problem dropped by 30%.
|
|
|
|
|
Codementor ought to do well then!
|
|
|
|
|
Redmond joins Facebook's Open Compute, intends to make servers more efficient.
Together, maybe they can bring servers into the 20th 21st century...
|
|
|
|
|
The code and software interfaces you see in movies and TV shows as just a prop are more complicated—and more fun to make—than they seem.
Looks like Hollywood is starting to care whether the dummy code they throw onscreen actually makes sense.
|
|
|
|
|
|
I don't appreciate the connotation, Richard.
The story you linked to was originally posted in The Lounge, which I apologized for then as I hadn't been aware of that. This is a separate and far more in-depth story I came across on SD Times that delves into a topic I think is pretty interesting and I haven't seen anyone else continuing to cover. Yes, I read and post stories from SD Times, as I do from many other publications I enjoy and find informative.
|
|
|
|
|
I think you're reading more into Richard's comment than he intended.
|
|
|
|
|
At Pete said, you're reading too much into it.
If you've spent any time in the Lounge, you'll realise that "Leslie Nielsen" is CodeProject for "this (or something very much like this) has been posted before". Not in an angry, "how dare you repost this" sort-of way, but more in a friendly, joking, "hey, why haven't you read and memorized all seventeen squillion posts on this site yet?" sort-of way.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
...It's possible I may have overreacted a bit.
I'll file away that Lounge lingo...and don't call me Shirley.
|
|
|
|