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

      Sunshine And March Vibes (2025 Wallpapers Edition)

      June 1, 2025

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

      June 1, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      June 1, 2025

      How To Prevent WordPress SQL Injection Attacks

      June 1, 2025

      7 MagSafe accessories that I recommend every iPhone user should have

      June 1, 2025

      I replaced my Kindle with an iPad Mini as my ebook reader – 8 reasons why I don’t regret it

      June 1, 2025

      Windows 11 version 25H2: Everything you need to know about Microsoft’s next OS release

      May 31, 2025

      Elden Ring Nightreign already has a duos Seamless Co-op mod from the creator of the beloved original, and it’ll be “expanded on in the future”

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

      Student Record Android App using SQLite

      June 1, 2025
      Recent

      Student Record Android App using SQLite

      June 1, 2025

      When Array uses less memory than Uint8Array (in V8)

      June 1, 2025

      Laravel 12 Starter Kits: Definite Guide Which to Choose

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

      Photobooth is photobooth software for the Raspberry Pi and PC

      June 1, 2025
      Recent

      Photobooth is photobooth software for the Raspberry Pi and PC

      June 1, 2025

      Le notizie minori del mondo GNU/Linux e dintorni della settimana nr 22/2025

      June 1, 2025

      Rilasciata PorteuX 2.1: Novità e Approfondimenti sulla Distribuzione GNU/Linux Portatile Basata su Slackware

      June 1, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Tech & Work»Coded Smorgasbord: The Saddest Words: What If

    Coded Smorgasbord: The Saddest Words: What If

    January 8, 2025

    Conditional statements, we would hope, are one of the most basic and well understood constructs in any programming language. Hope, of course, is for fools and suckers, so let’s take a look at a few short snippets.

    Our first installment comes from Jonas.

    if (!checkAndDelete(Definitions.DirectoryName, currentTime)); //Empty statement
    

    I appreciate the comment, which informs us that this empty statement is intentional. Why it’s intentional remains mysterious.

    Jonas found this while going through linter warnings. After fixing this, there are only 25,000 more warnings to go.

    Brodey has a similar construct, but from a very different language.

    If (Session.Item(Session.SessionID & "Origional") IsNot Nothing) Then
    End If
    

    I have to give bonus points for the origional spelling of “original”. But spelling aside, there’s a hint of something sinister here- we’re concatenating strings with the SessionId– I don’t know what is going wrong here, but it’s definitely something.

    Our last little snippet comes from Midiane. While not a conditional, it shows a misunderstanding of either booleans or comments.

    $mail->SMTPAuth = false; // turn on SMTP authentication
    

    The comment clearly is out of date with the code (which is the main reason we shouldn’t repeat what is in the code as a comment). At least, we hope the comment is just out of date. A worse scenario is that setting the flag equal to false enables it.

    [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 ArticleXbox and Microsoft pledge to double down on Windows improvements for gamers, as Valve’s Steam OS turns up the heat — now faced with real competition, it’s time for Windows change
    Next Article Ubisoft breaks down the fundamentals of parkour for Assassin’s Creed Shadows

    Related Posts

    Tech & Work

    Sunshine And March Vibes (2025 Wallpapers Edition)

    June 1, 2025
    Tech & Work

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

    June 1, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Clean Code Secrets: Push Ifs Up, Pull Fors Down Like a Pro

    Development

    CVE-2024-40461 – Ocuco Innovation Privilege Escalation Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Generating audio for video

    Artificial Intelligence

    SPA authentication with Auth0 and Vue.js

    Development

    Highlights

    Development

    Windows Central Tech Awards 2024 — Ranking the top PCs, tools, accessories, and software innovations of the year

    December 24, 2024

    2024 was an exciting year in tech. From AI innovations to handheld gaming PCs, 2025…

    L’importanza di Scegliere la Giusta Distribuzione GNU/Linux tra Quelle Rilasciate nel 2024

    December 29, 2024

    CVE-2025-47229 – GNU PSPP Denial of Service Vulnerability

    May 3, 2025

    4 ways you can start using gen AI to its full potential

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

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