Menu

#Func

40 posts

Feed·
20 of 40 posts
Loading 100 Photos from PHPicker Without Freezing: Order, Progress and Cancellation in Swift
🖼️
0Read More

Loading 100 Photos from PHPicker Without Freezing: Order, Progress and Cancellation in Swift

DEV Community: swift·Maxwell·5 days ago
#aBOQX0RC
#devtoswift#devto#dev#progress#folder

Someone selects 80 photos in the system picker, taps Add, and your app goes quiet. No spinner, no...

15s
A File Storage Port in Go That Streams: io.Reader In, Disk and S3 Adapters Out
🖼️
0Read More

A File Storage Port in Go That Streams: io.Reader In, Disk and S3 Adapters Out

DEV Community: go·Gabriel Anhaia·9 days ago
#BPobFl45
#devtogo#devto#dev#return#context

A []byte storage port holds the whole upload in memory. Build an io.Reader port in Go with disk, S3 and in-memory adapters, plus one contract test.

15s
Go 1.27 Ships a uuid Package. Dropping google/uuid Takes 4 Steps and One NULL Catch
📰
0Read More

Go 1.27 Ships a uuid Package. Dropping google/uuid Takes 4 Steps and One NULL Catch

DEV Community: go·Gabriel Anhaia·22 days ago
#BGnlV34s
#devtogo#devto#dev#uuid#order

Go 1.27 adds uuid to the standard library. Migrate off google/uuid in 4 steps, sort with NewV7, and handle the NULL scan that now errors.

15s
Unlag Neo: Macbook Neo Cursor lag "fix"
🖼️
229Read More

Unlag Neo: Macbook Neo Cursor lag "fix"

Hacker News·5 months ago
#f6dxnkhS
#gist#selector#return#func#else

Unlag Neo: Macbook Neo Cursor lag "fix". GitHub Gist: instantly share code, notes, and snippets.

15s
Golang Design Patterns: Creational Patterns
🖼️
0Read More

Golang Design Patterns: Creational Patterns

DEV Community: go·Cem AKAN·6 months ago
#AOep0xTM
#dev#return#struct#pizza#func

Hello, Go enthusiasts. Welcome to the first installment of our deep dive into Golang Design...

15s
Golang Design Patterns: Structural Patterns.
🖼️
0Read More

Golang Design Patterns: Structural Patterns.

DEV Community: go·Cem AKAN·6 months ago
#KyZ7XkaN
#dev#func#type#string#struct

Welcome back, Gophers ❤ In the first part of this series, we mastered the art of creation learning...

15s
Golang Design Patterns: Behavioral Patterns
🖼️
0Read More

Golang Design Patterns: Behavioral Patterns

DEV Community: go·Cem AKAN·6 months ago
#znmgOnoa
#dev#func#type#struct#pattern

Welcome back, Gophers ❤. If you’ve followed along from our previous dives, you know that building a...

15s
Concurrency Is Not Parallelism — And Go Knows the Difference
🖼️
0Read More

Concurrency Is Not Parallelism — And Go Knows the Difference

DEV Community·Kuba·6 months ago
#HBZB19kf
#why#go#webdev#goroutines#func

I build backend systems for a living. Most of what I ship runs on NestJS — TypeScript, async/await,...

15s
Go's net/http Server.Shutdown: The Three-Stage Drain You Probably Skip
🖼️
0Read More

Go's net/http Server.Shutdown: The Three-Stage Drain You Probably Skip

DEV Community·Gabriel Anhaia·6 months ago
#2DXPQ7VX
#stage#go#http#shutdown#context

Server.Shutdown is three stages, not one. The WebSocket trap, the background-goroutine trap, and the production drain pattern with errgroup.

15s
Sub-tests Done Right: t.Run, t.Parallel, and the Cleanup-Order Trap
🖼️
0Read More

Sub-tests Done Right: t.Run, t.Parallel, and the Cleanup-Order Trap

DEV Community·Gabriel Anhaia·6 months ago
#zv6eOd0f
#rule#go#testing#concurrency#parallel

t.Run + t.Parallel + t.Cleanup interact in ways most Go devs miss. Three cleanup-order rules and the table-test loop-capture trap.

15s
sync.OnceFunc, OnceValue, OnceValues: When Each Beats sync.Once
🖼️
0Read More

sync.OnceFunc, OnceValue, OnceValues: When Each Beats sync.Once

DEV Community·Gabriel Anhaia·6 months ago
#LC3Cy0Cn
#concurrency#go#stdlib#once#sync

Go 1.21's sync.OnceFunc / OnceValue / OnceValues vs sync.Once. When each is the cleanest, the error-return trap, init patterns.

15s
A Custom http.RoundTripper Is the Cleanest Place for Cross-Cutting HTTP Concerns
🖼️
0Read More

A Custom http.RoundTripper Is the Cleanest Place for Cross-Cutting HTTP Concerns

DEV Community·Gabriel Anhaia·6 months ago
#zWwaVELi
#go#http#architecture#backend#request

http.RoundTripper is the right place for HTTP cross-cutting concerns. Composition pattern, wrap order, body-drain gotchas.

15s