<?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 JAVING on Medium]]></title>
        <description><![CDATA[Stories by JAVING on Medium]]></description>
        <link>https://medium.com/@javing-uk?source=rss-8375bf68e701------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*A0dvbf68HUGdjntRYdUOGw.jpeg</url>
            <title>Stories by JAVING on Medium</title>
            <link>https://medium.com/@javing-uk?source=rss-8375bf68e701------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 01:49:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@javing-uk/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[Mastering Agentic Engineering: New Patterns for the AI-Native Developer]]></title>
            <link>https://javing-uk.medium.com/mastering-agentic-engineering-new-patterns-for-the-ai-native-developer-6fa4b587fb9c?source=rss-8375bf68e701------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fa4b587fb9c</guid>
            <dc:creator><![CDATA[JAVING]]></dc:creator>
            <pubDate>Fri, 27 Feb 2026 12:00:54 GMT</pubDate>
            <atom:updated>2026-02-27T12:00:54.848Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*0F_SO9zEl9_74alOdmnwtA.png" /><figcaption>This is an AI generated image of some Thoughtful Developer in the new era of Agentic Engeneering</figcaption></figure><p>The era of “Agentic Engineering” is here defined not just by AI that writes code, but by agents that <strong>execute, test, and iterate</strong> independently. Based on the latest frameworks for working with coding agents, here are the most important takeaways for professional software engineers.</p><h3>The Economic Shift: Code is Now Cheap</h3><p>The fundamental disruption in software today is that the cost of generating initial code has dropped to nearly zero.</p><ul><li><strong>Macro Impact:</strong> Traditional project planning and “cost-benefit” estimations are becoming obsolete. If a feature is useful, the “development cost” is no longer the primary barrier.</li><li><strong>The Trap:</strong> While writing code is cheap, delivering <strong>Good Code</strong> (secure, maintainable, and solving the right problem) remains expensive. The developer’s role has shifted from <em>writer</em> to <em>editor and validator</em>.</li><li><strong>New Habit:</strong> When in doubt, fire off an asynchronous agent task. The cost is tokens, not your afternoon.</li></ul><h3>The Power of “Hoarding” Your Knowledge</h3><p>A key asset for the modern engineer is a deep collection of “how-to” solutions — small, working proof-of-concepts (TILs, Gists, or single HTML tools).</p><ul><li><strong>Recombination:</strong> Agents excel at taking two disparate snippets (e.g., a PDF renderer and an OCR library) and merging them into a new tool.</li><li><strong>The Workflow:</strong> If you solve an obscure problem once and document it, your agent can later fetch that specific logic via curl or local search and apply it to new projects. You should only ever have to figure out a &quot;trick&quot; once.</li></ul><h3>Reliability Through TDD (Test-Driven Development)</h3><p>The shorthand <strong>“Use red/green TDD”</strong> is perhaps the most effective prompt for high-quality output.</p><p><strong>Red:</strong> The agent writes a test and confirms it fails.</p><p><strong>Green:</strong> The agent implementation iterates until the test passes.</p><p><strong>Why it works:</strong> This prevents agents from writing hallucinated or unnecessary code and ensures you have a regression suite from the very first minute.</p><h3>The “First Run the Tests” Rule</h3><p>Always start an agent session with an existing codebase by commanding: <strong>“First run the tests.”</strong></p><ul><li><strong>Context:</strong> This forces the agent to locate the test harness and understand the project’s scale.</li><li><strong>Mindset:</strong> It establishes a “testing-first” bias for the rest of the session, making the agent more likely to verify its own future changes.</li></ul><h3>Learning via Linear Walkthroughs</h3><p>If you have “vibe-coded” a project (generated it quickly with AI without deep oversight), use the agent to teach you what it built.</p><ul><li><strong>The Pattern:</strong> Ask the agent to “Plan a linear walkthrough of the code that explains how it works in detail.”</li><li><strong>Hallucination Check:</strong> Force the agent to use terminal commands (like cat or sed) to pull real code snippets into the explanation rather than re-typing them from memory.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fa4b587fb9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prompt Injection Is Not an AI Problem It Is a System Design Problem]]></title>
            <link>https://javing-uk.medium.com/prompt-injection-is-not-an-ai-problem-it-is-a-system-design-problem-d72b922f91cb?source=rss-8375bf68e701------2</link>
            <guid isPermaLink="false">https://medium.com/p/d72b922f91cb</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[prompt-injection-attack]]></category>
            <category><![CDATA[secureai]]></category>
            <category><![CDATA[ai-security]]></category>
            <dc:creator><![CDATA[JAVING]]></dc:creator>
            <pubDate>Sat, 24 Jan 2026 22:29:36 GMT</pubDate>
            <atom:updated>2026-01-24T22:29:36.636Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*bLtcL39yILRpkLjz2FsgJg.png" /><figcaption>A chameleon</figcaption></figure><h3>Understanding Prompt Injection in AI Enabled Enterprise Systems</h3><p>AI enabled systems that leverage large language models have quickly moved from experimental tools to production systems. They summarize documents, review code, call APIs, retrieve data, and increasingly act as autonomous agents. As their responsibilities grow, so does a new and often misunderstood security risk: prompt injection, along with its more subtle and dangerous form, transitive prompt injection.</p><p>This article explains what these attacks are, why they exist, how they propagate across AI enabled systems, and how to reduce their impact using practical defensive techniques, from the perspective of someone building large scale enterprise systems. The goal is not to scare, but to help engineers and decision makers design safer LLM powered systems.</p><h3>What Prompt Injection Really Is</h3><p>Prompt injection is an attack in which a user embeds instructions inside otherwise normal input in order to influence a language model to behave in unintended ways. The key problem is not malicious intent alone, but the fact that LLMs process all text in the same medium. To a model, a command hidden inside user input is still just text, and text is what it is trained to follow.</p><p>Consider a simple system that asks a model to summarize user provided content. If the user includes instructions such as telling the model to ignore previous rules or to reveal hidden context, the model may comply unless strong boundaries are enforced.</p><p>This is fundamentally different from traditional injection attacks like SQL injection. There is no parser bug and no malformed syntax. Prompt injection works because language models do not understand trust, authority, or intent. They only predict the most likely continuation of text based on patterns learned during training.</p><h3>Why Prompt Injection Is So Hard to Eliminate</h3><p>When you work on large enterprise platforms, it becomes clear that language models do not have a built in concept of which instructions matter more. System prompts, developer instructions, and user input are all processed as part of a single sequence. While we label them differently, the model itself does not truly enforce those labels. It simply follows whichever instruction appears most convincing or most recent.</p><p>This means that clever wording, repetition, or contextual framing can sometimes override the original intent of the system. Improving prompts can reduce risk, but it cannot eliminate it entirely.</p><h3>What Is Transitive Prompt Injection</h3><p>Transitive prompt injection occurs when malicious instructions are not executed immediately, but instead survive one stage of processing and affect a later stage in the system. This usually happens in multi step pipelines where the output of one model becomes the input of another.</p><p>For example, a first model may be used to classify or summarize user input. Its output looks harmless and correct. However, it may still contain embedded instructions or carefully phrased text. When that output is passed to a second model with more privileges, those instructions may suddenly take effect.</p><p>This kind of attack is especially dangerous because it is easy to miss. Each individual step may appear to work as intended, yet the overall system behavior becomes compromised.</p><h3>Why Using One Model to Sanitize Another Is Not Enough</h3><p>A common approach is to place a second language model in front of a privileged one and ask it to clean, verify, or approve the output. While this can reduce obvious attacks, it should never be treated as a security boundary.</p><p>Language models share the same fundamental weaknesses. A sanitizing model can be persuaded, confused, or indirectly influenced in the same way as any other. Worse, it may preserve malicious content in a transformed or summarized form that still carries intent.</p><p>Hiding the first model’s output from the user does not solve the problem either. The risk is not what the user sees, but what downstream systems consume.</p><h3>A More Useful Mental Model</h3><p>Language models should be treated as probabilistic tools that operate on untrusted input. They are closer to heuristic classifiers or code generators than to trusted security components. Asking a model to enforce strict rules on hostile input is similar to asking a compiler to validate untrusted code without a sandbox.</p><p>Security decisions must live outside the model.</p><h3>Where Prompt Injection Becomes Critical</h3><p>Prompt injection becomes truly dangerous when AI enabled systems allow language models to take actions rather than just generate text. This includes calling APIs, executing tools, modifying data, writing configuration files, or influencing other autonomous agents.</p><p>In these scenarios, a successful injection can lead to data leaks, unintended actions, or persistent corruption of system state. The more autonomy a model has, the more carefully its inputs and outputs must be constrained.</p><h3>A Practical Example from an AI Enabled System</h3><p>Consider an enterprise system where customer support tickets are processed automatically. A first language model summarizes incoming tickets and classifies their intent. That summary is then passed to a second model that can trigger workflows such as issuing refunds, escalating incidents, or opening internal tickets.</p><p>From an architectural point of view, this looks reasonable. The first model only summarizes text. The second model acts based on structured input. The problem appears when a user submits a ticket that includes carefully phrased instructions disguised as normal conversation. The summarization model produces a clean looking summary that still contains an instruction like requesting escalation or bypassing standard checks.</p><p>Nothing looks wrong at each individual step. The summarizer did its job. The workflow agent received valid input. Yet the system has effectively allowed user controlled text to influence privileged actions. This is transitive prompt injection in practice. The issue is not model misbehavior. It is the absence of a hard boundary between untrusted input and trusted system decisions.</p><h3>Practical Ways to Reduce Risk</h3><p>The most effective defenses do not rely on clever prompts. They rely on system design.</p><p>Deterministic validation should sit between models. Structured outputs such as JSON should be strictly validated against schemas, and any content that does not conform should be rejected. Free form text passed between pipeline stages should be avoided whenever possible.</p><p>Capabilities should be separated. Models that see raw user input should not have access to sensitive tools, memory, or system level instructions. More privileged models should receive only narrowly scoped, pre validated data.</p><p>User input should never be directly embedded into system prompts. It should be treated as data, not instructions, and referred to indirectly.</p><p>Finally, systems should be designed with failure in mind. Prompt injection will happen. When it does, the damage should be limited. Logging, auditing, human review for sensitive actions, and the avoidance of irreversible operations all help reduce blast radius.</p><h3>Architectural Perspective</h3><p>Prompt injection is not a flaw that can be patched with a better prompt. It is a structural risk that emerges whenever natural language is used as both data and control.</p><p>As AI enabled systems increasingly embed language models as assistants and agents inside larger enterprise platforms, secure architecture matters more than ever. The safest systems are not those that trust models to behave perfectly, but those that assume they will eventually fail and are built to handle that reality.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d72b922f91cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Teaching AI to Be Your Context Librarian: A Three-Session Journey to AI-Optimized Development]]></title>
            <link>https://javing-uk.medium.com/teaching-ai-to-be-your-context-librarian-a-three-session-journey-to-ai-optimized-development-c5ab53a19725?source=rss-8375bf68e701------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5ab53a19725</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <dc:creator><![CDATA[JAVING]]></dc:creator>
            <pubDate>Sat, 08 Nov 2025 11:08:09 GMT</pubDate>
            <atom:updated>2025-11-08T11:08:09.182Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RZOlEaW9zJLKtafjZNhtaw.png" /></figure><h3>The Problem: When Your Development Context Becomes a Maze</h3><p>Picture this: You’re working with an AI coding assistant. You ask a simple question: “Where did we decide to handle authentication errors?”</p><p>The AI responds by reading 10 files, spending 30 seconds searching, consuming thousands of tokens, and sometimes still giving you the wrong answer because it read outdated documentation that should have been archived months ago.</p><p>Sound familiar?</p><p>This happened to me repeatedly until I realized something fundamental: <strong>I was optimizing my development context for human readers, but my primary consumer was an AI assistant</strong>.</p><p>Humans can skim. Humans remember where they put things. Humans intuitively know which documents are stale. AI assistants? They read linearly, follow references literally, and trust that what’s present is current.</p><p>I needed to rethink everything.</p><h3>The Insight: AI Assistants Need Different Context Architecture</h3><p>The breakthrough came when I asked my AI assistant a meta-question: “How do you navigate context? Is there such a thing as context access patterns?”</p><p>The answer changed everything.</p><p>AI assistants have <strong>three primary navigation patterns</strong>:</p><ol><li><strong>Hierarchical Discovery</strong>: Index → Summary → Details</li><li><strong>Search-Based Discovery</strong>: Grep/find across all files hoping to find the right one</li><li><strong>Reference-Following</strong>: Starting from known documents and following links</li></ol><p>When I audited my development context through this lens, I discovered I was forcing my AI into pattern #2 (search-based) almost exclusively. Every question triggered a scatter-shot search across dozens of files, most of which were irrelevant or outdated.</p><p><strong>The efficiency cost was staggering</strong>: ~30 seconds per lookup, ~1,400 wasted tokens per session from false-positive reads, and a ~60% success rate on first try.</p><h3>The Framework: Context Assurance Triangle</h3><p>Over three intensive sessions, my AI assistant and I built a complete framework for AI-navigable development context. I call it the <strong>Context Assurance Triangle</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BKlr1HPIoKYl3MlvP7U2gA.png" /><figcaption>Contex Assurance Triangle</figcaption></figure><p>Each leg serves a distinct purpose:</p><ul><li><strong>Process</strong> (top): <em>When</em> and <em>why</em> context maintenance happens</li><li><strong>Structure</strong> (left): <em>What</em> patterns make context navigable</li><li><strong>Execution</strong> (right): <em>How</em> to maintain context day-to-day</li></ul><p>Let me walk you through how we built each leg.</p><h3>Session 1: The Audit and Cleanup</h3><h3>The Discovery</h3><p>I started by asking for a comprehensive audit of my .development-context/ directory. The results were sobering:</p><ul><li><strong>17 files, 6,547 lines</strong> of development context</li><li><strong>4 completed PRs</strong> still in active context (should be archived)</li><li><strong>2 completed sessions</strong> mixed with current work</li><li><strong>Multiple research documents</strong> with unclear retention policy</li><li><strong>No clear entry point</strong> for navigation</li></ul><h3>The Solution: Archive Structure with TTL Policy</h3><p>We created a two-tier archive system:</p><pre>.development-context/<br>├── archive/<br>│   ├── completed/              ← Time-bound retention (6-12 months)<br>│   │   ├── PR4-ADMIN-API-COMPLETE.md             (TTL: 2026-11-08)<br>│   │   └── SESSION-2025-11-03-*.md               (TTL: 2026-05-08)<br>│   │<br>│   └── reference/              ← Long-term value (1 year or indefinite)<br>│       ├── architectural-research-prompt.md (TTL: Indefinite)<br>│       └── architectural-research.md          (TTL: 2026-08-23)</pre><p><strong>Key insight</strong>: Not all historical content has equal value. Completed PRs have short shelf-life (6 months). Architectural research might be valuable indefinitely.</p><p>We moved 6 files (3,377 lines) to archive, achieving <strong>52% active context reduction</strong> (6,547 → 3,200 lines).</p><h3>The Process: Context Assurance</h3><p>We updated the project’s main guidelines (CLAUDE.md) with a formal <strong>Context Assurance Process</strong>:</p><p><strong>Mandatory Triggers</strong>:</p><ul><li>Before major work sessions (&gt;2 hours)</li><li>After completing features</li><li>Before/after significant architectural changes</li><li>Before code reviews or handoffs</li></ul><p><strong>The Process</strong>:</p><ul><li>Review CURRENT-STATUS.md accuracy</li><li>Archive completed work</li><li>Update session history</li><li>Verify cross-references</li><li>Apply TTL policy to old archives</li></ul><p>This formalized <em>when</em> maintenance happens, removing it from “whenever I remember” to “triggered by events.”</p><h3>The Docker Rebuild Decision Tree</h3><p>As a bonus, we created clear guidelines for when Docker rebuilds are actually necessary:</p><pre>Did you modify...<br>├─ Dockerfile / docker-compose.yml? ──────────────► REBUILD<br>├─ build.gradle.kts / package.json dependencies? ─► REBUILD<br>├─ .env / environment variables? ─────────────────► REBUILD<br>├─ JPA entity structure (@Entity)? ───────────────► RESET + REBUILD<br>├─ Service/Controller logic only? ────────────────► RESTART<br>└─ Frontend components only? ─────────────────────► NO ACTION (hot reload)</pre><p>This solved a recurring issue where I was wasting time on unnecessary rebuilds or skipping necessary ones.</p><p><strong>Session 1 Result</strong>: Clean active context, formal maintenance process, clear operational guidelines.</p><h3>Session 2: The Navigation Infrastructure</h3><h3>The Navigation Problem</h3><p>With clean context, the next problem became obvious: <strong>How does the AI know where to start?</strong></p><p>I asked the AI to explain its access patterns in detail. The answer revealed something crucial:</p><p><strong>What makes AI navigation efficient</strong>:</p><ul><li>✅ Clear entry points (like INDEX files)</li><li>✅ Metadata in frontmatter (scan without reading full content)</li><li>✅ Hierarchical information (summary before details)</li><li>✅ Liberal cross-references</li><li>✅ Consistent naming patterns</li></ul><p><strong>What makes AI navigation inefficient</strong>:</p><ul><li>❌ No index files (forces search-based discovery)</li><li>❌ Long documents without structure</li><li>❌ Duplicate information across files</li><li>❌ Implicit knowledge not written down</li></ul><h3>The Solution: INDEX.md as Master Navigation Hub</h3><p>We created .development-context/INDEX.md as the <strong>single entry point</strong> for all context navigation:</p><pre># Development Context Index<br>## 🎯 Start Here Based on Your Need<br>### &quot;Where are we in development?&quot;<br>→ Read **[CURRENT-STATUS.md](CURRENT-STATUS.md)** (single source of truth)<br>### &quot;What did we do recently?&quot;<br>→ Read **[SESSION-LOG.md](SESSION-LOG.md)** (append-only history)<br>### &quot;What features are we building?&quot;<br>→ Read **[planning/README.md](planning/README.md)** → specific feature plan<br>### &quot;How do I implement X?&quot;<br>→ Read **[rules/README.md](rules/README.md)** → specific pattern file</pre><p>This single file reduced discovery time from <strong>~30 seconds to ~5 seconds</strong> — a <strong>6x improvement</strong>.</p><h3>Standardized Frontmatter: Metadata-First Navigation</h3><p>We created a standard frontmatter format for all documents:</p><pre>**Purpose**: [One sentence]<br>**Last Updated**: YYYY-MM-DD<br>**Status**: [Active | Archived | Reference | Complete]<br>**Related**: [Links to related docs]<br>---<br>[Content starts here]</pre><p><strong>Why this matters</strong>: The AI can now scan metadata without reading full content, saving ~400 tokens per false-positive read.</p><p>A stale document is immediately identifiable. Related documents are one click away. Purpose tells you if this is worth reading before you invest time.</p><h3>Document Templates: Standardization</h3><p>We created three templates that cover 90% of document types:</p><ul><li><strong>DOCUMENT-TEMPLATE.md</strong>: General documentation with frontmatter</li><li><strong>SESSION-TEMPLATE.md</strong>: Session notes structure</li><li><strong>PR-PLANNING-TEMPLATE.md</strong>: Pull request planning format</li></ul><p>Every new document now follows consistent structure.</p><h3>Quick Access Navigation</h3><p>We added a “Quick Access” section to CURRENT-STATUS.md:</p><pre>## 🔗 Quick Access<br>- 📋 [Context Index](INDEX.md)<br>- 🎯 [Session History](SESSION-LOG.md)<br>- 📚 [Implementation Patterns](rules/README.md)<br>- 📝 [Active Planning](planning/README.md)<br>- 🐛 [Known Bugs](../website/docs/bugs/overview.md)<br>- 🗂️ [Archive](archive/)<br>- 🔧 [Git Workflow](READY-TO-COMMIT.md)<br>One-click access to the most common destinations.</pre><h3>Table of Contents for Long Documents</h3><p>For documents &gt;500 lines, we added comprehensive Tables of Contents. This allows both AI and humans to jump directly to relevant sections instead of scanning linearly.</p><h3>Meta-Pattern Documentation: context-optimization-patterns.md</h3><p>Here’s where it gets interesting. We created a document that captures <strong>the patterns behind the patterns</strong>.</p><p>context-optimization-patterns.md codifies <strong>5 Core Principles</strong>:</p><h4>1. Shallow Discovery, Deep Reading</h4><p><strong>Pattern</strong>: Hierarchical navigation from index → summary → details</p><pre>User asks question<br>  ↓<br>AI scans INDEX.md (quick)<br>  ↓<br>AI reads appropriate README (medium)<br>  ↓<br>AI follows reference to specific doc (detailed)<br>  ↓<br>Answer question</pre><p><strong>Anti-pattern</strong>:</p><pre>AI lists all files<br>  ↓<br>AI reads 5-10 files hoping to find answer<br>  ↓<br>Wastes time and tokens</pre><h4>2. Predictable Patterns</h4><p>Consistent naming enables predictions:</p><ul><li>Sessions: SESSION-YYYY-MM-DD-topic.md</li><li>PRs: PR#-FEATURE-NAME-STATUS.md</li><li>Patterns: *-patterns.md</li></ul><p>The AI can predict file names without searching.</p><h4>3. Metadata First, Content Second</h4><p>Frontmatter tells if a document is relevant <em>before</em> reading it.</p><p><strong>Metrics</strong>: ~20 seconds saved per document check, ~400 tokens saved per false-positive read.</p><h4>4. Single Source of Truth + References</h4><p>One canonical location for each piece of information, referenced elsewhere.</p><ul><li>CURRENT-STATUS.md (truth) → links to SESSION-LOG.md (history)</li><li>planning/README.md (index) → links to specific plans</li></ul><p>No conflicting information. Updates happen in one place.</p><h4>5. Chunked Information</h4><p>Separate overview from deep dives:</p><ul><li>Overview/README: 100–300 lines</li><li>Detailed plan: 500–1500 lines (with ToC)</li><li>Reference: Any size (with ToC if &gt;500)</li></ul><p>Read only what you need.</p><h3>The Result: Documented Anti-Patterns</h3><p>The meta-pattern document also captures <strong>what NOT to do</strong>:</p><p>❌ The Mega-Document: One 5,000-line file with everything (can’t scan quickly)</p><p>❌ The Hidden Garden: Information exists but not discoverable (no references from known entry points)</p><p>❌ The Duplicate Swamp: Same information in multiple places (conflicting updates)</p><p>❌ The Stale Archive: Outdated information not marked (AI uses wrong info)</p><p>❌ The Implicit Convention: “Everyone knows” but nothing written (AI has to guess)</p><p><strong>Session 2 Result</strong>: 6x faster navigation, standardized structure, meta-patterns documented.</p><h3>Session 3: The Guardrail Activation</h3><h3>The Realization: Documentation Isn’t Enough</h3><p>After Session 2, we had beautiful documentation:</p><ul><li>Clear entry points ✓</li><li>Standardized structures ✓</li><li>Meta-patterns codified ✓</li></ul><p>But there was a problem: <strong>All of this relies on human discipline</strong>.</p><p>What happens when I’m in a hurry and skip updating CURRENT-STATUS.md? What happens when I create a new document and forget to apply frontmatter? What happens when I don’t log a session?</p><p>The system degrades.</p><h3>The Innovation: AI as Context Integrity Guardrail</h3><p>Here’s where we did something novel: <strong>We activated the AI assistant as a proactive enforcer of context patterns</strong>.</p><p>Instead of just documenting how context should be maintained, we gave the AI permission and instructions to:</p><ul><li><strong>Detect</strong> pattern violations</li><li><strong>Alert</strong> proactively before proceeding</li><li><strong>Suggest</strong> the correct procedure</li><li><strong>Execute</strong> the fix automatically if approved</li></ul><p>This shifts the AI from <strong>passive documentation consumer</strong> to <strong>active context guardian</strong>.</p><h3>The Implementation: human-workflow-patterns.md</h3><p>We created a comprehensive operating manual covering <strong>5 workflow areas</strong>:</p><h4>I. Session Initiation</h4><p><strong>Rule</strong>: Always review CURRENT-STATUS.md first</p><p><strong>AI Guardrail Behavior</strong>:</p><pre>IF user requests work on task X:<br>  IF X not in CURRENT-STATUS.md priorities:<br>    ALERT: &quot;I notice [X] isn&#39;t in CURRENT-STATUS.md priorities.<br>             Current Priority 1 is [Y]. Should we update priorities,<br>             or is [X] higher priority than [Y]?&quot;<br>    WAIT for confirmation</pre><p><strong>Why this matters</strong>: Prevents context drift where you’re working on something but the documentation says you’re working on something else.</p><h4>II. Documentation</h4><p><strong>Rule</strong>: Log every completed session</p><p><strong>AI Guardrail Behavior</strong>:</p><pre>IF session duration &gt;1 hour:<br>  IF SESSION-LOG.md not updated:<br>    PROMPT: &quot;This session has been productive. Should I draft<br>              a SESSION-LOG.md entry to capture what we accomplished?&quot;</pre><p><strong>Why this matters</strong>: Session history becomes append-only, automatic, never forgotten.</p><h4>III. Context Maintenance</h4><p><strong>Rule</strong>: Apply standardized frontmatter to all new documents</p><p><strong>AI Guardrail Behavior</strong>:</p><pre>IF creating new document:<br>  IF no frontmatter detected:<br>    AUTO-FIX: Insert standardized frontmatter from template<br>    NOTIFY: &quot;I added standardized frontmatter to maintain consistency.&quot;</pre><p><strong>Why this matters</strong>: Consistency is automatic, not aspirational.</p><h4>IV. Structure &amp; Naming</h4><p><strong>Rule</strong>: Files &gt;500 lines must have Table of Contents</p><p><strong>AI Guardrail Behavior</strong>:</p><pre>IF document length &gt;500 lines:<br>  IF no ToC detected:<br>    PROMPT: &quot;This document is growing large (&gt;500 lines).<br>             Should I add a Table of Contents for easier navigation?</pre><p><strong>Why this matters</strong>: Long documents remain navigable as they grow.</p><h4>V. Clutter Control</h4><p><strong>Rule</strong>: Archive completed work within 1 week</p><p><strong>AI Guardrail Behavior</strong>:</p><pre>IF work marked complete:<br>  IF still in active context after 7 days:<br>    ALERT: &quot;[File] was marked complete on [date] but is still in<br>             active context. Should we archive it now?&quot;</pre><p><strong>Why this matters</strong>: Context stays lean automatically.</p><h3>Four Enforcement Levels</h3><p>The guardrail system operates at four levels:</p><ul><li><strong>Reminder</strong> (Gentle): “Have you considered…?”</li><li><strong>Insistent</strong> (Clear violation): “This violates [pattern]. We should…”</li><li><strong>Auto-Fix</strong> (Safe automation): “I’m applying [fix] automatically.”</li><li><strong>Critical Block</strong> (Prevents errors): “I cannot proceed until [condition] is met.”</li></ul><h3>Exception Handling</h3><p>The system includes clear override procedures:</p><pre>**How to Override a Guardrail**:<br>1. Acknowledge the pattern being violated<br>2. Provide explicit rationale for override<br>3. AI logs the exception for future review<br>4. Pattern proceeds with override documented</pre><p>This prevents the guardrails from becoming obstacles when genuine exceptions occur.</p><h3>The Completion: Context Assurance Triangle</h3><p>With human-workflow-patterns.md, we completed the triangle:</p><ul><li><strong>Process</strong> (CLAUDE.md): Formal Context Assurance Process defining triggers</li><li><strong>Structure</strong> (context-optimization-patterns.md): Meta-patterns for organization</li><li><strong>Execution</strong> (human-workflow-patterns.md): Day-to-day operating procedures + AI enforcement</li></ul><p><strong>Session 3 Result</strong>: Proactive enforcement, reduced human discipline load, complete framework.</p><h3>The Results: Measurable Improvements</h3><p>After three sessions spanning roughly 4.5 hours, here’s what we achieved:</p><h3>Efficiency Metrics</h3><p><strong>MetricBeforeAfterImprovement</strong>Context discovery time~30 sec~5 sec<strong>6x faster</strong>False-positive reads~40%~10%<strong>4x reduction</strong>Token waste per session~1,400~100<strong>93% reduction</strong>Discovery success rate~60%~90%<strong>50% improvement</strong></p><h3>Structure Metrics</h3><p><strong>CategoryBeforeAfterChange</strong>Active context lines6,5473,200 → 6,350*<strong>52% reduction, then optimized growth</strong>Files in active context1711 → 16*<strong>35% reduction, then optimized growth</strong>Archived files06<strong>Historical reference preserved</strong>Orphan files30<strong>100% linked</strong></p><p>*Context grew back slightly with optimization infrastructure, but all growth is high-value navigation aids.</p><h3>Quality Metrics</h3><p><strong>MetricTargetAchieved</strong>Cross-reference coverage&gt;80%100%Frontmatter compliance100%100%INDEX coverage100%100%Orphan files00</p><h3>The Framework: How You Can Apply This</h3><h3>Step 1: Audit Your Current Context</h3><p>Run a comprehensive inventory:</p><p>Bash</p><pre># Count lines in your development context<br>find .development-context -name &quot;*.md&quot; -exec wc -l {} + | sort -n<br># Identify orphan files (not referenced anywhere)<br>grep -r &quot;filename.md&quot; .development-context/</pre><p>Ask yourself:</p><ul><li>How much of this is <strong>active</strong> vs <strong>historical</strong>?</li><li>Which files are <strong>completed</strong> but not archived?</li><li>Which files are <strong>stale</strong> (Last Updated &gt;30 days)?</li><li>Are there <strong>duplicates</strong> or <strong>conflicting information</strong>?</li></ul><h3>Step 2: Create Archive Structure</h3><pre>.development-context/<br>├── archive/<br>│   ├── completed/      ← Time-bound (6-12 months TTL)<br>│   └── reference/      ← Long-term or indefinite<br><br>Move completed work with TTL metadata:<br><br>**Created**: YYYY-MM-DD<br>**Archived**: YYYY-MM-DD<br>**TTL**: YYYY-MM-DD or &quot;Indefinite&quot;<br>**Archive Reason**: Completed / Reference / Superseded</pre><h3>Step 3: Create INDEX.md</h3><pre>Build a master navigation map:<br># Development Context Index<br>## 🎯 Start Here Based on Your Need<br>### &quot;Where are we?&quot;<br>→ Read **CURRENT-STATUS.md**<br>### &quot;What did we do?&quot;<br>→ Read **SESSION-LOG.md**<br>### &quot;How do I...?&quot;<br>→ Read **rules/README.md**<br>## 📁 Directory Structure<br>[Complete tree view with file descriptions]<br>## 🔍 Quick Search Patterns<br>[Grep/find examples for common queries]</pre><h3>Step 4: Standardize Frontmatter</h3><pre>Create a template:<br>**Purpose**: [One sentence]<br>**Last Updated**: YYYY-MM-DD<br>**Status**: [Active | Archived | Complete]<br>**Related**: [Links]<br>Apply to all existing documents.</pre><h3>Step 5: Document Meta-Patterns</h3><p>Create context-optimization-patterns.md capturing:</p><ul><li><strong>Core Principles</strong> (what makes context navigable)</li><li><strong>Navigation Patterns</strong> (how information is found)</li><li><strong>Anti-Patterns</strong> (what to avoid)</li><li><strong>Decision Trees</strong> (where does information go?)</li></ul><h3>Step 6: Create Human Workflow Patterns</h3><p>Document your daily procedures:</p><ul><li>Session initiation (what to check first)</li><li>Documentation (when to log what)</li><li>Maintenance (frontmatter, cross-references, archival)</li><li>Structure (naming, ToC, organization)</li><li>Clutter control (when to archive)</li></ul><h3>Step 7: Activate AI Guardrails</h3><p>Give your AI assistant permission to enforce:</p><pre>## AI Guardrail Activation<br>When workflow patterns are violated, you will:<br>1. Detect the violation<br>2. Alert proactively before proceeding<br>3. Suggest the correct procedure<br>4. Execute the fix if approved<br>Provide clear enforcement levels and exception handling.</pre><h3>Step 8: Formalize the Process</h3><p>Update your project guidelines (e.g., CONTRIBUTING.md, CLAUDE.md) with:</p><p><strong>Context Assurance Process</strong></p><p><strong>Mandatory Triggers</strong>:</p><ul><li>Before/after major sessions</li><li>Before/after feature completion</li><li>Before code reviews or handoffs</li></ul><p><strong>The Process</strong>:</p><ul><li>Review current status accuracy</li><li>Archive completed work (apply TTL)</li><li>Update session history</li><li>Verify cross-references</li><li>Run quality metrics</li></ul><h3>The Broader Lesson: AI as First-Class User</h3><p>The deepest insight from this journey is simple but profound:</p><p><strong>If AI is consuming your documentation more than humans are, optimize for AI first.</strong></p><p>This doesn’t mean making it unreadable for humans. Quite the opposite. What makes context navigable for AI also makes it navigable for humans:</p><ul><li>Clear entry points</li><li>Hierarchical organization</li><li>Metadata-first design</li><li>Single source of truth</li><li>Consistent patterns</li></ul><p>But it does mean thinking differently about structure:</p><ul><li>Humans can skim; AI reads linearly → <strong>need ToC and frontmatter</strong></li><li>Humans remember context; AI doesn’t → <strong>need explicit cross-references</strong></li><li>Humans know what’s stale; AI trusts what’s present → <strong>need archival and TTL</strong></li><li>Humans can ask questions; AI follows links → <strong>need complete navigation graphs</strong></li></ul><h3>The Meta-Innovation: Self-Documenting Process</h3><p>Perhaps the most interesting aspect of this project is that <strong>the AI assistant designed its own optimization</strong>.</p><p>I didn’t come up with these patterns. I asked the AI:</p><ul><li>“How do you navigate context?”</li><li>“What makes you efficient vs inefficient?”</li><li>“What would improve your performance?”</li></ul><p>The AI told me exactly what it needed. We built it together. Now it enforces it proactively.</p><p>This is a template for a new kind of development workflow:</p><ul><li><strong>Ask your tools what they need</strong> to be effective</li><li><strong>Build the infrastructure</strong> they describe</li><li><strong>Activate them as guardians</strong> of that infrastructure</li><li><strong>Iterate based on real usage</strong></li></ul><h3>Conclusion: The Context Assurance Triangle</h3><p>Three sessions. 4.5 hours. One complete framework.</p><p><strong>The Context Assurance Triangle</strong>:</p><ul><li><strong>Process</strong>: When and why maintenance happens (formal triggers)</li><li><strong>Structure</strong>: What patterns make context navigable (meta-patterns)</li><li><strong>Execution</strong>: How to maintain it day-to-day (AI-enforced workflows)</li></ul><p><strong>The results</strong>:</p><ul><li>6x faster navigation</li><li>93% reduction in wasted tokens</li><li>50% improvement in discovery success rate</li><li>Automated enforcement of quality standards</li></ul><p>The lesson:</p><p>Optimize for your primary consumer. If that’s an AI assistant, treat it as a first-class user with specific needs.</p><p>The opportunity:</p><p>As AI-assisted development becomes the norm, the teams that optimize their development context for AI navigation will move faster, onboard more easily, and maintain consistency more reliably.</p><p>The future of development isn’t just using AI to write code. It’s creating development environments where <strong>AI and humans are equal partners</strong>, each optimized for their strengths, working from shared, navigable context.</p><h3>Appendix: File Structure Template</h3><p>For those who want to replicate this system, here’s the complete structure:</p><pre>.development-context/<br>├── INDEX.md                        # Master navigation hub<br>├── CURRENT-STATUS.md               # Single source of truth for &quot;where are we&quot;<br>├── SESSION-LOG.md                  # Append-only session history<br>├── READY-TO-COMMIT.md              # Git workflow helper<br>│<br>├── planning/                       # Active feature planning only<br>│   ├── README.md                   # Planning index<br>│   └── [feature].md                # Individual feature plans<br>│<br>├── rules/                          # Evergreen implementation patterns<br>│   ├── README.md                   # Pattern index<br>│   ├── context-optimization-patterns.md       # Meta-patterns<br>│   ├── human-workflow-patterns.md           # Daily procedures + AI guardrails<br>│   └── [domain]-patterns.md                 # Domain-specific patterns<br>│<br>├── archive/<br>│   ├── completed/                  # Time-bound (6-12 months TTL)<br>│   │   └── [completed-work].md<br>│   └── reference/                  # Long-term or indefinite<br>│       └── [reference-docs].md<br>│<br>└── templates/                      # Standard document formats<br>    ├── DOCUMENT-TEMPLATE.md<br>    ├── SESSION-TEMPLATE.md<br>    └── PR-PLANNING-TEMPLATE.md</pre><p>Every file includes standardized frontmatter. Every document &gt;500 lines includes ToC. Every piece of information has one canonical location and is referenced from related documents.</p><p>Navigation time: ~5 seconds to any piece of information.</p><p><em>This framework was developed collaboratively with Claude (Anthropic) over three sessions in November 2025. The AI assistant both implemented and will enforce these patterns, demonstrating the potential of AI as active partner in development workflow optimization.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5ab53a19725" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Epic Programmers Quotes Explained]]></title>
            <link>https://medium.com/javarevisited/epic-programmers-quotes-explained-aed933257b93?source=rss-8375bf68e701------2</link>
            <guid isPermaLink="false">https://medium.com/p/aed933257b93</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[philosophy]]></category>
            <dc:creator><![CDATA[JAVING]]></dc:creator>
            <pubDate>Fri, 17 Feb 2023 10:44:42 GMT</pubDate>
            <atom:updated>2023-02-21T15:34:08.729Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*006GEI_rRs7MPh1Y94wjZQ.jpeg" /></figure><p>This are some of the most epic quotes programmers ever said explained.</p><blockquote><strong><em>“Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” — Martin Fowler</em></strong></blockquote><p>This quote by Martin Fowler emphasizes the importance of writing code that is easy to understand for human readers, not just for the computer to execute. The quote suggests that it is relatively easy to write code that a computer can understand, as long as the syntax and structure are correct. However, writing code that is clear and easy to understand for other programmers or stakeholders is a more difficult task, and is an important skill for good programmers to possess.</p><p>When <a href="https://medium.com/javarevisited/7-best-courses-to-learn-refactoring-and-clean-coding-in-java-47bea3c67006">code </a>is written in a way that is easy for humans to understand, it is more likely to be maintainable and adaptable to changing needs or requirements. It also makes it easier for other programmers to collaborate on the same codebase, as they can quickly understand what has been done and how to modify or build upon it.</p><p>In contrast, when code is written in a way that is difficult to understand, it can lead to confusion, errors, and wasted time. It can also create a barrier to entry for other programmers who may be unfamiliar with the code or the project.</p><p>Overall, the quote suggests that good programmers prioritize the readability and <a href="https://javarevisited.blogspot.com/2016/12/10-tips-to-make-java-application-more-maintainable-easy-to-support.html">maintainability </a>of their code, rather than simply focusing on getting it to work. By doing so, they can create code that is more effective, efficient, and sustainable in the long term.</p><blockquote><strong>“Programs must be written for people to read, and only incidentally for machines to execute.” — Harold Abelson and Gerald Jay Sussman</strong></blockquote><p>This quote by Harold Abelson and Gerald Jay Sussman emphasizes the idea that programming is not just about instructing machines to perform tasks, but it is also about creating human-readable instructions that other programmers can understand and work with. The quote implies that writing code that is understandable and easy to read by other people is just as important as writing code that a machine can execute.</p><p>The reason behind this idea is that code is not just written once and then forgotten. It is an ongoing process that involves continuous updates and maintenance. Therefore, code that is easy to read and understand is much more maintainable in the long term than code that is difficult to read and understand. When code is easy to read, other programmers can more easily understand it, modify it, and build upon it.</p><p>Another reason for this idea is that programmers often work in teams, and it is essential that everyone on the team can understand the codebase in order to work together effectively. If the code is written in a way that is difficult to read, team members will have a harder time collaborating on the codebase, which can slow down the development process.</p><p>Overall, the quote is a reminder that programming is not just about writing code that works, but also about writing code that is understandable, maintainable, and adaptable in the long term. Programs should be written for people to read, because ultimately, it is people who will be working with the code, not just machines.</p><blockquote><strong>“The best way to predict the future is to invent it.” — Alan Kay</strong></blockquote><p>This quote by Alan Kay emphasizes the idea that we have the power to shape our own future and create the world that we want to live in. Rather than waiting for the future to happen to us, we can actively work to create a better future by taking action and pursuing our goals.</p><p>The quote suggests that the future is not a predetermined or fixed outcome, but rather something that we can influence and shape through our actions and decisions. By taking an active role in the present and working towards our vision for the future, we can create a better world for ourselves and others.</p><p>The quote also implies that innovation and creativity are essential for shaping the future. Inventing the future requires the ability to imagine new possibilities and think outside the box, rather than simply accepting the status quo. By being innovative and creative, we can develop new technologies, systems, and ideas that have the potential to transform the world.</p><p>Overall, the quote is a call to action, encouraging us to take control of our own future and work towards creating a world that aligns with our values and aspirations. It reminds us that the future is not predetermined, and that we have the power to invent and shape our own destiny.</p><blockquote><strong>“Debugging is like being a detective in a crime movie where you’re also the murderer.” — Filipe Fortes</strong></blockquote><p>This quote by Filipe Fortes provides a colorful analogy for the process of debugging software. It suggests that <a href="https://javarevisited.blogspot.com/2022/09/java-debugging-interview-questions.html">debugging </a>is like trying to solve a mystery, where the programmer is simultaneously playing the roles of the detective and the perpetrator.</p><p>In the context of software debugging, the “murderer” is the programmer who wrote the code that contains the bugs or errors. The “detective” is the same person who is now tasked with identifying and fixing those bugs.</p><p>The quote implies that the process of debugging can be both frustrating and challenging, as the programmer is often trying to solve a mystery that they themselves have created. It can be difficult to identify the root cause of a bug, and even harder to come up with a solution that resolves the issue without causing new problems.</p><p>Overall, the quote captures the complex and often frustrating nature of debugging, while also highlighting the importance of perseverance and problem-solving skills in the field of software development. Just as a detective must use all of their skills and resources to solve a crime, a programmer must use their knowledge and experience to find and fix bugs in their code.</p><blockquote><strong>“If at first you don’t succeed; call it version 1.0” — Unknown</strong></blockquote><p>This quote, attributed to an unknown source, provides a humorous take on the idea of “failing forward” in the software development process. It suggests that when a project or feature doesn’t work as intended, rather than seeing it as a failure, we can reframe it as the first version of the product.</p><p>The quote implies that in <a href="https://javinpaul.medium.com/10-best-coding-and-software-development-books-for-programmers-of-all-level-6034912e5de2">software development</a>, it is common to encounter challenges and setbacks, and that the first attempt at a project or feature may not always be successful. However, rather than giving up or being discouraged by these setbacks, the quote encourages us to see them as opportunities for growth and improvement.</p><p>The quote also suggests that there is value in putting out an imperfect product or feature, rather than waiting for it to be perfect. By releasing a version 1.0 that is functional, even if not yet perfect, developers can gather feedback and make improvements over time. This can lead to a more successful and refined final product.</p><p>Overall, the quote highlights the importance of resilience, adaptability, and a willingness to learn from mistakes in the field of software development. It encourages us to embrace the iterative nature of the development process and to see setbacks as opportunities for growth, rather than as failures.</p><blockquote><strong>“A good programmer is someone who always looks both ways before crossing a one-way street.” — Doug Linder</strong></blockquote><p>This quote by Doug Linder emphasizes the importance of caution and attention to detail in the field of software development. It suggests that a good programmer is someone who takes the time to carefully assess a situation and consider all possible angles, even in seemingly straightforward situations.</p><p>The quote uses the analogy of looking both ways before crossing a one-way street to illustrate this point. Crossing a one-way street may seem like a simple and straightforward task, but a good programmer is someone who understands the importance of checking for any potential risks or hazards, no matter how seemingly small or insignificant they may be.</p><p>The quote implies that good programmers are diligent and detail-oriented, taking the time to thoroughly test and debug their code, even in situations where it seems unnecessary. This attention to detail is critical for ensuring that the code functions as intended and is free of bugs or errors.</p><p>Overall, the quote highlights the importance of careful consideration and attention to detail in the field of software development. It encourages programmers to approach their work with caution and to always be on the lookout for potential risks or issues, even in situations that may seem routine or unremarkable.</p><blockquote><strong>“The function of good software is to make the complex appear to be simple.” — Grady Booch</strong></blockquote><p>This quote by Grady Booch emphasizes the idea that good software should be designed in a way that makes complex tasks or processes appear simple and easy to understand. It suggests that the primary function of software is to simplify and streamline complex tasks, rather than making them more complicated.</p><p>The quote implies that good software design involves the ability to break down complex processes into smaller, more manageable parts, and to present them in a way that is intuitive and easy to understand for the user. This requires an understanding of the user’s needs and preferences, as well as a deep knowledge of the underlying technology and systems that power the software.</p><p>The quote also suggests that simplicity should be a key consideration in the software development process, and that good software should prioritize ease of use and accessibility. This is important because users are more likely to adopt and continue to use software that is easy to understand and use.</p><p>Overall, the quote highlights the importance of user-centered design and the role of software in making complex tasks or processes more accessible and easy to understand for the average user. It encourages software developers to prioritize simplicity and usability in their work, and to consider the needs and preferences of users at every stage of the development process.</p><blockquote><strong>“There are two ways to write error-free programs; only the third one works.” — Alan J. Perlis</strong></blockquote><p>This quote by Alan J. Perlis is a humorous take on the challenges of writing error-free code in the field of software development. It suggests that while there may be different strategies for writing code that is free of errors or bugs, in practice, none of these strategies are foolproof.</p><p>The quote implies that even with the most careful planning and testing, there will always be some degree of error or imperfection in software code. The phrase “only the third one works” implies that there may be a variety of different approaches or techniques for writing error-free code, but none of them are completely effective or foolproof.</p><p>The quote also highlights the complexity and challenges involved in software development, particularly when it comes to ensuring that code is error-free and functions as intended. This is a critical aspect of software development, as even small errors can have significant consequences for users.</p><p>Overall, the quote provides a humorous and lighthearted take on the challenges of writing error-free code in the field of software development. It reminds us that software development is a complex and challenging field that requires careful planning, attention to detail, and a willingness to learn from mistakes.</p><blockquote><strong>“Code is like humor. When you have to explain it, it’s bad.” — Cory House</strong></blockquote><p>This quote by Cory House draws an analogy between code and humor, suggesting that both should be self-explanatory and easily understood. It implies that if code requires explanation or clarification, it is not well-written and may be difficult to maintain or understand.</p><p>The quote highlights the importance of writing clear and concise code that is easy to read and understand. When code is well-written, it should be self-explanatory and not require extensive documentation or explanation. This can help to improve the maintainability of the code and reduce the time and effort required to update or modify it.</p><p>The comparison to humor also suggests that code can be enjoyable and rewarding to work with, much like a well-crafted joke or clever pun. When code is well-designed and executed, it can be satisfying to work with and easy to appreciate.</p><p>Overall, the quote encourages software developers to prioritize clarity and simplicity in their code, and to aim for code that is self-explanatory and easy to understand. By doing so, developers can create software that is easier to maintain, more enjoyable to work with, and more successful in achieving its intended purpose.</p><blockquote><strong>“The computer was born to solve problems that did not exist before.” — Bill Gates</strong></blockquote><p>This quote by Bill Gates reflects on the transformative impact of computers and technology on society. It suggests that computers were invented to solve problems that were previously unimaginable or non-existent, and that they have played a key role in shaping the world we live in today.</p><p>The quote implies that computers have enabled us to tackle complex challenges and problems that were previously too difficult or time-consuming to solve. By providing fast and accurate processing power, computers have opened up new possibilities for innovation, research, and discovery.</p><p>At the same time, the quote also highlights the potential risks and challenges that can arise from relying too heavily on computers and technology. While computers have brought many benefits and advancements, they have also created new challenges, such as the need for cybersecurity and data privacy.</p><p>Overall, the quote underscores the transformative impact of computers and technology on society, while also highlighting the importance of careful consideration and responsibility in the development and deployment of these technologies. By recognizing the power and potential of computers, we can continue to harness their capabilities in ways that create positive change and progress for society.</p><blockquote><strong>“It’s not at all important to get it right the first time. It’s vitally important to get it right the last time.” — Andrew Hunt and David Thomas</strong></blockquote><p>This quote by Andrew Hunt and David Thomas emphasizes the importance of taking a thoughtful and deliberate approach to software development. It suggests that while getting things right the first time can be helpful, it is ultimately more important to ensure that the final product is high-quality and free of errors or bugs.</p><p>The quote implies that software development is an iterative process that involves continuous testing and refinement. While it may be tempting to rush through the development process and aim for quick results, this approach can ultimately lead to errors and other issues that will need to be addressed later on.</p><p>The quote also highlights the importance of thorough testing and quality control in the software development process. By taking the time to carefully test and refine a product, developers can ensure that it is reliable, robust, and meets the needs of its users.</p><p>Overall, the quote encourages software developers to take a patient and diligent approach to software development, prioritizing quality and thorough testing over speed or quick results. By doing so, developers can create products that are reliable, effective, and well-suited to the needs of their users.</p><blockquote><strong>“Programs must be written with the idea that they will be read by people, and only incidentally for machines to execute.” — Harold Abelson</strong></blockquote><p>This quote by Harold Abelson highlights the importance of readability and human comprehension in the development of software programs. It suggests that while the primary purpose of programs is to be executed by machines, they should also be written with the understanding that they will be read and understood by human beings.</p><p>The quote implies that software development is not just a technical exercise, but also a communicative one. When developers write code, they are essentially communicating with both the machine that will execute the code and with other human beings who may read or modify the code in the future.</p><p>The quote also suggests that the ability of other people to read and understand the code is critical for the maintainability and scalability of the program. If the code is written in a way that is difficult to understand or modify, it can make it harder for other developers to work with the code and make changes as needed.</p><p>Overall, the quote emphasizes the importance of clear and readable code in the development of software programs. By prioritizing readability and human comprehension, developers can create programs that are not only effective and reliable but also scalable, maintainable, and adaptable over time.</p><blockquote><strong>“Programming is the art of telling a computer what to do.” — Donald Knuth</strong></blockquote><p>This quote by Donald Knuth provides a simple and elegant definition of programming, framing it as the act of instructing a computer on what actions to take. It highlights the creative and communicative aspects of programming, emphasizing the role of the programmer as a storyteller or artist who is crafting instructions for a machine to follow.</p><p>The quote implies that programming is not just a technical exercise, but also a creative one that involves a certain degree of imagination and ingenuity. By telling the computer what to do, programmers can bring their ideas and concepts to life in the form of software programs that can perform a wide range of tasks and functions.</p><p>The quote also suggests that programming can be a challenging and rewarding pursuit, requiring a deep understanding of both the technology and the human needs that the program is designed to meet. By mastering the art of programming, developers can create software that is effective, reliable, and user-friendly, helping to solve complex problems and make the world a better place.</p><p>Overall, the quote captures the essence of programming as a form of creative communication that involves instructing a machine to perform a specific set of tasks or functions. It encourages us to view programming as a creative and rewarding pursuit, one that can help us solve complex problems and create positive change in the world.</p><blockquote><strong>“The best code is no code at all.” — Jeff Atwood</strong></blockquote><p>This quote by Jeff Atwood challenges the common assumption that more code is always better in software development. It suggests that in some cases, the best solution to a problem may be to avoid writing code altogether.</p><p>The quote implies that the development of code can be time-consuming, costly, and prone to errors or bugs. By focusing on solutions that don’t require code, developers can save time and resources, while also reducing the risk of introducing errors or other issues into the software.</p><p>The quote also highlights the importance of simplicity and efficiency in software development. By finding non-code solutions to problems, developers can often create more streamlined and effective software that is easier to maintain and scale over time.</p><p>Overall, the quote encourages developers to think critically about the need for code in their projects and to prioritize simplicity and efficiency in their work. By focusing on solutions that don’t require code, developers can create better software that is easier to use, maintain, and scale over time.</p><blockquote><strong>“We have to stop optimizing for programmers and start optimizing for users.” — Jeff Atwood</strong></blockquote><p>This quote by Jeff Atwood challenges the traditional mindset of software development, which often prioritizes the needs and preferences of programmers over those of users. It suggests that in order to create software that truly meets the needs of its users, developers must shift their focus away from optimizing for their own needs and preferences and towards optimizing for the needs of the end-users.</p><p>The quote implies that the most successful software is not necessarily the most technically sophisticated, but rather the software that is easiest to use and most accessible for its target audience. By prioritizing the needs of users over the needs of programmers, developers can create software that is more intuitive, user-friendly, and effective in meeting the needs of its intended audience.</p><p>The quote also highlights the importance of empathy and understanding in software development. In order to create software that truly meets the needs of its users, developers must be able to put themselves in the shoes of those users and understand their needs, preferences, and pain points.</p><p>Overall, the quote encourages developers to prioritize user-centered design in their software development efforts, rather than simply optimizing for their own preferences or technical abilities. By doing so, developers can create software that is more effective, more accessible, and more successful in meeting the needs of its target audience.</p><blockquote><strong>“Computers are good at following instructions, but not at reading your mind.” — Donald Knuth</strong></blockquote><p>This quote by Donald Knuth highlights the fundamental difference between human cognition and computer processing. It suggests that while computers are very good at executing precise instructions, they are not able to understand human intent or context in the same way that people can.</p><p>The quote implies that successful software development requires a deep understanding of both the technology and the human needs that the software is intended to address. While computers can be incredibly powerful tools for processing and executing instructions, they are only as effective as the instructions that they are given.</p><p>The quote also highlights the importance of clear and precise instructions in software development. In order to ensure that the computer is able to execute instructions accurately and effectively, it is critical to provide instructions that are clear, concise, and unambiguous.</p><p>Overall, the quote underscores the importance of the human element in software development, and the critical role of developers in designing software that meets the needs of its users. By recognizing the limitations and strengths of computers, developers can create software that is effective, reliable, and user-friendly, helping to solve complex problems and create positive change in the world.</p><blockquote><strong>“The trouble with programmers is that you can never tell what a programmer is doing until it’s too late.” — Seymour Cray</strong></blockquote><p>This quote by Seymour Cray is a humorous take on the challenges of managing and monitoring programmers in software development. It suggests that the work of programmers can be difficult to track or understand, making it hard to know what they are working on until it is too late.</p><p>The quote implies that successful software development requires clear communication and transparency between programmers and their managers or clients. Without clear communication and feedback, it can be difficult to know what a programmer is working on or whether they are on track to meet their goals and objectives.</p><p>At the same time, the quote also highlights the importance of trusting programmers to do their work effectively and efficiently. While it can be difficult to monitor their progress in real-time, it is important to give programmers the freedom and flexibility they need to do their work in their own way and at their own pace.</p><p>Overall, the quote provides a lighthearted take on the challenges of managing programmers in software development, while also highlighting the importance of communication, trust, and transparency in achieving successful outcomes. By working together and building strong relationships between programmers and their managers or clients, we can create software that is effective, reliable, and meets the needs of its users.</p><blockquote><strong>“Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program.” — Linus Torvalds</strong></blockquote><p>This quote by Linus Torvalds highlights the passion and enthusiasm that many programmers have for their work. It suggests that while programming can be challenging and complex, it is also a deeply rewarding and enjoyable pursuit for many programmers.</p><p>The quote implies that successful programmers are driven by a love of the craft, rather than a desire for external rewards such as money or public recognition. For many programmers, the joy of programming comes from the satisfaction of creating something new and useful, and from the intellectual challenge of solving complex problems and puzzles.</p><p>The quote also highlights the importance of creativity and innovation in programming. By seeing programming as a form of creative expression, programmers can find new and exciting ways to solve problems and develop software that is both effective and enjoyable to use.</p><p>Overall, the quote encourages programmers to pursue their work with passion and enthusiasm, seeing programming not as a job, but as a rewarding and enjoyable pursuit in its own right. By doing so, they can create software that is not only effective and useful but also innovative, engaging, and inspiring for others to use and enjoy.</p><blockquote><strong>“Programmers are in the enviable position of not only getting to do what they want to, but because the end result is so important they get paid to do it.” — Jamie Zawinski</strong></blockquote><p>This quote by Jamie Zawinski captures the unique position of programmers in the modern economy. It suggests that programmers are fortunate to be able to do work that they enjoy and are passionate about, while also being compensated for the important and impactful work that they do.</p><p>The quote implies that successful programmers are able to find deep fulfillment and satisfaction in their work, seeing their contributions as valuable and meaningful to both themselves and the wider society. In this way, programming is not just a job, but a calling and a source of personal fulfillment and growth.</p><p>At the same time, the quote also underscores the important role that programming plays in our modern world. By developing software that is innovative, useful, and impactful, programmers can help solve complex problems and create positive change in the world.</p><p>Overall, the quote celebrates the unique position of programmers in the modern economy, recognizing the important and impactful work that they do, while also emphasizing the personal fulfillment and satisfaction that comes from doing work that one is passionate about. By continuing to innovate and create software that meets the needs of the world, programmers can create a better future for all of us.</p><blockquote><strong>“The art of debugging is figuring out what you really told your program to do rather than what you thought you told it to do.” — Andrew Singer</strong></blockquote><p>This quote by Andrew Singer highlights the challenges and importance of debugging in software development. It suggests that successful debugging requires a deep understanding of the intended behavior of the program, as well as the ability to identify and correct errors or bugs that may be causing the program to behave incorrectly.</p><p>The quote implies that debugging is not just a technical exercise, but also a form of problem-solving and detective work. By carefully analyzing the behavior of the program and comparing it to the intended behavior, developers can identify the source of errors and make the necessary corrections.</p><p>The quote also emphasizes the importance of clear and precise programming in software development. By ensuring that the program’s behavior is consistent with the intended behavior, developers can reduce the likelihood of errors and make it easier to identify and correct issues when they do arise.</p><p>Overall, the quote highlights the importance of debugging in successful software development, emphasizing the need for clear and precise programming and the ability to analyze and correct errors in the program’s behavior. By mastering the art of debugging, developers can create software that is effective, reliable, and user-friendly, helping to solve complex problems and create positive change in the world.</p><blockquote><strong>“Programs must be written for people to read, and only incidentally for machines to execute.” — Hal Abelson and Jerry Sussman</strong></blockquote><p>This quote by Hal Abelson and Jerry Sussman emphasizes the importance of human-readable code in software development. It suggests that while the primary purpose of software programs is to be executed by machines, they should also be written in a way that is easy for human beings to read and understand.</p><p>The quote implies that successful software development requires a deep understanding of both the technology and the human needs that the software is intended to address. By prioritizing readability and comprehension in the development of software programs, developers can create software that is more effective, more reliable, and easier to maintain over time.</p><p>The quote also highlights the importance of communication and collaboration in software development. When developers write code that is easy to understand and modify, they can make it easier for other developers to work with the code and make changes as needed, fostering a culture of collaboration and innovation in software development.</p><p>Overall, the quote encourages developers to prioritize human-readable code in their software development efforts, recognizing that the success of the program depends not just on its technical execution, but also on its ability to meet the needs of its users and to be modified and maintained over time. By doing so, developers can create software that is effective, user-friendly, and built to last.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aed933257b93" width="1" height="1" alt=""><hr><p><a href="https://medium.com/javarevisited/epic-programmers-quotes-explained-aed933257b93">Epic Programmers Quotes Explained</a> was originally published in <a href="https://medium.com/javarevisited">Javarevisited</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Wasting Time and Money: The Secret to Successful Requirements Gathering]]></title>
            <link>https://medium.com/javarevisited/stop-wasting-time-and-money-the-secret-to-successful-requirements-gathering-e81061f78c25?source=rss-8375bf68e701------2</link>
            <guid isPermaLink="false">https://medium.com/p/e81061f78c25</guid>
            <category><![CDATA[requirements-gathering]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[product-development]]></category>
            <category><![CDATA[stakeholder-management]]></category>
            <dc:creator><![CDATA[JAVING]]></dc:creator>
            <pubDate>Thu, 16 Feb 2023 15:46:52 GMT</pubDate>
            <atom:updated>2023-02-16T15:46:52.508Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/612/0*LTWaunCRNH19gO7H" /><figcaption>Looks like he is trying to put together some good requirements for the devs to work on.</figcaption></figure><p>As a developer, there are few things more frustrating than working on a project with missing or incomplete requirements, or when the company doesn’t really know what it wants. It can be incredibly annoying to spend hours or days working on a feature, only to find out that it’s not what the client or the company had in mind.</p><p>This can lead to a waste of time, effort, and resources, as well as increased stress and frustration for everyone involved. Additionally, it can make it difficult to plan and prioritize work effectively, leading to delays and missed deadlines. Incomplete or unclear <a href="https://javarevisited.blogspot.com/2015/01/difference-between-functional-and-nonfunctional-requirements-software-development.html">requirements </a>can also make it challenging to test and ensure that the final product meets the client’s needs. Overall, unclear requirements can be a significant source of frustration and can make it challenging to deliver high-quality software on time and on budget.</p><p>One of the most critical stages of any project is gathering and documenting the requirements. If requirements gathering is done correctly, it can help ensure project success by providing a clear understanding of what the project needs to achieve.</p><p>However, if it’s done incorrectly, it can lead to significant delays, increased costs, and even project failure. In this article, we’ll discuss strategies for effective requirements gathering, including techniques for identifying requirements and constraints.</p><p><strong>Identifying Requirements and Constraints</strong></p><p>Before we dive into strategies for effective requirements gathering, let’s discuss how to identify requirements and constraints. Requirements are a set of statements that describe what the project needs to accomplish. Constraints are factors that limit the project’s ability to meet the requirements. Some common techniques for identifying requirements and constraints include:</p><ol><li><em>Stakeholder interviews:</em> Speaking with stakeholders is an effective way to gather information about what they need from the project. Stakeholders can be anyone who has a vested interest in the project, such as end-users, business owners, and operations staff.</li><li><em>User stories and use cases:</em> User stories and use cases are descriptions of the interactions between the user and the project. They help identify the specific features and functions that the project should support.</li><li><em>Requirements workshops:</em> A requirements workshop involves bringing together a group of stakeholders to work collaboratively to define the requirements for the project.</li><li><em>Prototyping and user testing:</em> Prototyping and user testing can help identify requirements or constraints that may not have been identified through other techniques. Creating a functional prototype of the project and testing it with users can help validate assumptions and reveal design flaws.</li><li><em>Market research and competitor analysis:</em> Researching other projects in the market can help identify features and functionality that may be important to users and ensure that the project is competitive.</li></ol><p><strong>Strategies for Effective Requirements Gathering<br></strong>Now that we’ve discussed some techniques for identifying requirements and constraints let’s discuss strategies for effective requirements gathering:</p><ol><li><em>Plan</em>: It’s essential to plan the requirements gathering process. This includes identifying stakeholders, scheduling interviews and workshops, and defining the project scope.</li><li><em>Listen</em>: Listen to stakeholders’ needs and concerns to ensure that you capture all the relevant information. It’s essential to be an active listener and ask probing questions to clarify any points that are unclear.</li><li><em>Document</em>: Document requirements and constraints in a clear and concise manner. Use diagrams, tables, and other visual aids to help stakeholders understand the project’s scope and requirements.</li><li><em>Validate</em>: Validate the requirements with stakeholders to ensure that they accurately reflect their needs. This can involve presenting the requirements in a workshop or sharing the documentation with stakeholders for review.</li><li><em>Prioritize</em>: Prioritize requirements based on their importance to stakeholders and the project’s goals. This can help ensure that the project delivers the most value to stakeholders and meets their needs.</li></ol><p>In conclusion, companies that fail to define clear requirements for their software projects are setting themselves up for failure. Poorly defined requirements can result in delays, increased costs, and ultimately a project that fails to deliver the desired results.</p><p>The consequences of incomplete or unclear requirements can be significant, and they can lead to frustration, poor morale, and a lack of trust between stakeholders. To avoid these pitfalls, companies must invest time and effort in gathering and documenting requirements effectively.</p><p>By doing so, they can ensure that their projects are aligned with their goals and meet the needs of their stakeholders. Remember, taking the time to get requirements right can save a lot of time, money, and headaches down the road.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e81061f78c25" width="1" height="1" alt=""><hr><p><a href="https://medium.com/javarevisited/stop-wasting-time-and-money-the-secret-to-successful-requirements-gathering-e81061f78c25">Stop Wasting Time and Money: The Secret to Successful Requirements Gathering</a> was originally published in <a href="https://medium.com/javarevisited">Javarevisited</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction To HTTP]]></title>
            <link>https://javing-uk.medium.com/introduction-to-http-a8b56a625b3f?source=rss-8375bf68e701------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8b56a625b3f</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[protocol]]></category>
            <dc:creator><![CDATA[JAVING]]></dc:creator>
            <pubDate>Tue, 17 Jan 2023 08:39:21 GMT</pubDate>
            <atom:updated>2023-01-17T08:39:21.409Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T410larsk2dDxAI7PQ6fpQ.png" /></figure><p>HTTP, or Hypertext Transfer Protocol, is the foundation of communication on the World Wide Web. It is a set of rules for transferring files, such as text, images, and videos, between web servers and clients, which are typically web browsers.</p><p>HTTP enables the transfer of data between different computers and networks, allowing users to access and share information from anywhere in the world. The protocol is based on a client-server model, where a client, such as a web browser, sends a request to a server, which then sends back a response.</p><p>One of the key features of HTTP is its ability to transfer data in a format that is easily understood by both the client and the server. This is achieved through the use of a standardized message format, which includes a request line, headers, and a message body. The request line, which is the first line of the message, contains the method, URI, and version of HTTP being used. The headers provide additional information about the request or response, such as the type of content being sent and any cookies associated with the request. The message body, which is optional, contains the actual data being transferred.</p><p>Another important aspect of HTTP is its support for various methods, or ways in which a client can request information from a server. The most commonly used methods are GET, which retrieves information from the server, and POST, which sends information to the server. Other methods include PUT, which updates information on the server, and DELETE, which deletes information from the server.</p><p>HTTP also supports different types of communication, such as one-way and two-way communication. One-way communication, also known as a fire-and-forget method, is when the client sends a request to the server and does not wait for a response. Two-way communication, on the other hand, is when the client sends a request and waits for a response from the server. This type of communication is commonly used for interactive applications, such as online shopping and social media.</p><p>In conclusion, HTTP is a fundamental protocol that allows for the transfer of data between web servers and clients. It provides a standardized message format, supports various methods, and enables different types of communication. Without HTTP, the World Wide Web as we know it would not be possible.</p><p><strong>Versions</strong></p><p>There are several versions of the HTTP protocol that have been developed and standardized over the years. The most widely used versions are:</p><ol><li>HTTP/0.9: The first version of HTTP, which was released in 1991. This version is considered to be very basic and only supports a single method, GET, which is used to retrieve information from the server.</li><li>HTTP/1.0: The first official version of HTTP, which was released in 1996. This version added support for additional methods, such as POST and HEAD, and introduced the concept of headers and status codes.</li><li>HTTP/1.1: The most widely used version of HTTP, which was released in 1999. This version made several improvements over HTTP/1.0, such as the ability to persist connections, better support for caching, and the introduction of the Host header.</li><li>HTTP/2: The latest version of HTTP, which was released in 2015. This version introduced a number of new features, including multiplexing, server push, and header compression, which significantly improves the performance and efficiency of communication over the web.</li><li>HTTP/3: A new version of HTTP, which is currently in development and is expected to be released in 2022. This version of HTTP will be based on the QUIC protocol and aims to improve the security and performance of web communication.</li></ol><p>It’s worth noting that HTTP/2 and HTTP/3 are not fully supported by all web browsers and servers yet, and many websites still use HTTP/1.1 and lower versions.</p><p><strong>Methods</strong></p><p>HTTP defines several methods, also known as verbs, that indicate the desired action to be performed on the identified resource. The most common HTTP methods are:</p><ol><li>GET: Retrieves information from the server. This is the most widely used method and is used to retrieve information from a specified URI (Uniform Resource Identifier).</li><li>POST: Submits information to the server. This method is used to send data to the server, typically to create a new resource or update an existing one.</li><li>PUT: Replaces a current resource with new data. This method is used to completely replace the current representation of a resource with new data.</li><li>DELETE: Deletes a specified resource. This method is used to delete a resource from the server.</li><li>HEAD: Retrieves the headers of a specified resource. This method is similar to GET, but it only retrieves the headers of a resource, rather than the resource itself.</li><li>OPTIONS: Describes the communication options for a specified resource. This method is used to retrieve information about the communication options available for a specified resource.</li><li>PATCH: Applies partial modifications to a resource. This method is used to partially update a resource, rather than replacing it entirely.</li><li>CONNECT: Establishes a network connection to a specified resource. This method is used to establish a network connection to a specified resource, typically used for proxy servers.</li><li>TRACE: Retrieves a diagnostic trace of the request message. This method is used to retrieve a diagnostic trace of the request message, typically used for debugging purposes.</li></ol><p>These are the most widely used methods, but there are other methods that are less common such as PROPFIND, PROPPATCH, MKCOL, COPY, MOVE, LOCK, UNLOCK, etc.</p><p><strong>POST vs PUT and GET vs HEAD<br></strong>The main difference between the HTTP methods POST and PUT is the way in which they handle the resource being acted upon.</p><ul><li>POST is used to submit an entity to a specified resource, often causing a change in state or side effects on the server. It’s used to create a new resource, or to update an existing one by sending data to the server.</li><li>PUT, on the other hand, is used to completely replace the current representation of a resource with new data. It’s typically used to update an existing resource, or to create a new resource if one does not already exist.</li></ul><p>Also calling PUT once or several times successively has the same effect (that is no side effect), it is idempotent.</p><p>The main difference between the HTTP methods GET and HEAD is the amount of information returned in the response.</p><ul><li>GET is used to retrieve information from the server and it returns the entire representation of the resource, including the headers and the body.</li><li>HEAD, on the other hand, is used to retrieve the headers of a specified resource. It only returns the headers and no body, it can be used to check if the resource exist or retrieve the metadata of it without requesting the entire resource.</li></ul><p>In summary, PUT is used to update or create a resource by replacing the current representation, while POST is used to create or update a resource by submitting data to the server. GET returns the entire representation of a resource, while HEAD returns only the headers.</p><p><strong>Headers<br></strong>HTTP headers are used to provide additional information about the request or response message. Both the request and response headers are composed of a set of fields, each with its own name and value.</p><p>Here is an example of a request header:</p><pre>GET /example HTTP/1.1<br>Host: www.example.com<br>User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0<br>Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8<br>Accept-Language: en-US,en;q=0.5<br>Accept-Encoding: gzip, deflate, br<br>Connection: keep-alive<br>Cookie: session=abcdefghijklmnopqrstuvwxyz</pre><ul><li>The first line is the request line, which contains the method (GET), the URI (/example), and the version of HTTP (HTTP/1.1) being used.</li><li>The Host field indicates the hostname and port number of the server being requested. This field is required by HTTP/1.1</li><li>The User-Agent field is used to identify the client software and version.</li><li>The Accept field is used to indicate the types of content that the client is able to handle.</li><li>The Accept-Language field is used to indicate the preferred language for the response.</li><li>The Accept-Encoding field is used to indicate the types of content encoding that the client is able to handle.</li><li>The Connection field is used to indicate whether the client wants to maintain a persistent connection to the server.</li><li>The Cookie field is used to send one or more cookies to the server.</li></ul><p>Now let’s take a look at an example of a response header:</p><pre>HTTP/1.1 200 OK<br>Server: Apache/2.4.38 (Debian)<br>Date: Mon, 11 Jan 2021 12:00:00 GMT<br>Content-Type: text/html; charset=UTF-8<br>Content-Length: 1234<br>Connection: keep-alive</pre><ul><li>The first line is the status line, which contains the version of HTTP (HTTP/1.1), the status code (200) and the reason phrase (OK)</li><li>The Server field is used to indicate the software and version of the server that generated the response.</li><li>The Date field is used to indicate the date and time of the response.</li><li>The Content-Type field is used to indicate the media type of the response body.</li><li>The Content-Length field is used to indicate the length of the response body in bytes.</li><li>The Connection field is used to indicate whether the server wants to maintain a persistent connection to the client.</li></ul><p>There are many other headers that can be used depending on the context, such as authentication headers, caching headers, location headers and so on.</p><p>There are several resources on the internet that provide comprehensive guides on all possible HTTP headers. Here are a few examples:</p><ol><li>The HTTP/1.1 specification published by the Internet Engineering Task Force (IETF) is the official standard for HTTP and provides detailed information on all possible headers. The specification can be found at: <a href="https://tools.ietf.org/html/rfc2616">https://tools.ietf.org/html/rfc2616</a></li><li>The Mozilla Developer Network (MDN) provides a comprehensive guide on all possible HTTP headers, including examples and explanations of how they are used. The guide can be found at: <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers</a></li><li>The W3C website provides a guide on all possible headers for HTTP/1.1 and HTTP/2, including explanations of how they are used, and examples. The guide can be found at: <a href="https://www.w3.org/Protocols/HTTP/">https://www.w3.org/Protocols/HTTP/</a></li><li>The OWASP website provides a guide on all possible headers and how to use them securely. The guide can be found at: <a href="https://owasp.org/www-community/HttpHeaders">https://owasp.org/www-community/HttpHeaders</a></li><li>The IANA website provides a list of all official headers and their meanings. The list can be found at: <a href="https://www.iana.org/assignments/message-headers/message-headers.xhtml">https://www.iana.org/assignments/message-headers/message-headers.xhtml</a></li></ol><p>All of these resources are considered reputable and provide detailed information on all possible headers. They are a great reference for web developers and security professionals.</p><p><strong>Response codes</strong></p><p>HTTP defines a set of standard response codes that indicate the status of a request. These codes are grouped into classes based on their first digit. Here is a list of the most common response codes:</p><p>1xx (Informational): The request was received, but the server is still processing it.</p><ul><li>100 Continue: The server has received the request headers and the client should proceed to send the request body.</li><li>101 Switching Protocols: The client has asked to switch to a different protocol, such as upgrading from HTTP/1.1 to HTTP/2.</li></ul><p>2xx (Successful): The request was successfully received, understood, and accepted.</p><ul><li>200 OK: The request was successful and the server has returned the requested resource.</li><li>201 Created: The request was successful and a new resource was created as a result.</li><li>204 No Content: The request was successful, but there is no resource to return.</li></ul><p>3xx (Redirection): The request needs further action to be fulfilled, such as following a redirect.</p><ul><li>301 Moved Permanently: The resource has been permanently moved to a new URI.</li><li>302 Found: The resource has been temporarily moved to a new URI.</li><li>304 Not Modified: The resource has not been modified since the last request and the client can use the cached version.</li></ul><p>4xx (Client Error): The request contains bad syntax or cannot be fulfilled by the server.</p><ul><li>400 Bad Request: The request is malformed or invalid.</li><li>401 Unauthorized: The request requires user authentication.</li><li>403 Forbidden: The server refuses to fulfill the request.</li><li>404 Not Found: The requested resource could not be found.</li><li>405 Method Not Allowed: The request method is not allowed for the requested resource.</li><li>429 Too Many Requests: The user has sent too many requests in a given amount of time.</li></ul><p>5xx (Server Error): The server failed to fulfill a valid request.</p><ul><li>500 Internal Server Error: The server encountered an unexpected condition that prevented it from fulfilling the request.</li><li>503 Service Unavailable: The server is currently unable to handle the request due to a temporary overload or maintenance.</li></ul><p>These are the most common response codes, but there are many other codes that are less common such as 102 Processing, 207 Multi-Status, 308 Permanent Redirect, etc. Each of these codes are designed to convey different information about the request, and it’s important for the client to interpret the correct meaning and take the appropriate action. The resources mentioned in the previous section also provide information and comprehensive lists of all http response codes.</p><p><strong>https://</strong></p><p>HTTPS (Hypertext Transfer Protocol Secure) is an extension of the standard HTTP protocol that provides secure communication over the internet. It uses SSL (Secure Sockets Layer) or TLS (Transport Layer Security) to encrypt the data being transferred between the client and the server. This helps to protect sensitive information, such as login credentials or credit card numbers, from being intercepted or tampered with by a third party.</p><p>When a client makes a request to an HTTPS website, the browser first establishes an SSL/TLS connection with the server. Once the connection is established, the browser sends the request to the server over an encrypted channel. The server then processes the request and sends the response back to the browser over the same encrypted channel.</p><p>Here’s an example of how HTTPS works:</p><ol><li>A user visits a website that uses HTTPS, such as <a href="https://www.example.com/">https://www.example.com</a>.</li><li>The browser establishes an SSL/TLS connection with the server by performing the SSL/TLS Handshake.</li><li>The browser sends a request to the server, such as a GET request to retrieve the website’s home page.</li><li>The server receives the request and processes it.</li><li>The server sends the response back to the browser, which includes the website’s home page and any additional resources (images, scripts, etc.)</li><li>The browser receives the response and decrypts the data using the session keys generated during the SSL/TLS Handshake.</li><li>The browser then renders the website’s home page and resources for the user to view.</li></ol><p>In contrast, when a client makes a request to a HTTP website, the request and response are sent in plain text, which makes it easy for a third party to intercept and read the data.</p><p>It’s worth noting that in order for a website to use HTTPS, it needs to have a valid SSL/TLS certificate installed on the server. This certificate is used to authenticate the server’s identity and to establish the encrypted connection.</p><p>It’s also worth noting that HTTPS is becoming more important now, as it’s a requirement for many features such as geolocation, camera access, and storage access on the web and also it’s a ranking signal for search engines.</p><p><strong>Cookies</strong></p><p>Cookies are small text files that are stored on a user’s device by a website’s server. They are used to remember information about the user’s browsing activity and preferences, such as login credentials, shopping cart contents, or language preference. Cookies are sent by the website’s server to the user’s browser and are included in subsequent requests made to the same website. This allows the website to remember information about the user’s previous visits and to provide a more personalized experience.</p><p>Here’s an example of how cookies work:</p><ol><li>A user visits a website that requires the user to log in. The user enters their login credentials and submits the form.</li><li>The website’s server receives the login request and verifies the credentials. If they are valid, the server sends a response to the browser, along with a “Set-Cookie” header. This header contains the name and value of the cookie, and any additional attributes such as the expiration date and domain.</li><li>The browser stores the cookie on the user’s device.</li><li>On the next request, the browser sends the cookie back to the server as a “Cookie” header.</li><li>The server receives the request and checks the cookie. If the cookie is valid, the server uses the information stored in the cookie to personalize the user’s experience or to keep the user logged in.</li></ol><p>Cookies are used for a variety of purposes, such as to remember login credentials, to keep track of shopping cart contents, to show targeted ads, or to remember user preferences. Cookies can be deleted by the user at any time, and many web browsers allow users to control the use of cookies by setting their own preferences. For example, users can block all cookies, block only third-party cookies, or block cookies from specific websites. Some browsers also allow users to view and delete individual cookies.</p><p>It’s worth noting that cookies have some privacy concerns as they allow websites to track a user’s browsing activity and personalize the experience without the user’s explicit consent. Many websites now require users to accept the use of cookies before they can access the website’s content, and some browsers now block third-party cookies by default.</p><p>Additionally, there are some other types of cookies, such as session cookies and persistent cookies. Session cookies are stored in the browser’s memory only for the duration of the user’s visit and are deleted when the browser is closed, while persistent cookies are stored on the user’s device and are not deleted when the browser is closed, they have an expiration date.</p><p>Cookies are widely used for web development and it’s an important feature for many web application, However it’s important to be aware of their privacy implications and to provide users with control over their use.</p><p><strong>Caching<br></strong>HTTP caching is a technique used to temporarily store a copy of a resource on a client’s device, so that it can be quickly retrieved the next time the same resource is requested. Caching can reduce the amount of data that needs to be transferred over the network, which can improve the performance and responsiveness of a website.</p><p>There are two types of caching that can occur with HTTP: browser caching and proxy caching.</p><ol><li>Browser caching: When a browser requests a resource from a server, the server can include “Cache-Control” and “Expires” headers in the response. These headers provide information to the browser about how long the resource can be cached and when it should be considered stale. The browser will then cache the resource and use the cached copy for subsequent requests, rather than requesting the resource again from the server.</li><li>Proxy caching: In addition to browser caching, resources can also be cached by intermediaries known as proxies. These are servers that sit between the client and the origin server and are used to improve performance and reduce network traffic. When a proxy receives a request for a resource, it can check its cache to see if a copy of the resource is already stored. If it is, the proxy can return the cached copy to the client, rather than forwarding the request to the origin server.</li></ol><p>Caching can improve the performance of a website by reducing the number of requests that need to be sent to the server, but it can also cause problems if the cached resources become stale. To control caching, the server can set several headers such as Cache-Control, Expires, ETag, If-Modified-Since, If-None-Match, etc. The Cache-Control header, for example, can be used to specify whether a resource is cacheable, how long it can be cached, and whether it should be revalidated before being used.</p><p>It’s important to note that caching can cause stale data to be served to the user in case of dynamic content or if the server didn’t set the correct headers. Therefore, it’s important to test and tune caching headers to ensure that the website performance is optimal while providing the correct and updated content to the users.</p><p><strong>Compression<br></strong>HTTP compression is a technique used to reduce the amount of data that needs to be transferred over the network by compressing the response body before it is sent to the client. This can improve the performance of a website by reducing the amount of time it takes to load resources, especially for large files or slow connections.</p><p>There are several different algorithms that can be used for HTTP compression, such as GZIP and DEFLATE. The most commonly used algorithm is GZIP.</p><p>The process of compression works as follows:</p><ol><li>The client sends a request to the server and includes an “Accept-Encoding” header, which specifies the compression algorithms that the client supports.</li><li>The server receives the request and checks the “Accept-Encoding” header to see if the client supports the compression algorithm that the server wants to use.</li><li>If the client supports the algorithm, the server compresses the response body using the specified algorithm before sending it back to the client.</li><li>The server also includes a “Content-Encoding” header in the response, which specifies the algorithm that was used to compress the response body.</li><li>The client receives the response, decompresses the response body using the specified algorithm, and then processes the response as usual.</li></ol><p>It’s worth noting that compression can add some overhead to the server, as it needs to compress and decompress the data, but it can save a lot of bandwidth, especially for large files and slow connections. It’s also important to note that not all types of contents can be compressed, such as already compressed files like images, videos, etc.</p><p>Compression is a feature that can be configured on the server and it’s transparent for the client, it can also be configured to be used only when the client supports it. Implementing HTTP compression can significantly improve the performance of a website and it’s a recommended practice for web development.</p><p>I hope you enjoyed this introduction to HTTP, please leave some claps if you enjoyed the content.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8b56a625b3f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Diversity In The Software Industry]]></title>
            <link>https://medium.com/life-tips/diversity-in-the-software-industry-a3d11b221ddc?source=rss-8375bf68e701------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3d11b221ddc</guid>
            <category><![CDATA[recruitment]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[culture]]></category>
            <category><![CDATA[beyourself]]></category>
            <category><![CDATA[diversity-and-inclusion]]></category>
            <dc:creator><![CDATA[JAVING]]></dc:creator>
            <pubDate>Thu, 08 Dec 2022 15:01:05 GMT</pubDate>
            <atom:updated>2022-12-09T06:32:37.009Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_HsoAhUIPhmUjwDd.jpg" /></figure><p>The software industry, like many other industries, is becoming increasingly diverse. This is a positive development, as diversity in the workplace can bring a range of benefits to both the individual and the organization.</p><p>One of the main benefits of diversity in the workplace is increased creativity and innovation. When people from different backgrounds and perspectives come together, they can bring unique ideas and perspectives to the table. This can lead to the development of new and innovative solutions to problems, which can give a company a competitive advantage.</p><p>Another benefit of diversity in the workplace is improved problem-solving. When people from different backgrounds and perspectives work together, they can approach problems from different angles and come up with creative solutions that may not have been considered by a homogeneous group. This can lead to more effective and efficient problem-solving within the organization.</p><p>Additionally, diversity in the workplace can help to create a more inclusive and respectful work environment. When people from different backgrounds and perspectives are included and valued, it can foster a sense of belonging and acceptance among all employees. This can lead to increased morale and job satisfaction, which can improve overall performance and productivity.</p><p><strong>Challenges<br></strong>Despite these benefits, there are also some disadvantages and blockers to diversity in the workplace. For example, some people may be resistant to change and may be uncomfortable working with people who are different from them. This can lead to conflicts and misunderstandings within the organization. Additionally, some people may not have the necessary skills or knowledge to work effectively in a diverse environment, which can lead to challenges in communication and collaboration.</p><p>In the hiring front, there are several factors that can hinder companies from hiring a diverse workforce. Some of the main blockers include unconscious bias, lack of access to diverse talent pools, and a lack of inclusion and diversity initiatives within the company. Additionally, some companies may have a corporate culture that is not conducive to diversity and inclusion, which can make it difficult for underrepresented groups to thrive. Finally, there may be legal barriers, such as discrimination laws, that prevent companies from hiring a diverse workforce.</p><p>To overcome these challenges and fully realize the benefits of diversity in the workplace, it is important for companies in the software industry to implement diversity and inclusion initiatives. This can include providing diversity training for employees, creating employee resource groups, and implementing inclusive hiring practices. By doing so, companies in the software industry can create a more diverse and inclusive work environment and reap the benefits of a diverse workforce.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3d11b221ddc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/life-tips/diversity-in-the-software-industry-a3d11b221ddc">Diversity In The Software Industry</a> was originally published in <a href="https://medium.com/life-tips">Be Yourself</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cohesion in Agile]]></title>
            <link>https://medium.com/life-tips/cohesion-in-agile-c47dc05f8cd4?source=rss-8375bf68e701------2</link>
            <guid isPermaLink="false">https://medium.com/p/c47dc05f8cd4</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[beyourself]]></category>
            <category><![CDATA[team-building]]></category>
            <category><![CDATA[culture]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[JAVING]]></dc:creator>
            <pubDate>Thu, 08 Dec 2022 14:33:48 GMT</pubDate>
            <atom:updated>2022-12-11T23:26:38.329Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/848/0*p1R35POIq50-nTl6.jpg" /></figure><p>In the context of Agile software development, team cohesion refers to the degree to which the members of the development team are united and work together harmoniously. In Agile development, teams are typically small and cross-functional, with each member having a specific role and responsibility. In order to be successful, it is important for the team to have a high level of cohesion, as this will allow them to work together effectively to deliver high-quality software.</p><p>There are several factors that can contribute to team cohesion in Agile software development. Firstly, it is important for team members to have a clear understanding of their roles and responsibilities, and to know how their work fits into the overall project. This can help to reduce confusion and ensure that everyone is working towards the same goals.</p><p>Secondly, effective communication is crucial for maintaining team cohesion in Agile development. This means not only sharing information and updates, but also actively listening to and engaging with other team members. By fostering open and honest communication, team members can share their ideas and perspectives, and work together to resolve any challenges or conflicts that may arise.</p><p>Thirdly, team cohesion in Agile development can be improved by providing the necessary tools and resources to support collaboration. This can include things like project management software, collaboration tools, and shared workspace. By providing the team with the right tools, you can enable them to work together more effectively and efficiently.</p><p>Overall, team cohesion is an important factor in the success of an Agile software development project. By fostering unity and collaboration within the team, you can improve communication, performance, and morale, and set the team up for success.</p><p><strong>There are several signs that could indicate low cohesion in a team. These may include:</strong></p><ul><li>Lack of communication or poor communication among team members</li><li>Disengagement or lack of interest in the team’s work</li><li>Conflict or disagreement among team members</li><li>Poor collaboration or coordination of efforts</li><li>High levels of turnover or absenteeism</li><li>Lack of support or assistance among team members</li><li>Low morale or motivation among team members</li></ul><p>If a team is experiencing any of these issues, it may be a sign of low cohesion. In order to improve the team’s performance and effectiveness, it may be necessary to address these issues and work to increase the team’s cohesion. This could involve things like improving communication and collaboration, providing training or support, and addressing any underlying conflicts or problems within the team.</p><p><strong>Some things that a team can do to improve its cohesion:</strong></p><ul><li>Developing a clear understanding of roles and responsibilities within the team</li><li>Encouraging open and honest communication among team members</li><li>Providing training or support to help team members develop the necessary skills and knowledge</li><li>Encouraging collaboration and coordination of efforts among team members</li><li>Creating opportunities for team members to get to know each other better and build relationships</li><li>Identifying and addressing any underlying conflicts or problems within the team</li><li>Providing the necessary tools and resources to support collaboration and teamwork</li></ul><p>By taking these steps, a team can work to improve its cohesion and perform more effectively. This can lead to increased productivity and efficiency, better decision-making and problem-solving, and improved morale and job satisfaction among team members.</p><blockquote>“The strength of the team is each individual member. The strength of each member is the team.” — Phil Jackson.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c47dc05f8cd4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/life-tips/cohesion-in-agile-c47dc05f8cd4">Cohesion in Agile</a> was originally published in <a href="https://medium.com/life-tips">Be Yourself</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Benefits of Proactiveness in the Workplace]]></title>
            <link>https://medium.com/life-tips/the-benefits-of-proactiveness-in-the-workplace-11a158bce64?source=rss-8375bf68e701------2</link>
            <guid isPermaLink="false">https://medium.com/p/11a158bce64</guid>
            <category><![CDATA[workplace]]></category>
            <category><![CDATA[beyourself]]></category>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[JAVING]]></dc:creator>
            <pubDate>Thu, 08 Dec 2022 13:41:46 GMT</pubDate>
            <atom:updated>2022-12-12T14:10:06.805Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*38EQzD5xg76KULs3AETMng.png" /></figure><p>Proactiveness is a crucial skill to have in the workplace. It refers to the ability to take initiative and anticipate potential problems or opportunities. By being proactive, you can set yourself up for success and stand out as a valuable employee. But what are the specific benefits of proactiveness, and how does it impact productivity?</p><p>One of the key benefits of proactiveness in the workplace is that it can help you to build stronger relationships with your boss and co-workers. By anticipating their needs and taking initiative, you can demonstrate your value as an employee and earn their trust and respect. This can lead to better communication and collaboration, which can in turn improve productivity. For example, if you know that your boss is working on an important project and you can see that they are struggling to complete it on time, you might offer to help out. By proactively assisting with the project, you can help your boss to finish it faster, which can save time and effort for both of you.</p><p>Another benefit of proactiveness is that it can help you to avoid potential problems and obstacles. By anticipating potential challenges and taking steps to prevent or mitigate them, you can save time and effort in the long run. This can be especially important in fast-paced, high-stress environments, where the ability to think ahead and anticipate potential issues can make a big difference. For example, if you know that a particular task is going to be difficult or time-consuming, you might start working on it early to avoid any last-minute rush. By proactively tackling the task before it becomes urgent, you can ensure that it is completed on time and to a high standard, which can improve your overall productivity.</p><p>In addition to avoiding problems, proactiveness can also help you to identify and seize new opportunities. By looking for opportunities for learning and personal development, you can expand your skill set and become more valuable as an employee. For example, if you see that a new software program is being introduced in your workplace, you might proactively learn how to use it and offer to train others. By doing so, you can not only improve your own skills, but also help your co-workers to become more productive. In addition, by proactively seeking out new opportunities, you can position yourself for career advancement and increased job satisfaction.</p><p>Overall, proactiveness is a key factor in improving productivity in the workplace. By taking initiative and anticipating potential problems or opportunities, you can build stronger relationships, avoid potential obstacles, and seize new opportunities. So next time you’re in the office, think about how you can be more proactive and take action to make a positive impact on your career and your team’s productivity.</p><p>Proactiveness can also have a positive impact on the workplace culture. By taking initiative and demonstrating leadership, a proactive employee can inspire others to do the same. This can create a culture of collaboration and innovation, where everyone is working together to achieve common goals. In contrast, a workplace where employees are passive and wait to be told what to do can be stagnant and unproductive.</p><p>Furthermore, being proactive can help to reduce stress and improve job satisfaction. By anticipating potential problems and taking steps to prevent or mitigate them, you can avoid last-minute crises and reduce the amount of pressure you are under. In addition, by proactively seeking out new opportunities for learning and growth, you can keep your work interesting and challenging, which can improve your overall enjoyment of the job.</p><p>Of course, being proactive is not always easy. It requires a certain mindset and set of skills, including the ability to think critically, take calculated risks, and adapt to changing circumstances. Developing these skills can take time and effort, but the rewards are well worth it. By becoming more proactive, you can improve your productivity, build stronger relationships, and position yourself for success in the workplace.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vGjgHZ0vO7AT5-rw.jpg" /><figcaption>This man was quite proactive and it payed off</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11a158bce64" width="1" height="1" alt=""><hr><p><a href="https://medium.com/life-tips/the-benefits-of-proactiveness-in-the-workplace-11a158bce64">The Benefits of Proactiveness in the Workplace</a> was originally published in <a href="https://medium.com/life-tips">Be Yourself</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Function As Parameter In Kotlin — (Easy Explanation)]]></title>
            <link>https://medium.com/javarevisited/function-as-parameter-in-kotlin-easy-explanation-c77e6e2c40f0?source=rss-8375bf68e701------2</link>
            <guid isPermaLink="false">https://medium.com/p/c77e6e2c40f0</guid>
            <category><![CDATA[begginer-tips]]></category>
            <category><![CDATA[convention]]></category>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[parameter]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[JAVING]]></dc:creator>
            <pubDate>Sat, 08 Oct 2022 14:59:32 GMT</pubDate>
            <atom:updated>2022-10-08T14:59:32.576Z</atom:updated>
            <content:encoded><![CDATA[<h3>Function As Parameter In Kotlin — (Easy Explanation)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/0*vWyVm9sC3UwldVSA" /><figcaption>A complex function machine</figcaption></figure><p>If you come from <a href="https://medium.com/javarevisited/10-best-places-to-learn-java-online-for-free-ce5e713ab5b2">Java </a>like myself, using functions as parameters would likely be something new for you. The closest we have in Java to that would be declaring a functional interface as a method parameter. <a href="https://medium.com/javarevisited/10-oop-design-principles-you-can-learn-in-2020-f7370cccdd31">Programming to the interface</a> is of course a good practice but beyond that, Java does not allow to use/pass methods as parameters of others methods.</p><p>Let’s have a look at an example. The code below declares a function that adds two numbers and then a caller function uses it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1d854329dcd99f2d08d27bd9e520e579/href">https://medium.com/media/1d854329dcd99f2d08d27bd9e520e579/href</a></iframe><p>There’s nothing wrong really with the code above. But using functions as parameters can allow us to have more flexibility because it allows us to extract a partial implementation and re-utilize it somewhere else. Also would allow us to easily replace the <a href="https://javarevisited.blogspot.com/2018/01/what-is-functional-interface-in-java-8.html">function </a>for another function if we wanted to. Have a look at this next bit of code</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fba7fc8ef115d4afc608d19cd2695ab0/href">https://medium.com/media/fba7fc8ef115d4afc608d19cd2695ab0/href</a></iframe><p>What before was the <em>sum() </em>function now is the <em>mathFunction()</em> this function takes the same two parameters <em>a</em> and <em>b </em>but also takes a function. <br>The advantages are multiple:</p><ul><li>The parameter <em>mathFunc </em>represents an interchangeable piece of implementation of the function <em>mathFuncion()</em></li><li>The calling function can pass a different implementation if it wants</li><li>The code function is more granular, re-usable and easy to maintain</li></ul><p><strong>Syntax<br></strong>Now I am going to explain a bit more in depth the syntax and also I will show some variations that are also possible.</p><p>Let’s start first with the declaration of <em>mathFunction().</em></p><figure><a href="https://javarevisited.blogspot.com/2021/05/java-8-stream-lambda-expression-d.html"><img alt="" src="https://cdn-images-1.medium.com/max/784/1*OeK9Kf25pn0Z4Z4mZwFgwQ.png" /></a><figcaption>Function that uses another function as parameter</figcaption></figure><p>There’s nothing special about the two first parameters <em>a</em> and <em>b, </em>but the function parameter is a little bit different. The reason for this is that, the third parameter(<em>mathFunc</em>) is a function. So basically what we are doing is define the blueprint of the function that would have to be passed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*8j8Kn6XFq3gIGbB4uC1Rsg.png" /><figcaption>Function parameter</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/1*R1bdL5oRtyPyJxJsdjn4dg.png" /><figcaption>Meaning explanation</figcaption></figure><p>Whatever function is passed will have to take two <em>Int </em>inputs and will have to return <em>Int.</em></p><p>Now that we understood that, let’s look at the caller:</p><figure><a href="https://www.java67.com/2014/04/java-8-stream-examples-and-tutorial.html"><img alt="" src="https://cdn-images-1.medium.com/max/684/1*HfwE3ZupmwWnLTZBt4RRsA.png" /></a></figure><p>The actual function is on the right side of the image above. Everything before the ‘=’ sign is just part of the declaration of the value. This is not the only way we can pass this function, actually we can also pass it as an anonymous function without declaring a <em>val.</em></p><figure><a href="https://javarevisited.blogspot.com/2014/02/10-example-of-lambda-expressions-in-java8.html"><img alt="" src="https://cdn-images-1.medium.com/max/907/1*1_R65HXmZAmlSXZ6x27BQA.png" /></a><figcaption>Passing anonymous function</figcaption></figure><p>That looks nicer. One last thing. Notice the popup message on my editor?<br>If the function parameter is the last in a series of parameters, the convention is to take it out of the parenthesis. This is how it would look.</p><figure><a href="https://www.java67.com/2021/11/how-to-use-stream-findfirst-and-findany.html"><img alt="" src="https://cdn-images-1.medium.com/max/575/1*sxiyflOkVHyX76B6J9VaSQ.png" /></a><figcaption>Calling Function According To Convention</figcaption></figure><p><em>Thanks for your time reading I hope you liked this article and/or found it useful. If you enjoyed this kind off content, I would very much appreciate if you give me some claps, follow and share on your social media. I am aiming to publish 1 article monthly.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c77e6e2c40f0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/javarevisited/function-as-parameter-in-kotlin-easy-explanation-c77e6e2c40f0">Function As Parameter In Kotlin — (Easy Explanation)</a> was originally published in <a href="https://medium.com/javarevisited">Javarevisited</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>