Strategy vs Publiser-subscriber pattern
Let’s say I have a channel endpoint where I receive messages. Because I want to process messages in a different way depending on its Header
property, rather than create a massive switch
I create different strategies with the contract:
When should you create/destroy underlying object in a class that wraps it
(note: I used Java to make it easer to explain my question, but the actual language is irrelevant for this dilemma)
Factors for choosing between using a wrapper library or issuing command line process from my web application
I have a Java web application that makes use of certain libraries for example: Ghost Script for converting PDFs to TIFFs and Tesseract for OCR. There are java wrappers for both of these: Ghost4J and Tess4J.
Best solution for future maintenance of a website with hardcoded ids, custom CMS using bad database design [duplicate]
This question already has answers here: What to do with a not well organized application? [duplicate] (12 answers) Closed 9 years ago. Recently I was put into a position of a tech-lead on a very interesting project that I have been partially working for two years. This project carries a lot of legacy stuff with […]
Best solution for future maintenance of a website with hardcoded ids, custom CMS using bad database design [duplicate]
This question already has answers here: What to do with a not well organized application? [duplicate] (12 answers) Closed 9 years ago. Recently I was put into a position of a tech-lead on a very interesting project that I have been partially working for two years. This project carries a lot of legacy stuff with […]
Best solution for future maintenance of a website with hardcoded ids, custom CMS using bad database design [duplicate]
This question already has answers here: What to do with a not well organized application? [duplicate] (12 answers) Closed 9 years ago. Recently I was put into a position of a tech-lead on a very interesting project that I have been partially working for two years. This project carries a lot of legacy stuff with […]
Best solution for future maintenance of a website with hardcoded ids, custom CMS using bad database design [duplicate]
This question already has answers here: What to do with a not well organized application? [duplicate] (12 answers) Closed 9 years ago. Recently I was put into a position of a tech-lead on a very interesting project that I have been partially working for two years. This project carries a lot of legacy stuff with […]
How to save entities relations using unit of work pattern
I use Unit of work pattern to commit all new, dirty, deleted entities to the DB (using a db_mapper).
Callback pattern handling exceptions – Best practices in .NET 3.5
I am looking to implement the callback pattern with error handling such that error is caught and pass to the callback code with the response. Since I am using .NET 3.5, I cant use Task (TAP) pattern which provides us with t.Result and t.Exception properties. I tried some googling for best practices and ended up with the Begin/End APM model. Since I dont want to block the main thread, I ignored this model.
What is the best way to initialize a child’s reference to its parent?
I’m developing an object model that has lots of different parent/child classes. Each child object has a reference to its parent object. I can think of (and have tried) several ways to initialize the parent reference, but I find significant drawbacks to each approach. Given the approaches described below which is best … or what is even better.