Tag Info

New answers tagged

0

I would post the whole function to code review. But, here are my views on your snippet and questions from an OOP view point: static ProcessMessage should be message.GetTransformedAttachments() and TransformedAttachment.Process() if (logic) should be attach.IsLogicTrue TransformedAttachmentData(attach) should be attach.GetTransformedData() So thats 3 ...


5

Your scenario seems like you have placed an entire "message processing subsystem" inside a single function. In order to simplify the function, you will need to come up with an actual message processing subsystem consisting of several classes. Some, if not all, of these classes will need to be instantiated, allowed to run, and discarded on each invocation ...


1

Your absolutely correct with your thinking, yes you absolutely need to keep them separate. However, it doesn't need to be as hard as you might think it is, in order to get your layout working correctly across multiple devices. Realistically, you have 3 approaches that are considered modern practice in this arena. 1) Create a satellite site for each ...



Top 50 recent answers are included