Is a strategy template (design template) less useful when change is unpredictable?

Is the strategy template based primarily on what will be changes in the software?

1) So, in today's environment, what if the change is completely unknown and unpredictable. At this point, the strategy template will not be appropriate for adding (at this point)?

2) What to do if the Program Manager wants to do this in 2 days or as soon as possible, or the faster you complete it, the better you look and the better you will conduct a performance review. If you write it without using a strategy template, you can complete it within 2 days, otherwise PM may underestimate the delay and attribute poor performance to it. In this case, how do you balance implementation speed and maintainability?

3) the same applies to contract programming - for 2 months or 3 months. Wouldn't any programmer or previous programmer on a task just ignore maintainability just to get it done as soon as possible? Do managers really care that the project is 100% functional, as indicated in the specification, does it also have the ability to service?

+3
source share
5 answers

For 1), I recommend not using a strategy template. Overdesigning is becoming very common these days and has little or no effect on self-service. I came across a system that is designed to be easily extensible, but in the end, the extension never reached materialization.

Jeff Atwood has suggestions for KISS and YAGNI .

+6
source

Re 2) and 3), yes, you will find a lot of unprofessional behavior in dysfunctional companies, for example. project managers and contractors, as well as many other so-called professionals (avoid such dysfunctional companies if you can).

Re 1), , , " " , , - , - YAGNI , .

+3

, , . , , - (, , ), .

( , , , . , - , , .)

+2

.

, YAGNI, , , , , , .

, , , . , 2 , , , .

, , , , , , , , .

. . , -. , ...

... -, . , , . , , , , , , ... , . , , , .

+1

I think your concerns are not provided. In my opinion, this is a simple refactoring template. Write the algorithm as it is currently indicated, and try to isolate the possible places of change. Use the ODL rules in common sense and add strategies later if so.

+1
source

Source: https://habr.com/ru/post/1709928/


All Articles