Tutorial
-
React state management simplified – choose the right state strategy in 5 minutes
Introduction This article will explore the different ways to maintain "state"—the memory of your React application. Choosing the right state management approach can be the difference between a clean, scalable app and…
-
SOLID gold
If there is one thing I have learnt during my career in the IT industry, it's that the industry is a fickle beast. Trends and fashions come and go. Languages fall by the wayside(hey COBOL74!). How often have you read…
-
GraphQL Part 3 - Persistence with MongoDB
In our post, we mastered Mutations . We can now query, add, update, and delete films from our Hammer collection. However, every time we restart our Apollo server, our changes vanish into the ether. Our "Watched" list…
-
GraphQL Part 2 - Mastering Mutations
In our last post, we built a robust way to search through 157 Hammer classics. But what happens when you finally sit down to watch The Brides of Dracula ? You need a way to update that record. In GraphQL, any operatio…
-
GraphQL Part 1 - A Modern Approach to APIs
For years, REST (Representational State Transfer) has been the standard for web services. However, as applications grow in complexity, developers often find themselves juggling dozens of endpoints and dealing with ove…
-
Easy as PI Weather Station - putting it all together
Sorry it has taken me so long to continue with this series. There were little things that got in the way such as C\ \ \ \ \ 19, and going through redundancy but lets put those little things aside and recap. Last time…
-
Easy as PI Weather Station - collecting the data
I inherited a Raspberry PI from a work colleague. It was complete with the Astro PI Hat(now known as the Sense Hat). This marvellous add on gives a variety of environmental sensors such as temperature, humidity and ai…
-
Hoist away
What is hoisting and why should you care? Hoisting means you can do this Hmm, looks okay doesn't it? Hang on, the variable x is being initialized before it is declared. Yes, that is because the interpreter has placed…
-
ES6 classes the easy way
Creating classes using Javascript is a strange affair with multiple exotic constructs, which adds up to a lot of confusion especially for novice coders. Now with the advent of ES6 finally we have a way to define and c…
