Skip to main content

Timeline for performance versus reusability

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Apr 19, 2015 at 19:45 comment added Deduplicator @Cory: And in C++, you would simply use RAII.
Apr 15, 2015 at 21:43 comment added Keen An interesting note, in C#, you'd be expected to use the using statement to do this job. In other languages (those which use exceptions anyway), to do the same work as using, you'd need to use try {} finally {} to guarantee proper disposal, and even then it's sometimes impossible to correctly wrap all code that might throw. This is a potential issue with all the solutions mentioned here, and I am also unsure how this should be resolved in VBA.
Apr 15, 2015 at 21:01 history edited Ben Aaronson CC BY-SA 3.0
added 229 characters in body
Apr 15, 2015 at 20:58 comment added Ben Aaronson @Cory I agree to some extent, and my hand was forced a bit by lack of knowledge about vba. I did try to point this out with the next sentence, but maybe my wording wasn't clear or strong enough. I've made an edit to try to make this a little clearer
Apr 15, 2015 at 19:22 comment added Keen I wasn't the downvoter, but I'll take a guess. BeginValidation, EndValidation, and IsValidStockRef have a special relationship with each other. Knowledge of that relationship is more complex than the knowledge that would be required to directly handle a RecordSet. And the knowledge required to handle a RecordSet is more broadly applicable.
Apr 15, 2015 at 16:24 comment added Ben Aaronson Downvoter: Any particular reason, out of interest?
Apr 15, 2015 at 13:30 history answered Ben Aaronson CC BY-SA 3.0