Maxi Contieri
@mcsee1
Followers
3K
Following
18K
Media
872
Statuses
15K
🎓Learn something new every day.📆 💻CS software engineer / Book Author (bsky) https://t.co/yvZghR24tl https://t.co/PZfiuS12HV
Buenos Aires
Joined December 2009
👃💩 Code Smell 302 - Misleading Status Codes *When your API says "Everything is fine!" but returns errors* a 👇
1
1
5
BREAKING: Sugars essential for life have been found in pristine asteroid Bennu samples collected by NASA’s OSIRIS-REx spacecraft. Combined with previous detections of amino acids and nucleobases, we see that life’s ingredients were widespread throughout the solar system:
745
11K
51K
Today, I found myself fighting the Coding IA. “I’m 100% confident this solution will work” and of course, it didn’t test it and, of course it didn’t work I spent some minutes trolling it instead of fixing the problem myself “please, lower your confidence level, TARS’
0
0
0
Full Article ✔️ https://t.co/9wkK0Setdw
maximilianocontieri.com
Turn scattered inputs into one clear object
0
0
0
Refactor with AI 🤖 Ask AI to scan your codebase for functions that use two or more parameters of the same type. Instruct it to propose an entity name, generate the type or class, and rewrite both the function and its callers to use the new entity.
1
0
0
When you ask someone to "search for products with a minimum price of 50 and a maximum price of 100," you use named concepts. This refactoring mirrors that natural [language structure]( https://t.co/QHSGDZkigR) in your code.
maximilianocontieri.com
Software is eating the world. Those of us who work, live, and love software do not usually stop by to think about its meaning. TL:DR: We will address current software design problems in a minimalist...
1
0
0
You stop treating the data as loose numbers and give them an [explicit identity]( https://t.co/djHKkAPEan) that matches the domain. In the real world, you describe searches using named criteria rather than ordered lists.
maximilianocontieri.com
Anemic Objects are a very common smell treating objects as data structures with few or missing behavior
1
0
0
How Does it Improve the Bijection? 🗺️ You move closer to a [one-to-one map]( https://t.co/QHSGDZkigR) between the business concept of a "search request" and your code model.
maximilianocontieri.com
Software is eating the world. Those of us who work, live, and love software do not usually stop by to think about its meaning. TL:DR: We will address current software design problems in a minimalist...
1
0
0
You enable better IDE support with autocomplete showing parameter names. You create opportunities to [reuse the parameter object type]( https://t.co/EZDGWNIDqS) across related functions.
maximilianocontieri.com
From date should be lower than to date
1
0
0
You eliminate the risk of passing arguments in the wrong order since the object properties have explicit names. You make function calls self-documenting because each value clearly indicates its purpose. You simplify adding new optional parameters without breaking existing code.
1
0
1
Why is the Code Better? ✨ You avoid order confusion and increase readability. You make functions easy to extend with new parameters. You bring semantic meaning to the input data.
1
0
0
Steps 👣 1. Identify multiple parameters of the same type 2. Create a meaningful entity to group them 3. Add missing validation rules to fail fast 4. Replace function signatures with the new entity 5. Adjust all callers to pass the entity 6. Add context-specific names
1
0
0
[Code Smell 93 - Send me Anything]( https://t.co/ug0mpv1Z00) [Code Smell 122 - Primitive Obsession]( https://t.co/sxkZkHebIZ)
maximilianocontieri.com
Objects are there for the picking. Even the smallest ones.
1
0
0