For my ImgReview app I wanted to use custom shapes with a hand-drawn, sketchy, appearance.
I started this project some time ago, just to test an idea and now I want to share it with everyone :)
Theme can be stored (or generated) in a js file. For instance, we can keep all of them, in ./themes
folder and load, while bootstrapping the application.
IMO styled-components library has only one problematic warning. It's "Warning: Received true
for non-boolean attribute". When I encountered it for the first time it took me some time to figure out what was the problem.
The post title "Test whether variable is a number" looks like a trivial question, but let's dig deeper and try to cover all edge cases. I will split it into two problems and will cover them separately.
The basic example from the official documentation is very informative (this is not a sarcasm). I just want to add my 2 cents in order to make it more es6 like, then it is now. Plus I want one function of initialization that will take care of everything. I want to be able to run it from anywhere in the code and be sure that app will be authorized.
Once upon a time I needed to create UUIDs, and I needed to do it manually. On the internet you can find a bunch of solutions, and you don't really need to invent anything. The tech is relatively easy and there is no room for engineering innovation, so I decided to dig into user experience.
It's not that hard to use graphql with go, but it could take some effort to find all the gotchas. Therefore let's save some time and talk about some configuration of graphql in Golang.
In this tutorial I'll use graphql-go/graphql library, version v0.7.9
More than once I argued with my fellow developers on whether we should hide or disable some feature or functionality. I decided to write down my opinion to be sure the internet knows.