Skip to main content

All Questions

1 vote
3 answers
2k views

Using delegates to avoid duplicate creation of resources

I'm writing a PCL that uses an HttpClient to go visit a few sites and extract data from them. My initial code looked like this: public static class Download { public async static Task<byte[]&...
James Ko's user avatar
  • 358
0 votes
2 answers
751 views

Is this instance of mixing FP and OOP a good design?

I had a strange-feeling pattern come up in some code I was writing. In a project with user accounts, there was a lot of code that needed to do common things such as creating accounts, deleting them, ...
Jack's user avatar
  • 4,529
3 votes
2 answers
2k views

design a model for a system of dependent variables

I'm dealing with a modeling system (financial) that has dozens of variables. Some of the variables are independent, and function as inputs to the system; most of them are calculated from other ...
McGarnagle's user avatar