You are viewing a single comment's thread. Return to all comments →
Oh yeah, "simple text editor" is exactly the place to trade time for space - your average "imaginary editor user" requests 100 undos per millisecond and has petabytes of RAM.
Really, guys, some common sense is as important as your readiness to time your python code.
So is the ability to pay attention to the requirements - while there is no explicit requirement to use stacks, the problem still is in "Data Structures > Stacks" category - shouldn't the solution reflect that?
i just want to say..you should respect other's thinking...just like 2+2=4 so does 2+1+1... ^_^ and yes i'm a noob coder,i should have used stacks.
There's absolutely no problem with being noob, neither is with making mistakes etc.
But addressing a stranger by "dude" and "babe" and talking about "respect", hmmm...
Well, to not waste our time any further I will conclude:
I never intended to critisize your code or you personally, just wanted you and those who liked your code to notice that it lacks a certaing something, and to notice that shortness of code is not the absolute virtue, but rather the opposite of it, at least if you're doing commercial, not competitive, programming, where many people will have to read your code and will want to understand it with the smallest effort possible - in most applications "wtf per minute" is much more important than the size of the code.
Good luck to you.
agree..thank you for opening my eyes. ^_^