"Il y a peu de choses qui me soient impossibles..."
K. Tsang CEng MBCS PMP PMI-ACP OCMJEA OCPJP
"Il y a peu de choses qui me soient impossibles..."
Stephan van Hulst wrote:Well, it's public, which is kinda bad in its own right.
"Il y a peu de choses qui me soient impossibles..."
Stevens Miller wrote:Yes, strategy is the one I was trying to remember. It works, but seems like overkill for this. Here's what I've come up with, so far:
Junilu Lacar wrote:
Stevens Miller wrote:Yes, strategy is the one I was trying to remember. It works, but seems like overkill for this. Here's what I've come up with, so far:
If it works and you're ok with it, that's fine but it's not Strategy.
Strategy would be something like this:
"Il y a peu de choses qui me soient impossibles..."
Junilu Lacar wrote:If you deemed that the value of control needs to be encapsulated somehow, you might also consider refactoring to a Factory that gives you back an appropriate Strategy based on control. That is, Factory knows the different strategies for doing "it", you can tell Factory what control is via a setter or via the parameter to its newWorker() factory method.
"Il y a peu de choses qui me soient impossibles..."
Liutauras Vilda wrote:Outside your main problem.
I find this signature very confusing, workSometimes along with parameter variable name always, true | false. Might think about better parameter name.
"Il y a peu de choses qui me soient impossibles..."
"Il y a peu de choses qui me soient impossibles..."
Stevens Miller wrote:Oh, just in the for-what-it's-worth department, in my actual code, the condition is coded like this:
Hope that looks a little better.
I think I got it now after you said that. Those two operands are not related, right?Junilu Lacar wrote:I think Liutauras is on to what was taking me a while to understand the formula. That != combined with "regardlessOf" is a bit of a brain twister.
"Il y a peu de choses qui me soient impossibles..."
Junilu Lacar wrote:No mental snag with that for me, except the question "Is there no better name?"
"Il y a peu de choses qui me soient impossibles..."
Junilu Lacar wrote:Ironically, just regardless makes more sense to me. alwaysForNow also is richer in idea, if that's it's true intent.
"Il y a peu de choses qui me soient impossibles..."
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |