quote:
Originally posted by CookieRevised
instead of using a workaround and don't allow 3 character words to be scrambled, fix your scrambler routine instead
Who are you referring to, the person who added something (J-Thread) or me?
It wouldn't be a workaround, if I were to correct my scrambler - it wouldn't fulfull the purpose of it. If you program, you should know that keeping your code modular is important, for that reason I made the scrambler routines separate from the talker.
So what he did to correct my code is fine because, he didn't modify the scrambler.
If I modifed the scrambler, it means it couldn't be used in another project that might not matter about the input length of 3.
I have a philosophy of generic and specific. Generic functions such as scramble, scramble and do only that, while everything else builds upon that to make specification. You build on the foundations.
Workarounds are quick and dirty to solve problems with the original code, this isn't it is just a matter of what should be input and not.
Thankyou, J-Thread.
quote:
stuffplug comes with this talker...or at least mine did
Really? Oh, I apologise if this has already been done. Do you know what the talker is called?
quote:
It is having some problems with 3 letter words, I'll figure it out, eventually.
quote:
The answer is really obvisious.... But well, i'll help you, here it is.
When I was referring to a 3 letter problem, it wasn't that nothing would change because only one letter can move - nowhere, obviously.
It was that sometimes when I used "the" as an input it would make "teh". Either it was something irrelevant to this plugin (like on my pc, a plugin) or a bug. "The" should stay as "The" when used with this.
quote:
teh adn yuo
I read those perfectly before
These words should stay the same to help the reader understand the gist of the sentence.
I'll experiment later with instead of just the first and last letter the same, but sometimes - with long words, the middle letters, the quarter letter and so forth.