- C# and .NET Core Test Driven Development
- Ayobami Adewole
- 202字
- 2021-06-25 22:00:26
Tight coupling
Most legacy software applications are known to be tightly coupled, with little or no flexibility and modularity. Tightly coupled software components lead to a rigid code base which can be difficult to modify, extend, and maintain. As most software applications evolve over time, big maintenance issues are created when components of applications are tightly coupled. This is due to the changes in requirements, user's business processes, and operations.
Third-party libraries and frameworks reduce development time and allow developers to concentrate on implementing users' business logic and requirements without having to waste valuable productive time reinventing the wheel through implementing common or mundane tasks. However, at times, developers tightly couple the applications with third-party libraries and frameworks, creating maintenance bottlenecks that require great efforts to fix when the need arises to replace a referenced library or framework.
The following code snippet shows an example of tight coupling with a third-party smpp library:
public void SendSMS()
{
SmppManager smppManager= new SmppManager();
smppManager.SendMessage("0802312345","Hello", "John");
}
public class SmppManager
{
private string sourceAddress;
private SmppClient smppClient;
public SmppManager()
{
smppClient = new SmppClient();
smppClient.Start();
}
public void SendMessage(string recipient, string message, string senderName)
{
// send message using referenced library
}
}
- 數字媒體應用教程
- LabVIEW2018中文版 虛擬儀器程序設計自學手冊
- Instant Zepto.js
- Software Testing using Visual Studio 2012
- Python網絡爬蟲從入門到實踐(第2版)
- 精通API架構:設計、運維與演進
- Mastering Swift 2
- Java設計模式及實踐
- Building a Quadcopter with Arduino
- Serverless架構
- 深入淺出PostgreSQL
- Java程序員面試筆試寶典(第2版)
- 大話代碼架構:項目實戰版
- Python Business Intelligence Cookbook
- Testing Practitioner Handbook