Rarva.Riendf
Wizard

Group: Members
Posts: 775
Joined: Jul 15, 2010
|
#106 id:60545 Posted Feb 4, 2012, 3:17 am
|
quix: you just lack of imagination and only use what your codebase support...awesone, as you say.
When I think about a functionality, I dont think:what tool do I have, but instead 'what is the goal', then if I can use the provided tool, cool, less code..otherwise, just code, no codebase limit you, sice you can modify whatever you want.
|
Last edited Feb 4, 2012, 3:19 am by Rarva.Riendf
|
|
quixadhal
Wizard


Group: Members
Posts: 1,854
Joined: Oct 17, 2007
|
#107 id:60546 Posted Feb 4, 2012, 6:12 am
|
DH, I think you're ignoring the context of this pointless argument. :)
The point isn't being made about whether or not a command list can be sorted, obviously it can be. The point was that if you're relying on the order of commands to make player abbreviations work properly, anything which would disturb that order would make it impossible to do so.
In my example, I gave a contrived (but valid) case where the "date" of the commands available varies. You could specify that any commands added by objects are always put at the beginning or the end of the list, in which case your abbreviations will either always hit them first, or never hit them at all. Is that desireable?
30 pages back, before this particular layer of pointless nitpicking began, someone was complaining about abbreviations and I was suggesting that it's both easier and makes more sense to simply have a default set of aliai for commonly used abbreviations, and otherwise only allow abbreviations if they are non-ambiguous. IE: "kill", "kiss", and "kick" would self-abbreviate to three characters, but an alias of 'k' => 'kill' would solve the problem in a clean and clear way, which the players themselves could alter if it didn't fit their play-style.
That was ignored, perhaps as making too much sense, and we wandered down the "You don't need useful-thing-X because obscure-method-Y does the same thing!"
True. Have fun with it. God help anyone who ever has to try to maintain your code.
|
......................... 
|
|
Cratylus
Wizard


Group: Members
Posts: 1,798
Joined: May 22, 2006
|
#108 id:60547 Posted Feb 4, 2012, 6:58 am
|
Discworld has a reasonable approach to this (as far as I understand it). Commands have filenames like ki_ll.c and kic_k.c (I made those up, just examples) and the parser knows which abbreviated command you want by virtue of it being standardized per the filename. I presume these can be superseded by aliases, making it 1) a handy standard, 2) modifiable by the player.
I don't think it matters very much that DW happens to be LP, I figure this sort of an approach would work wherever. I am glad we're finally off the Red Vs Blue thing, that was well past its freshness date.
But, guys...didn't you notice this thread already achieved its purpose of providing me a 100 get?
-Crat
http://lpmuds.net
|
......................... 
|
|
Rarva.Riendf
Wizard

Group: Members
Posts: 775
Joined: Jul 15, 2010
|
#109 id:60549 Posted Feb 4, 2012, 7:02 am
|
Quote:The point isn't being made about whether or not a command list can be sorted, obviously it can be. The point was that if you're relying on the order of commands to make player abbreviations work properly, anything which would disturb that order would make it impossible to do so.
There is nothing impossible at all, just a choice to make how to order the command that would disturb it.
Quote:E: "kill", "kiss", and "kick" would self-abbreviate to three characters, but an alias of 'k' => 'kill' would solve the problem in a clean and clear way, which the players themselves could alter if it didn't fit their play-style. '
Stuff that diku/merc/rom can do with a simple alias system so again, we are not discussing that.
You are proposing a default set of alias, I say it is uneeded to provide abreviation. I said you just have to make a choice.
Choice you are unable to think of in your way of thinking. You just dont want to make any BUT provide a default set of alias (so in the end you made some choice anyway).
|
Last edited Feb 4, 2012, 7:02 am by Rarva.Riendf
|
|
quixadhal
Wizard


Group: Members
Posts: 1,854
Joined: Oct 17, 2007
|
#110 id:60550 Posted Feb 4, 2012, 7:53 am
|
Rarva.Riendf said:
Stuff that diku/merc/rom can do with a simple alias system so again, we are not discussing that.
*We* aren't? I was, maybe you refuse to because it doesn't advance your agenda.
Quote:
You are proposing a default set of alias, I say it is uneeded to provide abreviation. I said you just have to make a choice.
Choice you are unable to think of in your way of thinking. You just dont want to make any BUT provide a default set of alias (so in the end you made some choice anyway).
You also seem to confuse "unable to think of" with "think you're wrong" and "think the way you are suggesting is unreliable and overly complicated" or perhaps "easy to implement and forget that you even did so, thus making it a royal pain for the next maintainer to adjust".
You've accused me of lacking imagination, yet you seem totally unable to even think of any other way to do things than the way you've chosen.. a way that fits nicely into the rigid hard-coded mechanics of your Dikurivative's command parser.
|
......................... 
|
|
Rarva.Riendf
Wizard

Group: Members
Posts: 775
Joined: Jul 15, 2010
|
#111 id:60552 Posted Feb 4, 2012, 12:20 pm
|
Ya know what, you are right, it is impossible to force a consistant order in a 'dynamic' environement...happy now ?...(jsut ignoring the fact that your player could order them themselves, not aliases, but just having a list of command they designed to be launched before any other when using abreviation...and I am the one lacking imagination...oh hell...I give up, hope all LPMud coder are not that closed minded...)
|
Last edited Feb 4, 2012, 12:30 pm by Rarva.Riendf
|
|