#ai #llm #CodeSmell
thomasrigby.com/posts/knowledge-smells-genai-and-subject-matter-expertise/
Today is a let’s fix all the warnings in the thousands of lines of groovy we have been letting rot for 2 years type of day.
I got nothing against groovy other than it’s excessively difficult to even lint outside of running it in a jenkins environment. So I guess groovy using jenkins libraries and such.
The juice just ain’t worth the squeeze, or I tell myself that and then end up in situations like this 💀
#Development #Findings
‘aria-label’ is a letdown · “One in three ‘aria-label’ implementations have likely issues.” https://ilo.im/162zei
_____
#CodeSmell #AriaLabel #ARIA #Accessibility #WebDev #Frontend #HTML
Code Smell 291 - Mutable Keys
TL;DR: When you use mutable objects as keys in hashed collections, changing them breaks contracts. Problems 😔 Lost Values Hard Debugging The Least Surprise Principle Violation Unexpected Behavior Solutions 😃 Use immutable objects as keys. Overr...
Function Properties in Data Classes are Code Smells
To me, using functions as properties in the primary constructor of a data class is a code smell. Here’s why: Data classes represent data. Data is a value. Data is never executed. Functions are not data. They produce values when executed. Note: By the book, a function returns a value, while a procedure executes commands. In both cases, neither is data. Why It Matters Kotlin generates key methods for data classes based on the properties in the primary constructor, such as:
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 #IHaveNotes #IBM #managers #muggles #WebSphereCommerce #wizards #CodingAndDevelopment
New #rstats blog post: "Code Smell: Error Handling Eclipse"
https://www.njtierney.com/post/2023/12/06/long-errors-smell/
Where I discuss a code smell I've found lately, too much input error handling inside a function totally eclipses the intent of the function.
You know it's about to get rough when the service you're about to work on starts with #region Fields and the #endregion is not even in sight.