Click here to Skip to main content
15,891,597 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: The balance between architecture and code Pin
Marc Clifton28-Apr-21 2:51
mvaMarc Clifton28-Apr-21 2:51 
GeneralRe: The balance between architecture and code Pin
honey the codewitch27-Apr-21 11:11
mvahoney the codewitch27-Apr-21 11:11 
GeneralRe: The balance between architecture and code Pin
MSBassSinger27-Apr-21 11:32
professionalMSBassSinger27-Apr-21 11:32 
GeneralRe: The balance between architecture and code Pin
honey the codewitch27-Apr-21 12:18
mvahoney the codewitch27-Apr-21 12:18 
GeneralRe: The balance between architecture and code Pin
Mycroft Holmes27-Apr-21 12:20
professionalMycroft Holmes27-Apr-21 12:20 
GeneralRe: The balance between architecture and code Pin
rob tillaart27-Apr-21 21:42
rob tillaart27-Apr-21 21:42 
GeneralRe: The balance between architecture and code Pin
Fabio Franco27-Apr-21 22:56
professionalFabio Franco27-Apr-21 22:56 
GeneralRe: The balance between architecture and code Pin
KateAshman27-Apr-21 23:45
KateAshman27-Apr-21 23:45 
I'm almost on the same page, but I also avoid code re-use when the data is different from a functional point of view.

When 2 areas have different use cases and (functionally) different data sets, but can use the same code initially, I just duplicate the code I need and give it a name that's more appropriate for the specific area. Most of the time, the functions start to drift apart along with new business requirements. By splitting it up initially, I avoid having to add logic to differentiate between both areas, something that typically happens over time, and causes bugs when done poorly.

Also, I align my structure with whatever report / graph / property or other business object that gets identified, because that's where your design changes come from in the first place. For the same reason I avoid purely-technical abstraction layers and objects that have no representation for the end user, except for one specific case.

To me, technical abstractions are only useful as a way to divide work between teams (including external teams which I have no control over) and should be implemented, evaluated and maintained as such.

As an example, you could have 2 teams in a product, let's say UI and backend, and use 3 business critical open source packages for reporting purposes. A good structure would then have 5 critical abstractions under the hood to separate those concerns. In this case 2 layers with some rules that work for both teams, and 3 class encapsulations.

I know I sound extremely pragmatic, but the compiler doesn't care about people and doesn't care about profit, and I care tremendously about both. So that's what a good structure should add, in my personal opinion.
GeneralRe: The balance between architecture and code Pin
GuyThiebaut27-Apr-21 23:50
professionalGuyThiebaut27-Apr-21 23:50 
GeneralRe: The balance between architecture and code Pin
Dan Sutton28-Apr-21 5:27
Dan Sutton28-Apr-21 5:27 
GeneralThought of the Day Pin
OriginalGriff27-Apr-21 4:53
mveOriginalGriff27-Apr-21 4:53 
GeneralRe: Thought of the Day Pin
jeron127-Apr-21 5:02
jeron127-Apr-21 5:02 
GeneralRe: Thought of the Day Pin
megaadam27-Apr-21 7:16
professionalmegaadam27-Apr-21 7:16 
GeneralRe: Thought of the Day Pin
W Balboos, GHB27-Apr-21 8:01
W Balboos, GHB27-Apr-21 8:01 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer27-Apr-21 9:44
professionalDaniel Pfeffer27-Apr-21 9:44 
GeneralRe: Thought of the Day Pin
DRHuff27-Apr-21 12:42
DRHuff27-Apr-21 12:42 
QuestionCovid Question of the Moment Pin
megaadam27-Apr-21 4:10
professionalmegaadam27-Apr-21 4:10 
AnswerRe: Covid Question of the Moment Pin
W Balboos, GHB27-Apr-21 4:13
W Balboos, GHB27-Apr-21 4:13 
JokeRe: Covid Question of the Moment Pin
Daniel Pfeffer27-Apr-21 4:16
professionalDaniel Pfeffer27-Apr-21 4:16 
GeneralRe: Covid Question of the Moment Pin
W Balboos, GHB27-Apr-21 4:49
W Balboos, GHB27-Apr-21 4:49 
GeneralRe: Covid Question of the Moment Pin
Daniel Pfeffer27-Apr-21 7:39
professionalDaniel Pfeffer27-Apr-21 7:39 
GeneralRe: Covid Question of the Moment Pin
Jörgen Andersson27-Apr-21 12:02
professionalJörgen Andersson27-Apr-21 12:02 
AnswerRe: Covid Question of the Moment Pin
RickZeeland27-Apr-21 4:17
mveRickZeeland27-Apr-21 4:17 
GeneralAn overhaul of the second kind Pin
W Balboos, GHB27-Apr-21 2:32
W Balboos, GHB27-Apr-21 2:32 
GeneralRe: An overhaul of the second kind Pin
Daniel Pfeffer27-Apr-21 4:18
professionalDaniel Pfeffer27-Apr-21 4:18 

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.