Tag Info

New answers tagged

6

No, this is not generally a good pattern What you're doing is breaking up a function into smaller functions using lambda. However, there is a much better tool for breaking up functions: functions. Lambdas work, as you have seen, but they mean much much much much much more than simply breaking up a function into local bits. Lambdas do: Closures. You ...


16

I think you made a bad assumption: Firstly, A represents an object in the physical world, which is a strong argument for not splitting the class up. I disagree with this. For example, if I had a class that represents a car, I would definitely want to split it up, because I surely want a smaller class to represent the tires. You should split this ...



Top 50 recent answers are included