Go 1.18 is here with the addition of the generics. This is like the biggest change to the language since version 1 and consequently it has many impacts to the tooling around the code. One of these impacts is the godoc command deprecation replaced by the command pkgsite. When you create your own pkg, and you want to test your godoc locally you have first to build pkgsite git clone https://go.
In all the frontend projects I had been involved with, we ended up to need to add HTML elements dynamically to a web page. Functions to create HTML elements There are many implementations around the web of this small feature, but I find this one below to be the clearer and easiest version to use. This version has also the advantage to be vanilla js. /** * creates a HTML element ready to be append.
When I started C language years ago, I became a Vim editor developer. Since then, for all my backend developments, I have been faithful to Vim. Few weeks ago, when I started to code in Elixir, I started as well to use IntelliJ IDEA with the Elixir plugin and obviously the Vim plugin. On OSX, when you use the combination IntelliJ and IdeaVim it can happen that the keys you hold does not repeat…
Ruby, PHP and a lot other languages rely on system libraries to provide some features in their own ecosystems. It times to times leads to this kind of error Library not loaded: /usr/local/lib/libjpeg.8.dylib A large majority of developers on OSX use Brew package manager to install the libraries they need. On the above library loading error, the immediate reaction is so to brew install it brew…
Note: If you have as well some tricks to cover you when you use Docker, I’ll be pleased to add them As a software developer, I work with Docker quite rarely. I create at the beginning of a project: the scripts to build the needed custom docker images the scripts to launch quickly the docker containers and that’s almost all. If you’re like me, you probably forget quickly the…
Note: Unless you’re a developer or you want to learn how to do sites, my first advice is to avoid to build your own static site. You can get a similar service bundled with other advantages on Medium Everything starts with the idea to build a website to host my work. On the road, it became obvious that the first article has to be precisely on how to do it.