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

      The Value-Driven AI Roadmap

      September 9, 2025

      This week in AI updates: Mistral’s new Le Chat features, ChatGPT updates, and more (September 5, 2025)

      September 6, 2025

      Designing For TV: Principles, Patterns And Practical Guidance (Part 2)

      September 5, 2025

      Neo4j introduces new graph architecture that allows operational and analytics workloads to be run together

      September 5, 2025

      ‘Job Hugging’ Trend Emerges as Workers Confront AI Uncertainty

      September 8, 2025

      Distribution Release: MocaccinoOS 25.09

      September 8, 2025

      Composition in CSS

      September 8, 2025

      DataCrunch raises €55M to boost EU AI sovereignty with green cloud infrastructure

      September 8, 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

      Finally, safe array methods in JavaScript

      September 9, 2025
      Recent

      Finally, safe array methods in JavaScript

      September 9, 2025

      Perficient Interviewed for Forrester Report on AI’s Transformative Role in DXPs

      September 9, 2025

      Perficient’s “What If? So What?” Podcast Wins Gold Stevie® Award for Technology Podcast

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

      Distribution Release: MocaccinoOS 25.09

      September 8, 2025
      Recent

      Distribution Release: MocaccinoOS 25.09

      September 8, 2025

      Speed Isn’t Everything When Buying SSDs – Here’s What Really Matters!

      September 8, 2025

      14 Themes for Beautifying Your Ghostty Terminal

      September 8, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»News & Updates»CodeSOD: ConVersion Version

    CodeSOD: ConVersion Version

    July 24, 2025

    Mads introduces today’s code sample with this line: ” this was before they used git to track changes”.

    Note, this is not to say that they were using SVN, or Mercurial, or even Visual Source Safe. They were not using anything. How do I know?

    <span class="hljs-comment">/**
      * Converts HTML to PDF using HTMLDOC.
      * 
      * <span class="hljs-doctag">@param</span> printlogEntry
      ** <span class="hljs-doctag">@param</span> inBytes
      *            html.
      * <span class="hljs-doctag">@param</span> outPDF
      *            pdf.
      * <span class="hljs-doctag">@throws</span> IOException
      *             when error.
      * <span class="hljs-doctag">@throws</span> ParseException
    */</span>
    <span class="hljs-keyword">public</span> <span class="hljs-keyword">void</span> <span class="hljs-title function_">fromHtmlToPdfOld</span><span class="hljs-params">(PrintlogEntry printlogEntry, <span class="hljs-type">byte</span>[] inBytes, <span class="hljs-keyword">final</span> OutputStream outPDF)</span> <span class="hljs-keyword">throws</span> IOException, ParseException
    	{...}
    
    <span class="hljs-comment">/**
     * Converts HTML to PDF using HTMLDOC.
     * 
     * <span class="hljs-doctag">@param</span> printlogEntry
     ** <span class="hljs-doctag">@param</span> inBytes
     *            html.
     * <span class="hljs-doctag">@param</span> outPDF
     *            pdf.
     * <span class="hljs-doctag">@throws</span> IOException
     *             when error.
     * <span class="hljs-doctag">@throws</span> ParseException
     */</span>
    <span class="hljs-keyword">public</span> <span class="hljs-keyword">void</span> <span class="hljs-title function_">fromHtmlToPdfNew</span><span class="hljs-params">(PrintlogEntry printlogEntry, <span class="hljs-type">byte</span>[] inBytes, <span class="hljs-keyword">final</span> OutputStream outPDF)</span> <span class="hljs-keyword">throws</span> IOException, ParseException
    	{...}
    

    Originally, the function was just called fromHtmlToPdf. Instead of updating the implementation, or using it as a wrapper to call the correct implementation, they renamed it to Old, added one named New, then let the compiler tell them where they needed to update the code to use the new implementation.

    Mads adds: “And this is just one example in this code. This far, I have found 5 of these.”

    [Advertisement]
    ProGet’s got you covered with security and access controls on your NuGet feeds. Learn more.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleElektroid – sample and MIDI device manager
    Next Article Il podcast di Marco’s Box – Puntata 208

    Related Posts

    News & Updates

    ‘Job Hugging’ Trend Emerges as Workers Confront AI Uncertainty

    September 8, 2025
    News & Updates

    Distribution Release: MocaccinoOS 25.09

    September 8, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    CVE-2025-53825 – Dokploy Unauthenticated Code Execution and Secret Disclosure Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

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

    News & Updates

    CVE-2025-4144 – Cloudflare Workers-Oauth-Provider PKCE Bypass

    Common Vulnerabilities and Exposures (CVEs)

    It just hit me that I haven’t touched my Xbox Series X in months — Most of my gaming needs are met by handheld gaming PCs now, and I don’t want to go back

    News & Updates

    Highlights

    Tableau UI automation

    July 3, 2025

    Selenium does not recognize webelements of Tableau. Is there any tool which is successful for UI automation of Tableau ?

    Windows 11 Installation Assistant Download: 2025 Guide

    June 23, 2025

    CVE-2025-50979 – NodeBB SQL Injection

    August 27, 2025

    CVE-2025-5139 – Qualitor Office365 File Command Injection Vulnerability

    May 25, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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