Zum Hauptinhalt springen
•
Podcasts & Audio BriefingsCIO: Why trust is a key ingredient for AI that transforms(08.10.2026 um 18:04 Uhr)
•
YouTube Security VideosGoogle DeepMind: From deepfakes to DNA: the science of watermarking AI(01.10.2026 um 18:37 Uhr)
••
YouTube Security VideosIBM Technology: IDE vs CLI: What Every DevOps Engineer Should Know(05.10.2026 um 13:00 Uhr)
•
YouTube Security VideosIBM Technology: Even Tech Experts Hate CAPTCHAs 😅(08.10.2026 um 18:15 Uhr)
•
YouTube Security VideosIBM Technology: Human Bias is Harder to Fix than AI Bias🧠(09.10.2026 um 18:00 Uhr)
••
YouTube Security VideosIBM Technology: 5 Concepts to Know for Coding with AI Agents(12.10.2026 um 13:00 Uhr)
•••
Podcasts & Audio BriefingsCIO: Why trust is a key ingredient for AI that transforms(08.10.2026 um 18:04 Uhr)
•
YouTube Security VideosGoogle DeepMind: From deepfakes to DNA: the science of watermarking AI(01.10.2026 um 18:37 Uhr)
••
YouTube Security VideosIBM Technology: IDE vs CLI: What Every DevOps Engineer Should Know(05.10.2026 um 13:00 Uhr)
•
YouTube Security VideosIBM Technology: Even Tech Experts Hate CAPTCHAs 😅(08.10.2026 um 18:15 Uhr)
•
YouTube Security VideosIBM Technology: Human Bias is Harder to Fix than AI Bias🧠(09.10.2026 um 18:00 Uhr)
••
YouTube Security VideosIBM Technology: 5 Concepts to Know for Coding with AI Agents(12.10.2026 um 13:00 Uhr)
••
Intelligence View
⚡ tsecurity.de Intelligence

CodeSOD: Recasting the Team

Nina's team has a new developer on the team. They're not a junior developer, though Nina wishes they could replace this developer with a junior. Inexperience…

Beitrag
0
Seite
0
↗ Quelle (thedailywtf.com)
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!

Nina's team has a new developer on the team. They're not a junior developer, though Nina wishes they could replace this developer with a junior. Inexperience is better than whatever this Java code is.


Object[] test = (Object[]) options;
List<SchedulePlatform> schedulePlatformList = (List<SchedulePlatform>)((Object[])options)[0];
List<TableColumn> visibleTableCols = (List<TableColumn>)((Object[])options)[1];

We start by casting options into an array of Objects. That's already a code stench, but we actually don't even use the test variable and instead just redo the cast multiple times.


But worse than that, we cast to an array of object, access an element, and then cast that element to a collection type. I do not know what is in the options variable, but based on how it gets used, I don't like it. What it seems to be is a class (holding different options as fields) rendered as an array (holding different options as elements).


The new developer (ab)uses this pattern everywhere.



[Advertisement]
ProGet’s got you covered with security and access controls on your NuGet feeds. Learn more.

Intelligence Digest — kostenlos Täglich die wichtigsten Security-News · jederzeit abbestellbar
Community Rating & Social Proof
⭐ Leser-Wertung
–
Ø / 5.0
Noch keine Leser-Bewertungen
War diese Seite hilfreich?
0
Jetzt Bewertung abgeben
🟢 Niedrig (1-3.9) 🟡 Mittel (4.0-6.9) 🔴 Hoch (7.0-8.9) Kritisch (9.0-10.0)

Verwandte Story-Cluster & Quellen (Vektor-KI)

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten CodeSOD: Recasting the Team

Thematisch verwandte Begriffe: CodeSOD, Recasting, Team · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
Nächster Beitrag