Gad's Avatar

Gad

@gadunik.bsky.social

space, politics, books. In whichever order I fancy

149 Followers  |  1,502 Following  |  126 Posts  |  Joined: 15.11.2024  |  2.3631

Latest posts by gadunik.bsky.social on Bluesky

Go fmt never deletes your unused variables. Bs

04.09.2025 07:20 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Pun intended?

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

Si je peux me permettre, parfaitement probable pour le coup. On prend les mรชmes et on recommence. A moins que Bayrou ne refuse, ce dont je doute.

25.08.2025 18:45 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

yup, looks like a bad implementation. Go specs just say "That is, if the surrounding function returns through an explicit return statement, deferred functions are executed after any result parameters are set by that return statement but before the function returns to its caller"

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

Well I must say I never asked myself where/when exactly defer goes into action but in the first example, if defer only assign a value to err ("="), it must be part of the control block "if ..." for otherwise err is not accessible. This second version with its var decl. should behave similarly?

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

I'd say something else went wrong 'cause defer plays last but there is probably a trap :)

04.07.2025 13:48 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

Frontend is a maze and I'm not aware of any shortcuts to the path html->css->js->framework. Jump directly into a framework and you're likely to be completely lost

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

What is it you're missing ? Did you check popular libraries such as testify or mockery?

26.06.2025 21:04 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

"Mรฉlenchon a de trรจs grandes connaissances et c'est bien". Non, dรฉsolรฉ mais non. Grand orateur oui, puits de connaissances, certainement pas

21.06.2025 09:22 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

C'est vrai que รงa donne bien envie !

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

You mean for screenshoting ? I had a conversation with someone on Reddit a few days ago about that (you ? :)). 2 solutions were mentioned : gowitness (which relies on chromedp) and httpx

18.06.2025 21:04 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

did you try reusing image libraries from game engines such as ebiten ?

18.06.2025 09:29 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Uno de los pocos que aรบn no conoce chatgpt porque incluso chatgpt lo habrรญa hecho mejor

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

Bonjour, merci pour la suggestion :) Je ne suis pas fan du terme national capitalisme. Il me semble que cela reviendrait ร  dire que le national socialisme avait quelque chose de socialiste, ce dont je doute fortement !

13.06.2025 11:53 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Hi, always beautiful, thank you. Quick question: are you using Differential equations.jl ?

12.06.2025 06:47 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Ufa !

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

ok. dans le communiquรฉ de presse, ils me donnaient l'impression de n'en avoir qu'un (" The laser rangefinder used to measure the distance to the lunar surface experienced delays in obtaining valid measurement values") mais c'est sans doute la tournure de phrase

06.06.2025 10:30 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

c'est classique de se reposer sur un seul instrument pour une mesure aussi critique ?

06.06.2025 10:22 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

ou la couverture d'un vieux Ron Hubbart tout pourri

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

Ajoutรฉ ร  la liste des vacances, merci :)

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

ร‡a a l'air chouette ce mรฉlange des genres s'il est rรฉussi

02.06.2025 18:08 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
GitHub - omissis/go-jsonschema: A tool to generate Go data types from JSON Schema definitions. A tool to generate Go data types from JSON Schema definitions. - omissis/go-jsonschema

Plenty of packages out there but this one seems active github.com/omissis/go-j...

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

J'y ai eu droit alors qu'ร  mon humble avis, je n'avais rien fait pour le mรฉriter. Mais bon, je m'en f...

19.05.2025 11:55 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

- generatore di QR code
- statistiche (chi - cioe ip, magari geolocalizata, quando, da quale tipologia di device, etc.)

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

questo non vuol dire che il link รจ attivo - si potrebbe attivare dopo il login. Pero se stai faccendo questo progetto per aggiungerlo al tuo "book", nessun recruiter andrร  aldilร  del login

09.05.2025 09:26 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Ok, ti posso dare il mio parere pero non sono uno specialista di UI (ho letto "go",no frontend ;)). Il frontend รจ pulito pero personalmente non sarei andato aldilร  del login. Come utente voglio vedere il risultato prima di tutto. Se guardi tinyurl, vedi che ti mostrano il shortlink prima di tutto.

09.05.2025 09:22 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Se vuoi un feedback, sarร , immagino, sul codice perรฒ non vedo il GitHub o simile

09.05.2025 08:46 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Interesting, thx

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

I understand your frustration. In a way, idiomatic behavior is to be expected with a language that has as little as 25 keywords. Resisting it will only grow your frustration :) If I may, "learning Go, an idiomatic approach" is a great starting point if you have to work in Go.

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

Unless you know defers are run in LIFO order, which comes mentioned in any decent golang book

08.05.2025 09:48 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

@gadunik is following 18 prominent accounts