NewsBot

NewsBot

Go: When To Use Generics

A new Go blog post/announcement has been posted!

Get the full details here: When To Use Generics - The Go Programming Language

Most Liked

OvermindDL1

OvermindDL1

Let’s start with a general guideline for programming Go: write Go programs by writing code, not by defining types.

This is utterly horrifying and is one of the worst things about the whole go model.

Programs are something that translate data from one format to another, generally by a whole series of transformations internally. Not thinking about your data model from the beginning is horrifying. Types should come first, so you know that it is in a good format at every step. Then and only then do you write transformations (functions) between them.

Where Next?

Popular Backend topics Top

First poster: bot
Kotlin v1.4.20-M2 has been released. Link: Release Kotlin 1.4.20-M2 · JetBrains/kotlin · GitHub
New
First poster: bot
Cucumber cucumber-json-formatter/v7.0.0 has been released. Link: Release cucumber-json-formatter/v7.0.0 · cucumber/common · GitHub
New
First poster: bot
A new Crystal blog post/announcement has been posted! Get the full details here: https://crystal-lang.org/2021/04/22/crystal-conference...
New
NewsBot
Gleam v0.16.0 and v0.16.0-rc4 has been released. Link: Release v0.16.0 · gleam-lang/gleam · GitHub Link: Release v0.16.0-rc4 · gleam-...
New
First poster: bot
Node.js v14.18.2 has been released. Link: Release 2021-11-30, Version 14.18.2 'Fermium' (LTS), @richardlau · nodejs/node · GitHub
New
First poster: bot
Ruby on Rails v7.0.0.rc1 has been released. Link: Release 7.0.0.rc1 · rails/rails · GitHub
New
First poster: bot
A new Go blog post/announcement has been posted! Get the full details here: Go 1.18 Beta 1 is available, with generics - The Go Program...
New
NewsBot
Julia v1.10.0-alpha1 has been released. Link: Release v1.10.0-alpha1 · JuliaLang/julia · GitHub
New
NewsBot
A new Kotlin blog post/announcement has been posted! Get the full details here: What’s Next for Kotlin Multiplatform and Compose Multip...
New
NewsBot
Node.js v22.19.0 has been released. Link: Release 2025-08-28, Version 22.19.0 'Jod' (LTS), @aduh95 · nodejs/node · GitHub
New

Other popular topics Top

siddhant3030
I’m thinking of buying a monitor that I can rotate to use as a vertical monitor? Also, I want to know if someone is using it for program...
New
AstonJ
I’ve been hearing quite a lot of comments relating to the sound of a keyboard, with one of the most desirable of these called ‘thock’, he...
New
AstonJ
This looks like a stunning keycap set :orange_heart: A LEGENDARY KEYBOARD LIVES ON When you bought an Apple Macintosh computer in the e...
New
PragmaticBookshelf
Rails 7 completely redefines what it means to produce fantastic user experiences and provides a way to achieve all the benefits of single...
New
AstonJ
If you get Can't find emacs in your PATH when trying to install Doom Emacs on your Mac you… just… need to install Emacs first! :lol: bre...
New
First poster: joeb
The File System Access API with Origin Private File System. WebKit supports new API that makes it possible for web apps to create, open,...
New
New
husaindevelop
Inside our android webview app, we are trying to paste the copied content from another app eg (notes) using navigator.clipboard.readtext ...
New
AstonJ
This is a very quick guide, you just need to: Download LM Studio: https://lmstudio.ai/ Click on search Type DeepSeek, then select the o...
New
mindriot
Ok, well here are some thoughts and opinions on some of the ergonomic keyboards I have, I guess like mini review of each that I use enoug...
New