|
Pete Kelley wrote: I felt awful for the marketing guy that had to tap dance around to try to save this humiliating, failing pitch Wow. It must have really been awful.
In my case if I saw a marketing guy drowning in gasoline, I'd hand him a lit match...
Software Zen: delete this;
|
|
|
|
|
Yes, but only in a situation like this:
1) I need to change something in a database, that is really complicated to do using only SQL instructions.
2) Using any of my programs, I create a new button. I never use the name proposed by Visual Studio, but in this case it does not matter
3) I create the code I need to modify the database (Read data, change it, write it back)
4) I run the program and go to the module that has my button.
4a) Of course, I press the button.
5) The job is carried on.
6) I stop the program.
7) I delete the button
That's it. The button's life is just the time it takes to change my database. (Or whatever stuff must be done)
|
|
|
|
|
Never in production code.
Many of my solutions include a "scratch" project which I use as a testbed for writing code like you mention.
The app never sees the light of day.
The code never gets pasted from that app to the real apps.
Real programmers use butterflies
|
|
|
|
|
Well, it VARIES. (Obligatory Answer).
Like many here, I use i,j,k, and occasionally other single letters for loops and counters. It's habitual enough that their purpose actually screams out "I am a counter".
But, in general, I do it in camelCase because it's eye-friendly to me and follow the following:
"If you don't have time to do it right the first time, how will you find the time to do it again?"
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
IBHosed - variable for checking connections
|
|
|
|
|
I tend to use descriptive names. I keep this code around for 10 years (yep, 10 years) and I've discovered I sometimes need to go back to it.
Now the oddest name I used was the loop control in a language that didn't have infinite loops. The loop was (old ALL CAPS language)
DO
....
UNTIL HELLFREEZESOVER
Unfortunately that program terminated in 2004 when the Red Sox won the World Series.
|
|
|
|
|
Code right or code not. There is no try.
|
|
|
|
|
From the original post...
Does anyone else do this?
Absolutely not. I learned a long time ago that a lot of POP code becomes production code. Like one of the other respondents posted...
Code right or code not. There is no try.
|
|
|
|
|
Err... I would never hire you if I was an interviewer.
I name everything properly, even in a throw away / practice program.
Habit is something that's hard to change.
Have a good habit.
|
|
|
|
|
I think you should always make the decision before you code: Is it one-way disposable code or is it production-level clean code. The latter can take up to twice as much time, so you should decide carefully. So when you decide to use throw-away code in production, you *have* to invest some more time to make it nice and neat. At least that's the way I do it.
|
|
|
|
|
|
I lived there[^] - or as I call it, my Eleven Year Sentence.
All those jokes - like what has 500 legs and 12 teeth? Two Hundred Fifty West Virginians - well, they're true. "Deliverance", light. Hunting, Guns, Canning - that's pretty much it.
And, from my own observations: If someone ever tells you to "stick something where the sun don't shine" - just ship it to WV.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
IMHO, a post like this has no place in the Lounge. It serves no constructive purpose at all.
|
|
|
|
|
Slacker007 wrote: It serves no constructive purpose at all SO ?For that matter, as an ironic note, you reply servers no constructive purpose, either.
Perhaps,
IF in your vast experiences, you can add your views of your time spent there?
ELSE, that old saying can well be said: "Physician, heal thyself!"
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Sometimes, I think you miss the Soapbox so much, that you poop on the floor here just to see who complains about the smell.
|
|
|
|
|
|
It's almost always me that complains. I am probably his only audience member.
|
|
|
|
|
I never say anything But Slacker I think you are correct.
To err is human to really elephant it up you need a computer
|
|
|
|
|
Or, perhaps to catch flies? Perhaps this will make you happy ? 💩 Now - settle down & relax!.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Slacker007 wrote: IMHO, a post like this has no place in the Lounge. It serves no constructive purpose at all.
And posts in the lounge usually are?
Well, I certainly found it interesting, and it certainly applies to people who work in this field as many of us can (and currently are) working remotely, so not really sure what you're upset about.
|
|
|
|
|
You from WV?
It doesn't say in the notes we have to be constructive. Where did you get the idiot idea that we need be? This the Lounge.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
W∴ Balboos, GHB wrote: West Virginia Never been there but I'll bet it is beautiful. If I hadn't of just bought a new home recently I might consider their offer.
|
|
|
|
|
Things could have changed since my escape, - but beautiful scenery? You might be driving on a road (no shoulders, by the way, but literally ditches and they can be big). Well, you see some trees, but if you stop moving and look through them you may see a strip-mine behind it.
As far as awesome forest beauty goes, upstate NY, or Vermont, or New Hampshire, or, well, a ton of places have similar but really beautiful landscape. Lot's of hils - bicycler's nightmare. I lived on a 30 degree grade (yes, 30 degrees).
Now state law says strip mine lands must be reclaimed when the mine is closed - so what they do is park a vehicle in this HUGE gouge in the earth and say they're still working it. Meanwhile, the underground mines have rules, too, about ceiling support to prevent subsidence (i.e., a sudden giant sinkhole). But only the miners are down there to know what's done and they know who signs their check.
State laws:
You have no mineral rights to your land - that means someone could be mining under you that bought those rights.
You can not sue for damage due to subsidence. Basically, tough sh*t.
That's because two things rule this state: coal mining and hunting. In the case of the latter, I lived right next to what (no longer is) forest land. The only squirrels I saw were in the form of strings of tails on car arials (they had those back then, in the 90's). Interfere with a hunter and you'll go to jail. Hunter trespasses on your land? Maybe a slap on the wrist. You county may also shut it's schools for dear hunting season.
All this, mind you, and I lived in a university town (WVU) with a grad school, med school, etc.). An early mentor, when I first moved there, was shot at for driving in the country side.
Low crime, too: a woman found dead in front of her trailer. Gunshot wound to the head. No guns nearby. Not ruled a homicide - hence, no crime. And you remember Zimmerman, in Florida, murdering that kid using the "stand your ground" laws? Well there was a garage mechanic in town (Morgantown) with three "notches on his gun". It goes on and on.
Something I figured out quite some time ago - places with cheap housing? Maybe it's because no one wants to live there !
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Wow that's outrageous
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
Read the other reply to your post so I suppose mileage will vary.
I drove through there with my wife on our honeymoon, and the part we went though was very beautiful indeed. But that was kind of the point with the trip.
Anyway, we were in the Smokey Mountains on the fourth of July, and I have to admit that we could check quite a few boxes on our prejudice list.
|
|
|
|