Re: Constructor as a "Reset" Button



Michael Fesser wrote:
.oO(Sanders Kaufman)

But a core design principle is to not use resources unnecessarily - so calling TWO functions each time an object is created would violate that principle.

Are you kidding or trolling? Why are you calling multiple methods, if
all could be done in a single one? Why do you use OOP at all? Or PHP?
Why not directly write pure Assembler code?

Because that would violate a core design principle - that the app be written in PHP4.


_Every_ step taken to a higher, more abstract level "wastes" sooo many
resources - millions of CPU cycles just in order to load, parse and
compile your class file, so you can use it! And you're worried about the
time taken for a _single_ method call? Sorry, but that's just absurd.

Yeah - but I recycle my plastic and glass, too. I don't see where it's made my neighborhood any tidier, but it's the principle of the thing.
.



Relevant Pages

  • Re: calling own methods from constructor
    ... In principle this is the same kind of example as Tom's. ... It has already been established by now, that this calling ... of virtual methods from the c'tor *can* be used with caution ... accessible javadoc of the API of a lib documenting some protected ...
    (comp.lang.java.programmer)
  • Re: Question about induction
    ... calling it the "well-ordering" principle, ... The least number principle and the principle of mathematical induction ...
    (sci.math)
  • Re: Question about induction
    ... calling it the "well-ordering" principle, ... The least number principle and the principle of mathematical induction ...
    (sci.math)
  • Re: Calling builtin new
    ... Shayne Wissler wrote: ... > I said the principle was the same, not the scenario. ... And my point is that the principle is not at all the same. ... calling a regular function, the other one is calling a built-in that ...
    (comp.lang.cpp)
  • Re: big bang would violate the equivalence principle
    ... big bang and black holes violate that principle. ... Black holes a spot in space ... There are observations where "black hole candidates" orbit ... But that can't be the case and it would violate the ...
    (sci.physics.relativity)