in reply to When to Use Object Oriented approach in Perl? (RFC)
Object-oriented programs run slightly slower [....] If you can get away without using object orientation, you probably should.
What a horrible conclusion. An equivalent conclusion is "If it is possible to do something in C or C++, then you probably should just not do it in Perl."
What are usually rather trivial run-time performance differences should have nearly zero bearing on your choice of approach. Even if your OO experiment found that the OO code was consistently 20% slower than the non-OO code, that is unlikely to be a significant factor in evaluating whether or not to use OO for that case (are you even going to notice most of the time if your script takes 3 seconds to run instead of 3.6 seconds to run?).
Clearly it shouldn't be the single most important factor. That particular comment should be simply and easily dismissed.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: When to Use Object Oriented approach in Perl? (gah)
by thanos1983 (Parson) on Aug 01, 2014 at 09:13 UTC | |
by davido (Cardinal) on Aug 01, 2014 at 14:54 UTC | |
by thanos1983 (Parson) on Aug 01, 2014 at 17:50 UTC |