<?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 Scott Grivner on Medium]]></title>
        <description><![CDATA[Stories by Scott Grivner on Medium]]></description>
        <link>https://medium.com/@scottgrivner?source=rss-d29fe7e12593------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WBpSrPddNjM_DFmx-OfUHw.jpeg</url>
            <title>Stories by Scott Grivner on Medium</title>
            <link>https://medium.com/@scottgrivner?source=rss-d29fe7e12593------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 17:56:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@scottgrivner/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[Understanding Software “-ilities”: Key Attributes of Quality Software]]></title>
            <link>https://medium.com/@scottgrivner/understanding-software-ilities-key-attributes-of-quality-software-d4b7fadc9bbe?source=rss-d29fe7e12593------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4b7fadc9bbe</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[non-functional-attribute]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Scott Grivner]]></dc:creator>
            <pubDate>Wed, 07 Aug 2024 21:39:12 GMT</pubDate>
            <atom:updated>2025-04-15T01:12:09.697Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iCfX7aQZJtX4IPrtigm7MQ.jpeg" /></figure><p>In <a href="https://en.wikipedia.org/wiki/Software_engineering">software engineering</a>, “<strong>-ilities</strong>” refer to a wide range of <a href="https://en.wikipedia.org/wiki/List_of_system_quality_attributes">attributes</a> that determine the quality, performance, and maintainability of software systems.</p><p>These are sometimes called <em>architecture characteristics</em> or “<em>ilities</em>” due to the common suffix many of the words share.</p><p>Primarily considered <a href="https://en.wikipedia.org/wiki/Non-functional_requirement">non-functional requirements</a>, these attributes are critical for evaluating and ensuring that software meets user requirements and operates efficiently in various environments.</p><h3>The Big List of Software “-ilities”</h3><p>Below is a comprehensive list of <strong>100</strong> “<strong>-ilities</strong>” that I’ve gathered from around the web and my own work over the years. This is not an exhaustive list, but it covers many of the key attributes that determine the quality and performance of software systems. I’m sure you can think of more to add to this list, as there is no official or universally accepted list of software “<strong>-ilities.</strong>”</p><blockquote>Once you see the list of “<strong>-ilities</strong>”, you will not be able to unsee it. You’ll notice them everywhere in every discussion you have around software and systems, so it’s time to formally meet them!</blockquote><ol><li>Accessibility</li><li>Accountability</li><li>Accuracy</li><li>Adaptability</li><li>Administrability</li><li>Adoptability</li><li>Affordability</li><li>Agility</li><li>Analyzability</li><li>Auditability</li><li>Autonomy</li><li>Availability</li><li>Certifiability</li><li>Compatibility</li><li>Composability</li><li>Comprehensibility</li><li>Confidentiality</li><li>Configurability</li><li>Correctness</li><li>Credibility</li><li>Customizability</li><li>Debuggability</li><li>Degradability</li><li>Demonstrability</li><li>Dependability</li><li>Deployability</li><li>Designability</li><li>Discoverability</li><li>Distributability</li><li>Durability</li><li>Effectiveness</li><li>Efficiency</li><li>Elasticity</li><li>Evolvability</li><li>Expandability</li><li>Extendability</li><li>Extensibility</li><li>Failure Transparency</li><li>Fault-Tolerance</li><li>Fidelity</li><li>Flexibility</li><li>Functionality</li><li>Inspectability</li><li>Installability</li><li>Integrity</li><li>Integrability</li><li>Interchangeability</li><li>Interoperability</li><li>Learnability</li><li>Legibility</li><li>Localizability</li><li>Maintainability</li><li>Manageability</li><li>Mobility</li><li>Modifiability</li><li>Modularity</li><li>Observability</li><li>Operability</li><li>Orthogonality</li><li>Performance</li><li>Portability</li><li>Precision</li><li>Predictability</li><li>Process Capabilities</li><li>Producibility</li><li>Provability</li><li>Recoverability</li><li>Redundancy</li><li>Relevance</li><li>Reliability</li><li>Repeatability</li><li>Reproducibility</li><li>Resilience</li><li>Responsiveness</li><li>Reusability</li><li>Robustness</li><li>Safety</li><li>Scalability</li><li>Seamlessness</li><li>Self-Sustainability</li><li>Serviceability (Supportability)</li><li>Securability (Security)</li><li>Simplicity</li><li>Stability</li><li>Standards Compliance</li><li>Survivability</li><li>Sustainability</li><li>Tailorability</li><li>Testability</li><li>Timeliness</li><li>Traceability</li><li>Transparency</li><li>Ubiquity</li><li>Understandability</li><li>Upgradability</li><li>Usability</li><li>Verifiability</li><li>Vulnerability</li><li>Correctability</li><li>Predictability</li></ol><h3><strong>A Deeper Dive</strong></h3><h3>Popular “-ilities”</h3><p>Here’s a deeper look at some of the most important “<strong>-ilities</strong>”:</p><p><strong>Scalability:</strong> The ability of a system to handle an increasing amount of work or its potential to be enlarged to accommodate that growth.</p><p><strong>Importance:</strong> Scalability ensures that your application can grow with user demand, handling more users, transactions, or data without degrading performance.</p><p><strong>Reliability:</strong> The probability that a system will perform its intended function without failure over a specified period.</p><p><strong>Importance:</strong> Reliability is crucial for building trust with users. A reliable system minimizes downtime and ensures that the application performs consistently under expected conditions.</p><p><strong>Maintainability:</strong> The ease with which a system can be modified to correct faults, improve performance or other attributes, or adapt to a changed environment.</p><p><strong>Importance: </strong>Maintainability reduces the time and cost associated with updating and fixing the software. It allows developers to efficiently implement changes and enhancements.</p><p><strong>Usability:</strong> The ease of use and learnability of a human-made object such as a tool or device.</p><p><strong>Importance: </strong>Usability is vital for user satisfaction. A user-friendly interface ensures that users can effectively interact with the application, leading to higher adoption rates and reduced training costs.</p><p><strong>Availability: </strong>The degree to which a system is operational and accessible when required for use.</p><p><strong>Importance:</strong> High availability ensures that the application is accessible to users when they need it, minimizing downtime and maximizing the user experience.</p><p><strong>Performance:</strong> The speed and efficiency with which a system or component performs its designated functions.</p><p><strong>Importance:</strong> Performance affects user satisfaction and the efficiency of resource utilization. Optimized performance ensures that the application runs smoothly, handling user requests promptly.</p><p><strong>Security:</strong> The protection of information and systems from unauthorized access, use, disclosure, disruption, modification, or destruction.</p><p><strong>Importance:</strong> Security protects sensitive data and ensures user trust. It involves implementing measures to guard against threats and vulnerabilities, preventing data breaches and other security incidents.</p><p><strong>Testability:</strong> The degree to which a system or component facilitates the establishment of test criteria and the performance of tests to determine whether those criteria have been met.</p><p><strong>Importance:</strong> Testability ensures that software can be effectively tested to identify and fix defects. It helps maintain software quality and reliability over time.</p><p><strong>Flexibility:</strong> The ease with which a system or component can be modified for use in applications or environments other than those for which it was specifically designed.</p><p><strong>Importance:</strong> Flexibility allows software to adapt to new requirements or changes in the environment, making it more resilient to future changes and extensions.</p><p><strong>Interoperability:</strong> The ability of a system to work with or use the parts or equipment of another system.</p><p><strong>Importance:</strong> Interoperability is crucial for systems that need to communicate or operate in conjunction with other systems, ensuring seamless integration and data exchange.</p><h3>Conclusion</h3><p>The “<strong>-ilities</strong>” are essential attributes that significantly impact the overall quality, user satisfaction, and longevity of software systems. By focusing on these attributes, developers can ensure that their applications are not only functional but also efficient, secure, and easy to maintain.</p><p>Understanding and prioritizing these “<strong>-ilities</strong>” during the planning phases of the development project helps in building robust and user-friendly software that meets both current and future needs.</p><p>Happy readability! 📚</p><p>If you like this article, visit my repository around this concept here:</p><p><a href="https://github.com/Night-Owl-Labs/Software-ilities">GitHub - Night-Owl-Labs/Software-ilities: 🔴 In software engineering, &quot;-ilities&quot; refer to quality attributes that determine the performance and maintainability of software systems.</a></p><blockquote><strong>I hope you enjoyed reading this article. Feel free to send me feedback and questions using the platform of your choice. Check out my other content on </strong><a href="https://github.com/scottgriv"><strong>GitHub</strong></a><strong>, </strong><a href="https://www.linkedin.com/in/scottgrivner/"><strong>LinkedIn</strong></a><strong>, and </strong><a href="https://x.com/scottgrivner"><strong>X</strong></a><strong>.</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4b7fadc9bbe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Secure API Keys in Your Projects]]></title>
            <link>https://medium.com/@scottgrivner/how-to-secure-api-keys-in-your-projects-87e3de50a314?source=rss-d29fe7e12593------2</link>
            <guid isPermaLink="false">https://medium.com/p/87e3de50a314</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Scott Grivner]]></dc:creator>
            <pubDate>Wed, 07 Aug 2024 21:15:25 GMT</pubDate>
            <atom:updated>2026-02-18T22:45:21.794Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I1Z4HzLh8VUX4pyfYWkkog.jpeg" /></figure><p>API keys are critical for accessing various services and APIs in your projects. However, if not properly secured, they can be exposed and exploited by malicious users, leading to unauthorized access and potential data breaches. This article explores some of the best practices for securing API keys in your projects.</p><h3>Why Securing API Keys is Important</h3><p>API keys grant access to your applications and services. If someone obtains your API key, they can potentially misuse it to:</p><ul><li>Exhaust your service quotas or incur unexpected charges.</li><li>Access sensitive data or perform unauthorized operations.</li><li>Disrupt your services by making malicious requests.</li></ul><p>To prevent such scenarios, it’s essential to implement strong security measures for managing and storing your API keys.</p><h3>Real World Consequences</h3><p>I read an article recently from <a href="https://www.theverge.com/">The Verge</a> titled <a href="https://www.theverge.com/2024/6/26/24186614/rabbit-r1-security-flaw-api-key-codebase">A group of R1 jailbreakers found a massive security flaw in Rabbit’s code</a>, which inspired me to write this article.</p><p>To sum it up:</p><ul><li>A group of developers and researchers called <a href="https://rabbitu.de/">Rabbitude</a> says it <a href="https://rabbitu.de/articles/security-disclosure-1">discovered API keys</a> hardcoded in the company’s codebase, putting sensitive information at risk of falling into the wrong hands.</li><li>Here was my <a href="https://x.com/scottgrivner/status/1806325122313118004">response on X</a>:</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/scottgrivner/status/1806325122313118004&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/dc040b14286c2d92f4b71cf04a89f4b6/href">https://medium.com/media/dc040b14286c2d92f4b71cf04a89f4b6/href</a></iframe><ul><li>To reiterate…<strong>please don’t hardcode your API keys!</strong></li><li>Don’t even do it in a Dev or Test environment!</li><li><strong>Don’t get into the habit of doing it anywhere!</strong></li></ul><p>Hardcoding keys isn’t the only security pitfall.<strong> </strong>This brings me to my list of best practices (<em>dos and don’ts</em>) for securing your keys.</p><h3>Best Practices for Securing API Keys</h3><h4>1. <strong>Never Hardcode API Keys</strong></h4><p>Avoid embedding API keys directly into your source code, thus, never push your API keys to your version control system. Hardcoding keys makes them easy targets for anyone with access to your codebase.</p><p><strong>Example of Hardcoding (Do Not Do This):</strong></p><pre>const API_KEY = &quot;your-api-key&quot;;</pre><h4>2. <strong>Use Environment Variables</strong></h4><p>Store your API keys in environment variables. This keeps them separate from your source code and makes it easier to manage different keys for different environments (development, staging, production).</p><p><strong>Example:</strong></p><p>.env <strong>File:</strong></p><pre>API_KEY=your-api-key</pre><p><strong>Code:</strong></p><pre>const apiKey = process.env.API_KEY;</pre><h4>3. <strong>Use Secret Management Services</strong></h4><p>Utilize secret management services like AWS Secrets Manager, Azure Key Vault, <a href="https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions">Secrets in GitHub Actions</a>, or Google Cloud Secret Manager. These services provide a secure way to store and access your secrets.</p><p><strong>Example:</strong></p><p><strong>AWS Secrets Manager:</strong></p><pre>const AWS = require(&#39;aws-sdk&#39;);<br>const client = new AWS.SecretsManager();<br><br>client.getSecretValue({<br>    SecretId: &#39;your-secret-id&#39;<br>}, (err, data) =&gt; {<br><br>    if (err) {<br>        console.log(err);<br>    } else {<br>        const secret = JSON.parse(data.SecretString);<br>        const apiKey = secret.API_KEY;<br>    }<br>});</pre><h4>4. <strong>Restrict API Key Usage</strong></h4><p>Follow the <a href="https://en.wikipedia.org/wiki/Principle_of_least_privilege">Principle of Least Privilege (PoLP)</a>. Limit the scope and permissions of your API keys. It should only have the minimum levels of access it needs to perform.</p><p>Most APIs allow you to restrict keys by:</p><ul><li>IP address or domain</li><li>Usage quota or rate limits</li><li>Specific API endpoints or actions</li></ul><p><strong>Example:</strong></p><p><strong>Google Cloud Console:</strong></p><ul><li>Navigate to your API key settings</li><li>Under “API restrictions,” select the specific APIs the key can access</li><li>Under “Application restrictions,” restrict the key to specific IP addresses or HTTP referrers</li></ul><h4>5. <strong>Rotate API Keys Regularly</strong></h4><p>Regularly rotate your API keys to minimize the risk of them being compromised. Update your environment variables or secret management configurations with the new keys.</p><h4>6. <strong>Monitor and Log API Key Usage</strong></h4><p>Enable logging and monitoring for your API key usage. This helps you detect any unusual or unauthorized activity.</p><p><strong>Example:</strong></p><p><strong>AWS CloudWatch:</strong></p><ul><li>Create metrics for your API usage</li><li>Set up alarms to notify you of any unusual activity.</li></ul><h4>7. <strong>Encrypt API Keys at Rest and in Transit</strong></h4><p>Ensure that your API keys are encrypted both at rest and in transit. Use HTTPS to encrypt data in transit and secure your storage solutions to encrypt data at rest.</p><h4>8. <strong>Limit Exposure in Client-Side Code</strong></h4><p>If you must use API keys in client-side code (e.g., for front-end web applications), take extra precautions:</p><ul><li>Use a proxy server to manage requests that require API keys</li><li>Obfuscate your client-side code to make it harder for attackers to extract keys</li><li>Use short-lived tokens instead of long-lived API keys</li></ul><h4><strong>9. Audit and Disable Unused Keys</strong></h4><ul><li>Regularly review active API keys and service account keys</li><li>Disable any key unused in the last 30 days</li><li>Fully delete keys that are no longer required</li></ul><h4>10. Continuously Audit and Reduce IAM Permissions</h4><ul><li>Use IAM analyzers/recommenders</li><li>Remove unused roles from service accounts</li><li>Avoid broad roles like Owner, Editor, Project Admin</li><li>Prefer narrowly scoped roles</li></ul><h4><strong>11. Enforce Automatic Key Expiration Policies</strong></h4><ul><li>Set maximum key lifetime (e.g., 90 days or less)</li><li>Use org-level policies to enforce expiry</li><li>Disable creation of long-lived keys where possible</li></ul><h4><strong>12. Prefer Keyless Authentication</strong></h4><ul><li>Use Workload Identity Federation</li><li>Use short-lived tokens instead of static JSON keys</li><li>Disable creation of service account keys if not required</li></ul><h4><strong>13. Configure Security Notification Channels</strong></h4><ul><li>Maintain up-to-date security contacts</li><li>Ensure security emails are monitored</li><li>Include escalation procedures</li></ul><h4><strong>14. Enable Billing &amp; Usage Anomaly Alerts</strong></h4><ul><li>Set budget alerts</li><li>Configure anomaly detection</li><li>Treat usage spikes as security incidents (A sudden spike in consumption is often the first indicator of a compromised credential)</li></ul><h4>15. Enable Automated Secret Scanning</h4><ul><li>Enable GitHub Secret Scanning</li><li>Use pre-commit hooks (e.g., git-secrets, gitleaks)</li><li>Monitor public repositories for leaked credentials</li><li>Rotate immediately if detected</li></ul><h4>16. Have a Credential Compromise Response Plan</h4><p>This is something most teams only think about <em>after</em> they’ve been compromised. A predefined response plan ensures rapid containment and minimizes damage.</p><p>If you suspect a credential has been exposed:</p><ul><li>Immediately revoke the affected key</li><li>Rotate all dependent secrets and credentials</li><li>Review access logs for suspicious or unauthorized activity</li><li>Check billing and usage metrics for anomalies</li><li>Notify internal stakeholders and security teams</li><li>Assess whether customer notification or regulatory reporting is required</li></ul><p>Time matters. The faster a compromised credential is revoked, the lower the blast radius.</p><h3><strong>Example: Securing API Keys in a Node.js Application</strong></h3><ol><li><strong>Setup Environment Variables:</strong></li></ol><p>.env <strong>File:</strong></p><pre>API_KEY=your-api-key</pre><p>2. <strong>Install </strong>dotenv<strong> Package:</strong></p><pre>npm install dotenv</pre><p>3. <strong>Load Environment Variables in Your Application:</strong></p><p>index.js <strong>File:</strong></p><pre>require(&#39;dotenv&#39;).config();<br><br>const apiKey = process.env.API_KEY;<br>console.log(`Your API key is: ${apiKey}`);</pre><p>For local<strong> development </strong>or<strong> testing</strong>, make sure your .env file is added to your .gitignore file to ensure that your keys are not exposed in your public (or even private) repositories.</p><p>For <strong>staging</strong> or <strong>production</strong>, utilize secret managers:</p><p>4. <strong>Use Secret Management (AWS Secrets Manager Example):</strong></p><p>index.js <strong>File:</strong></p><pre>const AWS = require(&#39;aws-sdk&#39;);<br>const client = new AWS.SecretsManager({<br>    region: &#39;your-region&#39;<br>});<br>client.getSecretValue({<br>    SecretId: &#39;your-secret-id&#39;<br>}, (err, data) =&gt; {<br>    if (err) {<br>        console.error(err);<br>        return;<br>    }<br>    const secret = JSON.parse(data.SecretString);<br>    const apiKey = secret.API_KEY;<br>    console.log(`Your API key is: ${apiKey}`);<br>});</pre><h3>Conclusion</h3><p>Securing your API keys is critical for protecting your applications and data. By following these best practices, you can significantly reduce the risk of unauthorized access and ensure the integrity of your services. Implement these strategies in your projects to enhance security and maintain control over your API keys. Keep in mind that these are not the only risks to your keys; there are plenty more potential threats to be aware of, including risks that do not exist yet.</p><h4>The Never-Ending Battle</h4><p>Security is a never-ending battle that evolves as fast as the technology around it. Part of being a software engineer is staying aware and adapting to the changing tides. Future loopholes and vulnerabilities will emerge, but we can learn from past mistakes to ensure known issues are addressed. By staying vigilant and proactive, we can better protect our applications, user privacy, and data from evolving threats.</p><p>Happy securing! 🔒</p><blockquote><strong>I hope you enjoyed reading this article. Feel free to send me feedback and questions using the platform of your choice. Check out my other content on </strong><a href="https://github.com/scottgriv"><strong>GitHub</strong></a><strong>, </strong><a href="https://www.linkedin.com/in/scottgrivner/"><strong>LinkedIn</strong></a><strong>, and </strong><a href="https://x.com/scottgrivner"><strong>X</strong></a><strong>.</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87e3de50a314" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Effectively Managing Technical Debt with TODO, FIXME, and Other Code Reminders]]></title>
            <link>https://medium.com/@scottgrivner/effectively-managing-technical-debt-with-todo-fixme-and-other-code-reminders-e0b770f6180a?source=rss-d29fe7e12593------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0b770f6180a</guid>
            <category><![CDATA[todo]]></category>
            <category><![CDATA[coding-practice]]></category>
            <category><![CDATA[code-comments]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[technical-debt]]></category>
            <dc:creator><![CDATA[Scott Grivner]]></dc:creator>
            <pubDate>Wed, 07 Aug 2024 21:13:44 GMT</pubDate>
            <atom:updated>2024-08-19T22:34:29.360Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l0j59WrpSXk-yzMV29TXuQ.jpeg" /></figure><p>In software development, maintaining clean, efficient, and bug-free code is crucial. However, during the coding process, it’s common to encounter situations where certain tasks, improvements, or fixes need to be addressed later.</p><p>To manage these scenarios, developers use <strong><em>code reminders</em></strong><em> </em>(as I like to call them), also known as <strong><em>TODO comments</em></strong>, <strong><em>comment tags</em></strong><em>, </em>or<em> </em><strong><em>task tags</em></strong>, such as TODO, FIXME, and others. These special comments or tags, help track tech debt, mark necessary improvements, and highlight issues that need fixing.</p><h3>Technical Debt</h3><p><a href="https://en.wikipedia.org/wiki/Technical_debt">Technical debt</a> is the future cost of choosing quick, short-term solutions over better long-term approaches in code development. It often leads to more complex, harder-to-maintain code. Managing technical debt involves regular refactoring and adhering to coding standards to ensure sustainable code quality.</p><p>Technical debt was the top frustration for developers according to the <a href="https://survey.stackoverflow.co/2024/professional-developers#2-most-common-frustrations">2024 Stack Overflow Developer Survey</a>:</p><blockquote>Technical debt is the top frustration at work for professional developers according to 63% of respondents, regardless of whether they are an individual contributor or a people manager.</blockquote><p>While effectively managing code reminders won’t entirely eliminate technical debt, it can certainly make a small but meaningful impact.</p><h3>What are Code Reminders?</h3><p>Code reminders are annotations in the code that serve as placeholders for future actions or notes for developers. They help in keeping track of tasks that need attention, improvements that can be made, or bugs that require fixing.</p><p>While there isn’t an official name or standardized list of tags for these code reminders, they are commonly recognized and widely used by developers across various programming languages and projects.</p><p>Having your team agree on a standard list and format for code reminders, such as including the date, developer, or ticket number is essential for maintaining consistency. This practice is often part of an internal company’s code formatting and standards, sometimes enforced using tools like <a href="https://eslint.org/">ESLint</a>.</p><h3>Commonly Used Code Reminders</h3><p>Common code reminders include (but not limited to):</p><h4>TODO</h4><ul><li><strong>Purpose:</strong> Indicates a task that needs to be completed.</li><li><strong>Usage:</strong> Used to remind developers of incomplete tasks, planned features, or future enhancements.</li></ul><pre># TODO: Implement user authentication<br> def login():<br> pass</pre><h4>FIXME</h4><ul><li><strong>Purpose:</strong> Highlights code that is broken, buggy, or requires immediate attention.</li><li><strong>Usage:</strong> Used to mark sections of code that need fixing or revisiting due to known issues.</li></ul><pre># FIXME: This function crashes when input is null<br> def process_data(data):<br> pass</pre><h4>HACK</h4><ul><li><strong>Purpose:</strong> Notes a workaround or temporary solution that is not ideal.</li><li><strong>Usage:</strong> Used to document areas where the code is not implemented in the best possible way but works as a temporary measure.</li></ul><pre># HACK: Using a hardcoded value for now<br> retries = 3</pre><h4>NOTE</h4><ul><li><strong>Purpose:</strong> Provides additional information or context.</li><li><strong>Usage:</strong> Used to explain non-obvious logic, decisions, or provide additional insights into the code.</li></ul><pre># NOTE: This algorithm assumes the list is already sorted<br> def binary_search(arr, target):<br> pass</pre><h4>OPTIMIZE</h4><ul><li><strong>Purpose:</strong> Indicates code that could be optimized for better performance or efficiency.</li><li><strong>Usage:</strong> Used to mark sections that should be revisited for potential performance improvements.</li></ul><pre># OPTIMIZE: Consider using a more efficient sorting algorithm [2024-08-07]<br> def sort_array(arr):<br> pass</pre><h4>BUG</h4><ul><li><strong>Purpose: </strong>Marks known bugs in the code that need fixing.</li><li><strong>Usage:</strong> Used to document and highlight issues that need to be resolved.</li></ul><pre># BUG: This function does not handle edge cases correctly [TICKET-1234]<br> def calculate_total(values):<br> pass</pre><h4>XXX</h4><ul><li><strong>Purpose</strong>: Emphasizes important information or areas that require extra caution.</li><li><strong>Usage</strong>: Used to draw attention to critical parts of the code that developers should be aware of.</li></ul><pre># XXX: This is a temporary workaround, needs review (@scottgriv) [TICKET-5678]<br>def temporary_solution():<br>    pass</pre><p>The above list contains common code reminders, but there are plenty of other one’s that exist. Check the technical reference guides around your IDE or language to see what’s supported.</p><blockquote>For example, the IDE used to build iOS apps, <a href="https://developer.apple.com/xcode/">Xcode</a>, has a number of built in code reminders (i.e. MARK:, FIXME:, TODO:, !!!:, ???:) that help you navigate to the areas of code that need attention. Check out this great Medium article <a href="https://medium.com/@cboynton/todo-make-your-notes-on-xcode-stand-out-5f5124ec064c">here</a> regarding them, if you’re interested.</blockquote><h3>Importance of Code Reminders</h3><p>Code reminders are essential for several reasons:</p><ul><li><strong>Managing Technical Debt:</strong> By marking TODOs, FIXMEs, and other comments, developers can keep track of technical debt and ensure that important tasks are not forgotten.</li><li><strong>Improving Code Quality:</strong> These reminders help maintain code quality by flagging areas that need improvement or fixing.</li><li><strong>Facilitating Collaboration:</strong> Comment tags provide clear guidance for team members on what needs attention, making collaboration more efficient.</li><li><strong>Enhancing Project Management: </strong>By using code reminders, project managers can get an overview of pending tasks and prioritize work accordingly.</li></ul><h3>Challenges with Code Reminders</h3><p>Developers must remain vigilant about TODO and FIXME comments. If these reminders are forgotten or left outdated, they can lead to confusion and misdirection in the future.</p><p>In some instances, I’ve come across TODO and FIXME comments that have been neglected for several years, with some indicating urgent fixes or refactoring that never took place. This raises the question: <em>if these tasks were so critical, why weren’t they prioritized appropriately?</em></p><p>Our team discovered that the most effective way to handle TODO and FIXME comments is to associate them with a ticket number, issue, or an <a href="https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/expiring-todo-comments.md">expiration date</a>. This ensures that they are tracked and addressed in a timely manner. However, the best approach is to resolve issues immediately whenever possible and minimize reliance on such comments.</p><h3>Using Tools to Manage Code Reminders</h3><figure><img alt="TODO Tree" src="https://cdn-images-1.medium.com/max/1024/1*VnCDF7hoVBZ5bxTth7yQ8g.png" /><figcaption>Todo Tree VSCode Extension simplifies code reminders</figcaption></figure><p>Managing numerous code reminders can be challenging, especially in large projects. Tools like the <a href="https://marketplace.visualstudio.com/items?itemName=Gruntfuggly.todo-tree">Todo Tree</a> extension for <a href="https://code.visualstudio.com/">Visual Studio Code</a> can significantly simplify this process.</p><p><strong>Key Features:</strong></p><ul><li><strong>Efficient Search:</strong> Quickly finds all comment tags across your workspace.</li><li><strong>Tree View Display:</strong> Organizes found TODOs, FIXMEs, and other tags in an easily navigable tree view.</li><li><strong>Clickable TODOs:</strong> Clicking a TODO within the tree opens the file and places the cursor on the corresponding line.</li><li><strong>Highlighting:</strong> Found TODOs can be highlighted in open files for immediate visibility.</li></ul><p>Using such tools helps developers stay on top of their code reminders, ensuring that nothing slips through the cracks and that technical debt is managed effectively.</p><h3>Conclusion</h3><p>Code reminders like TODO, FIXME, HACK, NOTE, OPTIMIZE, BUG, and XXX play a crucial role in maintaining code quality and managing technical debt. They provide a systematic way to mark areas of the code that need attention, ensuring that tasks are not forgotten and that the codebase remains robust and maintainable. However, it’s important to treat these comments with priority and avoid leaving them unresolved for extended periods.</p><p>Tools like the <em>Todo Tree</em> extension for VSCode can greatly enhance the management of these reminders, making it easier for developers to keep track of their tasks and improve overall productivity. By integrating these practices into your workflow, you can ensure a more organized and efficient development process, leading to higher quality software and a more manageable codebase.</p><p>Happy coding! 🚀</p><blockquote><strong>I hope you enjoyed reading this article. Feel free to send me feedback and questions using the platform of your choice. Check out my other content on </strong><a href="https://github.com/scottgriv"><strong>GitHub</strong></a><strong>, </strong><a href="https://www.linkedin.com/in/scottgrivner/"><strong>LinkedIn</strong></a><strong>, and </strong><a href="https://x.com/scottgrivner"><strong>X</strong></a><strong>.</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0b770f6180a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Read XML and JSON as a Business User]]></title>
            <link>https://medium.com/@scottgrivner/how-to-read-xml-and-json-as-a-business-user-4243871bf00f?source=rss-d29fe7e12593------2</link>
            <guid isPermaLink="false">https://medium.com/p/4243871bf00f</guid>
            <category><![CDATA[xml]]></category>
            <category><![CDATA[json]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[it]]></category>
            <category><![CDATA[integration]]></category>
            <dc:creator><![CDATA[Scott Grivner]]></dc:creator>
            <pubDate>Tue, 30 Jul 2024 00:47:33 GMT</pubDate>
            <atom:updated>2024-08-14T00:09:48.901Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SQpafF9Ra97-D1YLgZQBtQ.jpeg" /></figure><p>In today’s digital world, understanding data formats like XML and JSON is becoming increasingly important, even for those not in the IT field.</p><p>Whether you’re working with data in spreadsheets, managing content on a website, troubleshooting an integration issue, or trying to understand APIs, knowing how to read these formats can be incredibly useful.</p><p>This guide will help you get started with XML and JSON, providing you with the basic knowledge to read and interpret these data formats.</p><p>It’s important to note, XML and JSON are not programming languages, they’re data interchange formats. They exchange information between systems and are easily read by human eyes and systems alike.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8bBaJmvajTN_L-fA_M3ZZA.png" /><figcaption>A good way to think of them is as letters in the mail. Just as a letter has a specific address format for its envelope, you must follow specific structures for XML and JSON to work. JSON and XML act as the “in-between” letters for two locations, facilitating the exchange of information between systems.</figcaption></figure><h3>What is XML?</h3><p>XML (<em>eXtensible Markup Language</em>) is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. It’s commonly used for data interchange on the web and is often used in configuration files, RSS feeds, and more.</p><h4>XML Structure</h4><p>XML documents are made up of elements. Each element has a start tag, content, and an end tag. Here’s a simple example:</p><pre>&lt;letter&gt;<br>    &lt;to&gt;John&lt;/to&gt;<br>    &lt;from&gt;Emily&lt;/from&gt;<br>    &lt;subject&gt;Meeting Update&lt;/subject&gt;<br>    &lt;message priority=&quot;high&quot;&gt;<br>        &lt;content&gt;The meeting has been rescheduled to 3 PM.&lt;/content&gt;<br>        &lt;signature&gt;Emily&lt;/signature&gt;<br>    &lt;/message&gt;<br>&lt;/letter&gt;</pre><p>In this example:</p><ul><li>&lt;letter&gt; is the root element.</li><li>&lt;to&gt;, &lt;from&gt;, &lt;subject&gt;, and &lt;message&gt; are child elements of &lt;letter&gt;.</li><li>The content of each element is the text between the start and end tags.</li><li>&lt;message&gt; contains two deeper child elements: &lt;content&gt; and &lt;signature&gt;.</li><li>&lt;message&gt; also has an attribute priority with the value high. An attribute in XML provides additional information about an element. Attributes are defined within the start tag of an element and consist of a name-value pair. They are often used to describe properties or characteristics of the element, adding more context to the data.</li></ul><h4>Reading XML</h4><p>When reading XML, look for the tags and the structure they form. Tags are enclosed in angle brackets (&lt;&gt;), and the content is the text within these tags. Each element can contain other elements, creating a hierarchical structure. It’s important to note that a tag must always have start and end tags (&lt;tag&gt; and &lt;/tag&gt;). Otherwise, the XML won’t be readable by the sending or receiving processes.</p><h3>What is JSON?</h3><p>JSON (<em>JavaScript Object Notation</em>) is a lightweight data-interchange format that is easy for humans to read and write. It’s commonly used for transmitting data in web and mobile applications.</p><h4>JSON Structure</h4><p>JSON data is represented as key-value pairs. Here’s a simple example using JSON with the same data we used in our XML example above:</p><pre>{<br>    &quot;letter&quot;: {<br>        &quot;to&quot;: &quot;Tove&quot;,<br>        &quot;from&quot;: &quot;Jani&quot;,<br>        &quot;subject&quot;: &quot;Reminder&quot;,<br>        &quot;message&quot;: {<br>            &quot;priority&quot;: &quot;high&quot;,<br>            &quot;content&quot;: &quot;Don&#39;t forget me this weekend!&quot;,<br>            &quot;signature&quot;: &quot;Jani&quot;<br>        }<br>    }<br>}</pre><p>In this example:</p><ul><li>{} denotes an object.</li><li>”letter” is a key with an object as its value.</li><li>Inside the letter object, there are keys (”to”, ”from”, ”subject”, ”message”) with corresponding values.</li><li>”message” is another nested object containing more key-value pairs (”priority”, ”content”, ”signature”).</li><li>Unlike XML, JSON does not have attributes (”priority” is used as a key in this case).</li></ul><h4>Reading JSON</h4><p>When reading JSON, look for the curly braces ({}) which denote objects, and the key-value pairs inside these objects. Keys are strings enclosed in double quotes, followed by a colon, and then the value. Other <a href="https://www.w3schools.com/js/js_json_datatypes.asp">data types</a> like numbers, booleans, and null values, don’t require double quotes.</p><h3>Comparing XML and JSON</h3><h4>Similarities:</h4><ul><li>Both are used to structure data.</li><li>Both are human-readable and machine-readable.</li><li>Both can represent complex data structures.</li><li>Both are used as interchanges between systems.</li><li>Both are commonly used for integrations like APIs.</li></ul><h4>Differences:</h4><ul><li>XML uses a nested tree structure with tags, whereas JSON uses key-value pairs.</li><li>JSON is generally easier to read and write than XML.</li><li>JSON data is typically more compact and faster to parse.</li></ul><h4>Examples:</h4><p>There is a plethora of online resources on this topic, here’s a couple to get you started:</p><ul><li><a href="https://www.w3schools.com/js/js_json_xml.asp">W3Schools.com — JSON vs XML</a></li><li><a href="https://www.diffen.com/difference/Json_vs_XML">Diffen.com — JSON vs XML</a></li><li><a href="https://json.org/example.html">JSON.org — JSON and XML Examples</a></li></ul><h3>Practical Tips for Reading XML and JSON</h3><ol><li><strong>Start Simple</strong>: Begin with small, simple files to practice. As you become more comfortable, move on to more complex data structures.</li><li><strong>Look for Patterns</strong>: Both XML and JSON have patterns. In XML, look for repeated elements and attributes. In JSON, look for repeated keys and values.</li><li><strong>Understand the Format</strong>: There is a structure to the syntax for both XML and JSON. View resources such as <a href="https://www.w3.org/XML/">W3.org</a>, <a href="https://www.xml.com/">XML.com</a>, and <a href="https://json.org/">JSON.org</a> for documentation and tutorials if you’re building XML or JSON outputs.</li><li><strong>Use Online Tools</strong>: There are many online tools available for viewing and formatting XML and JSON. For JSON, tools like <a href="https://jsonformatter.org/">JSON Formatter</a> can make it easier to read and understand the data. These tools often have an <a href="https://jsonformatter.org/xml-formatter">XML Formatter</a> as well. Look for actions/functions on websites and text editors labeled as “Format,” “Beautify,” “Prettify,” and “Pretty Print” to properly format your XML or JSON, making it more readable.</li><li><strong>Use Syntax Highlighting</strong>: If you’re working with XML or JSON files in a text editor, use one that supports syntax highlighting. This will make it easier to identify different parts of the data. Tools like <a href="https://notepad-plus-plus.org/">Notepad++</a> or <a href="https://www.sublimetext.com/">Sublime Text</a> allow you to select XML or JSON in the language drop-down lists to highlight your code.</li></ol><h3>Conclusion</h3><p>Understanding XML and JSON can seem daunting at first, but with a little practice, you can become comfortable reading these formats. Remember, start simple, use the right tools, and look for patterns.</p><blockquote>As a bonus, the next time your IT person tries to explain XML or JSON to you, you can confidently say, “I know how this works! 😃”</blockquote><h4>Shameless Plug</h4><p>I’ve developed a dark theme to use for multiple text editors like Notepad++ or Sublime, to view XML or JSON in a more fun way. You don’t have to use my theme, though! There are an abundance of themes out there that you can play with. Find a theme that works for you to allow you to read the XML and JSON more easily.</p><p><a href="https://darkcastle.netlify.app/">Dark Castle Theme</a></p><p>Happy coding! 🚀</p><blockquote><strong>I hope you enjoyed reading this article. Feel free to send me feedback and questions using the platform of your choice. Check out my other content on </strong><a href="https://github.com/scottgriv"><strong>GitHub</strong></a><strong>, </strong><a href="https://www.linkedin.com/in/scottgrivner/"><strong>LinkedIn</strong></a><strong>, and </strong><a href="https://x.com/scottgrivner"><strong>X</strong></a><strong>.</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4243871bf00f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>