I try to use functional react components where I can, but something I've found conceptually confusing for a while now is passing a function to a component. This is confusion has been particularly apparent when using an external React library and I've been tasked to enhance a default component property with some additional feature which … Continue reading Passing Functions to Components in ReactJS and passing new parameters
I’m now a dad!
So the big day has been and gone and life has had some time to settle down. My first born Alfie was born on 7th March and both him and my wife have recovered really well from what turned out to be a fairly stressful labour - all the prep my wife and I had … Continue reading I’m now a dad!
Testing a React app with Jest (Part 2)
There are a few other useful tricks that will help organise your testing that I feel worth mentioning and not immediately clear. Ideally when you are completing a number of tests on a single function you can group these tests under a single describe() statement. This provides another opportunity the add some description of what … Continue reading Testing a React app with Jest (Part 2)
Testing a React app with Jest (Part 1)
This post is going to provide an introduction to the basics of Jest a javascript testing framework that is included in the Create-React-App, which if you haven't heard of is a great starting point for your new React App. Jest provides all the functionality required to set up unit tests for your javascript application. This … Continue reading Testing a React app with Jest (Part 1)
Automatically Document your Python with Sphinx
As developers, we all know what a pain it is to document our work, but on the flip-side we realise how important and useful good documentation can be when working with someone else's code, or even your own code a few weeks after your wrote it. This becomes and even more important aspect of software … Continue reading Automatically Document your Python with Sphinx
Adding VS Code launch configurations with environment variables
Visual Studio Code is my preferred IDE for python tool development and it provides great out of the box support for debugging tools during development. The VS Code docs provide a solid explanation on how to add the standard launch configurations to your project. Here I will describe the key methods I use to setup … Continue reading Adding VS Code launch configurations with environment variables
Logging in Python 3
Today I spent a lot of time writing up the logging methodology for a Python tool at work. I thought it would be a good idea to write down what I understand and try to explain what wasn't quite as clear to me immediately. To start with we have decided to stick with the python … Continue reading Logging in Python 3
Deploying a static webpage using GitHub pages
I've been working through a number of projects on FreeCodeCamp and on the project guidelines it suggests you can deploy your project whichever way you want. GitHub pages feature provides an extremely easy and most importantly free way to demo your hard work! Secondary to providing some actual live links that can be displayed on … Continue reading Deploying a static webpage using GitHub pages
CheckIn Documents to SharePoint 2010 using just SOAP API!
In my first ever role, SharePoint was fairly widely used and one of the Excel tools I created required interaction with SharePoint specifically to checkIn reports created so that they could be viewed by others internally. At the time I felt pretty proud of myself when I managed to get it working by copying the … Continue reading CheckIn Documents to SharePoint 2010 using just SOAP API!
Playing with data in Pandas
I've had a couple of opportunities recently to perform some basic data manipulation on large datasets that go beyond the capabilities of excel. My work are trying to promote Python usage for all analysts, so when asked to help a colleague summarise a large dataset, as an avid python fan I jumped at the opportunity. … Continue reading Playing with data in Pandas