Elektrine lite

← Feed

@cows_are_underrated@feddit.org

2026-10-27 06:15 UTC

My Colleagues really drive me crazy I got the first prototype version of the code for the project I’m currently working on. It is an Arduino Sketch, that contains 1k lines, stores every single Value needed as a global Variable and every function reads and writes to these global variables, instead of taking them in as parameters. This code is so bad, that I refuse to even look at it. The effort to take the existing codebase and transform it into something useable is as high as rewriting it from scratch. When telling my colleague that his code is absolute garbage, he just told me “its not my code, Claude did it”. I am constantly pushing towards implementing the project in a proper way, but it has been nothing but fights against people who don’t know how to code and who refuse to acknowledge that ignoring any standards of maintainable code does not turn out in the end and it makes sense to rewrite the project sooner than later.

Replies (11)

  • @Flower@sh.itjust.works 2026-10-27 06:38

    its not my code, Claude did it The software equivalent of “my mum picked out my clothes”

    Open ##5266710

  • @Cyber@feddit.uk 2026-10-27 07:37

    You’re gonna need some top-down support there. Get some coding(& documentation?) guidelines agreed with a manager (I’d hope there were some already) and then it’s not 1:1 opinions, it’s now “Best” Practice. But, keep it high level… rather than just going in anti-AI and having more resistance, have the structure there that enforces what you want; local variables (& no emojis for variable names), comments are / not required, etc. and then they could still use Claude, but their output would have to match what you’re after. Good Luck

    Open ##5267200

  • @ivan@piefed.social 2026-10-27 07:40

    My friend had an old colleague that was maintaining one project for decades. Grandpa sadly kicked the bucket at some point and friend inherited that project - tens of thousands of lines of Assembly. 🌝

    Open ##5267231

  • @CrypticCoffee@lemmy.ml 2026-10-27 08:01

    Frustrating. I would not say garbage. It is rude. But make clear it is not fit for purpose. Insist that code has to be maintainable and that code has tight coupling. "If I wanted Cluade to write everything, we could hire less devs, but you are trusted because the organisation wants high quality, so please rewrite it as it will not be approves so this work is not done.

    Open ##5267468

  • @locuester@lemmy.zip 2026-10-27 08:10

    Have you tried having a frontier model redo it in a coding standard that you prefer? You can do that by simply asking it. Dont knock it til ya try it.

    Open ##5267560

  • @bitfucker@programming.dev 2026-10-27 09:04

    Arduino is shit anyway. The only good thing it does is unifying API across different vendors and models

    Open ##5267966

  • @squaresinger@lemmy.world 2026-10-27 09:31

    Arduino is a toy/prototyping platform that you really shouldn’t use for productive solutions (it’s got terribly bad code quality, bugs that have been open for over a decade, it’s basically unmaintained by now). 1k lines is a micro project. It’s really small. All that’s on a level where if this is just an internal solution that isn’t sold to customers it’s ok if the code is shit as long as it works. If you are actually selling it to customers or you rely on it performing a critical function, you should urgently move away from Arduino anyway.

    Open ##5268352

  • @lime@feddit.nu 2026-10-27 10:34

    hate to break it to you but that’s called procedural programming and it’s a legitimate design for constrained systems. not that it would work as intended on an arduino considering the ide uses a c++ compiler, but still

    Open ##5268853

  • @surewhynotlem@lemmy.world 2026-10-27 10:45

    "its not my code, Claude did it You have to own what you produce regardless of what tool you use. He created shit using a shit factory. His use of a shit factory was his choice and does not absolve responsibility.

    Open ##5268987

  • @makeshift0546@lemmy.today 2026-10-27 11:30

    Skill issue. That and they are probably using a shirt free model with low context.

    Open ##5269688

  • @Agent641@lemmy.world 2026-10-28 08:06

    What are functions. What are classes. Just make more if statements

    Open ##5283609