<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Type-Parameters on Dev &amp; Platform Engineering Hub</title><link>https://rhidayat.work/topics/type-parameters/</link><description>Recent content in Type-Parameters on Dev &amp; Platform Engineering Hub</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© 2026 Rachmat Hidayat</copyright><lastBuildDate>Sun, 09 Aug 2026 11:45:00 +0000</lastBuildDate><atom:link href="https://rhidayat.work/topics/type-parameters/index.xml" rel="self" type="application/rss+xml"/><item><title>TS Ep 31: Default Generic Arguments (`&lt;T = Default&gt;`)</title><link>https://rhidayat.work/series/typescript/intermediate/07-default-generic-arguments/</link><pubDate>Sun, 09 Aug 2026 11:45:00 +0000</pubDate><guid>https://rhidayat.work/series/typescript/intermediate/07-default-generic-arguments/</guid><description>An in-depth guide to Default Generic Arguments in TypeScript. Learn how assigning fallback types (&lt;code&gt;&amp;lt;T = Default&amp;gt;&lt;/code&gt;) simplifies generic interfaces, combining constraints with defaults (&lt;code&gt;&amp;lt;T extends Constraint = Default&amp;gt;&lt;/code&gt;), and enforcing strict parameter ordering rules.</description></item><item><title>TS Ep 29: Introduction to Generics — Type Parameters (&lt;T&gt;)</title><link>https://rhidayat.work/series/typescript/intermediate/05-intro-to-generics/</link><pubDate>Sun, 09 Aug 2026 11:35:00 +0000</pubDate><guid>https://rhidayat.work/series/typescript/intermediate/05-intro-to-generics/</guid><description>An in-depth introduction to Generics in TypeScript. Learn how type parameters (&lt;code&gt;&amp;lt;T&amp;gt;&lt;/code&gt;) bridge reusable logic with strict type safety, generic type inference, generic interfaces (&lt;code&gt;ApiResponse&amp;lt;T&amp;gt;&lt;/code&gt;), and generic classes.</description></item><item><title>Go Ep 13: Generics (Type Parameters)</title><link>https://rhidayat.work/series/go/13-generics-in-go/</link><pubDate>Sun, 09 Aug 2026 10:00:00 +0000</pubDate><guid>https://rhidayat.work/series/go/13-generics-in-go/</guid><description>&lt;div class="lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl"&gt;
 Before Go 1.18, writing a reusable function for finding a slice element required duplicate functions for &lt;code&gt;int&lt;/code&gt;, &lt;code&gt;string&lt;/code&gt;, and &lt;code&gt;float64&lt;/code&gt;, or using reflection. &lt;strong&gt;Generics&lt;/strong&gt; solve this using Type Parameters.
&lt;/div&gt;</description></item></channel></rss>