In our softwa...
In the Go programming language, goroutines are a powerful feature for managing parallelism and concurrency. A goroutine is a lightweight unit that allows functions or methods to execute asynchronously, enabling the program to perform multiple operations in parallel wi...
In the ever-evolving landscape of programming languages, Go (Golang) continues to stand out as a stalwart, combining efficiency, simplicity, and robust performance.
Venture into this blog as we uncover some of the most exciting additions to Go 1.21 that will elevate our development experience.
Wile E. is a software engineer for ACME Corporation.
Before leaving for the holidays, he released the latest version of ACME's most recent video game: Pangolin, a game in which the PC tries to guess an animal you just thought of.
The source code for the game is here.
After returning from va...
ACME corporation needs to implement a new platform to manage its list of employees. The software will have to:
ACME Corporation is creating its new CRYPTO exchange platform. They receive crypto data in CSV format where the first column is the crypto coin's short name and the second column is the value in US dollars. The separator is ;
.
For their internal needs, it is required that new output is produced wh...
ACME Corporation has commissioned Wile E. to build an Address Book component for their new flagship product.
Wile: "Ok, I will create 2 structs: Contact
and AddressBook
and they will be like this:"
Contact
will be a struct containing the name
, surname
and phone
propertiesAddressB...
Wile Ethelbert from the ACME company needs to compute some statistics about all the values in a list of CSV
files in the ~/csv
folder.
Wile: "That's easy! Let's start looping all the files."
The produced code is:
for f in $(ls ~/csv/*.csv); do
echo filename: $f
done
By executing t...
Everything we will describe here is fictional and has nothing related to real persons or real facts.
Wile Ethelbert is a software engineer who works for the ACME corporation and, while moving on to a new project, comes across a piece of code that has been running smoothly for about 10 months:
fu...
We want to create a simple script with 2 commands:
Anything else has to print out an error message explaining what are the accepted commands.
We end up with the following code:
#!/bin/sh
if [ $1 = "greet-eng" ] ; then...