Post #99,529
4/30/03 6:32:04 PM
8/21/07 6:10:20 AM
|
You can't override a third of an eval string either.
"Packed like lemmings into shiny metal boxes. Contestants in a suicidal race." - Synchronicity II - The Police
|
Post #99,531
4/30/03 6:38:57 PM
4/30/03 6:44:40 PM
|
Sure you can!
From his OO model in the other post:
eval(substr(the_value, 1, (2 * len(the_value)) / 3) + "new code");
See? It's EASY!!!
Or, if you want to override the MIDDLE part:
eval(substr(the_value, 1, len(the_value)) / 3) + "new code" + substr(the_value, (2 * len(the_value)) / 3, len(the_value)));
How simple can it be??
*urrgghhle* *thump*
^___^___^___^____________________________________________...
(Dr. Jones, to the programmers' cubicles, stat...)
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
Edited by admin
April 30, 2003, 06:44:40 PM EDT
|
Post #99,551
4/30/03 8:29:17 PM
|
Offensive
This_prepending_of_"the_". I hate that. Is that supposed to be cool?
-drl
|
Post #99,553
4/30/03 8:35:40 PM
|
Not to me.
Talk to Bryce. [link|/forums/render/content/show?contentid=99516|It's his name].
And if you thought it was my naming convention, then I suggest that you stop your irritating insistence that I do things to be "cool". Your stereotyping is tiresome, unwarranted, and offensive. If not, then talk to Bryce. ;-)
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #99,554
4/30/03 8:38:24 PM
|
Re: Not to me.
It's a honest question! I remember being a cool programmer - not recently though. There are these idioms that keep coming up - needless "voluntary syntax". It's a way of talking in code, so it's bound to have a "cool" aspect, like all other forms of communication.
-drl
|
Post #99,555
4/30/03 8:40:58 PM
|
Again:
I don't do things like that to be cool.
I use naming conventions and idioms for maintainability, efficiency, readability, and any number of other -ys -- but not to be cool.
The only exception being unit testing data values. :-)
YMMV.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #99,577
5/1/03 1:27:49 AM
8/21/07 6:11:07 AM
|
Don't know about cool
but I've been known to name globals/singletons that way. theEventDispatcher, theThreadPool, theMousePointer etc...
It kind of makes the point that there's only one.
Its also a HyperCard convention for global functions. ie
get the date. put it into card field "Today" put the selection into the message box
Lovely language, that.
"Packed like lemmings into shiny metal boxes. Contestants in a suicidal race." - Synchronicity II - The Police
|
Post #99,711
5/1/03 5:32:22 PM
|
Logical reason for "the" prefix
It avoids clashing with reserved words. I have ran into column or table names that confuse SQL parsers due to commonly used names. By appending "the" to titles like "value", "description", "timestamp", etc., conflict is reduced and portability improved. I have ran into such overlaps more than once.
________________ oop.ismad.com
|
Post #100,381
5/5/03 4:01:58 PM
|
lack of response means you agree now?
________________ oop.ismad.com
|
Post #99,578
5/1/03 1:29:04 AM
8/21/07 6:11:09 AM
|
You're creeping me out MAN!
"Packed like lemmings into shiny metal boxes. Contestants in a suicidal race." - Synchronicity II - The Police
|
Post #99,620
5/1/03 10:30:46 AM
|
/me blows tea through my nose!
Stop that...goddammit!
;-)
jb4 "We continue to live in a world where all our know-how is locked into binary files in an unknown format. If our documents are our corporate memory, Microsoft still has us all condemned to Alzheimer's." Simon Phipps, SUN Microsystems
|
Post #99,710
5/1/03 5:27:57 PM
|
If you don't split things into "subtypes" you don't need to
________________ oop.ismad.com
|