Spicy Blog
We're the Spicy Sea Shells and this is our blog.
Who are we? We are a collective of software developers, business analysts and quality analysts who met on a training course by ThoughtWorks
Latest
-
Setting up Storybook for React Native
Storybook is a tool for documenting a design system and developing modular apps. It is popular in the web development community and I've used it in all my bigger projects. So when I transitioned from web development to working on a React Native codebase, I set up Storybook too. Here's how I did it: Setting up the Storybook UI 1. Install Storybook using the initializer If you install Storybook using the built in initializer, it will do most of the setup work for you. In the root directory of your project run npx -p @storybook/cli sb init
-
Introduction to Golang [Part I]
Working for one of the clients here at ThoughtWorks, I found myself working a lot on Golang. Go has been a great language to work on but it never felt that way the first time I started on it. To begin with, it has a strange syntax, as opposed to most other strongly typed languages. The Golang tour is a great place to start with. Over the next few articles, I will walk you through the basic Setup and CRUD operations in Golang using PostgreSQL database. You can find the repository here. Server setup As part of this project, I will be using Mux as a request router and dispatcher for matching incoming requests to their respective handler. Let's start with /ping, the basic health-check route.
-
How to add SSR to a CRA
Oh God, I feel so millennial with this title, oh wait This article is heavily inspired by this one. The idea behind creating a new tutorial is to explain step by step, error by error. If you wanna a more quick/intermediate tutorial, I highly recommend going directly here. Alright then. Firstly, what is SSR and why would someone want to add that to a Create React App. SSR: Server side rendering is a good way to delivery HTML faster to ur clients and also have good SEO. CRA: Create react app is a tool to create react apps without wasting time configuring stuff. npx create-react-app my-app
-
Mocking stdin, stderr and stdout for python unittest
Working on my latest project, todoster, forced me to learn all about input/output mocking using python's built-in unittest library. Mocking Output to stdout or stderr The way I've been using the mock output or error stream is by getting its contents as a string. For this, there is a very simple method: mock_err.getValue() mock_out.getValue()