Cleaning up more LLM slop at work. Some gems so far:
- Found a highly-optimised (and confusingly-written) cache for a tiny piece of data that's reloaded once a day.
- Found a scheduling system to ensure said piece of data is reloaded the very second it expires... which is always at midnight UTC, for which we already have a "refresh everything for a new day" trigger.
- Found a specialised hook to detect when the app is running in "mobile" (i.e. narrow view) mode. For a desktop app. With a completely separate mobile app. And the hook doesn't even do anything but disable an editable field, for some reason?
- Found a thirty-line method to build a "context" which consists of... the current user and their company ID, which is already on the user model. Can literally be replaced with a single line of code.
- A mass of checks and parsing and validation to ensure a stringified date isn't incorrect due to timezone differences, all of which could be avoided by using DateOnly instead of DateTime.
- JavaScript function calls being prepended with "void" for some reason?!
- Waffling comments full of misinformation everywhere, including one saying that a brand new (and very much used) feature is "legacy" and can be ignored.
I'm so very tired of this. If this is the future of software development then I don't want to do it any more.
#VibeCoding #AISlop #SoftwareDev