Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Tiny Screens, Big Impact: The Forgotten Art Of Developing Web Apps For Feature Phones

      July 16, 2025

      Kong AI Gateway 3.11 introduces new method for reducing token costs

      July 16, 2025

      Native vs hybrid vs cross-platform: Resolving the trilemma

      July 16, 2025

      JetBrains updates Junie, Gemini API adds embedding model, and more – Daily News Digest

      July 16, 2025

      Microsoft saved $500 million using AI — after slashing over 15,000 jobs in 2025

      July 16, 2025

      Obsidian’s Xbox RPG Avowed gets another update bringing bug fixes and these new abilities — and it’s now Steam Deck Verified

      July 16, 2025

      Half of Windows PCs are still yet to upgrade to Windows 11 — and are running out of time, says study

      July 16, 2025

      People keep seeing Windows 11 allowing them to eject their GPU — don’t worry about it, but you also shouldn’t need to do it

      July 16, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The details of TC39’s last meeting

      July 16, 2025
      Recent

      The details of TC39’s last meeting

      July 16, 2025

      Python Meets Power Automate: Trigger via URL

      July 16, 2025

      Technical Deep Dive: File Structure and Best Practices in Karate DSL

      July 16, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Microsoft saved $500 million using AI — after slashing over 15,000 jobs in 2025

      July 16, 2025
      Recent

      Microsoft saved $500 million using AI — after slashing over 15,000 jobs in 2025

      July 16, 2025

      Obsidian’s Xbox RPG Avowed gets another update bringing bug fixes and these new abilities — and it’s now Steam Deck Verified

      July 16, 2025

      Half of Windows PCs are still yet to upgrade to Windows 11 — and are running out of time, says study

      July 16, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»News & Updates»CodeSOD: Recasting the Team

    CodeSOD: Recasting the Team

    May 29, 2025

    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.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleCVE-2025-3755 – Mitsubishi Electric Corporation MELSEC iQ-F Series CPU modules Index Validation Bypass
    Next Article TUXEDO Stellaris 16 Gen7: il nuovo laptop GNU/Linux con 128 GB di RAM e schermo HDR

    Related Posts

    News & Updates

    Microsoft saved $500 million using AI — after slashing over 15,000 jobs in 2025

    July 16, 2025
    News & Updates

    Obsidian’s Xbox RPG Avowed gets another update bringing bug fixes and these new abilities — and it’s now Steam Deck Verified

    July 16, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    The 15 Best Product Catalog Templates for InDesign in 2025

    Web Development
    Automating regulatory compliance: A multi-agent solution using Amazon Bedrock and CrewAI

    Automating regulatory compliance: A multi-agent solution using Amazon Bedrock and CrewAI

    Machine Learning

    CVE-2024-11917 – Xing and Google Vulnerability: Authentication Bypass in JobSearch WP Job Board Plugin

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-4720 – SourceCodester Student Result Management System Remote Path Traversal Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    10 Things You Need to Succeed in IT (Free Download)

    April 1, 2025

    On top of Windows, Linux, and Mac skills, you need life, business, and marketing skills.…

    Microsoft wants you and your business to ditch Office

    April 2, 2025

    My top 5 picks for the best Memorial Day phone deals so far: Apple, Samsung, and more

    May 17, 2025

    CVE-2025-6971 – SOLIDWORKS eDrawings After Free Vulnerability

    July 15, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.