The same person as Daedskin@lemm.ee and Daedskin@programming.dev

  • 0 Posts
  • 1 Comment
Joined 4 months ago
cake
Cake day: June 26th, 2025

help-circle
  • I once worked on a project doing firmware that a lot of people have likely used (printer firmware for a big-name company). One of the more trafficked functions was something like 1500 lines of “if-elseif-elseif…” with something like 13 or 14 different cases.
    It did end up getting refactored to something polymorphic and based on a configuration file to cut out any unnecessary steps, but it was like that for a while before I got there, and was like that for most of the year that I was part of the project.