SilverShark

joined 11 months ago
[–] SilverShark@programming.dev 2 points 3 days ago (1 children)

Yes, true. Having it built in in the compilation would be nice. Or at least having errcheck as a tool which already comes packed with Go.

Go has changed over time to include more things like this. Maybe one day this will be addressed.

[–] SilverShark@programming.dev 5 points 3 days ago

Taking a short break to do something else for a few minutes is a wonderful way to stay productive and not stuck on some issue.

I remember specifically one day in university times I was stuck for almost 4 hours in a problem. I started working shortly after 8:00 and I went for lunch with some buddies, came back, and instantly knew the solution. This is how I learned how to have lunch at 9:00

[–] SilverShark@programming.dev 3 points 3 days ago* (last edited 3 days ago) (1 children)

Terminal games can be so much fun. I once played CurseOfWar quite a lot. Especially when waiting for compilations or big unit test executions.

[–] SilverShark@programming.dev 7 points 3 days ago (4 children)

The stdlib I actually find quite complete. Especially for http projects. You really don't need third party libs for that for example.

The errors were super strange to me at the start, but I've come to really like it over exceptions. It is similar to old error codes, but I feel that this makes one always have to be mindful of error handling and the non happy path (thinking of large Python projects where no one cares about exceptions).

A lot of people tend to compare Go and Rust, but I feel that the languages are just too different. Rust is good for a variety of things which don't overlap with the things Go is good for.

[–] SilverShark@programming.dev 8 points 3 days ago (1 children)

I don't disagree with this, and honestly I would probably support just using bash like you said if I was in a team where this was suggested.

I think no matter how simple a task is there are always a few things people will eventually want to do with it:

  • Reproduce it locally
  • Run unit tests, integration tests, smoke tests, whatever tests
  • Expand it to do more complex things or make it more dynamic
  • Monitor it in tools like Datadog

If you have a whole project already written in Python, Go, Rust, Java, etc, then just writing more code in this project might be simpler, because all the tooling and methodology is already integrated. A script might not be so present for many developers who focus more on the code base, and as such out of sight out of mind sets in, and no one even knows about the script.

There is also the consideration that many people simply dislike bash since it's an odd language and many feel it's difficult to do simple things with it.

due to these reasons, although I would agree with making the script, I would also be inclined to have the script temporarily while another solution is being implemented.

[–] SilverShark@programming.dev 4 points 4 weeks ago

Using git grep os one of the most practical things I do. Whether to look for definitions, usages, or getting a list or overview of endpoints on an api, I use it for all. It's ubiquitous, works everywhere.

Yes, other tools exist that give you this information in a clear way. But the practicality of grep is amazing.