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

      Sentry launches MCP monitoring tool

      August 14, 2025

      10 Benefits of Hiring a React.js Development Company (2025–2026 Edition)

      August 13, 2025

      From Line To Layout: How Past Experiences Shape Your Design Career

      August 13, 2025

      Hire React.js Developers in the US: How to Choose the Right Team for Your Needs

      August 13, 2025

      I’ve tested every Samsung Galaxy phone in 2025 – here’s the model I’d recommend on sale

      August 14, 2025

      Google Photos just put all its best editing tools a tap away – here’s the shortcut

      August 14, 2025

      Claude can teach you how to code now, and more – how to try it

      August 14, 2025

      One of the best work laptops I’ve tested has MacBook written all over it (but it’s even better)

      August 14, 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

      Controlling Execution Flow with Laravel’s Sleep Helper

      August 14, 2025
      Recent

      Controlling Execution Flow with Laravel’s Sleep Helper

      August 14, 2025

      Generate Secure Temporary Share Links for Files in Laravel

      August 14, 2025

      This Week in Laravel: Filament 4, Laravel Boost, and Junie Review

      August 14, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      KDE Plasma 6 on Wayland: the Payoff for Years of Plumbing

      August 14, 2025
      Recent

      KDE Plasma 6 on Wayland: the Payoff for Years of Plumbing

      August 14, 2025

      FOSS Weekly #25.33: Debian 13 Released, Torvalds vs RISC-V, Arch’s New Tool, GNOME Perfection and More Linux Stuff

      August 14, 2025

      Ultimate ChatGPT-5 Prompt Guide: 52 Ideas for Any Task

      August 14, 2025
    • 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”:

    if isinstance(o, Test):
        if o.requirement is None:
            logger.error(f"Invalid 'requirement' in Test: {o.key}")
            try:
                raise ValueError("Missing requirement in Test object.")
            except ValueError:
                pass
    
        if o.title is None:
            logger.error(f"Invalid 'title' in Test: {o.key}")
            try:
                raise ValueError("Missing title in Test object.")
            except ValueError:
                pass
    

    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 Firefox 141: l’AI è un problema, i consumi di CPU e batteria aumentano

    Related Posts

    News & Updates

    I’ve tested every Samsung Galaxy phone in 2025 – here’s the model I’d recommend on sale

    August 14, 2025
    News & Updates

    Google Photos just put all its best editing tools a tap away – here’s the shortcut

    August 14, 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

    CVE-2025-8178 – Tenda AC10 Heap-Based Buffer Overflow Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-45931 – D-Link DIR-816-A2 Remote Code Execution Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-48866 – ModSecurity SanitizeArg Denial of Service Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    What We Know (So Far) About CSS Reading Order

    News & Updates

    Highlights

    Samsung Galaxy Z Flip 7 vs. Z Flip 6: I used both models, and there’s a clear winner

    July 10, 2025

    Is the Galaxy Z Flip 7 worth upgrading to? I tested it against last year’s…

    CVE-2025-4031 – PHPGurukul Pre-School Enrollment System SQL Injection Vulnerability

    April 28, 2025

    Linux Firmware Service Calls on Hardware Makers to Help Fund It

    August 13, 2025

    Ubuntu Adopts Chrony + NTS for Secure Network Time

    June 16, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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