crusty0gphr's Avatar

crusty0gphr

@crusty0gphr.bsky.social

๐Ÿฅฒ โ–ฎโ–ฎโ–ฎโ–ฎโ–ฎโ–ฎโ–ฏโ–ฏโ–ฏ ๐Ÿซ  | Go๐Ÿช | Beer-Driven-Development ๐Ÿบ | Yet Another Golang Developer

21 Followers  |  69 Following  |  44 Posts  |  Joined: 01.06.2024  |  2.2317

Latest posts by crusty0gphr.bsky.social on Bluesky

It gets better when scales

01.11.2025 05:35 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Abstraction is a simplified view of an entity , which omits unimportant details. Abstraction is a part of simplification and a key to modularity.

Go generics are debatable. This was an entirely community-requested feature to remove some boilerplate from runtime code.

31.10.2025 11:21 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Go's json package, conceptually, has better design. It is a product of a design choice that values simplicity and high abstraction.

31.10.2025 07:35 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 1

Rust & Zig (Bun): "We know everything about the data structure. Use that to generate perfect, specialized code possible."

Go: "We have no idea what data structure we'll get at runtime. We must be prepared to handle anything the user throws at us. We'll inspect the structure when we get it."

31.10.2025 07:35 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Well, there are a fundamental difference in concepts how Zig (Bun), Rust and Go work with json. Go's json package is reflection heavy. It is also bound by the GC.

31.10.2025 07:35 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

๐Ÿ’ก The most impacting change in software engineering industries:

๐Ÿ˜Ž Back then: google it, for sure someone else had the same problem.

๐Ÿคช Now: ask GPT, it knows how

29.10.2025 11:00 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

The sign you've hit senior engineer status:

Your answer to โ€œWhat's the best tech stack?" is automatically โ€œIt depends."

#programming #softwareengineering

21.10.2025 17:55 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

How legacy code always seems to end up as one big mess? It's a buildup of all those "temp" expedient shortcuts we take under pressure. Connections in the system get so twisted that no one can reason out the consequences of a change. That's when the fun stops and the headaches begin.

#Programming

20.10.2025 15:30 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

TODO is a ๐—งotally ๐—ขptional, ๐——elay ๐—ขpportunity.

Every single TODO is a precious promise we made to our future selves that they'd be too busy fighting new fires to ever dig up that old code.

Honestly, we're not procrastinating, we're just spelling ๐—ก๐—ฒ๐˜ƒ๐—ฒ๐—ฟ๐——๐—ข with a fewer letters.

#Programming #meme

20.10.2025 05:37 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

Go 1.25 introduces a new method .Go() for the sync.WaitGroup type. With the introduction of the method the process finally has been simplified and made safer. It removes the manual management of the counter. Less code less bugs.

pkg.go.dev/sync@master#...

#go #golang

20.08.2025 14:16 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

grep and awk

01.08.2025 06:37 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

If youโ€™re not sure about switching to Go, consider this ๐Ÿ˜Ž

#go #golang #funny

17.07.2025 17:25 โ€” ๐Ÿ‘ 3    ๐Ÿ” 2    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Anti-pattern: Overwriting return value inside defer Over the years, I have observed numerous examples of code overriding the return value within a defer...

Common anti-pattern thatโ€™s extremely dangerous

dev.to/crusty0gphr/...

#go #golang

12.07.2025 18:49 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

This one actually will print "something went wrong".

The difference is how return value is declared and initialized to its zero value on the stack frame. This affects the defer closure.

This is a very dangerous concept. I lost a week of debugging a problem with a similar implementation.

04.07.2025 14:36 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Your answer is correct btw ๐ŸŽ‰

04.07.2025 14:08 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

Good catch, there was a trap ๐Ÿชค

What about this one? ๐Ÿ˜ˆ

04.07.2025 14:06 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

โœจ Quiz time!

- What will be printed? -
1. something went wrong
2. something else went wrong
3. nil
------------------------

Try your luck, let's start a comment war ๐Ÿ˜ˆ

I plan to write an article about this next week and want to understand how many of you know how this behaves.

#go #golang #quiz

04.07.2025 06:58 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

A nice article about "Finding performance problems by diffing two Go profiles"
#golang

www.dolthub.com/blog/2025-0...

21.06.2025 05:54 โ€” ๐Ÿ‘ 6    ๐Ÿ” 2    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 1
Preview
runtime: green tea garbage collector ยท Issue #73581 ยท golang/go Green Tea ๐Ÿต Garbage Collector Authors: Michael Knyszek, Austin Clements Updated: 2 May 2025 This issue tracks the design and implementation of the Green Tea garbage collector. As of the last update...

๐Ÿต Green Tea is now a garbage collector.

Green Tea is experimental Span-based Scanning approach, instead of processing individual objects, the garbage collector now scans memory in "much larger, contiguous blocks" referred to as spans.

github.com/golang/go/is...

#go #golang #development

20.06.2025 17:38 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

After hearing this a lot: "no debugger = no Zed"โ€”weโ€™re excited to share that Zed's Debugger has finally launched! ๐ŸŽ‰

zed.dev/debugger

18.06.2025 17:56 โ€” ๐Ÿ‘ 210    ๐Ÿ” 37    ๐Ÿ’ฌ 11    ๐Ÿ“Œ 12

This is a thing I've noticed for myself. If I code the solution myself, I'm more aware of what I'm doing. When I generate tests, I feel disconnected from the project. After generating a few lines of code, bug fixing feels a bit quirky, like I've lost the context of what I'm doing.

11.06.2025 19:41 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

Writing the code by hand provides a more complete theory of it than 'tabbing' AI generated results.

What do you think about this? Does all this vibe coding actually make you feel numb?

#ai #vibecode

11.06.2025 19:41 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
Contexts: To Cancel or Not to Cancel In Go, the context package provides a mechanism to propagate cancellation signals, deadlines, and...

Goroutine chain shutdown with contexts on @dev.to

dev.to/crusty0gphr/...

#go #golang #contexts

09.06.2025 07:33 โ€” ๐Ÿ‘ 2    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

On stage: "Imagine that everyone is naked"
On code review: "Imagine the code was vibed"

#ai #Developers #SoftwareDevelopment

05.06.2025 15:12 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
[ On | No ] syntactic support for error handling - The Go Programming Language Go team plans around error handling support

Over the years, there were numerous proposals to add try/cache logic, error handling wrappers to minimize the bloat, but Go's team states that there wonโ€™t be syntactic language changes for error handling.

go.dev/blog/error-s...
#golang #go #SoftwareDevelopment #Programming

05.06.2025 14:20 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Itโ€™s more efficient than using map. You can have iota enums and assign values to them in a slice. Uses smaller memory footprint.

04.06.2025 06:16 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Iโ€™m talking about โ€ฆ operator ๐Ÿ˜‚ I thought your post is about it, then I looked carefully what you mean

03.06.2025 15:28 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

This actually is very useful. In scenarios where you have a static length array with constants, which might change over time by developers. You donโ€™t have to manually count how many additional elements you have added and update the length. Case will be handled by the compiler.

03.06.2025 15:25 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Also, Nothing phone is another glass sandwich which Iโ€™m starting to hate. I want a durable phone made of good quality plastic.

02.06.2025 17:02 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I really like Fedora. I haven't used it for a while, but it's my favorite distro.

Honestly, I don't like the Nothing Phone. I've never used it, but its design makes me want to avoid it.

02.06.2025 17:01 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

@crusty0gphr is following 20 prominent accounts