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
https://schegge.de/2023/08/sneaky-throws-exceptions-aus-dem-hinterhalt/
#AntiPattern #BestPractices #Java #Pattern #Exception #Generics #Java #ProjektLombok
#antipattern #bestpractices #java #pattern #exception #generics #projektlombok
@jhx You asked for it, so I'll answer it:
Imho, C++ design is broken from the very beginning. It wanted to provide #OOP language constructs, still maintaining full #C compatibility (which already failed many years ago, cause the languages took different roads).
It combines #exceptions (IMHO generally a bad idea) with explicit resource management (an *awful* idea, forcing you to use #RAII which will in turn mandate creation of purely "technical" classes, just to manage resources).
It wanted #generics, but that's impossible without breaking C compatibility, so it came up with #templates, actually a #preprocessor on steroids.
Overloading also doesn't fit into the simple C library ABI (where #linker 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
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. https://crusty-rustacean-dev.shuttleapp.rs/rust-learning-journal-week-1/ #rustlang #generics
Creating a Generic Array in Java.
Browsed it. Well organized, has source code on GitHub. Will read carefully later.
https://dev.to/adevnadia/typescript-generics-for-react-developers-4lji - #TypeScript #generics make #React components much easier and safer. Nice post https://www.linkedin.com/in/adevnadia/.
Crimes with Go Generics
https://xeiaso.net/blog/gonads-2022-04-24
#cursed #golang #programming #generics @cadey
#cursed #golang #programming #generics
Great news! Python will have a simpler syntax for generics, thanks to PEP-695 https://peps.python.org/pep-0695/. We’ll have type-safe generics without using separate TypeVars declarations. #python #pep #generics
Polish pharma industry warns of manufacturing exodus https://www.euractiv.com/section/health-consumers/news/polish-pharma-industry-warns-of-manufacturing-exodus/?utm_source=dlvr.it&utm_medium=mastodon #drugspricing #genericdrugs #generics
#drugspricing #genericdrugs #generics
Polish pharma industry warns of manufacturing exodus https://www.euractiv.com/section/health-consumers/news/polish-pharma-industry-warns-of-manufacturing-exodus/?utm_source=dlvr.it&utm_medium=mastodon #drugspricing #genericdrugs #generics
#drugspricing #genericdrugs #generics
I'm struggling with TypeScript generics (again) : How pass an Interface to a method using generics ?
https://stackoverflow.com/questions/75853970/how-pass-dynamically-interface-to-a-method
#dev #reactjs #nextjs #frontend #help #typescript #generics
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 http://bit.ly/w28kSd #dmd #duchenne #fda #clinicaltrials #europe #generics #biogen #multiplesclerosis #ms #covid #covid19 #vaccines #boosters #pharma #pharmanews #biotech #biopharma #biotechnology #cafepharma
#dmd #Duchenne #FdA #clinicaltrials #europe #generics #biogen #multiplesclerosis #ms #covid #covid19 #vaccines #boosters #pharma #pharmanews #biotech #biopharma #biotechnology #cafepharma
Ada visitor design pattern and generics https://stackoverflow.com/questions/75747348/ada-visitor-design-pattern-and-generics #ada #programming #visitor-pattern #generics #ada
#ada #programming #visitor #generics
#Python needs a simpler generics syntax. The proposal PEP 695 is already here: https://peps.python.org/pep-0695/ Hope it advances to the next stage this year. In the mean time, is there a transpiler like #Babel or another way to use proposed syntax for hobby projects?
#python #babel #pep695 #generics
This is the final instalment of my blog series on using #golang #generics for #kubernetes 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.
https://miles-garnsey.github.io/posts/2023-03-02/Making-Go-functions-generic-III
Part II of my blog series on #golang #generics and their utility for #kubernetes 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.
https://miles-garnsey.github.io/posts/2023-02-23/Making-Go-functions-generic-II
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
#markcuban #drugprices #berniesanders #generics #medicare #prescriptions
I know implementing #Generics in #php 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 ?
Typeinschränkungen bei Java Generics (Bounded Type Parameters): https://youtu.be/-xJQY8PbW4w
#java #generics