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

  • Home
  • SEARCH
  • 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 512573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:20:01+00:00 2026-05-13T07:20:01+00:00

I was thinking about well known article Hardware is Cheap, Programmers are Expensive by

  • 0

I was thinking about well known article “Hardware is Cheap, Programmers are Expensive” by Jeff Atwood and a recommendation of “Keep the Build Fast” by Martin Fowler.

My tried approaches:

  1. I’ve suffered from too slow tests which was caused by intensive use of database. I like that it is cheap.. at the beginning.
  2. I’ve tried a multitiered architecture with persistent-arrogant easy tested domain objects. I like that it is maintainable and easy to use. But it is expensive in terms of time.

In case when I have enough time resources I usually choose the second way, but most of the time I have to live with the first one.

How to find a more cost effective approach? Is it the first way with a quite powerful hardware?

  • 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-13T07:20:01+00:00Added an answer on May 13, 2026 at 7:20 am

    I don’t like unit tests that hit anything external, be it a database or the filesystem. Many people would call these integration tests rather than unit tests.

    Execution speed is an issue with these kind of tests – but so is setup speed.

    You (or anyone else on your team) should be able to check out the code and tests from source control and run them immediately. They shouldn’t have to mess around creating databases. The harder the tests are to run, the less useful they are.

    Continuous integration is also much easier if your tests have minimal dependencies.

    I don’t think fast hardware can overcome the drawbacks of having external dependencies, because disk and network access is so much slower than in-memory access. An old machine running dependency-free unit tests will be quicker than a newer maching that has to hit disk and database.

    As for the tradeoffs between your two options, I think it’s a question of scale. If you have a single programmer on a small project, then I think that approach 1) would suffice.

    But the more tests you’re running, and the more people who need to run them, the bigger the drawbacks of not seperating out your unit and integration tests will be.

    It’s really a question of fixed costs verses variable costs. Setting up rigorous unit testing might take some time, but if your project is large enough you can ammortise the time spent over many months of increased productivity.

    As always, it depends on the specifics of the project. Good luck!

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

Sidebar

Ask A Question

Stats

  • Questions 357k
  • Answers 357k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You probably want to call setlocale() first, "LC_ALL" should do… May 14, 2026 at 9:06 am
  • Editorial Team
    Editorial Team added an answer Linux Ubuntu Desktop Jaunty Firebug FireCookie Pixel Perfect Web developer… May 14, 2026 at 9:06 am
  • Editorial Team
    Editorial Team added an answer Your code should look like this: var par = [];… May 14, 2026 at 9:06 am

Related Questions

I'm working on a CMS as my hobby project. Because I'm not paid for
I keep a JMS connection always open, because I have a MessageListener on it.
I'm looking for a version control system just for me on my windows computer
We have an auto-complete list that's populated when an you send an email to
Well first off I'm surprised actionscript 3.0 doesnt have pixel-based collision detection. Anyways I'm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.