30
submitted 3 months ago by melroy@kbin.melroy.org to c/til@kbin.melroy.org

I am able to use different programming languages. I know most of the well-known languages ​​without any problems: C, C++, Java, Python, JavaScript, Typescript, PHP...

However, I wanted to expand my horizon. Zig didn't do much for me neither did Rust, but now that I've written some Golang. I admit, I'm intrigued by the language.

I love the fact it's compiled to native machine language. There is still one caveat: despite Go being a GC language, you often still need to manage your memory. Sound strange right? But I needed to use io.Copy instead of io.ReadAll to avoid memory issues. But also you need to explicitly call defer res.Body.Close() to avoid Go not cleaning-up the HTTP response.. Ow well, so you learn it the hard way. Overall, I'm still very optimistic with Go. And looking forward to use it more often in some of my open-source projects.

See my first project in Go: https://gitlab.melroy.org/melroy/gitlab-artifact-deployer-go. Which I wrote in 3 days.

Did you try Go? What are your thoughts?

you are viewing a single comment's thread
view the rest of the comments
[-] melroy@kbin.melroy.org 1 points 3 months ago
[-] BentiGorlich@gehirneimer.de 2 points 3 months ago

I got a notification as well. On my PC and my Phone. I missed this so much :D

[-] melroy@kbin.melroy.org 1 points 3 months ago

Hmm Not on the phone. I believe I need to keep the site open or the app in order to get the notification in my case.

[-] BentiGorlich@gehirneimer.de 1 points 3 months ago

Which browser are you using on your phone?

[-] melroy@kbin.melroy.org 1 points 3 months ago

Brave... (I was using Opera /Opera mini, but that drove me crazy recently)

[-] BentiGorlich@gehirneimer.de 1 points 3 months ago

Brave? O.o "Please, do not use Brave" - https://lemmy.dbzer0.com/post/5933715

But anyways, it's Chromium based and I didn't try out chromium based android browsers, so maybe that is a caveat. Do you have the PWA installed or just the regular site open?

But now that I think of it, it should honestly still work. It doesn't communicate through our site, but through their push service, so it would be odd if it would only work if the site is open imo

[-] melroy@kbin.melroy.org 1 points 3 months ago

Yea I know.. I might move to floorp as well or something else Firefox based.

[-] melroy@kbin.melroy.org 1 points 3 months ago

Currently opened the site on regular browser mode. No pwa atm.

[-] BentiGorlich@gehirneimer.de 2 points 3 months ago

Maybe that is the problem. Didn't test it without the PWA...

[-] melroy@kbin.melroy.org 1 points 3 months ago

Uhm.. I can't enable this slider.

this post was submitted on 23 Jul 2024
30 points (100.0% liked)

Today I Learned

1 readers
1 users here now

Today I Learned (TIL). You learn something new every day; what did you learn today?

founded 1 year ago
MODERATORS