- 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
}
}
- 認識編程:以Python語言講透編程的本質
- Python零基礎快樂學習之旅(K12實戰訓練)
- Python神經網絡項目實戰
- 大學計算機基礎(第2版)(微課版)
- RISC-V體系結構編程與實踐(第2版)
- Python項目實戰從入門到精通
- Spring+Spring MVC+MyBatis從零開始學
- 現代C:概念剖析和編程實踐
- STM8實戰
- Web開發的平民英雄:PHP+MySQL
- Microsoft Exchange Server 2016 PowerShell Cookbook(Fourth Edition)
- Mastering Unity Scripting
- Java程序設計基礎教程
- Java EE應用開發及實訓
- ASP.NET 3.5系統開發精髓