SilverShark

joined 11 months ago
[–] SilverShark@programming.dev 2 points 20 hours 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 4 points 20 hours 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 21 hours ago* (last edited 21 hours 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 2 points 21 hours ago

Used to be that when you had a problem you would just through a Neural Network at it and called it something like Deep Learning. Not much has changed.

[–] SilverShark@programming.dev 6 points 21 hours 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 21 hours 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 1 points 1 week ago

I've had a look at this page. To the other days as well. I think it's really an awesome tutorial!

I would say the only thing that I feel is missing is a day about the shell. Maybe proposing a shell different then the default bash would be a bit too much, but editing it's .bashrc file would be cool. Especially on the topic of aliases for commands. This could be also an introduction to having such files in the home directory, like .vimrc.

[–] SilverShark@programming.dev 4 points 3 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.

[–] SilverShark@programming.dev 2 points 11 months ago

This seems like a nice feature. Python has sets like this too, and it's super useful.

[–] SilverShark@programming.dev 36 points 11 months ago (1 children)

I used to work with a guy who was a tech lead on a project. He was getting constant pressure that he app he lead simply did not work. The problem all came down to a database connection that was being used in multiple threads.

I told him what the problem was. He said, great let's make a meeting to talk about it. I wasn't allowed to solve it just yet. I made the meeting. Everyone understood. The lead told me to then make a prototype, but still not allowed to just fix it. I made the prototype. The lead said we needed a meeting to talk about it. Still not allowed to just fix it.

Meanwhile we still get pressured to make the damn app work, the lead keeps saying that none ever bothered to read documentation and that we need to sit down and talk about how we are going to to solve.

This went on for several weeks. When I was finally allowed to solve the issue (not by him), I took only one day.

[–] SilverShark@programming.dev 5 points 11 months ago

I've been promoted into management for over one year now, and I've barely programmed on the job. I find it hard to keep up with the details on the application, but I still make an effort to with news, and do some programming for fun on my on.

I think it's important for manager to still be able to make small contributions to the application. The manager isn't going to own a big new feature that takes several sprints to complete, but he can still debug or solve some bugs, or make smaller changes. He should also have an overview of the code's structure, and know about the technologies used to build the project.

[–] SilverShark@programming.dev 4 points 11 months ago (1 children)

Indeed. The name doesn't follow the conventions of other commands in Windows/Powershell at all. And it is inconsistente too. "sudo" stands for "super user do", but in Windows the notion of super user is called administrator. This will likely also cause confusion with people googling for "sudo" and getting to *nix related pages instead.

view more: next ›