What is the rule for simplicity over complexity? [closed]

We have a site which is hugely complex in its implementation. Conceptually, it is simple – a web-based catalog. But the implementation has become a multi-layered nightmare.

Can anyone indicate a “rule of thumb” for measuring when something has become too complex for the job it is doing?

1

Einstein’s Razor applies for the general case, whether you’re making a simple website or a massive multi-purpose applicaiton.

It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience

You’ll likely find the simplified form far more quotable: Everything should be made as simple as possible, but no simpler.

When you are creating a new system and have the choice between two development models, always select the one which leaves the system simpler unless you have a compelling reason to introduce the complexity. This compelling reason should be documented in such a form as to make sense to whomever inherits your code.


Unfortunately, it sounds like your specific case is an existing system that has become more complex over time. This leads you into the opposite principle, specifically If it ain’t broke, don’t fix it. A system that works should be left as-is, until it either breaks or a replacement is ready.

The question as to when you should replace vs. simply continue on is a management one, and really comes down to the cost in actual or opportunity dollars spent to maintain the considerable technical debt you have in the old system against the cost it would take to design, develop, deploy, convert, and support a new system.

The rule of thumb I always employ is to code just enough to meet the requirements. Using a minimalist approach ensures you can grow organically rather than assuming what the user wants. Its what made google such a great website in my opinion. Keep it simple

Now if the implementation is too complex, you may want to use MVC more effectively

A piece of software is a machine, with buttons, pipes, moving parts and everything else that might be part of a car, or some device at a factory, except that they’re represented in code. Imagine your machine (the web site) if brought to life as physical device. Are there unnecessary extra parts? Too many (or the wrong kind of) knobs? A strange exhaust stack? What is it really supposed to do?

Every system is different, and things can’t be measured the way they can in the physical world, so rules, ratios and formulae aren’t always available to the software engineer. However, a few guidelines might help when analyzing of your system:

  1. Is there an internal Wiki or FAQ with detailed steps that must be performed in order to add or change functionality? Are these steps really necessary, and if so, can they be automated?

  2. Is there just one person that know how the whole system goes together? What if he/she leaves the company?

  3. Are there layers of abstraction that have only one real usage? (i.e. interfaces with only one concrete implementation).

  4. How many data transformations occur between endpoints of the system? In some applications, you could use JSON up and down the stack without problem. This isn’t appropriate in every situation, but every time a data transformation occurs, evaluate if the layer requiring the transform is truly adding value.

  5. Are certain technologies employed that were mandated for political, cost or other non-engineering reasons? (i.e. “We have to use Oracle because the CEO said it’s the best”)

  6. For usability, have feedback been solicited from users (or people that didn’t work on the project)? Are there too many clicks, cluttered pages?

  7. If you had to identify one “secret sauce” area of the code, what would it be? Could this functionality be extracted into a separate module allowing other pieces to interact with it in a cleaner manner?

  8. Finally, could you design a simpler system? Make a prototype, and gather feedback from your co-workers. This is the best test of all.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật