Go: functions, methods, pointers and interfaces
This article was created especially for my son, who had hard times understanding using pointers and interfaces. To make the explanation complete, I added (with his help) two things: functions and methods. I see those two as a complement to pointers and/or interfaces. Or vice versa. This explanation is divided into six parts, each part adding onto previous part. I tried to make it all as simple as possible. The basics π We will start with something very simple.
Create and Run Go service in Docker
Create Go service the easy way, For Windows, Linux, MacOS and Docker. 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. By using this approach you will know, how to make your software executable installable with those system tools and make it run as a service, when system starts.
7 Reasons You Should Try Go
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. 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.
How to Take Screenshot on Windows ?
use the dedicated button on keyboard π There is a PrtSc button, or Print Screen, or Prt Scr, or similar name. Press this button, and open Paint program and press ctrl+v to paste the screenshot image. capture the active window π To take a screenshot of the currently active window, just press Alt + PrtScn then paste the screenshot image in Paint program or Photoshop or any other image editing / creating program.
Recommended Linux Distributions in Brief
I tried too many Linux distributions such as Ubuntu, Elementary OS, Linux Mint, Manjaro, Clear Linux OS, Endeavor OS, Fedora, Debian, Deepin, Peppermint os, Pop! OS, Parrot OS, Kali linux, Void Linux, Gentoo, MX Linux, Zorin OS and CentOS. I was a distrohopper! After all those experiments and daily usage of different distros (short for distributions) with different desktop environments and package managers. I come to a point of view.
The Chosen Size Is Not Valid for the Chosen File System 69850
Restore a bootable USB flash drive to normal on MacOS π If you are trying to format a USB disk on Mac OS Mojave or newer and get the below error. The chosen size is not valid for the chosen file system. Go to Terminal and first check the USB device path $ diskutil list /dev/disk0 (internal): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme 500.3 GB disk0 1: EFI EFI 314.
Code Optimization Tips With Examples
In this post, I will show you how to optimize your code with examples. Optimization for speed, readability and scalability. Almost all code snippets will be written in Go programming languages, but still .. all those tips are applicable in other programming languages like PHP, Javascript, Java, Kotlin, .. etc. Calculate it once π calculating things again and again is horrible. It consumes CPU time more than actually needed. So we should stop re-calculating things.
Cutefish OS in Brief
Cutefish is an Arch-based Linux distribution which focuses on UI / UX. It is almost a Mac OS-clone (a.k.a Mac OS inspired). The desktop has the top bar with a global menu, and the bottom dock. It is Manjaro cutefish. If you want to check this Linux distribution, here is their official website .
Elementary OS in Brief
ElementaryOS is a modern looking Linux distro. It is built on Ubuntu, a.k.a βbased on Ubuntuβ. Elementary focus on user experience and developers community. Elementary OS is focusing on the areas of problems which prevent Linux from being the common desktop operating system. Elementary tries to fix this bottleneck. Letβs discuss those things / ideas. Pay-what-you-want AppCenter π Creating opensouce applications for Linux is not profitable at all. Thatβs a problem.
Ubuntu in Brief
Ubuntu is the defacto standard of Linux distributions. I love Ubuntu with GNOME desktop environment. Ubuntu Look π Ubuntu has a unique look. I can differentiate it by the brownish color of desktop UI, and the left long panel. I really think that putting the apps panel on the left is the best position as we need the vertical space more than the horizontal space. Stable & Reliable π Ubuntu is based on Debian.