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. isNumber First I’ll start with the simple problem. You have variable that may or may not be a number. Write a function that will return if it is in fact ‘number’ or otherwise. Here I only need to check the type of given variable. In this situation I have two edge cases. The first one is…
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. First I need to load the script. I want to do it dynamically from the code and not to attach it to the index.html Also this method could be called…
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. I discovered that if you’re generating UUIDs manually, then obviously you’re going to copy-paste them by hand. So we can shorten the process by adding the button, which will do it for the user. Which also…
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.
An illustrated guide for programmers and other curious people. The book about algorithms. Not an easy topic, and not very useful in most workplaces. Ok, depends on what you’re required to do. There are definitely job descriptions that require work with algorithms. But is it always the case? Certainly not.
Sorry, but documentation of auth0 is not the best source of knowledge on how to use auth0. Not something that you expect to happen, right? Official documentation is okay if you need to understand only a basic usage, but if you need more than that, you pretty much on your own. At least it’s my experience with this service. Especially for not so popular topic of “renewing auth0 token for SPA (Single Page Application)“. So let’s talk about exactly that.
Ok, first of all I’m assuming you know what Redux is and already used it in one of your projects. Now, after we established that, let’s move on. I always prefer to be clear in my assumptions and intentions. It makes life much easier :)
Yeah, I know, another library. But that’s okay, we’ll go through all of them and we’ll find the best one for each project. Or at least this is something that we should do as responsible developers.
I’m using a lot of git features via CLI. Mainly it’s rebasing, committing and pushing new changes to the repository. I know that most editors have UI solutions for these commands, but I never liked it and honestly don’t see any reason to change my habits. Stubborn you say? Probably. Don’t know.