Login
You're viewing the functional.cafe public feed.
  • Nov 13, 2026, 11:51 PM

    @quixoticgeek I have optimized scripts which analyzed hundreds of gigabytes of data on my 4GB RAM Laptop when a normal amount was 8GB or 16GB. It was the worst software quality you could imagine (software isn't even an adequate name). I reduced practically all resource usage (CPU, RAM, disk access) by huge amounts and introduced modularity and version control to the code.

    💬 1🔄 0⭐ 7

Replies

  • Nov 13, 2026, 11:57 PM

    @quixoticgeek The person who was working on the code before and after me came back to me with a question. I couldn't answer it immediately so I asked: <Can you show me the code you're talking about? You probably have it open onscreen, right?
    <them> Yeah, I printed it out
    <me> Hahahahah
    <them> ...
    <me>... Wait, did you really?
    <them> yes.
    <me> oh sorry.

    Well, we went into his room and he had at least 10 pages of code taped to the walls of his office. And circled some stuff with colors

    💬 2🔄 4⭐ 15
  • 💬 1🔄 0⭐ 5
  • Nov 14, 2026, 12:07 AM

    @quixoticgeek There were huge improvements like 94% CPU time reduction for two function (10s each), 96% (468MB) reduction in wasted RAM for another function and more than 97% reduction in disk usage (loading time) for some applications.

    And I hadn't even addressed the fact that they used the CSV format for measurements which had 100GB collected in a day because I only worked on the analysis part, not the measurement.

    💬 0🔄 0⭐ 9
  • 💬 1🔄 0⭐ 0
  • Nov 14, 2026, 6:17 PM

    @BoydStephenSmithJr @quixoticgeek In hindsight I shouldn't have laughed at this. Of course there are valid reasons to use paper.
    I think this person had never learned about programming abstraction and standard tools (IDE and all the little digitsl tools that make reading code easier). They just tried to understand what I did and where overwhelmed by using multiple files in an object oriented approach.
    Before my refactoring it was 1-2000 lines of code with loops spanning almost the whole thing.

    💬 1🔄 0⭐ 1
  • Nov 14, 2026, 6:28 PM

    @Segebodo @quixoticgeek Yeah, been on both sides of that. I learned what cscope I know because I watched a senior use it to navigate the codebase while he was helping me. I've shown a couple of different abstractions to juniors that had gotten a bit too liberal with copy-paste.

    💬 0🔄 0⭐ 0