Category: Designing For Testability
-
Lire un magazine en ligne sans transformer la lecture en tâche
Les articles enregistrés s’accumulent vite. On les garde pour le soir, le week-end, ou ce moment où l’on aura enfin l’esprit libre. Puis la liste devient une obligation de plus. Une autre façon de lire consiste à partir d’une curiosité précise et à construire une petite promenade de lecture, sans chercher à tout finir. Un…
-
Faire de son site personnel un carnet de terrain durable
Les notes prises pendant une enquête locale, un projet créatif ou une randonnée finissent souvent éparpillées entre un téléphone, un cahier et plusieurs services en ligne. Un site personnel peut les réunir sans chercher à tout transformer en publication officielle. Il devient un carnet de terrain consultable, où les observations, les cartes et les pistes…
-
One Balance, Two Ways to Play: The Practical Trade-Off at Gentleman Jim
Gentleman Jim is a UK-regulated online gambling platform that brings casino games and sports betting together under one account. That combination is its defining feature: customers can move between slots, live tables, and sportsbook markets without maintaining separate balances. It is convenient, but it also makes it important to understand how the account, payments, and…
-
Innovative Solutions for Local Mobility Challenges
Understanding Way2Go Cortland County’s Mission Way2Go Cortland County represents an essential initiative aimed at improving transportation options for residents, particularly older adults and individuals with disabilities. The organization serves as a bridge between available transportation services and the specific needs of these communities. By conducting surveys and gathering feedback, Way2Go identifies gaps in existing transportation…
-
The Unique Culinary Experience at D.B. Pickles: More than Just a Meal
An Overview of D.B. Pickles D.B. Pickles is a full-service restaurant that distinguishes itself in the culinary landscape by offering not only a extensive menu but also an exceptional dining atmosphere. Located in an inviting space, D.B. Pickles is known for its delicious entrees, full-service bar, deli counter, bakery, and a signature pickle bar that…
-
Voyager au Salvador en suivant le rythme des journées
Au Salvador, un itinéraire se construit autant avec une carte qu’avec une horloge. La côte, les villes d’altitude et les routes de montagne ne se visitent pas au même moment de la journée. Partir tôt peut rendre un trajet plus simple, tandis qu’une halte prolongée dans un village transforme une journée de transport en véritable…
-
The Hexagonal Architecture and mocks as a design technique
Now that you know about the Hexagonal Architecture and the idea of ports and adapters, we can talk about mocks as a design technique. In a nutshell, whenever mockists develop a feature (or a domain object) and notice that they need something from another place, they let a port emerge. As we saw, the port…
-
Static methods, singletons, and testability
As we have seen, static methods adversely affect testability. Therefore, a good rule of thumb is to avoid creating static methods whenever possible. Exceptions to this rule are utility methods, which are often not mocked. If your system has to depend on a specific static method, perhaps because it comes with the framework your software…
-
Private methods and testability
A common question among developers is whether to test private methods. In principle, testers should test private methods only through their public methods. However, testers often feel the urge to test a particular private method in isolation. A common reason for this feeling is the lack of cohesion or the complexity of the private method.…
-
Complex conditions and testability
We have seen in previous chapters that very complex conditions (such as an if statement composed of multiple boolean operations) require considerable effort from testers. For example, we may devise too many tests after applying boundary testing or condition + branch coverage criteria. Reducing the complexity of such conditions by, for example, breaking them into multiple smaller…