For Windows, Linux, MacOS and Docker

Original Gopher image created by Renee French, used Gopher image created by Maria Letta
  1. part: you are reading it right now
  2. part: improving the service
  3. part: upgrade for web
  4. part: adding SSE
  5. part: simple javascript frontend functionality
  6. part: frontend — backend communication
  7. part: server-side logging
  8. part: run it all in docker
  9. part: adding database container
  10. part: database — service communication

Why would you want to create a service?

With Go programming language you can use the final executable the same way on Windows, Linux and MacOS (by generating proper executable). But you cannot install this executable as a service using standard system tools like sc.exe, systemd or launchd. …


Using Go as a programming language

Photo by M. B. M. on Unsplash

If you are trading Forex (or trading something at all), chances are, you heard about something named Monte Carlo Simulation.

In short, Monte Carlo Simulation is a program, that gives you some pseudorandom output (amount of pips, in this case) for given input (number of winning/losing trades, number of pips, …) .

But… you know…. an example would be better.

Example

Let’s say you paper traded 100 trades. You did it really well and you were absolutely honest with yourself.

You know, for sure, that if you traded those 100 trades in reality, the result will be exactly, what your paper…


Including network setup software and remote control

This article, this tutorial, was written because of one simple reason: I wasn’t able to find something similar anywhere else.

I wanted a complete set of instructions, how to change a newly unboxed Raspberry Pi into a device, that can be used in background for some other device with touch screen.

I wanted the result to look like what you can see below (Czech version). A device with a touch display and Raspberry Pi inside. I wanted a smooth boot into some “setup” screen where I can change network and set up a server address, that will be loaded automatically…


Clear your thoughts by writing them down

Image of mural and man holding balloons in front of it
Image of mural and man holding balloons in front of it
Photo by Lucas Lenzi on Unsplash

Do you doodle? Do you ever doodle?

Do you doodle while programming?

What do I mean by this term, doodling in programming?

Doodling in General

A doodle is, according to Wikipedia, a drawing you are making while your mind is otherwise occupied.

Most of us experienced this while attending school. Important things were explained, but you were drawing something in your notebook.

If you are older and not attending school, but a company … chances are, you have meetings there. Have you noticed that there is always someone doodling? Is it you?

Congratulations. You didn’t lose what you had as a child —…


From version 1.7.6 to 1.16rc1

Original Gopher image created by Renee French, used Gopher image created by Maria Letta

Go programming language originates to 2007, with its public appearance in 2009. As any other programming language, it is growing and changing.

In our company, we use Go a lot. Our system is a combination of different micro services and is deployed over internet. Every update is done over internet also, testing is done over internet, pair development is done over internet, … everything is done over internet.

And that is the reason we like to have our binaries as small as possible. From one point of view, we are not wasting network resources. …


With Go backend, sending JSON data

D3js is a Javascript library for doing graphical magic on data. In the year 2020, it was upgraded to version 6.

And this brings us a little problem. Official examples gallery doesn’t use Javascript, instead it uses special Observable Notebook language. It is not easy, nowadays, to find an up-to-date version 6 examples of D3js charts.

This was the reason for this article. I was not able to find out working example of version 6 timeline chart, so I decided to make one.

Please note, that this work stands on shoulders of other people.

In this article, we will use…


With Go backend, sending JSON data

D3js is a Javascript library for doing graphical magic on data. In the year 2020, it was upgraded to version 6.

And this brings us a little problem. Official examples gallery doesn’t use Javascript, instead it uses special Observable Notebook language. It is not easy, nowadays, to find an up-to-date version 6 examples of D3js charts.

This was the reason for this article. I was not able to find out working example of version 6 timeline chart, so I decided to make one.

Please note, that this work stands on shoulders of other people.

In this article, we will use…


Shortest advice ever: start with The End.

Photo by Alex on Unsplash

First of all, we have to define success, right?

My definition of success is achieving. Achieving things, money, relationships, business, new skills, experiences, … Simply achieving.

And there is only one thing, that will make you successful, in the beginning.
You have to start with The End.

You need to know, what you want to achieve. You have to start with the final goal, in your head. You have to think about The End.
You have to start with The End.

Do you want to have a successful business?
You have to first define, what it means to you, to have…


Reasons, we stopped using Java and C#

Photo by Marcus Dall Col on Unsplash

This article is written with 20+ years spent in development, 10+years actively writing in Java, 7+ years actively writing in C# and 3+ years actively writing in Go.

This article is a personal opinion.

This article advocates you, to try and use Go language.

1. Speed of development

When I am about to write a piece of software nowadays (and I can surely write it in all three languages), I will always choose Go.

I will write the final software in less time, using Go. The code is more readable, less abstract, more “to the point”.

When you are writing Go code, you are…


Simple to implement strategies

Photo by Austin Distel on Unsplash

Ten years ago, there were two of us. With experiences from previous 10 years, with passion and energy, to change the world.

We decided to create a manufacturing software for small and middle factories. Complete system, from scratch, that will help those factories produce better and faster.

At the end, we achieved our goal, but the work could have been smoother. The goal could have been achieved faster and there could been more smiles over the time.

If we knew what to do differently.

If you are standing at the beginning of your project, with passion and endless energy, start…

Petr Jahoda

Love programming, math, running and piano

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store