Jens · @schegge42
36 followers · 415 posts · Server nrw.social

Sneaky Throws – Exceptions aus dem Hinterhalt

Die Einführung der Generics in Java 8 hat zur einigen eigentümlichen Konsequenzen geführt. Die meisten dieser Konsequenzen fußen auf dem Konzept der Type Erasure. Die Generics sind nur Bestandteil der Java Sprache und werden demzufolge nur vom Java Compiler beachtet. Der compilie

schegge.de/2023/08/sneaky-thro

#antipattern #bestpractices #java #pattern #exception #generics #projektlombok

Last updated 1 year ago

Felix Palmen 📯 · @zirias
36 followers · 153 posts · Server techhub.social

@jhx You asked for it, so I'll answer it:

Imho, C++ design is broken from the very beginning. It wanted to provide language constructs, still maintaining full compatibility (which already failed many years ago, cause the languages took different roads).

It combines (IMHO generally a bad idea) with explicit resource management (an *awful* idea, forcing you to use which will in turn mandate creation of purely "technical" classes, just to manage resources).

It wanted , but that's impossible without breaking C compatibility, so it came up with , actually a on steroids.

Overloading also doesn't fit into the simple C library ABI (where symbols are named just like the function), so it came up with "name mangling" ... which is especially horrific because it is *not* standardized.

Ah well, I could go on 😂

#oop #c #exceptions #raii #generics #Templates #preprocessor #linker

Last updated 1 year ago

Jeff Mitchell · @sentinel1909
6 followers · 60 posts · Server hachyderm.io

Trying to get into the habit of creating content...even little bites. They're a great memory aid for myself and perhaps helpful to others too. crusty-rustacean-dev.shuttleap

#rustlang #generics

Last updated 1 year ago

Sean Murthy · @smurthys
133 followers · 1513 posts · Server hachyderm.io

Creating a Generic Array in Java.

Browsed it. Well organized, has source code on GitHub. Will read carefully later.

baeldung.com/java-generic-arra

#java #generics #arrays

Last updated 1 year ago

robrich · @robrich
20 followers · 163 posts · Server hachyderm.io
Moffintosh · @moffintosh
206 followers · 11306 posts · Server berserker.town
Rick Wong – Tech & code  · @ryguw
150 followers · 157 posts · Server fosstodon.org

Great news! Python will have a simpler syntax for generics, thanks to PEP-695 peps.python.org/pep-0695/. We’ll have type-safe generics without using separate TypeVars declarations.

#python #pep #generics

Last updated 2 years ago

EURACTIV · @euractiv
1986 followers · 4677 posts · Server masto.ai
EURACTIV Health · @euractiv_health
104 followers · 171 posts · Server eupolicy.social
𝚓𝚎𝚎; · @jee
102 followers · 1899 posts · Server mamot.fr

I'm struggling with TypeScript generics (again) : How pass an Interface to a method using generics ?

stackoverflow.com/questions/75

#dev #reactjs #nextjs #frontend #help #typescript #generics

Last updated 2 years ago

cafepharma · @cafepharma
12 followers · 94 posts · Server toot.community

Duchenne muscular dystrophy: major trials and events to watch in 2023 — Biogen gets EU court ruling in favor of blocking Tecfidera generic entry— FDA offers radio silence on question of spring Covid boosters -- See more on our front page news bit.ly/w28kSd

#dmd #Duchenne #FdA #clinicaltrials #europe #generics #biogen #multiplesclerosis #ms #covid #covid19 #vaccines #boosters #pharma #pharmanews #biotech #biopharma #biotechnology #cafepharma

Last updated 2 years ago

· @AdaPlanet
54 followers · 2529 posts · Server botsin.space
Rick Wong – Tech & code  · @ryguw
147 followers · 115 posts · Server fosstodon.org

needs a simpler generics syntax. The proposal PEP 695 is already here: peps.python.org/pep-0695/ Hope it advances to the next stage this year. In the mean time, is there a transpiler like or another way to use proposed syntax for hobby projects?

#python #babel #pep695 #generics

Last updated 2 years ago

Miles Garnsey · @milesgarnsey
7 followers · 4 posts · Server hachyderm.io

This is the final instalment of my blog series on using for operator development.

In it, we discuss how to assert that a pointer is an interface, how to juggle interface and value type parameters, and how to finally make a function generic across types whose pointers fulfil an interface.

miles-garnsey.github.io/posts/

#golang #generics #kubernetes

Last updated 2 years ago

Miles Garnsey · @milesgarnsey
7 followers · 3 posts · Server hachyderm.io

Part II of my blog series on and their utility for operator development.

Amidst much gnashing of teeth and throwing things, we discuss type parameterised interfaces, difficulties with pointer receivers and hurl insults at the compiler.

miles-garnsey.github.io/posts/

#golang #generics #kubernetes

Last updated 2 years ago

Bernie Sanders, you can stop crying about high generic prices in the US. Mark Cuban has a cost-plus pharmacy with low prices on many generic drugs. When Medicare says it is lowering the cost of drugs, it’s typically absorbing the difference, and passing it on to the taxpayers.

#markcuban #drugprices #berniesanders #generics #medicare #prescriptions

Last updated 2 years ago

lawrencegripper · @lawrencegripper
106 followers · 187 posts · Server fosstodon.org

Oh no, I just opened a project I wrote before
and my brain when "We could generic all the things now"

I have mixed feelings about this..

#golang #generics

Last updated 2 years ago

Dmitri Goosens :elephpant: · @dgoosens
294 followers · 696 posts · Server phpc.social

I know implementing in is "complicated" and will probably not be possible anywhere soon...

But figure it would already be a major step forward if we were able to come up with Typed Collection type
and wonder if there is any kind of reflection/work being done about that ?

#generics #php

Last updated 2 years ago

Mike Melanson · @rwwmike
228 followers · 100 posts · Server hachyderm.io

Question for you types:

The addition of to Go: on the continuum of dynamic to static typing, is that Go moving slightly in the dynamic direction?

#golang #generics

Last updated 2 years ago

Christian Ullenboom · @ullenboom
10 followers · 70 posts · Server mas.to

Typeinschränkungen bei Java Generics (Bounded Type Parameters): youtu.be/-xJQY8PbW4w

#generics #java

Last updated 2 years ago