Posts

Showing posts with the label Quarter-3

More of Test Doubles

  The blog post I selected is “Understanding Test Doubles - Fakes, Stubs, Mocks, and Spies” by Sarah Dutkiewicz. I chose this resource because it gives our view of how we do test doubles with better examples for class as it explains several kinds of test doubles and shows how each one supports more focused and maintainable tests through concrete code examples. The article explains that “test doubles” is an umbrella term for objects that replace real dependencies during testing, and that not all doubles should be used in the same way. The post explains that fakes are simple working implementations made for testing, stubs return pre-programmed responses, mocks are used to verify that certain interactions happened, and spies record calls so the test can inspect them later. It continues to uses small C# examples with interfaces like IUserRepository and IExternalService to show when each type is appropriate and why choosing the right one matters. It also emphasizes that using the wro...

API and Modern Day Development

    This article, “Understanding the Role of APIs in Modern Backend Development” starts with what API is and how it is now backbone of modern-day development. APi is a set of rules and protocols that allow software components to interact and expose backend functionality or data to other services, clients, or platforms. The article shows and explain different types of APIs used in backend development, REST APIs, GraphQL APIs, WebSocket APIs. Rest Apis are most used architecture, based on HTTP methods, makint it easy to scale, maintain, and secure. GraphQL APIs are improved alternative of Rest Api, which allows clients to request exactly the data they need in a single query, reducing the number of requests sent to the backend. WebSocket APIs on the other hand, enables bi-directional real-time communication between the client and server making it useful in applications like chat, live updates or gaming. After that the article explains best practices for using API in backend d...