- 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
}
}
- The DevOps 2.3 Toolkit
- Java應用開發與實踐
- JIRA 7 Administration Cookbook(Second Edition)
- Learning ELK Stack
- The HTML and CSS Workshop
- Responsive Web Design by Example
- Apache Spark 2.x for Java Developers
- Unity 2D Game Development Cookbook
- Swift 4從零到精通iOS開發
- 響應式Web設計:HTML5和CSS3實戰(第2版)
- 大學計算機基礎
- 小程序從0到1:微信全棧工程師一本通
- Mastering jQuery Mobile
- Android應用開發實戰(第2版)
- H5+移動營銷設計寶典