Tag

development

Exploring the useEffect API with Easy Examples

From React Hooks in Action by John Larsen

Some of our React components are super-friendly, reaching out to say “hi” to APIs and services outside of React. Although they’re eternally optimistic and like to think the best of all those they meet, there are some safeguards to be followed. In this article, we’ll look at setting up side effects in ways that won’t get out of hand. In particular, we’ll explore these four scenarios:

§ Running side effects after every render

§ Running an effect only when a component mounts

§ Cleaning up side effects by returning a function

§ Controlling when an effect runs by specifying dependencies

To focus on the API we’ll create some easy component examples. First up, let’s say “Bonjour, les side-effects.”

Automated JavaScript testing

From Testing JavaScript Applications by Lucas da Costa

Take your C# skills to a new level

From Code like a Pro in C# by Jort Rodenburg

Introducing Mock Frameworks

From JUnit in Action, Third Edition by Catalin Tudose

This article discusses widely-used mock frameworks such as EasyMock, JMock, and Mockito.

The Guide to Behavior-Driven Development

From BDD in Action, Second Edition by John Ferguson Smart

Go from Amatuer to Pythonista

From Tiny Python Projects by Ken Youens-Clark

Objects, Services, and Dependencies

From the the Object Design Style Guide by Matthias Noback

In this article we’ll discuss all the relevant aspects of instantiating a service. You’ll learn how to deal with its dependencies, what you can and can’t do inside its constructor, and you should be able to instantiate it once and make it reusable many times.

Explaining MapReduce (with Ducks)

From Algorithms and Data Structures in Action, by Marcello La Rocca

This articles uses the example of a well-known family of animated ducks to explain MapReduce.

Web Development Simplified

From Svelte and Sapper in Action by Mark Volkmann

What can GraphQL Do for You?

From GraphQL in Action by Samer Buna

© 2020 Manning — Design Credits