<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Thiago Rocha Camargo on Medium]]></title>
        <description><![CDATA[Stories by Thiago Rocha Camargo on Medium]]></description>
        <link>https://medium.com/@rochacamargothiago?source=rss-4632ca0c622a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*wNei9YNRP-oCDFSB.</url>
            <title>Stories by Thiago Rocha Camargo on Medium</title>
            <link>https://medium.com/@rochacamargothiago?source=rss-4632ca0c622a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 08:10:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rochacamargothiago/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Your Boss Might Be an Influencer (and That’s a Problem)]]></title>
            <link>https://medium.com/@rochacamargothiago/your-boss-might-be-an-influencer-and-thats-a-problem-07e6e7015b14?source=rss-4632ca0c622a------2</link>
            <guid isPermaLink="false">https://medium.com/p/07e6e7015b14</guid>
            <category><![CDATA[mangement]]></category>
            <category><![CDATA[team]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[slack]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Thiago Rocha Camargo]]></dc:creator>
            <pubDate>Mon, 04 Aug 2025 14:03:42 GMT</pubDate>
            <atom:updated>2025-08-04T14:03:42.560Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7df4Q1O6eHDq6Pu6crSWSg.png" /></figure><h3>When leadership turns into content repost strategy</h3><p><strong>There’s a shift happening in today’s workplace — and it’s not productivity software, hybrid work, or AI.</strong></p><p>It’s the rise of the <strong>performative(&quot;Influencer&quot;) manager</strong>: a leader who’s more focused on sharing articles than solving problems. More interested in recognition than responsibility.</p><blockquote><strong><em>They aren’t leading — they’re curating, chasing recognition through constant visibility rather than actual leadership.</em></strong></blockquote><h3>The Performance of Presence</h3><p>You’ve seen the signs.</p><blockquote><em>“Your manager’s feed is a highlight reel of leadership quotes, Simon Sinek one-liners, and AI insights — but none of it touches the actual challenges their team faces.”</em></blockquote><p>They’re constantly visible. But when team tension rises, deadlines slip, or decisions stall — they’re nowhere to be found. But their visibility isn’t anchored in outcomes. It’s anchored in optics.</p><h3>The AI Aggravation</h3><p>The situation is worsening with the rise of <strong>AI-generated leadership content</strong>. Managers now have endless material at their fingertips: polished blurbs about empathy, innovation, and emotional intelligence — none of it rooted in actual team experience.</p><p>It’s fast. It’s frictionless. And it’s dangerously hollow.</p><p>When AI-generated posts replace human insight, leadership loses its edge. The message may sound right, but the impact is missing.</p><h3>Teams Deserve Leaders, Not Content Creators</h3><p>This influencer-style management creates real consequences:</p><ul><li>Surface-level engagement replaces deep support.</li><li>Public praise substitutes private coaching.</li><li>“Knowledge sharing” becomes a smokescreen for avoiding accountability.</li></ul><p>Internal tools turn into internal stages. And teams become passive spectators rather than active collaborators.</p><h3>What Real Leaders Actually Do</h3><p>Real leadership isn’t built on reposts or AI summaries.</p><p>It’s built on presence, context, and decisions.</p><ul><li>They praise real impact, not generic behaviors.</li><li>They share wins grounded in actual success, not theory.</li><li>They use platforms to elevate their teams, not themselves.</li></ul><blockquote><strong><em>Leadership is not content marketing. <br>It’s not about staying visible — it’s about staying useful.</em></strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=07e6e7015b14" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Authorize Cookies on Cache or on Signatures?]]></title>
            <link>https://medium.com/@rochacamargothiago/auth-cookies-on-cache-or-signatures-618495ea001d?source=rss-4632ca0c622a------2</link>
            <guid isPermaLink="false">https://medium.com/p/618495ea001d</guid>
            <category><![CDATA[cookies]]></category>
            <category><![CDATA[jwt]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[cache]]></category>
            <dc:creator><![CDATA[Thiago Rocha Camargo]]></dc:creator>
            <pubDate>Mon, 07 Oct 2024 08:41:02 GMT</pubDate>
            <atom:updated>2024-10-07T08:41:47.793Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Lock with multi types of keys" src="https://cdn-images-1.medium.com/max/1024/1*NFevDF_yAoZUTJXW6US5EA.jpeg" /></figure><p>Whether to use <strong>cached values on Redis</strong> or simply rely on <strong>checking signatures</strong> depends on the specific use case, trade-offs in complexity, performance, and security. Here’s an expanded view of both options:</p><h3><strong>1. Using Cached Values on Redis</strong></h3><p><strong>Pros:</strong></p><p>• <strong>Fast Lookup</strong>: Redis provides low-latency data retrieval, making it ideal for caching frequently accessed data like session information or tokens. This minimizes the need to perform expensive operations (e.g., database queries or API calls).</p><p>• <strong>Revocation</strong>: With Redis, you can easily invalidate or update cached tokens or values in real-time. This is important for scenarios where you need to immediately revoke access (e.g., logging out a user or terminating a session).</p><p>• <strong>Centralized Control</strong>: Redis allows you to centralize session or token management, giving you more control over user sessions and access control.</p><p>• <strong>Scalability</strong>: Redis can scale horizontally, making it suitable for large-scale systems with distributed services that need quick access to shared session data.</p><p><strong>Cons:</strong></p><p>• <strong>Operational Overhead</strong>: You need to manage a Redis cluster (with potential scaling and redundancy requirements), which introduces additional complexity in infrastructure.</p><p>• <strong>Network Latency</strong>: Although Redis is fast, there’s still network overhead, especially in distributed environments where services are far from the Redis server.</p><p>• <strong>Consistency Risks</strong>: In the case of distributed systems, ensuring consistency between Redis and other data stores (like the main database) can introduce complexity.</p><p><strong>Best Use Case:</strong></p><p>• When user sessions or token revocation are crucial.</p><p>• In large, distributed systems where centralized session management is needed.</p><h3><strong>2. Simply Checking Signatures</strong></h3><p><strong>Pros:</strong></p><p>• <strong>Stateless</strong>: Since the signatures (like JWTs) are self-contained and signed, they do not require a centralized store like Redis to validate. This makes your application more stateless and reduces infrastructure complexity.</p><p>• <strong>Performance</strong>: Signature checks are lightweight, and since the token is validated on the application side (usually via HMAC or RSA), you avoid network calls to Redis or any other external store. The signature ensures data integrity and authenticity without needing a real-time lookup.</p><p>• <strong>Simplicity</strong>: You don’t need additional services like Redis, as all you need is the public key (for asymmetric signatures) or secret key (for symmetric signatures) to verify the token.</p><p>• <strong>Scalability</strong>: This approach scales very well since each request carries its own proof of authorization (through the signed token), eliminating the need for centralized session stores.</p><p><strong>Cons:</strong></p><p>• <strong>No Immediate Revocation</strong>: Once a token is signed and issued, it remains valid until it expires. If a user’s session needs to be revoked immediately (e.g., compromised credentials), you can’t do that unless you track blacklists or revocation lists, which reintroduces some complexity.</p><p>• <strong>Token Bloat</strong>: Signatures (especially with JWTs) can grow in size, especially when embedding a lot of claims. This can increase the size of requests when these tokens are passed in HTTP headers.</p><p>• <strong>Limited Control</strong>: You lose fine-grained control over sessions, especially for user logouts or force expiration scenarios unless you build additional logic to handle this (e.g., token revocation lists).</p><p><strong>Best Use Case:</strong></p><p>• When you need to minimize infrastructure complexity.</p><p>• In scenarios where revocation is not critical or expiration times are short.</p><p>• For stateless, highly scalable microservices architectures.</p><h3><strong>Hybrid Approach: Redis-backed Tokens with Signatures</strong></h3><p>For many use cases, a hybrid approach can be optimal. You can issue signed tokens (like JWTs) for statelessness and scalability while also maintaining a Redis store for real-time session validation and revocation.</p><p>• <strong>How it works</strong>: Signed tokens are issued to clients, but each request also checks Redis to ensure the token/session hasn’t been revoked.</p><p>• <strong>Benefits</strong>: You get the best of both worlds — stateless, fast token verification, and the ability to revoke sessions in real-time when necessary.</p><p>• <strong>Drawbacks</strong>: Adds some complexity, as you’re using both Redis and signature validation.</p><p><strong>Conclusion:</strong></p><p>• <strong>For performance and simplicity</strong> in environments where real-time revocation is not critical, checking <strong>signatures</strong> is a better approach.</p><p>• <strong>For real-time control and security</strong>, especially when dealing with sessions that need to be managed or revoked dynamically, using <strong>Redis for cached values</strong> is more appropriate.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=618495ea001d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[llama3 on OSX M2/M3]]></title>
            <link>https://medium.com/@rochacamargothiago/llama3-on-osx-m2-m3-dd1ec1b5b429?source=rss-4632ca0c622a------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd1ec1b5b429</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[gpt-4]]></category>
            <category><![CDATA[llama-3]]></category>
            <category><![CDATA[mac]]></category>
            <dc:creator><![CDATA[Thiago Rocha Camargo]]></dc:creator>
            <pubDate>Wed, 01 May 2024 10:08:31 GMT</pubDate>
            <atom:updated>2024-05-01T10:09:56.602Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yvWWAulmwUKxiAyO9YJmww.jpeg" /></figure><p>Llama 3 is the latest generation of open weights large language models from Meta, available in 8B and 70B parameter sizes. Here is a simple and effective method to install and run Llama 3 on your Mac:</p><h4>Installing Ollama</h4><p>Steps:</p><ol><li>Download Ollama from the official site: <a href="https://ollama.com/download/Ollama-darwin.zip">https://ollama.com/download/Ollama-darwin.zip</a></li><li>Unzip the file and Open &#39;Ollama&#39; Application</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*HK2N9ObYKjY3AG0wbEnNsQ.png" /></figure><p>Accept the installation steps. This will make ollama available in your prefered OSX Terminal.</p><h3>Running your model</h3><p>Simply run the following command:</p><pre>ollama run llama3</pre><p>You should see similar progress in your terminal:</p><pre>#pulling manifest<br>#pulling 00e1317cbf74... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 4.7 GB<br>#pulling 4fa551d4f938... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏  12 KB<br>#pulling 8ab4849b038c... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏  254 B<br>#pulling 577073ffcc6c... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏  110 B<br>#pulling ad1518640c43... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏  483 B<br>#verifying sha256 digest<br>#writing manifest<br>#removing any unused layers<br>#success<br>#<br>&gt;&gt;&gt; How to build an airplane?<br>#What a fascinating question!<br>#<br>#Building an airplane is a complex and challenging project that requires expertise in various fields, including aerospace engineering, materials science, manufacturing, and more.<br>#However, I&#39;ll provide a general overview of the process, highlighting the key steps involved.</pre><p>You can interact with llama3 via the terminal console.</p><h3>Interacting with API interface (similar to &quot;OpenAI&quot;)</h3><pre><br>#To interact with the regular stream response HTTP SSE<br>curl http://localhost:11434/api/chat -d &#39;{<br>  &quot;model&quot;: &quot;llama3&quot;,<br>  &quot;messages&quot;: [<br>    { &quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;How awesome is llama3?&quot; }<br>  ]<br>}&#39;<br><br>#To interact with the regular single response<br>curl http://localhost:11434/api/chat -d &#39;{<br>  &quot;model&quot;: &quot;llama3&quot;,<br>  &quot;messages&quot;: [<br>    { &quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;How awesome is llama3?&quot; }<br>  ],<br>  &quot;stream&quot;: false<br>}&#39;</pre><p>For more details refer to: <a href="https://github.com/ollama/ollama/blob/main/docs/api.md">ollama/docs/api.md at main · ollama/ollama · GitHub</a></p><h3>Tunning &#39;modelfile&#39;</h3><p><strong>Create a &#39;modelfile&#39; from your model:</strong></p><pre>ollama show llama3:70b --modelfile &gt; myllama3.modelfile</pre><p><strong>Edit your custom &#39;modelfile&#39;:</strong></p><pre>vim myllama3.modelfile</pre><pre># Modelfile generated by &quot;ollama show&quot;<br># To build a new Modelfile based on this one, replace the FROM line with:<br># FROM llama3:8b<br><br>FROM llama3:8b<br>TEMPLATE &quot;&quot;&quot;{{ if .System }}&lt;|start_header_id|&gt;system&lt;|end_header_id|&gt;<br><br>{{ .System }}&lt;|eot_id|&gt;{{ end }}{{ if .Prompt }}&lt;|start_header_id|&gt;user&lt;|end_header_id|&gt;<br><br>{{ .Prompt }}&lt;|eot_id|&gt;{{ end }}&lt;|start_header_id|&gt;assistant&lt;|end_header_id|&gt;<br><br>{{ .Response }}&lt;|eot_id|&gt;&quot;&quot;&quot;<br>PARAMETER num_thread 16<br>PARAMETER num_gpu 18<br>PARAMETER num_keep 24<br>PARAMETER stop &quot;&lt;|start_header_id|&gt;&quot;<br>PARAMETER stop &quot;&lt;|end_header_id|&gt;&quot;<br>PARAMETER stop &quot;&lt;|eot_id|&gt;&quot;</pre><p><strong>Create a custom model from your &#39;modelfile&#39;:</strong></p><pre>ollama create myllama3 --file myllama3.modelfile<br><br>#transferring model data<br>#reading model metadata<br>#creating template layer<br>#creating parameters layer<br>#creating config layer<br>#using already created layer sha256:4fe022a8902336d3c452c88f7aca5590f5b5b02ccfd06320fdefab02412e1f0b<br>#using already created layer sha256:4fa551d4f938f68b8c1e6afa9d28befb70e3f33f75d0753248d530364aeea40f<br>#using already created layer sha256:8ab4849b038cf0abc5b1c9b8ee1443dca6b93a045c2272180d985126eb40bf6f<br>#using already created layer sha256:62d2b99ae7ca96167d282d60ed643309a60af333c21b1ebe8c8695fa31e31a7f<br>#using already created layer sha256:14a4939e5740d07f9b1bb8880a2eaa19098b0ad70193de3f334d265eb05b77d2<br>#writing manifest<br>#success</pre><p><strong>Running your custom model:</strong></p><pre>ollama run myllama3</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd1ec1b5b429" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Limits of Language in Emotion Classification: Uncharted Territories]]></title>
            <link>https://medium.com/@rochacamargothiago/the-limits-of-language-in-emotion-classification-uncharted-territories-902fbc5b73d9?source=rss-4632ca0c622a------2</link>
            <guid isPermaLink="false">https://medium.com/p/902fbc5b73d9</guid>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[language]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Thiago Rocha Camargo]]></dc:creator>
            <pubDate>Sat, 06 Apr 2024 08:36:50 GMT</pubDate>
            <atom:updated>2024-05-01T09:35:49.060Z</atom:updated>
            <content:encoded><![CDATA[<p>Human emotions are intricate and multifaceted, shaping our experiences, behaviors, and interactions. Yet, our ability to express and classify emotions through language has inherent limitations. In this article, we delve into the challenges posed by linguistic boundaries in capturing the full spectrum of human feelings.</p><p><strong>The Multilingual Landscape</strong><br>There are over 7,100 active languages spoken across the globe, each with its unique cultural nuances and emotional expressions. However, building emotion classification models for every language is a labor-intensive endeavor. Particularly for low-resource and endangered languages, the task becomes even more daunting.</p><p><strong>Universal Emotions: A Quest for Common Ground</strong><br>Psychologists have long studied universal emotions, seeking common threads that transcend linguistic and cultural barriers. The influential psychological model proposed by Paul Ekman in 1993 identifies six basic emotions: happiness, sadness, anger, fear, surprise, and disgust. These emotions serve as foundational building blocks for many Natural Language Processing (NLP) tasks.</p><p>But can these six labels truly encapsulate the rich tapestry of human feelings? Are they universally applicable across all languages? The answer is both fascinating and complex.</p><p><strong>The Challenge of Untranslatable Emotions</strong></p><p>Some emotions lack direct translations in certain languages. For instance, the Portuguese word “saudade” conveys a deep longing or nostalgia that defies a succinct English equivalent. Similarly, the Japanese term “wabi-sabi” encompasses the beauty of imperfection and transience.<br><strong>Cultural Nuances</strong>: Emotions are culturally embedded. The way joy manifests in one culture may differ from another. For instance, the exuberance of a Brazilian carnival contrasts with the serene contentment of a Japanese tea ceremony.<br><strong>Context Matters</strong>: Emotions are context-dependent. A single word may evoke different feelings based on the situation. Consider the English word “love.” It spans affection for family, romantic passion, and platonic camaraderie.</p><p><strong>Bridging the Gap: Cross-Lingual Emotion Classification</strong><br>To address these challenges, researchers explore cross-lingual transfer learning. By training emotion classifiers on resource-rich languages (such as English) and transferring knowledge to low and moderate-resource languages, we bridge the gap. Two approaches emerge:</p><p><strong>Annotation Projection</strong>: This method projects annotations from high-resource languages onto parallel corpora in low-resource languages. It leverages shared emotional patterns.<br><strong>Direct Transfer</strong>: Here, emotion knowledge directly transfers from high-resource languages to others. While riskier, it yields promising results.</p><p><strong>Case Study: Emotion Transfer Across Languages</strong></p><p>In this investigation, the direct transfer approach was explored across six languages: Farsi, Arabic, Spanish, Ilocano, Odia, and Azerbaijani. Rather than relying on traditional annotation methods, the method bypasses the need for extensive annotations in each language and instead leverages emotion knowledge directly from high-resource languages.</p><p>The results were intriguing. Direct cross-lingual transfer outperformed random baselines, demonstrating the promise of this approach. Additionally, a proactive step was taken by creating annotated emotion-labeled resources specifically for Farsi, Azerbaijani, Ilocano, and Odia. These resources serve as valuable assets for future research in uncharted linguistic territories.</p><p>Emotions, it seems, transcend the confines of language. As we continue our journey, let us embrace the challenge of capturing the ineffable feelings that shape our existence, even when words fall short.</p><p><strong>Conclusion: Beyond Words</strong><br>As we navigate the limits of language, we recognize that emotions extend beyond mere words. They reside in music, art, gestures, and shared experiences. While our linguistic toolbox may be finite, the human heart’s capacity for feeling remains boundless.</p><p>In our pursuit of understanding, let us embrace the uncharted territories—the feelings yet unnamed, waiting to be discovered and expressed.</p><p><strong>Reference Authors:</strong></p><p><em>Shabnam Tafreshi</em>, University of Maryland, Science Academy, Maryland, USA<br><em>Shubham Vatsal</em>, New York University, CIMS, New York, USA<br><em>Mona Diab</em>, Carnegie Mellon University, LTI, Pennsylvania, USA</p><p>https://arxiv.org/html/2402.18424v1</p><ul><li><em>This article draws inspiration from the rich tapestry of human emotions and the quest to capture them within the confines of language. Let us continue exploring, celebrating, and honoring the ineffable feelings that shape our existence.</em> 🌟</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=902fbc5b73d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The dark side of management coercion]]></title>
            <link>https://medium.com/@rochacamargothiago/the-dark-side-of-management-coercion-b29f06b6a7a4?source=rss-4632ca0c622a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b29f06b6a7a4</guid>
            <category><![CDATA[boss]]></category>
            <category><![CDATA[management]]></category>
            <category><![CDATA[scrum]]></category>
            <dc:creator><![CDATA[Thiago Rocha Camargo]]></dc:creator>
            <pubDate>Wed, 03 Jan 2024 14:48:38 GMT</pubDate>
            <atom:updated>2024-01-03T14:48:52.134Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7CtC2Y2Ii4rObwBbapQVZg.jpeg" /></figure><p>When immature and unready managers lack genuine competence, they may resort to a troubling practice of hiding behind a façade of individual coercion, essentially &quot;cosplaying&quot; as managers they’ve seen on TV shows. This misguided emulation of fictional, often exaggerated portrayals of authority figures can lead to a host of detrimental outcomes. Firstly, the disconnection between their actual capabilities and the projected image creates a stark incongruence that is palpable within the team. Employees may quickly discern the lack of genuine leadership qualities, eroding trust and respect.</p><p>This &quot;cosplaying&quot; approach tends to prioritize a one-size-fits-all, authoritarian style, which may not align with the unique needs and dynamics of the team. It stifles open communication and discourages collaboration, as team members may feel hesitant to voice concerns or contribute ideas in an environment dominated by a superficial display of authority. The focus on coercion over competence often results in poor decision-making, as these managers may lack the necessary knowledge and skills to navigate complex challenges.</p><p>Additionally, the emotional toll on team members can be significant. Constant exposure to a manager who is more interested in theatrics than genuine leadership can lead to frustration, disengagement, and even increased turnover. In essence, when managers &quot;cosplay&quot; as effective leaders without the substance to back it up, they compromise the team’s potential, hinder professional growth, and contribute to a toxic work culture.</p><p>Forcing futile authority upon a team can lead to devastating consequences both for the collective and individual members. When leaders lack genuine competence and attempt to exercise authority solely through coercion or arbitrary power, it creates an environment of mistrust and disengagement. Team morale plummets as individuals feel undervalued and demotivated in the face of ineffective leadership. Forced authority often results in a stifled creativity and innovation within the team, as members may hesitate to share ideas or contribute fully when they perceive the leadership as arbitrary or uninformed. This not only hampers the team’s overall productivity but can also have lasting effects on the mental well-being of individuals who feel trapped in a system that prioritizes futile authority over genuine competence.</p><p>The impact of such an approach can be profound, eroding both the team’s potential and the well-being of its members.</p><h3>The inconvenience of the root causes</h3><p>Competency is the cornerstone of effective leadership and successful collaboration. In any field, individuals who possess the skills and knowledge necessary to navigate challenges are better equipped to guide teams towards achievement. A leader’s influence is not derived solely from a title or position; it’s rooted in a demonstrated ability to make informed decisions, solve problems, and inspire others. When leaders rely solely on authority without the backing of competence, their effectiveness diminishes, and trust erodes. Employees, team members, or followers are more likely to engage and collaborate when they perceive their leader as knowledgeable and capable. In essence, competence is the bedrock upon which true authority is built.</p><p>The root cause of immature and unready managers hiding behind a façade of authority is more insidious than one might initially perceive. This underlying issue extends its tendrils into various aspects of team dynamics, team results, and ultimately, the overall success of a company. It’s not merely a matter of personal ineptitude; rather, it becomes a systemic challenge with far-reaching consequences.</p><p>This not only hampers short-term results but also casts a shadow on the company’s long-term prospects. The cumulative effect of mismanagement, fueled by the superficial display of authority, can erode the company’s reputation, hinder its ability to attract top talent, and even lead to a decline in customer trust.</p><p>Competence is not a luxury.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b29f06b6a7a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Name your function like its your baby]]></title>
            <link>https://medium.com/@rochacamargothiago/name-your-functions-like-its-your-baby-d8ab5e147a6c?source=rss-4632ca0c622a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8ab5e147a6c</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[clean-code]]></category>
            <dc:creator><![CDATA[Thiago Rocha Camargo]]></dc:creator>
            <pubDate>Fri, 13 Oct 2023 08:29:04 GMT</pubDate>
            <atom:updated>2023-10-13T08:29:52.636Z</atom:updated>
            <content:encoded><![CDATA[<p>In the pursuit of writing clean, maintainable code, one of the fundamental principles advocated by software engineering Robert C. Martin, also known as “Uncle Bob,” is the importance of clear and consistent naming conventions for functions and variables. <br>Going through why this aspect of code development is paramount for code readability and maintainability.</p><p><strong>The Significance of Naming Conventions</strong></p><p>Uncle Bob’s Clean Code principles emphasise that code should read like well-written prose. Proper naming of functions and variables is essential in achieving this goal. When we give descriptive, meaningful names to these essential building blocks of our code, we create code that is more self-explanatory, easier to understand and realistic maintainability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YEAqRiStJvUOpd7_zBfMHA.png" /></figure><p><strong>Function Naming Guidelines:</strong></p><ol><li><strong>Descriptive Names:</strong> Functions should have names that convey their purpose and functionality. Aim for names that make it immediately clear what the function does. Avoid generic names like “doSomething()” or “handleData()” in favor of specific names like “calculateTotalRevenue()” or “validateUserCredentials()”.</li><li><strong>Verb-Noun Structure:</strong> A common practice is to name functions using a verb-noun structure. For example, “generateReport()” or “sendEmailNotification()”. This format provides clarity and consistency in function naming.</li><li><strong>Consistency:</strong> Maintain consistency in naming conventions throughout your codebase. If you use “get” to retrieve values in one function, use it consistently in similar scenarios.</li><li><strong>Avoid Ambiguity:</strong> Ensure that your function names do not lead to ambiguity or confusion. A name like “update” might be unclear without context. Use more explicit names like “updateUserProfile()” or “updateDatabaseRecord()”.</li></ol><p><strong>Variable Naming Guidelines:</strong></p><ol><li><strong>Meaningful and Pronounceable:</strong> Variable names should be meaningful and easy to pronounce. A developer should be able to understand the variable’s purpose from its name. Names like “customerName” or “totalRevenue” are much clearer than cryptic names.</li><li><strong>Avoid Single-Letter Names:</strong> With few exceptions, single-letter variable names (e.g., “x,” “y”) should be avoided. They provide no context and can lead to confusion. Use descriptive names instead.</li><li><strong>Consistency:</strong> Maintain consistency in variable naming styles. Whether you choose camelCase, snake_case, or another convention, stick with it throughout your code.</li><li><strong>Scope-Appropriate Names:</strong> Choose variable names that reflect their scope. Global variables may have a broader name, while local variables should be specific to their usage within a particular function or block.</li><li><strong>Glossary and Consistency:</strong> Create a glossary of terms and their associated variable names, and ensure that these terms are used consistently throughout the project. When specific domain-related terms or concepts are used in the codebase, they should always be represented by the same variable name to avoid confusion and maintain a shared understanding among team members. This practice promotes consistency and reduces the risk of misunderstandings or misinterpretations in your code.</li></ol><p><strong>The Impact of Clear Naming on Clean Code:</strong></p><p>Clear and consistent naming of functions and variables is not just a matter of aesthetic preference; it significantly impacts the quality and maintainability of your code. When developers can understand the purpose and functionality of code blocks through their names alone, it reduces the cognitive load, making code easier to read, debug, and modify. It also enhances collaboration among team members, as everyone can quickly grasp the intent behind the code.</p><p>Write code as if it was for others to read, understand, admire and most important: be able to receive contributions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8ab5e147a6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gamified Dopamine: Neurotransmitters as App Currency]]></title>
            <link>https://medium.com/@rochacamargothiago/gamified-dopamine-neurotransmitters-as-mobile-app-currency-b229db822ea6?source=rss-4632ca0c622a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b229db822ea6</guid>
            <category><![CDATA[dopamine]]></category>
            <category><![CDATA[gamification]]></category>
            <category><![CDATA[engagement]]></category>
            <category><![CDATA[users]]></category>
            <category><![CDATA[achievement]]></category>
            <dc:creator><![CDATA[Thiago Rocha Camargo]]></dc:creator>
            <pubDate>Mon, 02 Jan 2023 20:25:54 GMT</pubDate>
            <atom:updated>2023-02-01T20:23:50.725Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*y3ATJE6Gh_5dg9KLb-B7xQ.png" /></figure><p>Dopamine is a neurotransmitter that plays a crucial role in motivation and engagement. It is often associated with pleasure and reward, and it is released in response to pleasurable experiences or the anticipation of reward. In the context of gamified mobile apps, dopamine can be an effective tool for motivating and engaging users.</p><p>Gamification is the process of adding game-like elements to non-game activities in order to increase engagement and motivation. Mobile apps that use gamification techniques often rely on dopamine to keep users coming back for more. By providing rewards, achievements, and other forms of positive feedback, these apps can trigger the release of dopamine and create a sense of pleasure and accomplishment.</p><p>One way that mobile apps can use dopamine to motivate users is through the use of rewards. These can be as simple as points, badges, or virtual currency that can be used to unlock new features or purchase in-game items. By giving users something to work towards, these apps can create a sense of progression and accomplishment that releases dopamine and keeps users motivated.</p><p>Another way that mobile apps can use dopamine to engage users is by providing a sense of social connection. When users share their progress and achievements with friends, they receive social validation, which can trigger the release of dopamine. This can be especially effective in competitive games or apps that allow users to compare their progress with others.</p><p>In addition to rewards and positive feedback, it is also important to consider the role of consequences or negative outcomes in triggering the release of dopamine in mobile apps. While it may seem counterintuitive, the presence of negative consequences or outcomes can actually increase motivation and engagement in some cases. One way that consequences can be used to trigger dopamine is through the use of loss aversion, which refers to the idea that people are more motivated by the fear of losing something than by the potential for gain. By introducing consequences for failure or negative outcomes, mobile apps can create a sense of risk that increases motivation and triggers the release of dopamine. Another way that consequences can be used to engage users is by introducing a sense of challenge or difficulty. When users are presented with a task that is difficult but not impossible, they may be more motivated to complete it in order to avoid the negative consequences of failure. This sense of challenge can release dopamine and keep users engaged.</p><p>Finally, mobile apps can use dopamine to engage users by providing a sense of unpredictability and surprise. By introducing new challenges or features on a regular basis, these apps can keep users guessing and create a sense of anticipation that releases dopamine. This can be especially effective in apps that have a high replay value, as users will be motivated to keep coming back in order to see what new experiences the app has to offer.</p><p>It is important to note that the use of dopamine and other gamification techniques is not a guarantee of success. In order to create a truly engaging and motivating experience, it is crucial to provide an ecosystem that enables users to achieve their goals while still maintaining a sense of challenge. This requires a careful balance between achievable goals and challenging tasks, as well as a clear path to progression and accomplishment. By providing a gamified environment that strikes this balance, developers can create mobile apps that are both engaging and rewarding for their users.</p><p>In conclusion, it is paramount to provide an ecosystem that enables users to achieve their goals while still maintaining a sense of challenge in order to successfully establish a gamified environment. Dopamine is an important neurotransmitter that plays a crucial role in motivation and engagement, and by using rewards, social connection, and unpredictability, mobile apps can use dopamine to keep users coming back for more. In addition to rewards and positive feedback, the use of consequences or negative outcomes can also be an effective tool for triggering the release of dopamine and increasing motivation and engagement. Gamification can be an effective tool for increasing engagement and motivation, and by understanding how dopamine and other psychological principles work, developers can create more engaging and rewarding experiences for their users.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b229db822ea6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multiple return Code Flow Minefields]]></title>
            <link>https://medium.com/@rochacamargothiago/code-flow-control-minefields-8109176a9353?source=rss-4632ca0c622a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8109176a9353</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[minefield]]></category>
            <category><![CDATA[kotlin-flow-control]]></category>
            <category><![CDATA[good-practices]]></category>
            <dc:creator><![CDATA[Thiago Rocha Camargo]]></dc:creator>
            <pubDate>Sun, 01 Jan 2023 22:27:41 GMT</pubDate>
            <atom:updated>2023-01-03T10:17:50.397Z</atom:updated>
            <content:encoded><![CDATA[<p>How multiple return statements in a single function may lead to undesirable behaviours.</p><p>Multiple return statements in a single function can make the code harder to understand, maintain, and predict, and should be avoided whenever possible. Here are a few reasons why:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J6OVE9EhO4fU_55CmEbcKQ.png" /></figure><ol><li><strong>Complexity</strong>: Functions with multiple return statements can be more difficult to understand, as you have to keep track of multiple exit points in the code. This can make it harder to follow the flow of the function and understand how it works.</li><li><strong>Maintainability</strong>: Functions with multiple return statements can be harder to modify or extend, as you have to consider all of the different return points in the code. This can make it more time-consuming to make changes to the function, and can increase the risk of introducing bugs.</li><li><strong>Readability</strong>: Functions with multiple return statements can be harder to read, as you have to keep track of multiple exit points in the code. This can make it more difficult to follow the logic of the function and understand what it does.</li><li><strong>Predictability</strong>: Functions with multiple return statements can be harder to predict, as you have to consider all of the different conditions that can trigger a return statement. This can make it more difficult to understand and predict the behaviour of the function, and can increase the risk of introducing bugs.</li><li><strong>Assumptions</strong>: It is important to consider that developers may not always read your entire code in detail when using it. In libraries and other reusable code, it is common for developers to make assumptions about the behavior of the code based on its naming, structure, and the most common use cases. Functions with multiple return statements can make it harder for developers to make these assumptions, as they have to consider all of the different conditions that can trigger a return statement. This can make it harder for developers to understand and use the code effectively and increase maintenance risks.</li></ol><p>To avoid these problems, it is generally recommended to minimize the use of return statements and use them only when necessary. Instead of using multiple return statements, you can use control structures like if statements and for loops to control the flow of the function, and use a single return statement at the end of the function to return the final result.</p><h3>Simplicity of Predictable Code Chains</h3><p>Code that is written as a chain of called functions with a single return statement can be simpler and easier to understand, as it has a clear flow and a single exit point. This can make it easier to follow the logic of the code and understand how it works. Avoiding potential maintenance minefields of unpredictable flows.</p><p><strong><em>Caveats</em></strong></p><p><em>There are situations where it may be cleaner and simpler to use multiple return statements, even if it leads to multiple returns. This usually happens when multiple verification layers can be avoided by a simple entry-level early return statement. Or when the parameter verification is required for the function computation. In these cases, the use of multiple return statements can help to simplify the code and improve its readability.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8109176a9353" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>