Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 211385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:05:26+00:00 2026-05-11T18:05:26+00:00

What I mean by this, is that sometimes architects look to simplify and improve

  • 0

What I mean by this, is that sometimes architects look to simplify and improve testability, at the expense of other important forces.

For example, I’m reviewing a very complicated application, made so by extensive use of design patterns that overly favor testing, e.g. IoC, DI, AOP, etc…
Now, typically I like these things, but this system should have been much simpler – though not just a simple web frontend for CRUD on a db, it still not MUCH more complicated than that (even considering some internal workflows, processes, etc). On the other hand, just reviewing the code becomes a major pain in the heinie, barely readable (even though its well written), and coding it must have been a pain.

The implemented complexity is a clear violator of KISS (the principle, NOT the band)… and the “only” benefit is improved testability, using testing frameworks and mocks and and…

Now, before you TDD fans jump me, I’m not belittling the importance of testability, but I’m questioning the supremacy of consideration of this specific force (against all the others).
Or did I miss something?


I’d like to add another point – it does seem to me that all this talk of “testability” is with regards specifically to unit testing, which differs from overall system testing, and can result in missed tests when the individual units are integrated together. At least, that seems the point of the IoC/DI for testing…
Also, I’d point out that this system (and others I’ve seen preached) only have a single concrete object per interface, and the IoC/DI is only intended for – you guessed it – replacing the concrete objects with testing mockups for testing only.


I felt the need to add this quote from Wikipedia on IoC:

Whereas the danger in procedural programming was to end with spaghetti code, the danger when using Inversion of Control is ending with macaroni code

Yup, that expresses my feeling exactly 😀

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T18:05:26+00:00Added an answer on May 11, 2026 at 6:05 pm

    To answer your general question, I’d say “everything in moderation”. An emphasis on testability is of course a great thing. But not when it comes at the cost of excluding, say, readable code or a logical API.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If a class is a local inner class, does this mean that it is
Google App Engine doesn't support SSL for custom domains. Does this mean that it's
Given that django-nonrel has got JOINs working, does this mean we have M2M fields
I have an application (winform exe) that I run several times. Does this mean
At work, development doesn't have revision control. By this I mean that we are
I've got a Facebook iframe application that is completely external. By this I mean
What does that mean? Getting this in the console during usage of my app
actually this is not hang status, i mean..it slow response, so in that case,
Can anyone help me to do this in the right way?I mean.. like that
I have this weird issue that jquery.load sometimes fails on chrome. I'm not gonna

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.