Click here to Skip to main content
15,883,705 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Software architecture pattern Pin
Tabah Baridule11-Jun-21 19:08
Tabah Baridule11-Jun-21 19:08 
GeneralRe: Software architecture pattern Pin
Greg Utas12-Jun-21 0:12
professionalGreg Utas12-Jun-21 0:12 
AnswerRe: Software architecture pattern Pin
Bohdan Stupak30-Jul-21 3:36
professionalBohdan Stupak30-Jul-21 3:36 
QuestionIs if-then-else now considered to be as obsolete as goto? Pin
swampwiz27-May-21 18:28
swampwiz27-May-21 18:28 
AnswerRe: Is if-then-else now considered to be as obsolete as goto? Pin
Gerry Schmitz27-May-21 19:07
mveGerry Schmitz27-May-21 19:07 
AnswerRe: Is if-then-else now considered to be as obsolete as goto? Pin
Richard MacCutchan27-May-21 21:30
mveRichard MacCutchan27-May-21 21:30 
AnswerRe: Is if-then-else now considered to be as obsolete as goto? Pin
harold aptroot28-May-21 1:08
harold aptroot28-May-21 1:08 
AnswerRe: Is if-then-else now considered to be as obsolete as goto? Pin
jschell7-Jul-21 6:57
jschell7-Jul-21 6:57 
swampwiz wrote:
This article purports


First of course writers have different goals than programmers. Always keep that in mind when reading postings on the web.

From the link

"New requirements come along. Who would have thought? You were so sure nothing would happen"

Wrong, wrong, wrong.

Attempting to write code in case something might happen is a sure way to lead to code that is difficult to maintain.

If you already have requirements, even if it is just from a whiteboard, then your design and implementation should, of course, take that into account. But if you are claiming that you are writing your code to make it easy to add requirements that are unknown then you are at least ignorant of the challenges of maintaining legacy code. Especially if your claim is for something that might happen far in the future.

What actually ends up happening with that hubris is that code must be maintained for years or decades despite the fact that it serves no purpose. The complexity actually makes it harder, not easier, to add new features because it is more complex.

The best you can do now for such future possibilities is to write code that is easy to understand. And to make it clear how the code that you wrote now meets the requirements that you have now. Then that programmer 10 years from now who must add a feature that is actually needed then, will at least be able to understand what your code actually is doing and very likely needs to continue to do even with the new feature in place.
GeneralWhat about deprecated keywords ? Pin
User 140765529-Jul-21 3:00
User 140765529-Jul-21 3:00 
GeneralRe: What about deprecated keywords ? Pin
jschell17-Jul-21 9:31
jschell17-Jul-21 9:31 
AnswerRe: Is if-then-else now considered to be as obsolete as goto? Pin
Bohdan Stupak29-Jul-21 6:25
professionalBohdan Stupak29-Jul-21 6:25 
QuestionIn OO, How to handle the object parameter of a method Pin
codecs12-Apr-21 4:43
codecs12-Apr-21 4:43 
AnswerRe: In OO, How to handle the object parameter of a method Pin
Richard MacCutchan2-Apr-21 5:30
mveRichard MacCutchan2-Apr-21 5:30 
AnswerRe: In OO, How to handle the object parameter of a method Pin
Gerry Schmitz2-Apr-21 6:17
mveGerry Schmitz2-Apr-21 6:17 
AnswerRe: In OO, How to handle the object parameter of a method Pin
Dave Kreskowiak2-Apr-21 6:49
mveDave Kreskowiak2-Apr-21 6:49 
GeneralRe: In OO, How to handle the object parameter of a method Pin
Eddy Vluggen2-Apr-21 11:53
professionalEddy Vluggen2-Apr-21 11:53 
AnswerRe: In OO, How to handle the object parameter of a method Pin
codecs12-Apr-21 17:50
codecs12-Apr-21 17:50 
GeneralRe: In OO, How to handle the object parameter of a method Pin
Richard MacCutchan2-Apr-21 21:31
mveRichard MacCutchan2-Apr-21 21:31 
GeneralRe: In OO, How to handle the object parameter of a method Pin
codecs13-Apr-21 16:58
codecs13-Apr-21 16:58 
GeneralRe: In OO, How to handle the object parameter of a method Pin
jschell9-Apr-21 15:10
jschell9-Apr-21 15:10 
GeneralRe: In OO, How to handle the object parameter of a method Pin
Rob Grainger6-Jul-21 11:09
Rob Grainger6-Jul-21 11:09 
AnswerRe: In OO, How to handle the object parameter of a method Pin
Bohdan Stupak6-Apr-21 22:20
professionalBohdan Stupak6-Apr-21 22:20 
GeneralRe: In OO, How to handle the object parameter of a method Pin
Rob Grainger6-Jul-21 11:11
Rob Grainger6-Jul-21 11:11 
GeneralRe: In OO, How to handle the object parameter of a method Pin
Bohdan Stupak24-Jul-21 23:40
professionalBohdan Stupak24-Jul-21 23:40 
QuestionHow can a method return a validation result Pin
codecs112-Mar-21 19:54
codecs112-Mar-21 19:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.