Elektrine lite

← Feed

Christoph (Applied Go)

appliedgo@c.im

<p>Christoph Berger (the human behind Applied Go).
<a href="https://c.im/tags/golang" class="mention hashtag" rel="tag">#<span>golang</span></a> course creator, technical writer.
</p><p>See also <span class="h-card" translate="no"><a href="https://mastodon.social/@christophberger" class="u-url mention">@<span>christophberger</span></a></span></p>

Posts

  • View post

    @carlana Ooh that&amp;#39;s a truly pragmatic approach!

  • View post

    The Applied Go Weekly Newsletter is in winter break mode (2/4), with pocket-sized issues containing best-of articles, Go tips, quotes, and something completely unrelated to Go. https://news.mailings.appliedgo.net/g8x1j0n0x1/?utm_source=appliedgo-mastodon #golang

  • View post

    @winni @serpentroots Meta? Noooo, there you are mistaken! 😄

  • View post

    Happy to be in the fediverse. https://www.theverge.com/23990974/social-media-2023-fediverse-mastodon-threads-activitypub

  • View post

    OMG, I got a cute Applied Go gopher for Christmas! 🐹 Our &amp;quot;little&amp;quot; son made it for me. (&amp;quot;Little&amp;quot; is not quite accurate. He is 21 yo and the tallest in the house. The gopher, OTOH, is only one inch tall.) #golang

  • View post

    The Applied Go Weekly Newsletter is in winter break mode(3/4), with pocket-sized issues containing best-of articles, Go tips, quotes, and something completely unrelated to Go. https://news.mailings.appliedgo.net/q9h9w7i5h1/?utm_source=appliedgo-mastodon #golang

  • View post

    @remyzandwijk Thank you, Remy! Happy to see that my course is recommended to others. I must have made something right... @datalemming If you have any questions about the course, don&amp;#39;t hesitate to ping me.

  • View post

    Exposing SQL via API? A strange idea... Think twice. Some scenarios require more than just a simple CRUD API but are not complicated enough to require the full power of GraphQL. Why shouldn&amp;#39;t the API clients be able to express their query needs in SQL? Well, security for one. SQL injections, anyone? But we don&amp;#39;t need full SQL. The WHERE clause is sufficient. And of the WHERE clause, only the parts that the current query absolutely needs. Like: &amp;quot;weight between 10 an...

  • View post

    The Applied Go Weekly Newsletter is in winter break mode (4/4), with pocket-sized issues containing best-of articles, Go tips, quotes, and something completely unrelated to Go. https://news.mailings.appliedgo.net/r6r0a4a5s3/?utm_source=appliedgo-mastodon #golang

  • View post

    @Jhelberg Thanks for the info, you made me curious about implementing row-level security. I&amp;#39;ll do my research...

  • View post

    AI is the end of programming language flame wars AI is getting better and better at generating code. Developer-facing aspects of a programming languages become increasingly unimportant. Fancy language constructs invented for “clever” coding will become obsolete. (“Clever coding” is mostly a euphemism for “writing incomprehensible code”, hence not much will be lost.) When AI generates code, the importance of language features shifts from human-facing towards machine-facing features. On the...

  • View post

    @giuliohome I am not sure I understand. The quote is about the trivial cases that the proposed solution is NOT made for. Valentin argues that once the queries become more complicated, the HTTP/REST approach gets overly complex. This problem is independent of the chosen backend language.

  • View post

    @giuliohome That&amp;#39;s true, every language comes with specific paradigms and idioms. As Ludwig Wittgenstein said, &amp;quot;The limits of my language are the limits of my world.&amp;quot; (Having lived in a pre-IT era, he referred to natural language, but I think this applies to programming languages as well.)

  • View post

    @giuliohome Honestly, that was the reason I re-implemented the whole thing in Go. And it turned out that the Go code isn&amp;#39;t any more complicated or difficult to comprehend than the Scala code.

  • View post

    @texttheater If gofmt is still too relaxed for your taste, try gofumpt — https://pkg.go.dev/mvdan.cc/gofumpt Curious: Could you elaborate on the &amp;quot;putting newlines in pretty random places&amp;quot; part?

  • View post

    @texttheater Looks like a bug. https://github.com/golang/go/issues/18677

  • View post

    TIL: The Go compiler is fast but sometimes could be faster. (1) If the Go compiler is not as crazy fast as usual, check the underlying SCM for suspicious activity, such as an `hg stat` call. (At least if your SCM is Mercury. I don&amp;#39;t know if Go calls Git in a similar way.) (2) 300ms compile time for a Go &amp;quot;script&amp;quot; is not fast enough for some people (or situations). (3) Yaegi (a Go interpreter and REPL) is faster than the standard Go compiler for &amp;quot;bringing firs...

  • View post

    @beausimensen @dantleech DI in Go is sometimes as simple as creating an interface in the higher layer, a type implementing this interface in a lower layer, and some wiring in package main. https://appliedgo.net/di Some folks prefer Wire - https://pkg.go.dev/github.com/google/wire

  • View post

    When Rob Pike talks about things done wrong in Go, it&amp;#39;s not the usual random-dude-on-the-internet&amp;#39;s language bashing. Rather, it&amp;#39;s an invaluable list of lessons learned in designing a programming language and its ecosystem. Also in the latest Applied Go Weekly Newsletter issue: - Go does not have undefined variables. JSON has undefined values and null values. How to handle them in Go - Go 1.22 release notes, with editable and runnable code - The DDD Hamburger, an archit...