home.social

#bad-code — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #bad-code, aggregated by home.social.

fetched live
  1. Something about python makes it really easy for me to create incredibly annoying code.

    This was inside of 3 nested for loops (iterating n, k, and i). Situated on the single most breakable part of the entire algorithm.

    Yeahhh I'm gonna be refactoring this. Maybe I should also get some rest lol.

    #python #programming #badCode #CS

  2. [P] It just sets such a dangerous precedent ss I see people trusting AI AI highlights all the time—trusting entirely wrong, made-up information just because it's spoken with charismatic authority. I mean, I've even tried to challenge Gemini with its hallucinations, it'll swear up-and-down that a quote is found in the text, despite not being present. The average neurotypical person loves charismatic authority, how are they supposed to know?

    #psychology #actuallyautistic #google #ai #badcode

    -5

  3. [P] I've made the ooint recently that overconfidence correlates strongly with ineptitude. What worries me is that this stsnds for AI, too. As much as I hate AI, I loathe Google's Gemini the most. I think it's incredibly dangerous due to a mixture of overconfidence, stubbornnes, and ineptitude. It'll poorly parse its own citations, and will argumentatively refuse to reconsider no matter what contrary evidence is provided to it.

    #psychology #actuallyautistic #google #ai #badcode

    -1

  4. I see that the Met Office web site had fallen prey to make-it-good-on-a-phone syndrome and produced a public beta site that on a PC looks crude, cheap, unprofessional, Teletubbyesque fork-the-user lazy code.
    weather.metoffice.gov.uk/forec

    #PhoneWeb #BadCode #AgileCrap

  5. well hooooraaaay RecipeFriend now works (on chrome and maybe FF too)

    Save cleaned up versions of recipes from websites full ofcrap as the generally used Recipe Schema that works with, among other things, Mealie but also Paprika and larger digital cookbook/recipe-managers.

    Uses a lot of javascript and stuff, and uses google gemini AI to clean up the recipes. We could use a local AI but meh.

    github.com/nbhansen/RecipeFrie

    #llm #javascript #badcode

  6. Okay let's find the longest class object, today I found a class with 12k lines of code. Around 5-10% where functions commented out.

    What's the largest class file you ever found in a project?

    #Developer #BadCode #Coding #LargeClass #LargeFile

  7. Oh, joy! 🤦‍♂️ Yet another command-line tool that lets you #retry that command you *already* know is going to fail. Because obviously, the solution to bad code is to make it fail faster! 🚀 Why fix bugs when you can just keep smashing your head against the keyboard with style? 🧨
    github.com/MaxBondABE/attempt #commandline #tools #badcode #failfast #codinghumor #developerlife #HackerNews #ngated

  8. 📣 Presenting: Another JavaScript-to-EXE #compiler nobody asked for! 🎉 Now with the revolutionary ability to "skip to content" and "toggle navigation." 🌟 Because clearly, what the world needed was yet another way to turn bad #JavaScript into bad executables. 🚀
    github.com/astracompiler/cli #EXE #BadCode #TechNews #Innovation #HackerNews #ngated

  9. J'aime Ansible
    Je n'aime pas quand les gens font n'importe quoi avec
    On a donc un playbook qui lance littéralement 'oslevel' sur un AIX *alors* qu'Ansible collecte déjà cette information. Mais pire un appel de command "find /" sur TOUTES les bécanes donc tous les NFS sont scannés autant de fois qu'il y a de serveurs... sachant que les home des users sont en NFS
    Le NAS n'aime pas du tout 👿
    #ansible #badcode

  10. Product Security Bad Practices
    A Bit of Security for October 25, 2024
    The CISA and FBI jointly released a list of Ten Bad Ideas to avoid when you write code. Listen to this - youtube.com/watch?v=D33p6J3fne
    Let me know what you think in the comments below.
    #cybersecuritytips #safecode #CIE #securebydemand #securebydesign #badcode #BitofSec

  11. I have a new theory about Boots’s car crash of a website.

    I’ve become somewhat obsessed with the boots.com website and its endlessly hilarious bad front end. My theory in my last post was a bad or underskilled manager. A bully or an idiot or both.

    I still think there is some bad management shite going down at boots.com but I have started to wonder if the fault might not be further upon the chain […]

    #badCode #bigCompanyFails #Boots #codeSmell #errors #HCLTechnologies #IBM #managers #muggles #WebSphereCommerce #wizards #CodingAndDevelopment

  12. CW: Programming Rant

    Guy: Can you see why [project written by contractors two years ago] is running at 100% cpu?

    Me: Well, it doesn’t do that on my test setup. But it could be because:

    API calls aren’t async
    Database calls aren’t async
    “Virtual Serial Port” aka TCP to a serial device aren’t async

    So it’s almost certainly a network timeout that’s just hogging the only thread.

    🤬🤬🤬🤬🤬🤬🤬

    #Programming #DotNet #CSharp #ArchitectureFail #BadProgramming #BadCode #StupidCode #ScreamingIntoTheVoid

  13. Just for fun, I tried out that online .NET tutorial that Microsoft put together, but I intentionally tried to do every step wrong yet still get success. I know one could go waaaaaay wilder than this, but this is what I quickly came up with (the code that's expected is on the left):

    #dotnet #badcode

  14. You look at some code, and you wonder if it was written by a macaque, but then you remember that no, it was you who created this atrocity.

    TW for the image: really terrible code

    #rust #badcode #programming

  15. If consumers are trapped in a prison of surveillance capitalism, then the prison guards are the programmers and architects who build and operate the platforms they are imprisoned in. How long before being a computer programmer becomes a shameful profession? #privacy #badcode #darkpattern

  16. Considering how bad the HBO Android app is, and how equally bad the Discovery+ app is, I think the whole HBO / Warner Media / Discovery+ merger thing is a match made in heaven. It's a great way to lose customers.

    Why would anyone spend this amount of money with such a poor outcome 🤔👀

    #ux #software #usersfirst #badcode

  17. Not so #badCode.
    The original developer is very patient checking all variables and parents being defined before using them.

    Code is ECMAScript 5.

  18. Does anyone know yt-search project written in java that doesn't use youtube API
    Or a parser that gets yt video details like duration, title, videoId ?!?
    I will have to write one myself, right ?!
    #Badcode