|
You've got my interested now. So how do you use while(true) without coding garbage like break; (or return)?
"You get that on the big jobs."
|
|
|
|
|
No, no, don't misunderstand me. I use break;, continue;(above loop) or return;
It's the context that I disagree with (ie. if you can make it simple with just a boolean, why do you need a while(true)?).
Oxfords English < Official CCC Players Dictionary
Excuse me for my improper grammar and typos.
It's because English is my primary language, not my first language.
My first languages are C# and Java.
VB, ASP, JS, PHP and SQL are my second language.
Indonesian came as my third language.
My fourth language? I'm still creating it, I'll let you know when it's done!
|
|
|
|
|
I actually have a LOT of While 1=1 in MS SQL...
It's very cool, works great, and I just love to see the face of programmers when I show them with pride my nested while 1=1 loops in recursive stored procs...
|
|
|
|
|
I think we all know that writing software is a matter of black and white. There may be many different ways to successfully solve a given problem, but the different methods will produce concrete results - unless you are writing in Prolog, then you may not know the outcome. We also tend to find a method that ‘works for us’ and continue to use that same sequence of code to solve similar problems.
A programmer working with me many years ago either had a short attention span or leaned on his professors’ admonition that everything in the world is gray… He would never reuse a snippet that worked and because we were asked to comment our code (this was back in cryptic Assembler/Fortran land) he would liberally sprinkle ‘THIS MIGHT WORK’ anywhere there was questionable logic.
Lesson: Don’t hire Philosophy Majors for Dev projects!
Gray beard, but no holey tee-shirts, 50+ yrs writing software.
|
|
|
|
|
Frank Towle wrote: Lesson: Don’t hire Philosophy Majors for Dev projects!
FTFY
|
|
|
|
|
@Bert, that's not P.C. you know
|
|
|
|
|
|
Actually, Edsger Dykstra pointed out in the early '90s that computer science programs were producing inferior programmers compared to other programs, most notabley physics, math, psychology...and philosophy.
What you have there is simply a compulsively honest nerd. Don't blame the higher education, I assure you this set of habits probably got ingrained somewhere in elementary school.
|
|
|
|
|
Obviously it's not, I got 1-voted for it. But it was 100% worth it.
|
|
|
|
|
You've reached this conclusion from a sample size of one?? The first expert system (XCON) was conceived and written by a philosophy major.
|
|
|
|
|
@Alan, this is fun. I actually co-designed and implemented an Expert/AI system for telecom troubleshooting in the late 1980's (NOT with my philosophy friend) using Prolog, C, Peer-to-Peer networking, fault-tolerance, USGS Mapping, Touch screen, voice response and anything else we could get our hands on. Our hand picked development team was a real cross section of life and skill set including our Prolog instructor. We even attended the 'Third Annual Artificial Intelligence and Advanced Computer Technology Conference', Long Beach, CA, April 1987.
We presented our working prototype to the Senior Engineers of a major telecom company who doubted this could be done - they brought in AI PROFESSORS from the same university XCON/OPS5 came out of... The professors said Artificial Intelligence was still in the investigation stage and wasn't ready for prime time.
Final result: The 'major' telecom company used OUR system in their fancy demo facility to show prospects the future of telecom systems management.
|
|
|
|
|
Wow, I had not seen OPS5 in print anywhere in a long time.... Used to do that on a DEC MicroVAX II.
I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …
|
|
|
|
|
So, let me get this straight- you hire one kid with a philosophy degree that sucks and that implies all programmers with philosophy degrees suck? Now, that's questionable logic! Or are you suggesting that an employer just shouldn't hire some one to do a job that he hasn't been formally trained to do? If that's the case, then why single out people with philosophy backgrounds? I have a BA in philosophy and an MS in computer science. Prima facie, my philosophy training may seem irrelevant to software dev, but in fact it enhances my dynamic skills. I'm willing to bet that you imagine the philosopher to be some idealistic nitwit who sits in dingy coffee shacks and smokes hand-rolled tobacco while pondering the meaning of life. But in fact, philosophy, especially contemporary analytical philosophy, is a stringent discipline exalting logic and reasoning above all things. If this kid knowingly compromised the rules of logic, then he does not have a philosophical background at all. Any first year philosophy major learns that the foundation of meaning and understanding rest on the shoulders of unyielding logic. Another thing these 18 year-old children learn that you seemed to miss is that- there exist an X does not imply that for all X.
|
|
|
|
|
It's a generality, not true across the board.
Most programmers could play football (real football, not the gay soccer kind), but few should be on an NFL roster.
Now soccer, or even basketball, we could probably do. I bet most of us could flop pretty well, and we're almost all good at bitching about everyone else.
|
|
|
|
|
Bert Mitton wrote: real football, not the gay soccer kind
Funny thing that, it's in American handoval that people lie in piles grabbing each others crotches, while the real football as it's played in the rest of the world is supposed to be gay...
|
|
|
|
|
|
Compensated the downvote, that was funny too.
|
|
|
|
|
Gave it a 5, tho. Funny response.
|
|
|
|
|
Bert, I've held onto this story for 40 years - I think it's humorous. But... if the shoe fits...
|
|
|
|
|
The story IS humorous...it's your conclusion that sucked.
|
|
|
|
|
Some people are just sensitive.
Hell, I'm blonde, polish, and mennonite. If I took offense at every opportunity, I'd be mad at probably half the jokes ever written.
|
|
|
|
|
Hmm, American Football? I've long been bemused by the misnomer!
Why do you a call game in which players run around carrying, throwing, and catching a ball "football", though the ball is hardly ever touched by feet? It would be more accurate to call it "hand ball".
The real game of football is one of skill based on using the feet to control a ball. It is not a "game" of brute force - battery, barging and wrestling - nor of grown men rolling around on the ground cuddling each other in large groups
The made up word "soccer" does nothing to describe the game, but is slang derived from the word "association", as in Football Association, the body which drew up the rules of play in the 19th century.
|
|
|
|
|
That might not imply that all programmers with philosophy degrees suck, but I will imply it, using the following logic: philosophies, like religions, are methods of restricting the way one's brain works. Pretty much anyone studying enough philosophy will eventually come across one he'll glom onto because it appeals to whatever's lacking in his own personality: in the same way that psychology students study psychology to find out why they're f***ed, philosophy students study philosophy because they're trying to find a philosophy that suits them. So then, taking this, make them into programmers and see how far they get. It's almost guaranteed to be a disaster.
|
|
|
|
|
Dan, did you read your posting before you hit send? Your argument is simply an ad hominem followed by a supposedly conclusive statement. If this is an appropriate display of your logic, I'd hate to see what happens to one of your programs when it hits an 'if-else' statement. Let's begin.
'Philosophies are methods of restricting the way one's brain works.' Now, Dan when you make statements like this, it is good to include at least one line of justification. Nevertheless, there seems to be some ignorance on your part about what philosophy is. You seem to be suggesting that it is a belief or attitude like 'hey man, my philosophy is love everyone'. The word philosophy is greek for 'love of wisdom'. The subject matter is meta in nature. It is interpreting and understanding beliefs. Second, you should never make arguments by analogy since the analogy is never precise. You could have picked that up in a logic course in college. Finally everyone has a 'philosophy' (that's the naive sense in which you're using the word), Dan. But I fail to see this connection: studying a philosophy --> wanting a philosophy that suits (vague) one --> bad programmers. You wrote, Dan. I only distilled it. Guess that BA is good for something after all.
|
|
|
|
|
It's called "humour" -- apparently, this is different from "humor" in some subtle way. LOL
|
|
|
|
|