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

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      June 4, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      June 4, 2025

      How To Prevent WordPress SQL Injection Attacks

      June 4, 2025

      Smashing Animations Part 4: Optimising SVGs

      June 4, 2025

      I test AI tools for a living. Here are 3 image generators I actually use and how

      June 4, 2025

      The world’s smallest 65W USB-C charger is my latest travel essential

      June 4, 2025

      This Spotlight alternative for Mac is my secret weapon for AI-powered search

      June 4, 2025

      Tech prophet Mary Meeker just dropped a massive report on AI trends – here’s your TL;DR

      June 4, 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

      Beyond AEM: How Adobe Sensei Powers the Full Enterprise Experience

      June 4, 2025
      Recent

      Beyond AEM: How Adobe Sensei Powers the Full Enterprise Experience

      June 4, 2025

      Simplify Negative Relation Queries with Laravel’s whereDoesntHaveRelation Methods

      June 4, 2025

      Cast Model Properties to a Uri Instance in 12.17

      June 4, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      My Favorite Obsidian Plugins and Their Hidden Settings

      June 4, 2025
      Recent

      My Favorite Obsidian Plugins and Their Hidden Settings

      June 4, 2025

      Rilasciata /e/OS 3.0: Nuova Vita per Android Senza Google, Più Privacy e Controllo per l’Utente

      June 4, 2025

      Rilasciata Oracle Linux 9.6: Scopri le Novità e i Miglioramenti nella Sicurezza e nelle Prestazioni

      June 4, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Tech & Work»CodeSOD: Zero Competence

    CodeSOD: Zero Competence

    January 9, 2025

    Michael had a co-worker who was new to the team. As such, there was definitely an expected ramp-up time. But this new developer got that ramp up time, and still wasn’t performing. Worse, they ended up dragging down the entire team, as they’d go off, write a bunch of code, end up in a situation that they couldn’t understand why nothing was working, and then beg for help.

    For example, this dev was tasked with adding timestamps to a set of logging messages. The logs had started as simple “print” debugging messages, but had grown in complexity and it was time to treat them like real logging.

    This stumped them, as the following C# code only ever printed out a zero:

    DateTime d = new DateTime();
    int timestamp = d.Minute + d.Second + d.Millisecond;
    Console.WriteLine(timestamp + message);
    

    On one hand, this is a clear example of not understanding operator overloading- clearly, they understood that + could be used for string concatenation, but they seem to have forgotten that it could also be used for arithmetic.

    I don’t think this actually only ever printed out a zero. It certainly didn’t print out a timestamp, but it also didn’t print out a zero. So not only is the code bad, but the understanding of how it’s bad is also bad. It’s bad. Bad. Bad.

    [Advertisement] Picking up NuGet is easy. Getting good at it takes time. Download our guide to learn the best practice of NuGet for the Enterprise.

    Source: Read More 

    news
    Facebook Twitter Reddit Email Copy Link
    Previous ArticleDebConf24 closes in Busan and DebConf25 dates announced
    Next Article The alleged Nintendo Switch 2 console mockup looks promising

    Related Posts

    Tech & Work

    The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

    June 4, 2025
    Tech & Work

    How To Fix Largest Contentful Paint Issues With Subpart Analysis

    June 4, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    New Taskbar Tabs feature transforms your favourite websites into Windows 11 apps

    Operating Systems

    Microsoft’s Fluid Framework 2 is now production ready

    Development

    Why Your Business Needs a React Native Mobile App in 2025📲

    Web Development

    CVE-2025-28032 – TOTOLINK Router Pre-Auth Buffer Overflow Vulnerability

    Common Vulnerabilities and Exposures (CVEs)
    Hostinger

    Highlights

    What Recruiters Look For in an Intern’s Design Portfolio

    June 29, 2024

    Today we evaluate Otilia Oandelea’s portfolio and UX work. Otilia is a UX & product…

    CVE-2025-3847 – Markparticle WebServer SQL Injection Vulnerability

    April 21, 2025

    Medical Card Generation System using PHP and MySQL

    July 27, 2024

    Windows 10 KB5053606 fixes SgrmBroker, direct download .msu

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

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