We can write perfectly functioning code, that is simple, readable and optimised. But when it comes to testing, it adds another dimension to your code and changes the way you would approach coding. Those who have developed in C#, you know why we need Interfaces and implementing it will change the way you approach writing your code.
The following issues are known pain points when it comes to testing ES6 modules:
- Named Exports
- Multiple Exports
We will use a Warehouse example, which uses Mocha, Sinon and Chai, to explore how we can rewrite the code to get them to pass the above mentioned pain points, and still have them function properly. Although the title mentions spying, the idea is that if you can Spy then you should be able to Stub and Mock.
Continue reading “Spying on ES6 modules”
When you advertise online, as an advertiser, you are paying to acquire more business or to increase your brand & product exposure or both. The cost of online advertisement is based on what do you expect to get out of it. There are several basic metrics of an advertisement to help you out with it.
Continue reading “Basic Cost Calculation in Online Advertising”
As developers, it is a difficult task to explain to our product owner the business value of a piece of technical work that needs doing. It is also difficult to provide risk analysis for these tasks. In turn, as a product owner, it is hard for them to prioritise such technical work with out coming across technical reasoning and jargon.
At Barnardos, together with Readify consultant Abdelmawla Mohamed, we are exploring how we can define these technical work in such way that it is easy for the developers to describe the work involved and the risks associated with it without using technical jargon, while still providing a common language and consistent representation of impact and risks to help the product owner with prioritising.
Continue reading “Managing Tech Debts”
I was recently introduced to Dave Snowden’s Cynefin framework, pronounced “kuh-neh-vin”, as a way to understand the complexity of an issue so that you know your options to respond accordingly. With Cynefin, Dave Snowden, reminds us that not all issues are created equal and that different issues warrant different solutions. Continue reading “Cynefin”
In this post we will be covering how to shutdown neo4j service gracefully under different versions of neo4j. Continue reading “Shutdown Neo4j Gracefully”
A friend forwarded me an article about Is Having a Baby Really Worth It? Although this article was written in relation to making a decision about having babies, I believe Caroline‘s view on this article applies to life decisions in general.
Continue reading “Losing your leg and winning the lottery”