"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > Stampy

Stampy

Published on 2024-11-08
Browse:117

Stampy

Over the last couple of weeks I’ve been needing to do something very simple, in theory, type out a timestamp.

Yeah, I could just use one of the 1000’s of bash scripts, or write it out in Python in my sleep, but I wanted to use this as a excuse to get back into writing GoLang. I first fell in love with it over a Thanksgiving break. Took me a little over a week (40 hours) to get the hang of it well enough to write a nice little custom SNMP parser for the monitoring app PRTG.

The issue I originally ran into was that the Python single threaded app didn’t spit out the data needed fast enough. Sad to say it was easier for me to learn a while programming language, then, at the time, to learn how to do multi threading in Python?.

Fast forward to 2024, and I was a bit envious of all the neat CLI apps being written in Rust. I have nothing against it personally, I just don’t have the time or the patience to tackle something with that STEEP of a learning curve in my free time. IMHO GoLang is “fast enough” for most practical purposes. I tell everyone I know, if you can only learn one programming language, learn Python. If you can learn two, learn Python AND GoLang. They complement each other well, while being both easy to learn and very capable in the devops space.

Anyway, I hope you like Stampy ?, drop me a comment or a email if you like it?

Stampy

Stampy

Thanks!


Contact Info:

? Mastodon

? Email

? Site RSS

Release Statement This article is reproduced at: https://dev.to/jelloeater/stampy-1nnp?1 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3