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
A new PostgreSQL blog post/announcement has been posted! Get the full details here: PostgreSQL: Generate realistic test Data for Postgr...
New
First poster: bot
Node.js v18.16.0 has been released. Link: Release 2023-04-12, Version 18.16.0 'Hydrogen' (LTS), @danielleadams · nodejs/node · GitHub
New
NewsBot
A new Python blog post/announcement has been posted! Get the full details here: Python Insider: Python 3.14.0a7, 3.13.3, 3.12.10, 3.11....
New
NewsBot
A new Rust blog post/announcement has been posted! Get the full details here: Announcing Rust 1.88.0 | Rust Blog
New
NewsBot
A new Ruby blog post/announcement has been posted! Get the full details here: Ruby 3.4.5 Released
New
NewsBot
A new PostgreSQL blog post/announcement has been posted! Get the full details here: PostgreSQL: PostgreSQL 18 Beta 2 Released!
New
NewsBot
Node.js v24.5.0 and v22.18.0 has been released. Link: Release 2025-07-31, Version 24.5.0 (Current), @aduh95 · nodejs/node · GitHub Li...
New
NewsBot
Node.js v24.7.0 has been released. Link: Release 2025-08-27, Version 24.7.0 (Current), @targos · nodejs/node · GitHub
New
NewsBot
Node.js v24.8.0 has been released. Link: Release 2025-09-10, Version 24.8.0 (Current), @targos · nodejs/node · GitHub
New
NewsBot
A new Rust blog post/announcement has been posted! Get the full details here: Announcing Rust 1.91.0 | Rust Blog
New

Other popular topics Top

PragmaticBookshelf
Free and open source software is the default choice for the technologies that run our world, and it’s built and maintained by people like...
New
dasdom
No chair. I have a standing desk. This post was split into a dedicated thread from our thread about chairs :slight_smile:
New
rustkas
Intensively researching Erlang books and additional resources on it, I have found that the topic of using Regular Expressions is either c...
New
Maartz
Hi folks, I don’t know if I saw this here but, here’s a new programming language, called Roc Reminds me a bit of Elm and thus Haskell. ...
New
foxtrottwist
A few weeks ago I started using Warp a terminal written in rust. Though in it’s current state of development there are a few caveats (tab...
New
New
New
New
PragmaticBookshelf
Get the comprehensive, insider information you need for Rails 8 with the new edition of this award-winning classic. Sam Ruby @rubys ...
New
PragmaticBookshelf
Fight complexity and reclaim the original spirit of agility by learning to simplify how you develop software. The result: a more humane a...
New