Pytest is a very useful package for creating unit tests that help to give you confidence that your code still works following changes. An ideal time to run tests will be prior to releasing a new feature to a tool or site, and when written well and passing will give you confidence that the new … Continue reading Python unit test tips with pytest
Author: DaddyDev
Creating a URL Shortener Microservice
This weekend I've been working on URL Shortener Microservice - one of the API and Microservice FreeCodeCamp (FCC) projects. I've had a couple of frustrating days where any time I've had available to dedicate towards coding seemed to be very slow going. However, I am pleased to say I did manage to complete the required … Continue reading Creating a URL Shortener Microservice
Controlling your stateless React components
This is a very short summary of React.memo that was introduced in React 16.6 in Oct 2018 and can be used as a wrapper around stateless functional components. Some examples demonstrating stateless functional components are below: import React from 'react'; //nameless default functional component export default (props) => { return <button disabled={props.buttonDisabled}>{props.text}</button> } //named functional … Continue reading Controlling your stateless React components
The 36 week scan…
Today was 36 week scan day and in summary it turned out to be great! The baby and mother are both in great shape and at the end we were fortunate enough to get a great head shot to take home to proudly show off to anyone who cares. This is the third scan we've … Continue reading The 36 week scan…
How do javascript Map objects work?
Today I've been struggling with manipulating a dataset in a tool I've been working on that makes use of javascript Map object as kindly introduced into the code base by one of my colleagues at work. I have very little experience using Maps as I generally get by my data manipulation requirements using arrays combined … Continue reading How do javascript Map objects work?
Create your first NoSQL DB
I consider myself to have a fairly solid knowledge of SQL database mostly from a data extraction perspective, but over the past couple of years I've been aware of the buzz around NoSQL databases, but not been entirely certain what they were all about. So the best way to understand their difference with traditional SQL … Continue reading Create your first NoSQL DB
Configuring your Yarn
I currently use Yarn at work rather than standard npm to manage node.js packages for any user interface developed using JavaScript and more precisely React. As today I was changing my working laptop I had to ensure my Yarn configuration file was located in the right folder to ensure I still had the same experience … Continue reading Configuring your Yarn
The Journey Begins…
So here it goes, the first post, starting with a little bit about myself, why I've set up this blog and what's behind the blog name... For the past couple of years I have become fascinated by both software development and more recently the data science field. Both of these professions are huge and learning … Continue reading The Journey Begins…