in reply to Re: Some thoughts around the "is Perl code maintainable" discussion
in thread Some thoughts around the "is Perl code maintainable" discussion
TIOWTDI would mean that once you have found a solution, you have found the best possible solution
There are a couple of things that jump out at me here and scream bullshit.
1) There's no such language where there is only one way to do things. You can always do things multiple ways, unless your knowledge of the language is limited to copy-pasting code. There's usually more than one algorithm to accomplish some task. For example, sorting -- is there only one way to sort in these supposedly TIOWTDI languages? I'd hope not, because they have no way of knowing the best possible sorting algorithm for your particular problem. (On the other hand, maybe that's the sacrifice you make for an easier to use system?) Even if there's a sort function that supposely solves all sorting the best possible way, there are some people who will use the language to badly reimplement a quicksort, etc..
2) Assuming there was only one solution, do you really want to limit yourself to it? What happens when your application starts bogging down, do you just throw your hands in the air and say "well, it can't possibly be done better, since there is only one way to do everything"?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Some thoughts around the "is Perl code maintainable" discussion
by syphilis (Archbishop) on Aug 10, 2007 at 14:56 UTC | |
by ForgotPasswordAgain (Vicar) on Aug 10, 2007 at 15:20 UTC | |
by syphilis (Archbishop) on Aug 10, 2007 at 15:40 UTC | |
Re^3: Some thoughts around the "is Perl code maintainable" discussion
by blazar (Canon) on Aug 12, 2007 at 16:45 UTC | |
by MonkOfAnotherSect (Sexton) on Aug 13, 2007 at 06:38 UTC |