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

      Error’d: Pickup Sticklers

      September 27, 2025

      From Prompt To Partner: Designing Your Custom AI Assistant

      September 27, 2025

      Microsoft unveils reimagined Marketplace for cloud solutions, AI apps, and more

      September 27, 2025

      Design Dialects: Breaking the Rules, Not the System

      September 27, 2025

      Building personal apps with open source and AI

      September 12, 2025

      What Can We Actually Do With corner-shape?

      September 12, 2025

      Craft, Clarity, and Care: The Story and Work of Mengchu Yao

      September 12, 2025

      Cailabs secures €57M to accelerate growth and industrial scale-up

      September 12, 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

      Using phpinfo() to Debug Common and Not-so-Common PHP Errors and Warnings

      September 28, 2025
      Recent

      Using phpinfo() to Debug Common and Not-so-Common PHP Errors and Warnings

      September 28, 2025

      Mastering PHP File Uploads: A Guide to php.ini Settings and Code Examples

      September 28, 2025

      The first browser with JavaScript landed 30 years ago

      September 27, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured
      Recent
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»News & Updates»CodeSOD: Raise VibeError

    CodeSOD: Raise VibeError

    August 13, 2025

    Ronan works with a vibe coder- an LLM addicted developer. This is a type of developer that’s showing up with increasing frequency. Their common features include: not reading the code the AI generated, not testing the code the AI generated, not understanding the context of the code or how it integrates into the broader program, and absolutely not bothering to follow the company coding standards.

    Here’s an example of the kind of Python code they were “writing”:

    <span class="hljs-keyword">if</span> <span class="hljs-built_in">isinstance</span>(o, Test):
        <span class="hljs-keyword">if</span> o.requirement <span class="hljs-keyword">is</span> <span class="hljs-literal">None</span>:
            logger.error(<span class="hljs-string">f"Invalid 'requirement' in Test: <span class="hljs-subst">{o.key}</span>"</span>)
            <span class="hljs-keyword">try</span>:
                <span class="hljs-keyword">raise</span> ValueError(<span class="hljs-string">"Missing requirement in Test object."</span>)
            <span class="hljs-keyword">except</span> ValueError:
                <span class="hljs-keyword">pass</span>
    
        <span class="hljs-keyword">if</span> o.title <span class="hljs-keyword">is</span> <span class="hljs-literal">None</span>:
            logger.error(<span class="hljs-string">f"Invalid 'title' in Test: <span class="hljs-subst">{o.key}</span>"</span>)
            <span class="hljs-keyword">try</span>:
                <span class="hljs-keyword">raise</span> ValueError(<span class="hljs-string">"Missing title in Test object."</span>)
            <span class="hljs-keyword">except</span> ValueError:
                <span class="hljs-keyword">pass</span>
    

    An isinstance check is already a red flag. Even without proper type annotations and type checking (though you should use them) any sort of sane coding is going to avoid situations where your method isn’t sure what input it’s getting. isinstance isn’t a WTF, but it’s a hint at something lurking off screen. (Yes, sometimes you do need it, this may be one of those times, but I doubt it.)

    In this case, if the Test object is missing certain fields, we want to log errors about it. That part, honestly, is all fine. There are potentially better ways to express this idea, but the idea is fine.

    No, the obvious turd in the punchbowl here is the exception handling. This is pure LLM, in that it’s a statistically probable result of telling the LLM “raise an error if the requirement field is missing”. The resulting code, however, raises an exception, immediately catches it, and then does nothing with it.

    I’d almost think it’s a pre-canned snippet that’s meant to be filled in, but no- there’s no reason a snippet would throw and catch the same error.

    Now, in Ronan’s case, this has a happy ending: after a few weeks of some pretty miserable collaboration, the new developer got fired. None of “their” code ever got merged in. But they’ve already got a few thousand AI generated resumes out to new positions…

    [Advertisement]
    Keep all your packages and Docker containers in one place, scan for vulnerabilities, and control who can access different feeds. ProGet installs in minutes and has a powerful free version with a lot of great features that you can upgrade when ready.Learn more.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleLaravel Global Scopes: Automatic Query Filtering
    Next Article Computle secures £500k for compute-intensive cloud software

    Related Posts

    News & Updates

    Building personal apps with open source and AI

    September 12, 2025
    News & Updates

    What Can We Actually Do With corner-shape?

    September 12, 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

    Symantec: Windows-lek voor uitkomen patch gebruikt bij malware-aanval

    Security

    AI-Powered Bug Hunt: How Microsoft Used Copilot to Discover Critical Vulnerabilities in GRUB2

    Web Development

    This week in AI updates: Gemini Code Assist Agent Mode, GitHub’s Agents panel, and more (August 22, 2025)

    Tech & Work

    Automotive News Reports the Roadmap to Software-Defined Vehicles is Still Fuzzy

    Development

    Highlights

    Development

    Argo CD Security Flaw Rated 9.8 Leaves GitOps Repositories Exposed

    September 9, 2025

    A security flaw in Argo CD, the popular open-source GitOps tool for Kubernetes, has been…

    Kritiek Veeam-lek laat aanvaller code op back-upserver uitvoeren

    June 18, 2025

    NHS Charter Urges Vendors to Improve Cybersecurity to Prevent Ransomware

    May 19, 2025

    CodeSOD: Going Crazy

    August 18, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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