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

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 17, 2025

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

      May 17, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 17, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 17, 2025

      Microsoft’s allegiance isn’t to OpenAI’s pricey models — Satya Nadella’s focus is selling any AI customers want for maximum profits

      May 17, 2025

      If you think you can do better than Xbox or PlayStation in the Console Wars, you may just want to try out this card game

      May 17, 2025

      Surviving a 10 year stint in dev hell, this retro-styled hack n’ slash has finally arrived on Xbox

      May 17, 2025

      Save $400 on the best Samsung TVs, laptops, tablets, and more when you sign up for Verizon 5G Home or Home Internet

      May 17, 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

      NodeSource N|Solid Runtime Release – May 2025: Performance, Stability & the Final Update for v18

      May 17, 2025
      Recent

      NodeSource N|Solid Runtime Release – May 2025: Performance, Stability & the Final Update for v18

      May 17, 2025

      Big Changes at Meteor Software: Our Next Chapter

      May 17, 2025

      Apps in Generative AI – Transforming the Digital Experience

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

      Microsoft’s allegiance isn’t to OpenAI’s pricey models — Satya Nadella’s focus is selling any AI customers want for maximum profits

      May 17, 2025
      Recent

      Microsoft’s allegiance isn’t to OpenAI’s pricey models — Satya Nadella’s focus is selling any AI customers want for maximum profits

      May 17, 2025

      If you think you can do better than Xbox or PlayStation in the Console Wars, you may just want to try out this card game

      May 17, 2025

      Surviving a 10 year stint in dev hell, this retro-styled hack n’ slash has finally arrived on Xbox

      May 17, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»News & Updates»A Bracing Way to Start the Day

    A Bracing Way to Start the Day

    March 27, 2025

    Barry rolled into work at 8:30AM to see the project manager waiting at the door, wringing her hands and sweating. She paced a bit while Barry badged in, and then immediately explained the issue:

    Today was a major release of their new features. This wasn’t just a mere software change; the new release was tied to major changes to a new product line- actual widgets rolling off an assembly line right now. And those changes didn’t work.

    “I thought we tested this,” Barry said.

    “We did! And Stu called in sick today!”

    Stu was the senior developer on the project, who had written most of the new code.

    “I talked to him for a few minutes, and he’s convinced it’s a data issue. Something in the metadata or something?”

    “I’ll take a look,” Barry said.

    He skipped grabbing a coffee from the carafe and dove straight in.

    Prior to the recent project, the code had looked something like this:

    if (IsProduct1(_productId))
    	_programId = 1;
    elseif (IsProduct2(_productId))
    	_programId = 2;
    elseif (IsProduct3(_productId))
    	_programId = 3;
    

    Part of the project, however, was about changing the workflow for “Product 3”. So Stu had written this code:

    if (IsProduct1(_productId))
    	_programId = 1;
    else if (IsProduct2(_productId))
    	_programId = 2;
    else if (IsProduct3(_productId))
    	_programId = 3;
    	DoSomethingProductId3Specific1();
    	DoSomethingProductId3Specific2();
    	DoSomethingProductId3Specific3();
    

    Since this is C# and not Python, it took Barry all of 5 seconds to spot this and figure out what the problem was and fix it:

    if (IsProduct1(_productId))
    {
    	_programId = 1;
    }
    else if (IsProduct2(_productId))
    {
    	_programId = 2;
    }
    else if (IsProduct3(_productId))
    {
    	_programId = 3;
    	DoSomethingProductId3Specific1();
    	DoSomethingProductId3Specific2();
    	DoSomethingProductId3Specific3();
    }
    

    This brings us to about 8:32. Now, given the problems, Barry wasn’t about to just push this change- in addition to running pipeline tests (and writing tests that Stu clearly hadn’t), he pinged the head of QA to get a tester on this fix ASAP. Everyone worked quickly, and that meant by 9:30 the fix was considered good and ready to be merged in and pushed to production. Sometime in there, while waiting for a pipeline to complete, Barry managed to grab a cup of coffee to wake himself up.

    While Barry was busy with that, Stu had decided that he wasn’t feeling that sick after all, and had rolled into the office around 9:00. Which meant that just as Barry was about to push the button to run the release pipeline, an “URGENT” email came in from Stu.

    “Hey, everybody, I fixed that bug. Can we get this released ASAP?”

    Barry went ahead and released the version that he’d already tested, but out of morbid curiosity, went and checked Stu’s fix.

    if (IsProduct1(_productId))
    	_programId = 1;
    else if (IsProduct2(_productId))
    	_programId = 2;
    else if (IsProduct3(_productId))
    {
    	_programId = 3;
    }
    
    if (IsProduct3(_productId))
    {
    	DoSomethingProductId3Specific1();
    	DoSomethingProductId3Specific2();
    	DoSomethingProductId3Specific3();
    }
    

    At least this version would have worked, though I’m not sure Stu fully understands what “{}”s mean in C#. Or in most programming languages, if we’re being honest.

    With Barry’s work, the launch went off just a few minutes later than the scheduled time. Since the launch was successful, at the next company “all hands”, the leadership team made sure to congratulate the people instrumental in making it happen: that is to say, the lead developer of the project, Stu.

    [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 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleFOSS Weekly #25.13: Kernel 6.14, Zorin 17.3, EU OS, apt Guide and More Linux Stuff
    Next Article 8 Useful Free Books to Learn about Deep Learning

    Related Posts

    News & Updates

    Microsoft’s allegiance isn’t to OpenAI’s pricey models — Satya Nadella’s focus is selling any AI customers want for maximum profits

    May 17, 2025
    News & Updates

    If you think you can do better than Xbox or PlayStation in the Console Wars, you may just want to try out this card game

    May 17, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Quick Hit #11

    Development

    Dinesh Kumar Shrimali Takes on Dual Role as CISO and DPO at Tata Steel

    Development

    Revolutionizing Deep Model Fusion: Introducing Sparse Mixture of Low-rank Experts (SMILE) for Scalable Model Upscaling

    Development

    OpenAI Finally Rolls Out ‘Much Needed’ ChatGPT Feature to Manage AI-Generated Content

    Operating Systems
    GetResponse

    Highlights

    Stored XSS Flaw in TP-Link WR841N Routers Could Expose Admin Credentials (CVE-2025-25427)

    April 22, 2025

    Stored XSS Flaw in TP-Link WR841N Routers Could Expose Admin Credentials (CVE-2025-25427)

    A security vulnerability has been identified in TP-Link WR841N routers, posing a risk to users. The vulnerability is a stored cross-site scripting (XSS) flaw found in the “upnp.htm” page of the web in …
    Read more

    Published Date:
    Apr 23, 2025 (55 minutes ago)

    Vulnerabilities has been mentioned in this article.

    CVE-2025-25427

    CVE-2024-57040

    CVE-2024-42815

    CVE-2023-1389

    CVE-2025-43008 – Microsoft SharePoint Information Disclosure Vulnerability

    May 13, 2025

    GraCoRe: A New AI Benchmark for Unveiling Strengths and Weaknesses in LLM Graph Comprehension and Reasoning

    July 9, 2024

    How to check webservice response in database using Selenium or UFT

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

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