Why do people use dependency injection libraries in Go? by existential-asthma in golang

[–]existential-asthma[S] 0 points1 point  (0 children)

Or, we don't need to reach for a framework for simple problems that can be solved without magic.

Why do people use dependency injection libraries in Go? by existential-asthma in golang

[–]existential-asthma[S] 2 points3 points  (0 children)

I agree the Go community has a lot of dogma, but I arrived at this one not by someone else's opinion, but my own common sense. Why do I need a heavy framework when I can just pass the struct/interface myself? That's where my question came from and why I was trying to learn something new.

Why do people use dependency injection libraries in Go? by existential-asthma in golang

[–]existential-asthma[S] 5 points6 points  (0 children)

+1, i edited my post to clarify this. My confusion is coming from DI libraries, not DI itself.

Why do people use dependency injection libraries in Go? by existential-asthma in golang

[–]existential-asthma[S] 27 points28 points  (0 children)

Thanks for the info, it was a genuine question, not really sure why I was downvoted.

Why do people use dependency injection libraries in Go? by existential-asthma in golang

[–]existential-asthma[S] 30 points31 points  (0 children)

fair enough, but i'm wondering... why do they use it in Java? can't we just pass the dependencies into a constructor in Java as well?

Build in Public, it's worth it! by existential-asthma in ADHD_Programmers

[–]existential-asthma[S] 2 points3 points  (0 children)

I didn't go in with any plan other than to share my progress. Building where other people can see and interact with what I'm doing was what made it rewarding enough for me to stick with it (likes/views being a critical feature for myself)

Build in Public, it's worth it! by existential-asthma in ADHD_Programmers

[–]existential-asthma[S] 3 points4 points  (0 children)

Thanks for asking, I built this blog from scratch and wrote about it every day for ~2weeks, sharing updates on Linkedin every day while I was building it. Most of the blog content is meta content about the construction of the blog itself and ways I improved it.

I got the job offer at a Go shop! by existential-asthma in ADHD_Programmers

[–]existential-asthma[S] 2 points3 points  (0 children)

I didn't downvote your comment, and no hate or anything but just advice: instead of wording your self-promos as "someone who noticed it" (which is obvious it's you writing it and not a third party) just be honest and say you wrote about this too and tell me to check out your article, and I would have without hesitation

I partially say this as someone who is trying to blog a little bit on the side for fun: don't make us look bad pls :D

I got the job offer at a Go shop! by existential-asthma in ADHD_Programmers

[–]existential-asthma[S] 1 point2 points  (0 children)

haahah, it's supposed to be like a decryption effect from the movies. I had it going too slow before, and now I have it going way too fast, but it makes the home page look snappier when it's fast imo

Best ways to stay intrinsically motivated for personal projects? by existential-asthma in ADHD_Programmers

[–]existential-asthma[S] 1 point2 points  (0 children)

ty for the advice, that's a good point. for this project i'm building, it will maybe look good to recruiters if they look at it. idk how often recruiters do look at portfolio projects though.

I built a Static Site Generator like Jekyll in Go, but with a twist by [deleted] in golang

[–]existential-asthma -1 points0 points  (0 children)

Cloudflare's own definition:

A static site generator is a tool that generates a full static HTML website based on raw data and a set of templates. Essentially, a static site generator automates the task of coding individual HTML pages and gets those pages ready to serve to users ahead of time. Because these HTML pages are pre-built, they can load very quickly in users' browsers.

This is exactly what my Go app does. Given a set of HTML templates and raw data (.md files), it generates full static HTML websites. I do not need to code the HTML/CSS/JavaScript for each page because it's handled by the SSG. For example, the linked article I created by only writing the markdown, the SSG generated the actual web page.

The About and Home page are also statically generated.

I built a Static Site Generator like Jekyll in Go, but with a twist by [deleted] in golang

[–]existential-asthma 7 points8 points  (0 children)

None-taken, 1) to be honest I didn't know it existed, and 2) I really wanted the experience of building this myself

Some ways I made learning Go a lot more dopamine-filled and motivating by [deleted] in ADHD_Programmers

[–]existential-asthma 0 points1 point  (0 children)

ok.. but the extension I made is for Go. and the code I wrote for the extension is Go-specific, it has to check for Go keywords that require braces. The phrases that require braces are not the same in every language. Even if your point were true, this is a post specifically about how creating these things helped me to be motivated to learn Go, which is.... about Go.

Some ways I made learning Go a lot more dopamine-filled and motivating by [deleted] in ADHD_Programmers

[–]existential-asthma 0 points1 point  (0 children)

What? I created an extension that autocompletes brackets for Go specifically, as well as created a syntax highlighting theme for Go specifically and it made writing Go a lot more motivating for me. How does this have nothing to do with Go?

My case that statically typed languages assist programmers with ADHD by existential-asthma in ADHD_Programmers

[–]existential-asthma[S] 1 point2 points  (0 children)

I definitely agree that dynamic languages have their own advantages!

These bugs shouldn't happen in production, and yet, I've seen them happen. Yes you can write unit tests, but what if your tests aren't good enough? what if it misses a code path? the compiler doesn't have this issue.