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

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 16, 2025

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

      May 16, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 16, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 16, 2025

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025

      Minecraft licensing robbed us of this controversial NFL schedule release video

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

      The power of generators

      May 16, 2025
      Recent

      The power of generators

      May 16, 2025

      Simplify Factory Associations with Laravel’s UseFactory Attribute

      May 16, 2025

      This Week in Laravel: React Native, PhpStorm Junie, and more

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

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025
      Recent

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»CodeSOD: I saw the Vorzeichen

    CodeSOD: I saw the Vorzeichen

    June 4, 2024

    Chilly inherited a VB .Net application which generates an “IDoc” file which is used to share data with SAP. That’s TRWTF, but the code has some fun moments:

    If ldCashOut < 0 Then ‘CashOut
    loE2WPB06002.vorzeichen = ” “
    Else
    loE2WPB06002.vorzeichen = ” “
    End If
    If liTRANSTYPE = 2 Then ‘Refund is always Positive
    loE2WPB06002.vorzeichen = “+”
    End If

    loE2WPB06002.summe = Math.Abs(ldCashOut).ToString ‘CashOut
    loE2WPB06002.zahlart = “PTCS” ‘CashOut
    loE2WPB06002.vorzeichen = “-“ ‘CashOut

    If ldCashOut is less than zero, then we set a field to ” “, if it’s not less than zero… we do the same thing. But wait, if the transaciton type is 2, then we set it to “+”. But then we set the same field to a “-“, unconditionally.

    Chilly describes this pattern as “if, else, eh screw it”.

    Chilly adds “in case you were wondering, the class and field names are abbreviated German words.” This is amazing, as it extends my (very limited) understanding of the language. I’m not sure what loE2WPB06002 is short for, but I’m sure it’s a beautiful, useful word, like “Donaudampfschiffahrtsgesellschaftskapitän” (Danube steamship company captain, which is clearly an important word in daily use).

    [Advertisement]
    BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleWhat Is Data Quality? Definition and Best Practices
    Next Article Sopht raises €3.3M for energy reduction SaaS

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 17, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-40906 – MongoDB BSON Serialization BSON::XS Multiple Vulnerabilities

    May 17, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Hiring Kit: Security Architect

    Development

    UAE Cyber Security Council Urges Samsung Users to Update Devices Against Data Theft

    Development

    The best holiday tech gifts under $25

    Development

    Loc-OS – Linux distribution based on Debian

    Linux

    Highlights

    Development

    How to Use Langbase Memory Agents to Make Any LLM a Conversational AI for Your Docs

    January 17, 2025

    It’s 2025, and Large Language Models (LLMs) still can’t access your private data. Ask them…

    Top Engineering Colleges

    June 5, 2024

    Business in the age of AI: From economies of scale to ecosystems of success

    November 6, 2024

    Top 9 Amazon Textract alternatives for data extraction

    November 19, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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