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

      Sunshine And March Vibes (2025 Wallpapers Edition)

      June 2, 2025

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

      June 2, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      June 2, 2025

      How To Prevent WordPress SQL Injection Attacks

      June 2, 2025

      How Red Hat just quietly, radically transformed enterprise server Linux

      June 2, 2025

      OpenAI wants ChatGPT to be your ‘super assistant’ – what that means

      June 2, 2025

      The best Linux VPNs of 2025: Expert tested and reviewed

      June 2, 2025

      One of my favorite gaming PCs is 60% off right now

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

      `document.currentScript` is more useful than I thought.

      June 2, 2025
      Recent

      `document.currentScript` is more useful than I thought.

      June 2, 2025

      Adobe Sensei and GenAI in Practice for Enterprise CMS

      June 2, 2025

      Over The Air Updates for React Native Apps

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

      You can now open ChatGPT on Windows 11 with Win+C (if you change the Settings)

      June 2, 2025
      Recent

      You can now open ChatGPT on Windows 11 with Win+C (if you change the Settings)

      June 2, 2025

      Microsoft says Copilot can use location to change Outlook’s UI on Android

      June 2, 2025

      TempoMail — Command Line Temporary Email in Linux

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

    Hostinger
    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

    Sunshine And March Vibes (2025 Wallpapers Edition)

    June 2, 2025
    Tech & Work

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

    June 2, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    How to Scrape Data from a Website to Excel?

    Artificial Intelligence

    Zero Trust Architecture in Salesforce

    Development

    Rilasciata openSUSE Leap Micro 6.1: un Passo Avanti nella Gestione dei Container e delle VM

    Development

    Support for Query Builder Pipelines in Laravel 12.4

    Development

    Highlights

    Development

    Rilasciata PorteuX 1.8: La Prima Distribuzione GNU/Linux con Xfce 4.20

    December 17, 2024

    PorteuX 1.8, una distribuzione GNU/Linux basata su Slackware, è stata rilasciata oggi come una delle…

    Russia-Linked Gamaredon Uses Troop-Related Lures to Deploy Remcos RAT in Ukraine

    March 31, 2025

    Crafting Personalized Experiences with AI

    August 29, 2024

    CVE-2025-4007 – Tenda W12 and i24 HTTPd Stack-Based Buffer Overflow Vulnerability

    April 28, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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