#generics — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #generics, aggregated by home.social.
-
🚀 Oh wow, #Golang *finally* joins the 21st century with generic collection types! 🎉 Who knew reinventing the wheel could be so thrilling? 🙄 Maybe next they'll propose a breakthrough feature like FOR loops.
https://github.com/golang/go/issues/80590 #Generics #GenericProgramming #SoftwareDevelopment #TechNews #HackerNews #ngated -
🚀 Oh wow, #Golang *finally* joins the 21st century with generic collection types! 🎉 Who knew reinventing the wheel could be so thrilling? 🙄 Maybe next they'll propose a breakthrough feature like FOR loops.
https://github.com/golang/go/issues/80590 #Generics #GenericProgramming #SoftwareDevelopment #TechNews #HackerNews #ngated -
GC shape stenciling in Go generics
https://rednafi.com/go/gc-shape-stenciling/
Comments: https://news.ycombinator.com/item?id=48877151
#HackerNews #GC #shape #stenciling #Go #generics #programming #generics #softwaredevelopment
-
GC shape stenciling in Go generics
https://rednafi.com/go/gc-shape-stenciling/
Comments: https://news.ycombinator.com/item?id=48877151
#HackerNews #GC #shape #stenciling #Go #generics #programming #generics #softwaredevelopment
-
Wenn du in den letzten Jahren mit Java gearbeitet hast, ist dir vielleicht schon das Schlüsselwort var begegnet. Ja, du hast richtig gelesen: in Java! Denn schon seit Java 10 kannst du damit lokale Variablen deklarieren, ohne ihren Typ explizit anzugeben. Das ist eine praktische Erweiterung - aber
https://magicmarcy.de/lokale-variablen-mit-var-das-ist-doch-javascript-oder
#var #Java_10 #Compiler #lokale_Variablen #Typinferenz #Generics #Datentyp #Typ #Java-Syntax
-
Translation: The con artist and his cronies don't make money from offshore generics, but boy, would they ever, if they could control the entire market, and jack up the cost to patients. These people are crooks, but media treats them as truthful.
-
Translation: The con artist and his cronies don't make money from offshore generics, but boy, would they ever, if they could control the entire market, and jack up the cost to patients. These people are crooks, but media treats them as truthful.
-
Blogged: Strongly typed generic object in C#
-
Blogged: Strongly typed generic object in C#
-
Как я избавился от тысяч строк валидации в Swift
Каждый раз, когда нужно добавить новую модель в проект, приходится писать буквально одинаковый код: с одинаковыми проверками, с одинаковыми корректировками, с одинаковыми Codable , с одинаковыми тестами. Полагаю, вы тоже постоянно с этим сталкиваетесь, особенно при работе с текстом: почистить от лишних пробелов, убрать декоративные символы, привести к нужному регистру, сделать проверку на «не пусто» и так далее. В этой статье рассказываю про собственные наработки, про то, как удалось существенно сократить бойлерплейт и улучшить читаемость кода.
https://habr.com/ru/articles/1043520/
#ios #validation #generics #composition #wrappers #typesafety
-
So listened to @brendt (https://www.youtube.com/watch?v=4wpW98S2xJQ)
and read @Girgias (https://gpb.moe/blog/opinion-bound-erased-generics.html) about #Generics in #PHP
both are goodWas very in favor and even enthusiastic of the #RFC at first...
But, I have the feeling some of us, me included, would want those Generics so bad, we would settle for an early compromise that would, in fact, potentially, have very negative consequences for the future of #PHP and break some of the basic standards we adopted in regards of type checking...
-
So listened to @brendt (https://www.youtube.com/watch?v=4wpW98S2xJQ)
and read @Girgias (https://gpb.moe/blog/opinion-bound-erased-generics.html) about #Generics in #PHP
both are goodWas very in favor and even enthusiastic of the #RFC at first...
But, I have the feeling some of us, me included, would want those Generics so bad, we would settle for an early compromise that would, in fact, potentially, have very negative consequences for the future of #PHP and break some of the basic standards we adopted in regards of type checking...
-
A brief overview of the #generics concept in #PHP, as explained by @nunomaduro 👇
https://www.youtube.com/watch?v=3-wG-HYI3JgFor now, it’s at the "idea" stage, so you can review it, comment, and share your thoughts. For more details, refer to the RFC and pull request:
- https://wiki.php.net/rfc/bound_erased_generic_types
- https://github.com/php/php-src/pull/21969Have a good day 😎
-
A brief overview of the #generics concept in #PHP, as explained by @nunomaduro 👇
https://www.youtube.com/watch?v=3-wG-HYI3JgFor now, it’s at the "idea" stage, so you can review it, comment, and share your thoughts. For more details, refer to the RFC and pull request:
- https://wiki.php.net/rfc/bound_erased_generic_types
- https://github.com/php/php-src/pull/21969Have a good day 😎
-
Finally Generics coming in PHP 9 🎉
-
Finally Generics coming in PHP 9 🎉
-
Ever shipped an API and regretted your generic signatures later? Wildcards everywhere. Confusing bounds. Mental overhead. Michel Charpentier breaks down why variance matters—and why #Java still feels heavy here.
Read + apply: https://javapro.io/2026/01/27/what-i-still-miss-my-most-wanted-java-features/
-
Ever shipped an API and regretted your generic signatures later? Wildcards everywhere. Confusing bounds. Mental overhead. Michel Charpentier breaks down why variance matters—and why #Java still feels heavy here.
Read + apply: https://javapro.io/2026/01/27/what-i-still-miss-my-most-wanted-java-features/
-
Are Skinny Labels Getting Heavier for Generics? Key Takeaways from Hikma v. Amarin, the Supreme Court's First Patent Case Since 2023 https://www.crowell.com/en/insights/client-alerts/are-skinny-labels-getting-heavier-for-generics-key-takeaways-from-hikma-v-amarin-the-supreme-courts-first-patent-case-since-2023 #SCOTUS #patent #generics
-
Are Skinny Labels Getting Heavier for Generics? Key Takeaways from Hikma v. Amarin, the Supreme Court's First Patent Case Since 2023 https://www.crowell.com/en/insights/client-alerts/are-skinny-labels-getting-heavier-for-generics-key-takeaways-from-hikma-v-amarin-the-supreme-courts-first-patent-case-since-2023 #SCOTUS #patent #generics
-
Семь вещей, которые нельзя делать из-за стирания типов в Java
Мы, разработчики на Java, используем параметризованные типы каждый день: List<String> , Map<Long, User> , Optional<Order> и так далее. Однако у параметризованных типов есть важная особенность: в Java они существуют в полном виде только на этапе компиляции.
-
Один хеш, вместо миллиона проверок: пишем Merkle Tree на Go с нуля
Представьте: у вас есть база из миллиона транзакций. Клиент спрашивает: «Моя транзакция точно в блоке?» Вы можете отдать ему все миллион записей для проверки. Или отдать 20 хешей по 32 байта - и он сам математически докажет, что его транзакция на месте. Без доверия. Без скачивания всего блока. За O(log N) Merkle tree - структура данных на которая является Bitcoin, Git, IPFS и Certificate Transparency. Посмотрим как она работает и напишем свою реализацию на Golang c ДЖЕНЕРИКАМИ йоу.
https://habr.com/ru/articles/1018186/
#merkletree #go #golang #generics #cryptography #datastructures #blockchain #proofofinclusion
-
But, of course...
"In the United States and Europe, the drug is not expected to go generic until the early 2030s. That delay is due to special regulatory protections that are intended to encourage innovation by extending a brand-name drugmaker’s monopoly."
#NYTimes #GiftedArticle #NovoNordisk #Ozempic #GLP1 #Generics #Obesity #Health
https://www.nytimes.com/2026/03/19/health/ozempic-wegovy-generic-india-china-canada.html
-
People need to stop inventing library/module/component formats that lack any kind of support for parametric polymorphism.
It's 2026, stop repeating the same mistakes again and again!
-
People need to stop inventing library/module/component formats that lack any kind of support for parametric polymorphism.
It's 2026, stop repeating the same mistakes again and again!
-
Fun With TypeScript Generics, by @adamrackis.bsky.social (@frontendmasters.com):
https://frontendmasters.com/blog/fun-with-typescript-generics/
-
Fun With TypeScript Generics, by @adamrackis.bsky.social (@frontendmasters.com):
https://frontendmasters.com/blog/fun-with-typescript-generics/
-
🚨 C# devs: Why won't List assign to List but IEnumerable works?
Invariance vs covariance - List blocks mutations that corrupt types. IEnumerable enables safe read-only upcasting.
New post unpacks:
✅ out T variance explained
✅ Real-world API patterns
✅ Copy vs covariant trade-offsDesign safer APIs with covariance!
-
Подход к теме Generics
Изучая Java и подойдя к теме дженериков осознал необходимость вернуться к некоторым азам, постепенно наматывая на ус новые знания. Для этого сформулировал для себя поэтапное рассуждение, которое помогло мне закрепить знания. Надеюсь поможет и еще кому-то. Это не всеобъемлющее представление о дженериках, а лишь некоторые аспекты, которые помогают понять часть проблематики, из-за которой они появились. Итак. Есть такой простейший код:
-
Кастомные uuid на базе дженерика
Уже более 6 лет я использую кастомные идентификаторы - одна из классных штук, за которые обожаю go. Они незаменимы в описании бизнес-логики - невозможно перепутать порядок идентификаторов. Все вызовы становятся типобезопасными и самодокументируемыми. И писать такой легкочитаемый код очень приятно. Применяю кастомные id очень широко - от парсинга http-запроса до слоя данных. В статье подробно рассказываю: • «как было» раньше (и осталось для кадастровых номеров, например), • переход от кастомизации строк к скрепным uuid.UUID и варианты типизации, • немного запутаемся в важных условиях кастомизации, • скопипастим компактное и готовое решение • и бонусом посмотрим лаконичный синоним в коде.
-
Ever shipped an API and regretted your generic signatures later? Wildcards everywhere. Confusing bounds. Mental overhead. Michel Charpentier breaks down why variance matters—and why #Java still feels heavy here.
Read + apply: https://javapro.io/2026/01/27/what-i-still-miss-my-most-wanted-java-features/
-
Ever shipped an API and regretted your generic signatures later? Wildcards everywhere. Confusing bounds. Mental overhead. Michel Charpentier breaks down why variance matters—and why #Java still feels heavy here.
Read + apply: https://javapro.io/2026/01/27/what-i-still-miss-my-most-wanted-java-features/
-
【C#】ジェネリック型制約における暗黙知を3つの実装パターン(データ表示・入力検証・コマンド)に落とし込んだ例
https://qiita.com/EndOfData/items/4c76a22a93943c19d1f2?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items -
🚀🎉 Breaking news: Yet another self-proclaimed "genius" has added #generics to their obscure #programming language that nobody asked for. Apparently, the world desperately needed "Axe Programming Language" to solve the non-existent problem of having too few programming #languages with generics. 🙄🔧
https://axe-docs.pages.dev/features/generics/ #AxeLanguage #tech #news #satire #HackerNews #ngated -
🚀🎉 Breaking news: Yet another self-proclaimed "genius" has added #generics to their obscure #programming language that nobody asked for. Apparently, the world desperately needed "Axe Programming Language" to solve the non-existent problem of having too few programming #languages with generics. 🙄🔧
https://axe-docs.pages.dev/features/generics/ #AxeLanguage #tech #news #satire #HackerNews #ngated -
I implemented generics in my programming language
https://axe-docs.pages.dev/features/generics/
#HackerNews #generics #programminglanguage #softwaredevelopment #coding #innovation
-
I implemented generics in my programming language
https://axe-docs.pages.dev/features/generics/
#HackerNews #generics #programminglanguage #softwaredevelopment #coding #innovation
-
🚀 Engenheiros Python: Querem garantir contratos claros e robustos em microserviços? Conheçam Abstract Base Classes (ABCs), que permitem definir contratos rígidos e garantir implementações consistentes no seu código.
No meu artigo "Usando Abstract Base Classes (ABC) em Projetos Reais de Python" mostro um exemplo prático com microserviço de gestão de pedidos, usando ABCs junto com Generics para segurança de tipos e validação antes de armazenar dados.
Leia e veja um exemplo de como elevar a escalabilidade e a manutenibilidade das suas aplicações:
🔗 https://bolha.blog/riverfount/usando-abstract-base-classes-abc-em-projetos-reais-de-python-um-exemplo#Python #SoftwareEngineering #Microservices #CleanCode #Typing #ABC #Generics #Dev