An interesting and amusing article for developers.

Discussion about non-SAP related issues: Inquiries, Personal & Commercial advertisements, etc. ( For registered users only)

Moderators: rtella, Snowy, thx4allthefish, The Prince Of Darkness

Post Reply
Dr Sidewalk
Posts: 3531
Joined: Mon Oct 21, 2002 11:06 am
Location: Everywhere...

An interesting and amusing article for developers.

Post by Dr Sidewalk » Wed Aug 19, 2009 1:50 am

"In the middle of difficulty lies opportunity" - Albert Einstein
"Money isn't everything in life, unless you don't have it"
"Fail to plan, plan to fail"
"Success is a journey, not a destination."

mike_ac
Posts: 4464
Joined: Wed Dec 22, 2004 10:14 am
Location: Deep Texas

Re: An interesting and amusing article for developers.

Post by mike_ac » Wed Aug 19, 2009 6:09 am

You know, to be honest, some of these examples aren't that big of a deal to me. There are so many, many examples of much worse, that a select * on a teeny table isn't so bad.

For example, here is one I have just seen here:

SORT i_konv BY knumv kschl.
i_konv1[] = i_konv[].
i_konv2[] = i_konv[].
DELETE i_konv1 WHERE NOT knumv IS initial.
DELETE i_konv2 WHERE knumv IS initial.
CLEAR: i_konv[].
APPEND LINES OF i_konv1 TO i_konv.
APPEND LINES OF i_konv2 TO i_konv.


i_konv1 and i_konv2 are never again mentioned, nor is the sort taken advantage of.

(added):

Or, who hasn't seen the classic

Select * into table i_xxxx WHERE ....
Select * from HUGE TABLE for all entries in i_xxxx ....

without checking to see if there are any entries in i_xxxx.
"If a cluttered desk is a sign of a cluttered mind, of what, then, is an empty desk?" –Albert Einstein, when confronted by a neat freak about the disarray in his work space

bgamble
Posts: 4174
Joined: Fri Jan 17, 2003 12:24 pm
Location: Prague CZ
Contact:

Re: An interesting and amusing article for developers.

Post by bgamble » Wed Aug 19, 2009 6:14 am

I could probably launch into some bs about how you should not post SAP stuff here but since posting in GD pretty much down to a trickle wtf

By the way Mike, are you about to start a project in San Diego?
In my opinion, Pepper Spray is underutilized as an effective tool for scope control

mike_ac
Posts: 4464
Joined: Wed Dec 22, 2004 10:14 am
Location: Deep Texas

Re: An interesting and amusing article for developers.

Post by mike_ac » Wed Aug 19, 2009 7:33 am

bgamble wrote:I could probably launch into some bs about how you should not post SAP stuff here but since posting in GD pretty much down to a trickle wtf
Yeah, this one is kinda grey. It doesn't really belong in one of the other forums, either. Being the GD, launching into a tirade would be quite appropriate, even if this was definitely the right forum!

It's nice to see SOMETHING in the forum. I don't mind laughing at bad coding! :lol:
bgamble wrote:By the way Mike, are you about to start a project in San Diego?
Not that I am aware of, why? Is there something I should know? :?
"If a cluttered desk is a sign of a cluttered mind, of what, then, is an empty desk?" –Albert Einstein, when confronted by a neat freak about the disarray in his work space

thx4allthefish
Posts: 5694
Joined: Sat Oct 26, 2002 6:18 pm
Location: barolo barrel

Re: An interesting and amusing article for developers.

Post by thx4allthefish » Wed Aug 19, 2009 7:38 am

mike_ac wrote:Not that I am aware of, why? Is there something I should know? :?
i know that this is exactly the wrong question.
curiousorange wrote: I give up. Humanity isn't worth saving. Why is there never a Vogon Constructor Fleet around when you really need one?

mike_ac
Posts: 4464
Joined: Wed Dec 22, 2004 10:14 am
Location: Deep Texas

Re: An interesting and amusing article for developers.

Post by mike_ac » Wed Aug 19, 2009 8:26 am

thx4allthefish wrote:
mike_ac wrote:Not that I am aware of, why? Is there something I should know? :?
i know that this is exactly the wrong question.
I don't mind being the set-up man for Bryson, if it will get this forum going again!
"If a cluttered desk is a sign of a cluttered mind, of what, then, is an empty desk?" –Albert Einstein, when confronted by a neat freak about the disarray in his work space

Dr Sidewalk
Posts: 3531
Joined: Mon Oct 21, 2002 11:06 am
Location: Everywhere...

Re: An interesting and amusing article for developers.

Post by Dr Sidewalk » Wed Aug 19, 2009 8:35 am

Actually, putting my hands up, I guess I could have posted this in the ABAP forum.

It's easy for me to own up to the mistake than let the debate go on. ;)

Dr Sidewalk
"In the middle of difficulty lies opportunity" - Albert Einstein
"Money isn't everything in life, unless you don't have it"
"Fail to plan, plan to fail"
"Success is a journey, not a destination."

Gladiator
Posts: 797
Joined: Wed Dec 18, 2002 5:55 am
Location: Hyderabad, India

Re: An interesting and amusing article for developers.

Post by Gladiator » Thu Aug 20, 2009 11:21 pm

mike_ac wrote:
thx4allthefish wrote:
mike_ac wrote:Not that I am aware of, why? Is there something I should know? :?
i know that this is exactly the wrong question.
I don't mind being the set-up man for Bryson, if it will get this forum going again!
We can bring back Arminius and Spartan would follow automatically. This GD would be alive again! :wink:
Gladiator.

VLozano
Posts: 5142
Joined: Mon Sep 13, 2004 8:17 am
Location: Idiocity
Contact:

Re: An interesting and amusing article for developers.

Post by VLozano » Wed Aug 26, 2009 9:46 am

Ok, let's talk about SAP in the GD to revive it. What will be the next step, allow guests to post questions in the ABAP forum again? Give points and t-shirts? And I don't think nothing wrong in those code samples, people. Except if I find them in my server, of course. Worse (ab)use of ABAP I saw here (in my work, not in SF... well, in both places, really).

Did you missed me? Yes? Nice, because I don't know when I will be able to become a regular again :(
Tuly Idiots
Because we know we are part of the problem

Post Reply