<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ankush Singh Gandhi</title>
    <description>The latest articles on DEV Community by Ankush Singh Gandhi (@ankushsinghgandhi).</description>
    <link>https://dev.to/ankushsinghgandhi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F471579%2F0b120e45-d3a5-4605-88c5-d2eaecc00966.jpg</url>
      <title>DEV Community: Ankush Singh Gandhi</title>
      <link>https://dev.to/ankushsinghgandhi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ankushsinghgandhi"/>
    <language>en</language>
    <item>
      <title>17,841 Lines Changed. 3 Things You Actually Need to Look At.</title>
      <dc:creator>Ankush Singh Gandhi</dc:creator>
      <pubDate>Mon, 16 Nov 2026 09:42:19 +0000</pubDate>
      <link>https://dev.to/ankushsinghgandhi/17841-lines-changed-3-things-you-actually-need-to-look-at-1k22</link>
      <guid>https://dev.to/ankushsinghgandhi/17841-lines-changed-3-things-you-actually-need-to-look-at-1k22</guid>
      <description>&lt;h2&gt;
  
  
  📌Lenscheck: See What a Pull Request &lt;em&gt;Actually&lt;/em&gt; Changes — On Every Repo You Own
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Git shows you what **lines&lt;/em&gt;* changed. Lenscheck shows you what they &lt;strong&gt;mean&lt;/strong&gt;, where to look, and whether&lt;br&gt;
they broke a rule. It's a semantic PR reviewer for Python web apps. This guide starts from zero —&lt;br&gt;
every idea, command, and setting in plain English — then shows you how to set Lenscheck up &lt;strong&gt;once&lt;/strong&gt; and&lt;br&gt;
run it across &lt;strong&gt;all your repos&lt;/strong&gt; (personal, team, or organization).*&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;No LLM&lt;/code&gt;  ·  &lt;code&gt;Deterministic&lt;/code&gt;  ·  &lt;code&gt;Never runs your code&lt;/code&gt;  ·  &lt;code&gt;Nothing leaves your network&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  📌Table of contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Quickstart (60 seconds)&lt;/li&gt;
&lt;li&gt;What is Lenscheck (in one minute)&lt;/li&gt;
&lt;li&gt;Two features, two problems (start here)&lt;/li&gt;
&lt;li&gt;Install&lt;/li&gt;
&lt;li&gt;Three ways to use Lenscheck&lt;/li&gt;
&lt;li&gt;The Web UI, panel by panel&lt;/li&gt;
&lt;li&gt;The CLI, command by command, flag by flag&lt;/li&gt;
&lt;li&gt;Every feature explained&lt;/li&gt;
&lt;li&gt;The GitHub Action, input by input&lt;/li&gt;
&lt;li&gt;Set up Lenscheck for all your repos (personal, team, or org)&lt;/li&gt;
&lt;li&gt;A full worked example&lt;/li&gt;
&lt;li&gt;Honesty rules (why Lenscheck never lies)&lt;/li&gt;
&lt;li&gt;Quick reference card&lt;/li&gt;
&lt;li&gt;Glossary (words you need to know)&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  📌Quickstart (60 seconds)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Try it on a repo you already have&lt;/strong&gt; — see the review right in your terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install lenscheck-semantic-reviewer
&lt;span class="nb"&gt;cd&lt;/span&gt; your-django-repo
lenscheck review          &lt;span class="c"&gt;# your current branch vs. main → the few things that actually matter&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Turn it on for a team — one command&lt;/strong&gt; (drops a GitHub Action that reviews every PR, advisory only):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;lenscheck init            &lt;span class="c"&gt;# writes .github/workflows/lenscheck.yml (comments, never blocks)&lt;/span&gt;
git add .github/workflows/lenscheck.yml &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; git commit -m &lt;span class="s2"&gt;"add lenscheck"&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; git push
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Prefer to click around?&lt;/strong&gt; &lt;code&gt;lenscheck serve&lt;/code&gt; opens a local web UI with the flow graph.&lt;/p&gt;

&lt;p&gt;That's the whole tool: a &lt;strong&gt;flow graph&lt;/strong&gt; of what a PR does, and &lt;strong&gt;rules&lt;/strong&gt; it can enforce. Everything&lt;br&gt;
below is depth for when you want it.&lt;/p&gt;


&lt;h2&gt;
  
  
  📌1. What is Lenscheck (in one minute)
&lt;/h2&gt;

&lt;p&gt;When you open a Pull Request (PR), the reviewer sees a &lt;strong&gt;diff&lt;/strong&gt; — red lines removed, green lines&lt;br&gt;
added. But a diff tells you &lt;em&gt;what text changed&lt;/em&gt;, not &lt;strong&gt;what it means&lt;/strong&gt;. Did this PR add a new way&lt;br&gt;
into your app? Did it start writing to your database without a login check? Did someone's email&lt;br&gt;
address just start leaving your server?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lenscheck reads your PR and tells you what it *means&lt;/strong&gt;* — in a few high-signal findings, each pointing&lt;br&gt;
at the exact line to look at. It's built for Python web apps (Django / Django REST Framework today).&lt;/p&gt;

&lt;p&gt;It is &lt;strong&gt;not&lt;/strong&gt; an AI that guesses. It reads your code with Python's own parser and reports &lt;strong&gt;facts&lt;/strong&gt;.&lt;br&gt;
When it isn't sure, it says so (you'll see a ⚠). It never dresses up "I didn't see it" as "it's safe."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm6r5g0d4oepmcpgtbk1q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm6r5g0d4oepmcpgtbk1q.png" alt="The Lenscheck landing page" width="799" height="433"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  📌2. Two features, two problems
&lt;/h2&gt;

&lt;p&gt;Lenscheck has a lot of features, but they exist to serve &lt;strong&gt;two&lt;/strong&gt; that matter most. If you remember&lt;br&gt;
nothing else from this guide, remember these two.&lt;/p&gt;
&lt;h1&gt;
  
  
  🔽1) See what a PR &lt;em&gt;means&lt;/em&gt; — not just what changed
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;The problem.&lt;/strong&gt; A git diff shows you &lt;em&gt;text&lt;/em&gt; — hundreds of red and green lines. It doesn't tell you&lt;br&gt;
that one of them opened a new endpoint, started writing to the database, or sent a user's email out&lt;br&gt;
of the building. On a big (often AI-generated) PR, the reviewer skims — and the risky change ships.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What Lenscheck does.&lt;/strong&gt; It reads the code &lt;em&gt;before&lt;/em&gt; and &lt;em&gt;after&lt;/em&gt; the PR and turns the diff into&lt;br&gt;
&lt;strong&gt;meaning&lt;/strong&gt;: &lt;em&gt;what changed → how it flows → where to look&lt;/em&gt;. A huge diff becomes a short, ranked list&lt;br&gt;
plus a &lt;strong&gt;flow graph&lt;/strong&gt; of each change (route → auth → DB tables → external → cache → async → PII). On a&lt;br&gt;
real 17,841-line PR, that came out to &lt;strong&gt;3 things to look at.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Git tells you what &lt;em&gt;lines&lt;/em&gt; changed. Lenscheck tells you what those changes &lt;em&gt;mean&lt;/em&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1&gt;
  
  
  🔽2) Enforce the rules your code already follows — invariants
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;The problem.&lt;/strong&gt; Every codebase has rules everyone "knows" — &lt;em&gt;auth before any DB write&lt;/em&gt;, &lt;em&gt;personal&lt;br&gt;
data never leaves without a login&lt;/em&gt; — but nothing actually enforces them. A PR quietly breaks one, and&lt;br&gt;
it ships.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What Lenscheck does.&lt;/strong&gt; It &lt;strong&gt;discovers&lt;/strong&gt; those rules from your git history, lets you &lt;strong&gt;confirm&lt;/strong&gt; the&lt;br&gt;
real ones, then &lt;strong&gt;enforces&lt;/strong&gt; them on every PR — flagging (and optionally blocking) a &lt;em&gt;new&lt;/em&gt; violation&lt;br&gt;
while ignoring existing debt. This is the part that compounds: over time Lenscheck learns the rules&lt;br&gt;
&lt;em&gt;your&lt;/em&gt; codebase cares about, and no competitor has that knowledge.&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Everything else is in service of these two.&lt;/strong&gt; Intent-vs-behaviour contradictions, traced PII leaks,&lt;br&gt;
dependency-capability scanning, SARIF, inline comments, labels, the org roll-up — all of it makes the&lt;br&gt;
two features above sharper. The rest of this guide explains each one, but if the list ever feels like&lt;br&gt;
a lot: it's a &lt;strong&gt;flow graph&lt;/strong&gt; and &lt;strong&gt;enforced rules&lt;/strong&gt;. That's the product.&lt;/p&gt;


&lt;h2&gt;
  
  
  📌3. Install
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install lenscheck-semantic-reviewer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;That's it — Lenscheck has &lt;strong&gt;zero dependencies&lt;/strong&gt; (it only uses Python's standard library). You now have a&lt;br&gt;
&lt;code&gt;lenscheck&lt;/code&gt; command. Check it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;lenscheck --help
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Lenscheck Semantic Reviewer

Usage: lenscheck &amp;lt;command&amp;gt; [options]

Commands:
  init       Add the GitHub Action to this repo (one-command setup)
  review     Run a semantic review of a PR or commit range
  post       Post a review to a PR (sticky comment, inline comments, label)
  serve      Start the Lenscheck web UI
  invariants Discover baseline invariants from a repository's history
  digest     Org-wide roll-up from the labels Lenscheck applies to PRs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  📌4. Three ways to use Lenscheck
&lt;/h2&gt;

&lt;p&gt;You can use Lenscheck in whichever way fits:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Web UI&lt;/strong&gt; — run &lt;code&gt;lenscheck serve&lt;/code&gt;, open your browser, click around. Best for &lt;strong&gt;exploring&lt;/strong&gt; and for
people who don't live in the terminal. → jump to the tour
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Command line&lt;/strong&gt; — &lt;code&gt;lenscheck review …&lt;/code&gt;. Best for &lt;strong&gt;scripts, quick checks, and CI&lt;/strong&gt;. →
jump to the CLI
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Action&lt;/strong&gt; — Lenscheck runs automatically on every PR and comments on it. Best for &lt;strong&gt;teams&lt;/strong&gt;.
→ jump to the Action
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;They all share the same engine, so they find the same things.&lt;/p&gt;




&lt;h2&gt;
  
  
  📌5. The Web UI, panel by panel
&lt;/h2&gt;

&lt;p&gt;Start it inside any repo:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;lenscheck serve
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It prints a URL (like &lt;code&gt;http://127.0.0.1:8765/&lt;/code&gt;) and opens your browser. If you run it inside a git&lt;br&gt;
repo, it auto-detects that repo for you.&lt;/p&gt;
&lt;h3&gt;
  
  
  The top bar — choosing what to review
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvt1b9xdeexvcf1jpg96x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvt1b9xdeexvcf1jpg96x.png" alt="A finished review in the web UI" width="800" height="550"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Along the top you pick &lt;strong&gt;what&lt;/strong&gt; to compare. You have four ways:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;PR&lt;/strong&gt; — pick a merged Pull Request from the dropdown and hit &lt;strong&gt;Review&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;branches&lt;/strong&gt; — compare two branches (e.g. &lt;code&gt;main&lt;/code&gt; → &lt;code&gt;my-feature&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;commits&lt;/strong&gt; — compare two commits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Branch vs default&lt;/strong&gt; button — the one-click shortcut: review &lt;em&gt;your current branch&lt;/em&gt; against the
&lt;em&gt;main branch&lt;/em&gt;. (This is the zero-arg default.)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Reading a review (top to bottom)
&lt;/h3&gt;

&lt;p&gt;Once a review runs, you read it top-to-bottom. Using the screenshot above:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The one-line summary&lt;/strong&gt; — &lt;em&gt;"This PR adds 1 endpoint, 1 new DB write to &lt;code&gt;AuditLog&lt;/code&gt;, 1 new&lt;br&gt;
external call… and 4 new PII signals."&lt;/em&gt; A plain-English sentence of everything that changed,&lt;br&gt;
built from facts. (the intent summary)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;🎭 Intent vs. behavior&lt;/strong&gt; — the red panel. The PR called itself a &lt;em&gt;"refactor / no behavior&lt;br&gt;
change,"&lt;/em&gt; but Lenscheck found it &lt;strong&gt;added an endpoint&lt;/strong&gt; and &lt;strong&gt;started logging an email&lt;/strong&gt;. When the&lt;br&gt;
promise and the facts disagree, this panel calls it out. (intent vs. behavior)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;📦 Dependency capability changes&lt;/strong&gt; — bumped libraries and whether the new version can &lt;em&gt;do&lt;/em&gt; more&lt;br&gt;
than the old one. (dependency scanning)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The tally&lt;/strong&gt; — 🔴 1 — how many findings at each severity.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The change list&lt;/strong&gt; (left) — one row per changed endpoint, worst first. Click a row to see…&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The flow graph&lt;/strong&gt; (right) — a live picture of what that endpoint does. In the screenshot,&lt;br&gt;
&lt;code&gt;ExportUsers&lt;/code&gt; → reads &lt;strong&gt;User&lt;/strong&gt; (SQL table &lt;code&gt;auth_user&lt;/code&gt;), writes &lt;strong&gt;AuditLog&lt;/strong&gt; (&lt;code&gt;audit_log&lt;/code&gt;), calls&lt;br&gt;
&lt;strong&gt;hooks.example.com&lt;/strong&gt;, reads and writes the &lt;strong&gt;cache&lt;/strong&gt;, and dispatches two &lt;strong&gt;async&lt;/strong&gt; jobs&lt;br&gt;
(&lt;code&gt;reindex_users&lt;/code&gt;, a thread) — every edge colored by kind, with the new parts highlighted. This is&lt;br&gt;
the same picture Lenscheck can also draw as a&lt;br&gt;
Mermaid diagram inside a GitHub comment.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The "Where to look" tab&lt;/strong&gt; — switch the detail pane from the graph to a flat, ranked list of&lt;br&gt;
every fact with its exact &lt;code&gt;file:line&lt;/code&gt; — the &lt;strong&gt;WHERE&lt;/strong&gt; of the review, including the traced leak.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffl2qithkiyq5svpxyawe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffl2qithkiyq5svpxyawe.png" alt="The &amp;quot;Where to look&amp;quot; tab — every fact at its exact line" width="800" height="562"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click any block in the graph (or a line here) and Lenscheck shows you the &lt;strong&gt;source&lt;/strong&gt;, with the exact&lt;br&gt;
line highlighted:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhhk0inszwy5qtudk7ffm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhhk0inszwy5qtudk7ffm.png" alt="Click a block to see its source, the exact line highlighted" width="800" height="196"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  The Invariants panel — teach Lenscheck your rules
&lt;/h3&gt;

&lt;p&gt;Click &lt;strong&gt;⚖ Invariants&lt;/strong&gt; in the top bar:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjp3ogtazhtizly9hhloy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjp3ogtazhtizly9hhloy.png" alt="The invariants panel: discover, confirm, blame" width="800" height="409"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Lenscheck samples your git history and shows &lt;strong&gt;candidate rules&lt;/strong&gt; it noticed your codebase following. In&lt;br&gt;
the screenshot:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;"External/PII egress limited to 2 known destinations"&lt;/em&gt; &lt;code&gt;[boundary]&lt;/code&gt; — holds &lt;strong&gt;2/2 (100%)&lt;/strong&gt;. It's
the rule that makes the &lt;code&gt;ExportUsers&lt;/code&gt; change dangerous: the new endpoint would send an email to a
&lt;strong&gt;third&lt;/strong&gt; destination, widening that boundary.&lt;/li&gt;
&lt;li&gt;Each rule has a &lt;strong&gt;Confirm&lt;/strong&gt; button (freeze it as a rule Lenscheck will enforce from now on); rules
with exceptions also get a &lt;strong&gt;🩸 Blame&lt;/strong&gt; button (find the commit that first broke it).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is the &lt;strong&gt;moat&lt;/strong&gt; — over time you teach Lenscheck the rules &lt;em&gt;your&lt;/em&gt; codebase cares about, and no&lt;br&gt;
competitor has that knowledge. (invariants)&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; the &lt;strong&gt;Confirm&lt;/strong&gt; buttons only appear if you started the server with a place to save them:&lt;br&gt;
&lt;code&gt;lenscheck serve --invariants my-rules.json&lt;/code&gt;. Without that, the panel is read-only (Lenscheck never writes&lt;br&gt;
a file you didn't ask for).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3&gt;
  
  
  Handy web tricks
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;http://…/?open=0&lt;/code&gt; — deep-link that opens the review with the first change already selected.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;http://…/?invariants=1&lt;/code&gt; — deep-link that opens the Invariants panel automatically.&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  📌6. The CLI, command by command
&lt;/h2&gt;
&lt;h3&gt;
  
  
  &lt;code&gt;lenscheck init&lt;/code&gt; — one-command setup
&lt;/h3&gt;

&lt;p&gt;Drops a ready-to-run GitHub Action into the current repo — the fastest way to adopt.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;lenscheck init            &lt;span class="c"&gt;# writes .github/workflows/lenscheck.yml in advisory mode (comments, never blocks)&lt;/span&gt;
lenscheck init --gate     &lt;span class="c"&gt;# start it blocking on a confirmed-rule violation instead&lt;/span&gt;
lenscheck init --force    &lt;span class="c"&gt;# overwrite an existing workflow&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It refuses to clobber an existing workflow unless you pass &lt;code&gt;--force&lt;/code&gt;, and prints the two remaining&lt;br&gt;
steps (commit, open a PR). Start advisory; switch to &lt;code&gt;--gate&lt;/code&gt; once your rules are confirmed and trusted.&lt;/p&gt;
&lt;h3&gt;
  
  
  &lt;code&gt;lenscheck review&lt;/code&gt; — the main event
&lt;/h3&gt;

&lt;p&gt;Analyze a PR / branch / commit and print a review.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc6wxes0y2dbyn3w8w4h9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc6wxes0y2dbyn3w8w4h9.png" alt=" raw `lenscheck review` endraw  in the terminal" width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The same review as a &lt;strong&gt;self-contained HTML file&lt;/strong&gt; (&lt;code&gt;--html&lt;/code&gt;) you can send to anyone — no install&lt;br&gt;
needed:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqqz3mw8hoh8rx3tbqqxh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqqz3mw8hoh8rx3tbqqxh.png" alt="The self-contained HTML report — what changed, how it flows, where to look" width="800" height="749"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;lenscheck review                       &lt;span class="c"&gt;# no args: review THIS branch vs the default branch&lt;/span&gt;
lenscheck review /path/to/repo --base main --head my-feature
lenscheck review https://github.com/owner/repo --pr 123
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Positional argument:&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Argument&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;repo&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A local folder &lt;strong&gt;or&lt;/strong&gt; a GitHub URL. &lt;strong&gt;Optional&lt;/strong&gt; — leave it out and Lenscheck uses the repo you're standing in.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Flags — how to pick what to compare&lt;/strong&gt; (choose one; or none to auto-detect):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Flag&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;em&gt;(nothing)&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Review the &lt;strong&gt;current branch vs. the default branch&lt;/strong&gt;. The zero-effort mode.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--pr 123&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Review a real GitHub Pull Request by number (needs a GitHub URL as the repo).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--base X --head Y&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Review the difference between two refs (branches, tags, or commit SHAs).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--commit SHA&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Review a single commit (compares it against its parent).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--merge SHA&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Review a merge commit (compares its two parents).&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Flags — what to produce:&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Flag&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--out FILE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Where to write the Markdown report. Default: &lt;code&gt;pr_review.md&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--json FILE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Also write the full review as structured JSON (for tools/automation).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--html FILE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Also write a &lt;strong&gt;self-contained HTML&lt;/strong&gt; viewer you can open in a browser.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--sarif FILE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Also write &lt;strong&gt;SARIF&lt;/strong&gt; — the format GitHub reads to show findings in its Security tab. (SARIF output)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--invariants FILE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Enforce a confirmed rules file: flag any endpoint in this PR that breaks a rule.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--fail-on violation&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Exit with an error&lt;/strong&gt; if the PR breaks a confirmed rule. (Use in CI to block merges.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--fail-on crit&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Exit with an error on &lt;strong&gt;any&lt;/strong&gt; 🔴 finding.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;lenscheck post&lt;/code&gt; — put the review on the PR
&lt;/h3&gt;

&lt;p&gt;Takes a review you already generated and posts it to a GitHub PR.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;lenscheck post 123 pr_review.md --json pr_review.json --inline --label
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Argument / flag&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;123&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The PR number.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pr_review.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The Markdown body to post as a &lt;strong&gt;sticky comment&lt;/strong&gt; (it updates in place on re-runs).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--json FILE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The structured review (needed for &lt;code&gt;--inline&lt;/code&gt; and &lt;code&gt;--label&lt;/code&gt;).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--inline&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Post each finding as a comment &lt;strong&gt;pinned to the exact changed line&lt;/strong&gt;. (inline comments)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--label&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Put one &lt;code&gt;lenscheck:*&lt;/code&gt; &lt;strong&gt;label&lt;/strong&gt; on the PR based on its worst finding. (auto-label)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--dry-run&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Print what &lt;em&gt;would&lt;/em&gt; be posted, without touching GitHub. Great for testing.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;(Needs a &lt;code&gt;GITHUB_TOKEN&lt;/code&gt; env var and the &lt;code&gt;gh&lt;/code&gt; CLI, which GitHub's runners already have.)&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;lenscheck serve&lt;/code&gt; — the web UI
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;lenscheck serve --repo /path/to/repo --port 8765
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Flag&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--repo&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Repo to preload (default: the git repo of the current folder).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--invariants FILE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The rules file to enforce &lt;strong&gt;and&lt;/strong&gt; the file the Confirm buttons write to.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;--port&lt;/code&gt; / &lt;code&gt;--host&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Where to serve (default &lt;code&gt;8765&lt;/code&gt; on &lt;code&gt;0.0.0.0&lt;/code&gt;).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;--pr&lt;/code&gt; / &lt;code&gt;--commit&lt;/code&gt; / &lt;code&gt;--merge&lt;/code&gt; / &lt;code&gt;--base&lt;/code&gt; / &lt;code&gt;--head&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Open straight into a specific review on load.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--no-open&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Don't auto-open a browser window.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Useful &lt;strong&gt;environment variables&lt;/strong&gt; for a hosted deployment:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Env var&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;PORT&lt;/code&gt; / &lt;code&gt;HOST&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Where to bind (hosts like Render set &lt;code&gt;PORT&lt;/code&gt;; default &lt;code&gt;HOST&lt;/code&gt; is &lt;code&gt;0.0.0.0&lt;/code&gt;).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;LENSCHECK_TOKEN&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Require &lt;code&gt;?token=…&lt;/code&gt; on API calls — &lt;strong&gt;set this on any public deployment.&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;LENSCHECK_ALLOWED_REPOS&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Comma-separated allow-list; only matching repos may be reviewed.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;LENSCHECK_BASE_PATH&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Serve under a sub-path (e.g. &lt;code&gt;/lenscheck&lt;/code&gt;) behind a reverse proxy.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;LENSCHECK_DEFAULT_REPO&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The repo shown by default in the UI.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;LENSCHECK_INVARIANTS&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Default invariant corpus path to enforce in the UI.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;LENSCHECK_CACHE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Where cloned repos are cached (default &lt;code&gt;~/.cache/lenscheck/repos&lt;/code&gt;).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;LENSCHECK_GIT_TIMEOUT&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Seconds before a &lt;code&gt;git clone&lt;/code&gt;/&lt;code&gt;archive&lt;/code&gt; is aborted (guards huge repos).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;GITHUB_TOKEN&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;For private repos / to avoid GitHub rate limits.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;To host one shared Lenscheck UI: run &lt;code&gt;lenscheck serve --no-open&lt;/code&gt; behind your usual reverse proxy, set&lt;br&gt;
&lt;code&gt;LENSCHECK_TOKEN&lt;/code&gt; (so the API isn't open), and optionally &lt;code&gt;LENSCHECK_ALLOWED_REPOS&lt;/code&gt; to fence it to just your&lt;br&gt;
repos. To run Lenscheck across &lt;em&gt;all&lt;/em&gt; your repos from one place, see&lt;br&gt;
§9 — Set up Lenscheck for all your repos.&lt;/p&gt;
&lt;h3&gt;
  
  
  &lt;code&gt;lenscheck invariants&lt;/code&gt; — discover, confirm, and blame rules
&lt;/h3&gt;

&lt;p&gt;Three jobs in one command.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Discover&lt;/strong&gt; — look through git history and propose candidate rules:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;lenscheck invariants /path/to/repo --snapshots 8
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Flag&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--snapshots N&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;How many points in history to sample (more = slower but more confident).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--out FILE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Where to write the discovered candidates (JSON).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--report FILE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Where to write a human-readable report (Markdown).&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Confirm&lt;/strong&gt; — turn candidates into a rules file &lt;em&gt;without hand-editing JSON&lt;/em&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;lenscheck invariants --confirm                       &lt;span class="c"&gt;# interactive: press c / f / s / q per rule&lt;/span&gt;
lenscheck invariants --confirm --id auth-before-write --owner security   &lt;span class="c"&gt;# scripted&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Flag&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--confirm&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Enter confirm mode. Interactive unless you pass &lt;code&gt;--id&lt;/code&gt; or &lt;code&gt;--all&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--in FILE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The discovered candidates to read from.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--corpus FILE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The confirmed rules file to create/update.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--id NAME&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Confirm a specific rule (repeatable).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--all&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Confirm every candidate.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--owner NAME&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Record who owns the rule.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--drop-baseline&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Treat today's exceptions as &lt;strong&gt;bugs to fix&lt;/strong&gt;, not as accepted.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In interactive mode you press one key per rule: &lt;strong&gt;c&lt;/strong&gt;onfirm · &lt;strong&gt;f&lt;/strong&gt;ix (confirm, but the current&lt;br&gt;
exceptions are bugs) · &lt;strong&gt;s&lt;/strong&gt;kip · &lt;strong&gt;q&lt;/strong&gt;uit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Blame&lt;/strong&gt; — find the commit that first broke a rule (semantic blame):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;lenscheck invariants /path/to/repo --blame auth-before-write --exact
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Flag&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--blame NAME&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Which rule to investigate.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--route R&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Only blame a specific endpoint.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--exact&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Pinpoint the precise commit&lt;/strong&gt; (binary-searches history; a bit slower). Without it, you get the window between two sampled snapshots.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;lenscheck digest&lt;/code&gt; — the org-wide roll-up for leadership
&lt;/h3&gt;

&lt;p&gt;Every other command answers &lt;em&gt;"is **this&lt;/em&gt;* PR risky?"&lt;em&gt;. &lt;code&gt;digest&lt;/code&gt; answers the question a manager&lt;br&gt;
actually asks: *"across **all&lt;/em&gt;* our repos, how much risk is sitting in review right now?"* — in one&lt;br&gt;
short message, with &lt;strong&gt;no re-analysis&lt;/strong&gt; and &lt;strong&gt;no GitHub Advanced Security&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;It works by counting labels. Each PR review applies exactly one &lt;code&gt;lenscheck:*&lt;/code&gt; triage label&lt;br&gt;
(auto-label); the digest just searches an org for the &lt;strong&gt;open&lt;/strong&gt; PRs still&lt;br&gt;
carrying each one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;lenscheck digest --org my-org --slack &lt;span class="s2"&gt;"$SLACK_WEBHOOK"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;*Lenscheck digest — my-org*  (open PRs by risk)
🔴  4  security / PII / unauth write
🟠  9  money path
🟡 12  new DB write / external
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With &lt;code&gt;--slack&lt;/code&gt;, that lands in your channel every morning — one number the whole team (and leadership)&lt;br&gt;
can read without opening a single PR:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F38p63cbmacc9szss6rmx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F38p63cbmacc9szss6rmx.png" alt="The digest posted to Slack" width="800" height="390"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Flag&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--org ORG&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The GitHub org/owner to summarize (&lt;strong&gt;required&lt;/strong&gt;).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--repos FILE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Optional file of &lt;code&gt;owner/repo&lt;/code&gt; lines → adds an adoption line: how many repos have the workflow live and a confirmed invariants file.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;--slack URL&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Post the digest to a Slack incoming webhook (otherwise it just prints).&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Needs a &lt;code&gt;GITHUB_TOKEN&lt;/code&gt; with &lt;strong&gt;org read&lt;/strong&gt; access (the default per-repo token can't search the org).&lt;br&gt;
An honesty rule carries over from the analyzer: a tier it couldn't fetch shows &lt;code&gt;?&lt;/code&gt;, never a&lt;br&gt;
fake &lt;code&gt;0&lt;/code&gt;. Run it on a schedule (a weekly cron in a central repo) and it becomes the standing&lt;br&gt;
answer to "is Lenscheck worth keeping on?" — because the labels feed it, keep &lt;code&gt;label: true&lt;/code&gt; and&lt;br&gt;
&lt;code&gt;issues: write&lt;/code&gt; on your review workflow.&lt;/p&gt;


&lt;h2&gt;
  
  
  📌7. Every feature explained
&lt;/h2&gt;

&lt;p&gt;Each heading below is &lt;strong&gt;the problem the feature solves&lt;/strong&gt;. The first two are the headline features from&lt;br&gt;
§2; everything after them is supporting cast that sharpens those two.&lt;br&gt;
Skim to what's relevant — you don't need to read all eleven.&lt;/p&gt;
&lt;h3&gt;
  
  
  A diff shows text, not meaning
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;The semantic diff, severity &amp;amp; flow graph — headline feature ①.&lt;/strong&gt; Lenscheck analyzes your code&lt;br&gt;
&lt;strong&gt;before&lt;/strong&gt; and &lt;strong&gt;after&lt;/strong&gt; the PR and reports the change in &lt;strong&gt;behavior&lt;/strong&gt;. Renaming a function with no&lt;br&gt;
behavior change? Silence (that's a good thing). Adding an unauthenticated database write? 🔴. Every&lt;br&gt;
finding is ranked 🔴/🟠/🟡/🟢, points at a &lt;code&gt;file:line&lt;/code&gt;, and gets a &lt;strong&gt;flow graph&lt;/strong&gt; of what the endpoint&lt;br&gt;
does (route → auth → DB tables → external → cache → async → PII).&lt;/p&gt;
&lt;h3&gt;
  
  
  Your codebase rules are not enforced
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Invariants: discover, confirm, enforce, blame — headline feature ②.&lt;/strong&gt; The compounding asset. Four steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Discover&lt;/strong&gt; (&lt;code&gt;lenscheck invariants&lt;/code&gt;) — mine history for rules your code already follows:
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   ⚠ NEAR-MISS — Authenticated access before any DB write
   - holds: 3/4 endpoints (75%)  ·  persistence: 100% → 100% → 100% → 75% across 4 snapshots
   - exceptions — look here (1):
       - api/users/export — open (AllowAny)  (shop/views.py:40)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Confirm&lt;/strong&gt; (&lt;code&gt;lenscheck invariants --confirm&lt;/code&gt;, or the web button) — mark the ones that are real. Saved&lt;br&gt;
to a rules file. No JSON editing.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Enforce&lt;/strong&gt; (&lt;code&gt;lenscheck review --invariants rules.json&lt;/code&gt;) — every future PR that breaks a confirmed&lt;br&gt;
rule gets a 🔴, and &lt;code&gt;--fail-on violation&lt;/code&gt; can block the merge.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Blame&lt;/strong&gt; (&lt;code&gt;lenscheck invariants --blame … --exact&lt;/code&gt;) — find exactly which commit broke a rule:&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   🩸 auth-before-write first broke at e23c96a (exact, in window 3e9817b..e23c96a)
      holds 3/4 at the snapshot.
      offending endpoint(s):
        - api/users/export — open (AllowAny) (shop/views.py:40)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;Bootstrap (turn it on everywhere, no human):&lt;/strong&gt; confirming rules per repo doesn't scale to 20&lt;br&gt;
repos. &lt;code&gt;lenscheck invariants &amp;lt;repo&amp;gt; --bootstrap --baseline org-baseline.json&lt;/code&gt; discovers the rules,&lt;br&gt;
auto-confirms the safe ones, and &lt;strong&gt;freezes today's state as the baseline&lt;/strong&gt; — so the rule file is a&lt;br&gt;
&lt;em&gt;ratchet&lt;/em&gt;: it only fires on a &lt;strong&gt;new&lt;/strong&gt; violation a PR introduces, never on existing debt. Seed it&lt;br&gt;
with a shared org baseline (the universal rules) and every repo inherits the same policy; each&lt;br&gt;
repo's own exceptions are filled in automatically. Auto-confirmed rules are tagged&lt;br&gt;
&lt;code&gt;owner: auto-bootstrap&lt;/code&gt; so a human can review them later. This is what makes the moat adoptable&lt;br&gt;
across a whole org instead of one repo at a time.&lt;/p&gt;



&lt;p&gt;&lt;em&gt;Everything below supports the two above.&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  You still have to read the whole PR
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;The intent summary.&lt;/strong&gt; One plain-English sentence at the top of every review, built from verified facts:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"This PR adds 1 endpoint, 1 new DB write to &lt;code&gt;AuditLog&lt;/code&gt;, 1 new external call to&lt;br&gt;
&lt;code&gt;hooks.example.com/export&lt;/code&gt; and 4 new PII signals."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Other tools generate this with an AI that reads the diff and sometimes makes things up. Lenscheck counts&lt;br&gt;
real facts, so every number traces to a line.&lt;/p&gt;
&lt;h3&gt;
  
  
  The PR description contradicts the code
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Intent vs. behavior.&lt;/strong&gt; Your PR title/description is a &lt;strong&gt;promise&lt;/strong&gt;. Lenscheck checks it against the facts.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Says &lt;strong&gt;"refactor / no behavior change"&lt;/strong&gt; but added an endpoint or a DB write → 🔴 &lt;em&gt;"claims
refactor, but behavior changed here."&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Says &lt;strong&gt;"docs only"&lt;/strong&gt; but code changed → flagged.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;From the demo, the PR titled &lt;em&gt;"refactor: tidy up user views"&lt;/em&gt; got caught twice:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;🎭 Intent vs. behavior — PR describes itself as "refactor / no behavior change", but the facts disagree
🔴 claims refactor / no behavior change, but adds an endpoint — api/users/export @ shop/views.py:40
🔴 claims refactor / no behavior change, but new PII signal: email → log.info — api/profile @ shop/views.py:32
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Is it a real leak, or a coincidence?
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;PII taint — the precision feature.&lt;/strong&gt; Old tools say &lt;em&gt;"personal data and an external call are both in&lt;br&gt;
this function — maybe it leaks."&lt;/em&gt; Vague. Lenscheck &lt;strong&gt;follows the data&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If an email actually &lt;strong&gt;flows into&lt;/strong&gt; an external call / log / response → ✅ &lt;strong&gt;verified&lt;/strong&gt;:
&lt;code&gt;email → requests.post @ line 46&lt;/code&gt;. The exact field, the exact exit, the exact line.&lt;/li&gt;
&lt;li&gt;If they just co-exist with no traced path → it stays &lt;strong&gt;⚠ potential&lt;/strong&gt; (honest, no false alarm).&lt;/li&gt;
&lt;li&gt;If the data passes through a function Lenscheck doesn't recognize (which &lt;em&gt;might&lt;/em&gt; clean it) → it
&lt;strong&gt;refuses&lt;/strong&gt; to call it a confirmed leak.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It also resolves fuzzy database writes: &lt;code&gt;for order in Order.objects.filter(...): order.save()&lt;/code&gt; is now&lt;br&gt;
understood as writing the &lt;strong&gt;Order&lt;/strong&gt; table, not a vague &lt;code&gt;&amp;lt;instance&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;
  
  
  A dependency bump quietly gains new powers
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Dependency capability-delta.&lt;/strong&gt; When a PR bumps a library, Lenscheck downloads the &lt;strong&gt;old&lt;/strong&gt; and &lt;strong&gt;new&lt;/strong&gt;&lt;br&gt;
versions and compares what each can &lt;em&gt;do&lt;/em&gt; — checking for &lt;strong&gt;network / subprocess / native code / file&lt;br&gt;
writes / reading secrets&lt;/strong&gt;. It reports only the &lt;strong&gt;newly gained&lt;/strong&gt; powers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;requests 2.28→2.31: no new capabilities&lt;/code&gt; 🟢&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;leftpad 1.0→2.0: now spawns a subprocess&lt;/code&gt; 🔴&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If it can't fetch a version (offline, or the package has no source), it says &lt;strong&gt;⚠ unresolved&lt;/strong&gt; — never&lt;br&gt;
"safe":&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;📦 Dependency capability changes
⚠ requests 2.28.0→2.31.0 — capabilities not statically resolved (offline or no sdist)
⚠ six 1.15.0→1.16.0 — capabilities not statically resolved (offline or no sdist)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Turn the network scan off with &lt;code&gt;LENSCHECK_SCAN_DEPS=0&lt;/code&gt; (or the Action's &lt;code&gt;scan_deps: false&lt;/code&gt;) and you'll&lt;br&gt;
always get the fast ⚠ mode.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx87wxm0hm995v3s7ph65.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx87wxm0hm995v3s7ph65.png" alt="The dependency capability panel — bumped packages, honest about the unresolved ones" width="800" height="654"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  A text list does not show the flow
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Mermaid flow diagram.&lt;/strong&gt; Every review's Markdown includes a &lt;strong&gt;Mermaid sequence diagram&lt;/strong&gt; of the&lt;br&gt;
before→after flow. GitHub renders it right inside the PR comment — a real picture of your endpoint's&lt;br&gt;
behavior, drawn from facts, not by an AI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="k"&gt;```mermaid
&lt;/span&gt;sequenceDiagram
    participant Client
    participant NExportUsers as ExportUsers
    Client-&amp;gt;&amp;gt;NExportUsers: 🆕 POST api/users/export
    NExportUsers-&amp;gt;&amp;gt;Database: write AuditLog
    NExportUsers-&amp;gt;&amp;gt;Database: read User
    NExportUsers-&amp;gt;&amp;gt;External: https://hooks.example.com/export
&lt;span class="k"&gt;```
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;GitHub renders that right inside the PR comment — a real picture of the endpoint's behavior, drawn&lt;br&gt;
from facts:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk3dkorvnh92xbxuptzcu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk3dkorvnh92xbxuptzcu.png" alt="The Mermaid flow diagram as GitHub renders it in the PR comment" width="800" height="484"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  The finding is not next to the code
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Inline PR comments.&lt;/strong&gt; &lt;code&gt;lenscheck post … --inline&lt;/code&gt; pins each finding as a comment &lt;strong&gt;on the exact&lt;br&gt;
line&lt;/strong&gt;. The honest guard: it only pins a comment where it can prove the line is in the diff (GitHub&lt;br&gt;
rejects anything else); the rest roll into the one sticky summary comment.&lt;/p&gt;
&lt;h3&gt;
  
  
  A queue of PRs is hard to triage
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Auto-label.&lt;/strong&gt; &lt;code&gt;lenscheck post … --label&lt;/code&gt; puts &lt;strong&gt;one&lt;/strong&gt; triage label on the PR based on its worst&lt;br&gt;
finding: &lt;code&gt;lenscheck:🔴security&lt;/code&gt; / &lt;code&gt;lenscheck:🟠payment&lt;/code&gt; / &lt;code&gt;lenscheck:🟡new-write&lt;/code&gt; /&lt;br&gt;
&lt;code&gt;lenscheck:🟢safe-refactor&lt;/code&gt;. Makes a queue of PRs scannable at a glance.&lt;/p&gt;
&lt;h3&gt;
  
  
  Findings belong in the Security tab
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;SARIF output.&lt;/strong&gt; &lt;code&gt;--sarif pr_review.sarif&lt;/code&gt; writes a standard file GitHub understands. Upload it and&lt;br&gt;
your findings show up &lt;strong&gt;on the exact changed lines&lt;/strong&gt; in the PR's "Files changed" tab and in the repo's&lt;br&gt;
&lt;strong&gt;Security&lt;/strong&gt; tab — native, official, high-visibility.&lt;/p&gt;
&lt;h3&gt;
  
  
  A review should not need arguments
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Smart default target.&lt;/strong&gt; Running &lt;code&gt;lenscheck review&lt;/code&gt; with &lt;strong&gt;no arguments&lt;/strong&gt; inside a repo just does the&lt;br&gt;
obvious thing: reviews your &lt;strong&gt;current branch vs. the default branch&lt;/strong&gt;. If you're &lt;em&gt;on&lt;/em&gt; the default&lt;br&gt;
branch, it tells you to switch to a feature branch instead of guessing.&lt;/p&gt;


&lt;h2&gt;
  
  
  📌8. The GitHub Action, input by input
&lt;/h2&gt;

&lt;p&gt;Add this workflow and Lenscheck reviews every PR automatically:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# .github/workflows/lenscheck.yml
&lt;/span&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Lenscheck Semantic Review&lt;/span&gt;
&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;pull_request&lt;/span&gt;
&lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;contents&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;read&lt;/span&gt;
  &lt;span class="na"&gt;pull-requests&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;     &lt;span class="c1"&gt;# to post comments
&lt;/span&gt;  &lt;span class="na"&gt;issues&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;            &lt;span class="c1"&gt;# to apply the label
&lt;/span&gt;  &lt;span class="na"&gt;security-events&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;   &lt;span class="c1"&gt;# to upload SARIF
&lt;/span&gt;&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;lenscheck&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;AnkushSinghGandhi/lenscheck-semantic-reviewer@v1&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;fail_on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;none&lt;/span&gt;          &lt;span class="c1"&gt;# or: violation | crit
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every input:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Input&lt;/th&gt;
&lt;th&gt;Default&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;github_token&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;auto&lt;/td&gt;
&lt;td&gt;Token for reading the PR and posting back.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;fail_on&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;none&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;violation&lt;/code&gt; fails the build on a broken rule; &lt;code&gt;crit&lt;/code&gt; fails on any 🔴.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;invariants&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;em&gt;(none)&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Path to a confirmed rules file to enforce.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;comment&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;true&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Post the sticky summary comment.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;inline&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;true&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Also post inline comments on changed lines. (inline)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;label&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;true&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Apply one &lt;code&gt;lenscheck:*&lt;/code&gt; label. (label)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;scan_deps&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;true&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Scan bumped dependencies against PyPI. Set &lt;code&gt;false&lt;/code&gt; to skip the network (findings become ⚠). (deps)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;upload_sarif&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;true&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Upload SARIF to code scanning. Set &lt;code&gt;false&lt;/code&gt; on private repos &lt;strong&gt;without&lt;/strong&gt; GitHub Advanced Security so the step is skipped and the check stays green.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The Action uploads SARIF (when &lt;code&gt;upload_sarif&lt;/code&gt; is on), so findings appear in the Security tab —&lt;br&gt;
that surface needs GitHub Advanced Security on private repos. Without GHAS, the same findings still&lt;br&gt;
arrive as the PR comment, inline comments, and label, and an org-wide roll-up is available via&lt;br&gt;
&lt;code&gt;lenscheck digest&lt;/code&gt; (below).&lt;/p&gt;


&lt;h2&gt;
  
  
  📌9. Set up Lenscheck for all your repos
&lt;/h2&gt;

&lt;p&gt;Section 8 put Lenscheck on &lt;strong&gt;one&lt;/strong&gt; repo. This section turns it on across &lt;strong&gt;every repo you own&lt;/strong&gt; —&lt;br&gt;
personal projects, a team's services, or a whole company — from &lt;strong&gt;one place&lt;/strong&gt;, with almost no&lt;br&gt;
per-repo work.&lt;/p&gt;

&lt;p&gt;The trick: &lt;strong&gt;host the workflow once, and have every repo point at it.&lt;/strong&gt; Then you switch Lenscheck on (or&lt;br&gt;
change how it behaves) by editing a single file, not twenty. It's the same steps whether you have 1&lt;br&gt;
repo or 100.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 1 — Put the workflow in one central repo
&lt;/h3&gt;

&lt;p&gt;Make a repo — call it &lt;code&gt;lenscheck-workflows&lt;/code&gt; (under your username or org) — and add the real workflow&lt;br&gt;
there &lt;strong&gt;once&lt;/strong&gt;, as a &lt;strong&gt;reusable workflow&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# lenscheck-workflows/.github/workflows/lenscheck.yml
&lt;/span&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Lenscheck&lt;/span&gt;
&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;workflow_call:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;contents:&lt;/span&gt; &lt;span class="s"&gt;read&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;pull-requests:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;issues:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;lenscheck&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@v4&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;fetch-depth:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;AnkushSinghGandhi/lenscheck-semantic-reviewer@v1&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;comment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'true'&lt;/span&gt;
          &lt;span class="na"&gt;fail_on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;none&lt;/span&gt;          &lt;span class="c1"&gt;# observe mode — never blocks a merge (yet)
&lt;/span&gt;          &lt;span class="na"&gt;upload_sarif&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;    &lt;span class="c1"&gt;# set true only if you have GitHub Advanced Security
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then every repo gets a tiny &lt;strong&gt;3-line caller&lt;/strong&gt; that just points at it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# any-repo/.github/workflows/lenscheck.yml
&lt;/span&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Lenscheck&lt;/span&gt;
&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;pull_request:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;lenscheck&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;your-name/lenscheck-workflows/.github/workflows/lenscheck.yml@v1&lt;/span&gt;
    &lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;contents:&lt;/span&gt; &lt;span class="s"&gt;read&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;pull-requests:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;issues:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now updating Lenscheck &lt;em&gt;everywhere&lt;/em&gt; means editing &lt;strong&gt;one&lt;/strong&gt; file in &lt;code&gt;lenscheck-workflows&lt;/code&gt;. That's the&lt;br&gt;
"centralised" part — and it's identical for a personal account, a team, or an org.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 2 — Start in "observe mode" (comment, never block)
&lt;/h3&gt;

&lt;p&gt;Notice &lt;code&gt;fail_on: none&lt;/code&gt; above. That's &lt;strong&gt;observe mode&lt;/strong&gt;: Lenscheck posts its review on every PR but&lt;br&gt;
&lt;strong&gt;can never block a merge&lt;/strong&gt;. Zero risk — you and your team see the value for a week or two before it&lt;br&gt;
can ever get in the way. You turn on blocking later, once you trust it (Step 5).&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Keep &lt;code&gt;issues: write&lt;/code&gt; + &lt;code&gt;label: 'true'&lt;/code&gt; on. Lenscheck puts one &lt;code&gt;lenscheck:*&lt;/code&gt; label on each PR, and Step 4's&lt;br&gt;
roll-up counts those labels — no label, no roll-up.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Adding the caller to many repos:&lt;/strong&gt; for a handful, paste it in by hand. For a lot, a small script&lt;br&gt;
that loops your repo list and opens the 3-line PR on each (using the &lt;code&gt;gh&lt;/code&gt; CLI) does it in one go — or,&lt;br&gt;
on GitHub Enterprise, an org "required workflow" applies it automatically.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 3 — Turn on your rules (the moat), everywhere, automatically
&lt;/h3&gt;

&lt;p&gt;This is the part that makes Lenscheck &lt;em&gt;yours&lt;/em&gt;: enforcing the promises &lt;strong&gt;your&lt;/strong&gt; code already keeps&lt;br&gt;
("always log in before writing to the DB", "personal data never leaves without auth"). Normally you'd&lt;br&gt;
discover rules, confirm each by hand, and commit a file — fine for one repo, tedious for many.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;lenscheck invariants --bootstrap&lt;/code&gt; does it with &lt;strong&gt;no human&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;lenscheck invariants &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;repo&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; --bootstrap --baseline org-baseline.json --out lenscheck-invariants.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It finds the repo's rules, auto-confirms the safe ones, and &lt;strong&gt;freezes today's state&lt;/strong&gt; as the starting&lt;br&gt;
line — so it only ever complains about a &lt;strong&gt;new&lt;/strong&gt; violation a future PR introduces, never your existing&lt;br&gt;
code. Zero noise.&lt;/p&gt;

&lt;p&gt;Write your shared rules once in an &lt;code&gt;org-baseline.json&lt;/code&gt; (start from&lt;br&gt;
&lt;a href="//../org-baseline.sample.json"&gt;&lt;code&gt;org-baseline.sample.json&lt;/code&gt;&lt;/a&gt;) — the universal ones like &lt;em&gt;auth before any&lt;br&gt;
DB write&lt;/em&gt; and &lt;em&gt;no new external destination for personal data&lt;/em&gt; — and every repo inherits them. Commit&lt;br&gt;
each repo's &lt;code&gt;lenscheck-invariants.json&lt;/code&gt;, and the workflow enforces it from then on.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 4 — Get one number across all your repos (optional)
&lt;/h3&gt;

&lt;p&gt;Per-PR comments help whoever's on that PR. For the &lt;strong&gt;big picture&lt;/strong&gt; — &lt;em&gt;how many risky PRs are open&lt;br&gt;
right now&lt;/em&gt; — &lt;code&gt;lenscheck digest&lt;/code&gt; counts the open PRs carrying each &lt;code&gt;lenscheck:*&lt;/code&gt; label:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;lenscheck digest --org your-github-org --slack &lt;span class="s2"&gt;"$SLACK_WEBHOOK"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;🔴  4  security / PII / unauth write
🟠  9  money path
🟡 12  new DB write / external
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No re-analysis, and &lt;strong&gt;no GitHub Advanced Security needed&lt;/strong&gt; — it just reads the labels. Run it on a&lt;br&gt;
weekly schedule and pipe it to Slack. (This one aggregates a whole GitHub &lt;strong&gt;org&lt;/strong&gt;; for personal repos&lt;br&gt;
the per-PR labels already give you the same signal on each PR.)&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 5 — Start blocking merges — last, and only on the sure things
&lt;/h3&gt;

&lt;p&gt;Once people trust the reviews, flip the switch in your &lt;strong&gt;one&lt;/strong&gt; central file — and only for the&lt;br&gt;
highest-confidence signal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;AnkushSinghGandhi/lenscheck-semantic-reviewer@v1&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;fail_on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;violation&lt;/span&gt;     &lt;span class="c1"&gt;# block only when a PR breaks a confirmed rule
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Never block on "any 🔴" from day one — that's how a tool gets switched off. Block only on a &lt;strong&gt;new rule&lt;br&gt;
violation&lt;/strong&gt;, once your rules are confirmed and trusted.&lt;/p&gt;
&lt;h3&gt;
  
  
  One security note before you go wide
&lt;/h3&gt;

&lt;p&gt;If other people will depend on this, &lt;strong&gt;mirror the Action into your own account/org and pin a commit&lt;br&gt;
SHA&lt;/strong&gt; instead of pointing at a public &lt;code&gt;@v1&lt;/code&gt; tag — the reusable workflow means you fix that in one&lt;br&gt;
place. And to reassure any security reviewer: Lenscheck &lt;strong&gt;never runs your code&lt;/strong&gt; — it reads it with&lt;br&gt;
Python's parser and analyzes clean git snapshots, so there's nothing to execute.&lt;/p&gt;


&lt;h2&gt;
  
  
  📌10. A full worked example
&lt;/h2&gt;

&lt;p&gt;Here's the exact scenario from the screenshots. A developer opens a PR titled&lt;br&gt;
&lt;strong&gt;"refactor: tidy up user views."&lt;/strong&gt; It claims to be a harmless cleanup. In reality it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;adds &lt;code&gt;POST /api/users/export&lt;/code&gt; with &lt;strong&gt;no login required&lt;/strong&gt; (&lt;code&gt;AllowAny&lt;/code&gt;),&lt;/li&gt;
&lt;li&gt;inside it, writes to the &lt;code&gt;AuditLog&lt;/code&gt; table and &lt;strong&gt;sends a user's email to an external webhook&lt;/strong&gt;,&lt;/li&gt;
&lt;li&gt;and changes &lt;code&gt;GET /api/profile&lt;/code&gt; to &lt;strong&gt;log the user's email&lt;/strong&gt;,&lt;/li&gt;
&lt;li&gt;while bumping &lt;code&gt;requests&lt;/code&gt; and &lt;code&gt;six&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Run it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;lenscheck review /path/to/repo --commit &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;sha&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; --sarif out.sarif
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Lenscheck produces, in one pass:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Summary:&lt;/strong&gt; &lt;em&gt;"adds 1 endpoint, 1 new DB write to &lt;code&gt;AuditLog&lt;/code&gt;, 1 new external call… and 4 new PII
signals."&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;🎭 Contradiction:&lt;/strong&gt; &lt;em&gt;"claims refactor, but adds an endpoint"&lt;/em&gt; and &lt;em&gt;"…but new PII signal:
email → log.info."&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;🔴 NEW ENDPOINT &lt;code&gt;api/users/export&lt;/code&gt;:&lt;/strong&gt; &lt;em&gt;"new endpoint exposes a PII path with open/unspecified
auth"&lt;/em&gt; — with the verified leak &lt;code&gt;email → requests.post @ shop/views.py:46&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;📦 Dependencies:&lt;/strong&gt; the two bumps (with capabilities, or ⚠ offline).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;🔀 Flow diagram:&lt;/strong&gt; the Mermaid picture above.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every single item points to a line you can click. Nothing was guessed.&lt;/p&gt;




&lt;h2&gt;
  
  
  📌11. Honesty rules
&lt;/h2&gt;

&lt;p&gt;Lenscheck's whole value is that you can &lt;strong&gt;trust&lt;/strong&gt; it. So it follows strict rules:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Never render "not observed" as "doesn't exist."&lt;/strong&gt; If Lenscheck can't follow something, it shows ⚠ or
? — never a false all-clear.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A "verified" finding is really verified.&lt;/strong&gt; The PII taint only says ✅ when it saw the whole path;
if data might have been sanitized, it stays ⚠.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No arbitrary file writes, no surprise network.&lt;/strong&gt; The web "Confirm" only writes the file you
configured; dependency scanning can be turned off.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every number traces to a &lt;code&gt;file:line&lt;/code&gt;.&lt;/strong&gt; Because Lenscheck reports facts, not vibes.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  📌12. Quick reference card
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# review&lt;/span&gt;
lenscheck review                                  &lt;span class="c"&gt;# this branch vs default branch&lt;/span&gt;
lenscheck review . --base main --head feature     &lt;span class="c"&gt;# two refs&lt;/span&gt;
lenscheck review URL --pr 123                      &lt;span class="c"&gt;# a GitHub PR&lt;/span&gt;
lenscheck review . --commit &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;sha&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;                  &lt;span class="c"&gt;# one commit&lt;/span&gt;
lenscheck review . --sarif out.sarif --html r.html &lt;span class="c"&gt;# extra outputs&lt;/span&gt;
lenscheck review . --invariants rules.json --fail-on violation   &lt;span class="c"&gt;# enforce + block&lt;/span&gt;

&lt;span class="c"&gt;# post to a PR&lt;/span&gt;
lenscheck post 123 pr_review.md --json pr_review.json --inline --label
lenscheck post 123 pr_review.md --dry-run          &lt;span class="c"&gt;# preview, no posting&lt;/span&gt;

&lt;span class="c"&gt;# web UI&lt;/span&gt;
lenscheck serve                                    &lt;span class="c"&gt;# this repo&lt;/span&gt;
lenscheck serve --repo . --invariants rules.json   &lt;span class="c"&gt;# + enable Confirm buttons&lt;/span&gt;

&lt;span class="c"&gt;# invariants (rules)&lt;/span&gt;
lenscheck invariants .                             &lt;span class="c"&gt;# discover candidate rules&lt;/span&gt;
lenscheck invariants --confirm                     &lt;span class="c"&gt;# confirm interactively&lt;/span&gt;
lenscheck invariants --confirm --id auth-before-write --owner security
lenscheck invariants . --bootstrap --baseline org-baseline.json   &lt;span class="c"&gt;# auto-confirm + ratchet (no human)&lt;/span&gt;
lenscheck invariants . --blame auth-before-write --exact   &lt;span class="c"&gt;# who broke it&lt;/span&gt;

&lt;span class="c"&gt;# digest (org-wide roll-up for leadership)&lt;/span&gt;
lenscheck digest --org my-org                       &lt;span class="c"&gt;# open PRs by lenscheck:* label&lt;/span&gt;
lenscheck digest --org my-org --repos repos.txt --slack &lt;span class="s2"&gt;"$SLACK_WEBHOOK"&lt;/span&gt;  &lt;span class="c"&gt;# + adoption, to Slack&lt;/span&gt;

&lt;span class="c"&gt;# env vars&lt;/span&gt;
&lt;span class="nv"&gt;LENSCHECK_SCAN_DEPS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;0     &lt;span class="c"&gt;# skip the dependency network scan&lt;/span&gt;
&lt;span class="nv"&gt;LENSCHECK_TOKEN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;…         &lt;span class="c"&gt;# lock down a hosted `lenscheck serve`&lt;/span&gt;
&lt;span class="nv"&gt;LENSCHECK_CACHE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;…         &lt;span class="c"&gt;# where cloned repos are cached (default ~/.cache/lenscheck/repos)&lt;/span&gt;
&lt;span class="nv"&gt;LENSCHECK_GIT_TIMEOUT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;…   &lt;span class="c"&gt;# seconds before a git clone/archive is aborted&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  📌Glossary (words you need to know)
&lt;/h2&gt;

&lt;p&gt;You'll meet these terms everywhere. Here they are in plain English.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Endpoint&lt;/strong&gt; — a single "door" into your web app. A URL + the code that runs when someone hits it.&lt;br&gt;
Example: &lt;code&gt;POST /api/users/export&lt;/code&gt; runs the &lt;code&gt;ExportUsers&lt;/code&gt; function. Lenscheck reviews your PR one&lt;br&gt;
endpoint at a time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The 7-edge lens&lt;/strong&gt; — for each endpoint, Lenscheck asks seven simple questions (these are the "edges"):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Edge&lt;/th&gt;
&lt;th&gt;The question it answers&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Route&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;What URL is this, and which function handles it?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Auth&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Do you need to be logged in? (or is it open to anyone?)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;DB&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Does it read or &lt;strong&gt;write&lt;/strong&gt; the database? Which tables?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;External&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Does it call the outside world? (Stripe, a webhook, an API…)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Async&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Does it kick off a background job? (Celery, a thread…)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Cache&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Does it read or invalidate the cache? Which keys?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;PII&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Does it touch &lt;strong&gt;personal data&lt;/strong&gt; (email, phone, address…)?&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Severity colors&lt;/strong&gt; — Lenscheck ranks every finding by how much it should worry you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🔴 &lt;strong&gt;critical&lt;/strong&gt; — security / data-flow (e.g. an open endpoint writing to the DB)&lt;/li&gt;
&lt;li&gt;🟠 &lt;strong&gt;high&lt;/strong&gt; — money paths (payments, orders)&lt;/li&gt;
&lt;li&gt;🟡 &lt;strong&gt;medium&lt;/strong&gt; — a new write or a dependency change&lt;/li&gt;
&lt;li&gt;🟢 &lt;strong&gt;low&lt;/strong&gt; — a safe refactor, nothing risky&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;PII&lt;/strong&gt; — "Personally Identifiable Information": personal data like an &lt;strong&gt;email, phone number,&lt;br&gt;
address, password, card number&lt;/strong&gt;. Leaking it is a legal and trust problem.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PII egress&lt;/strong&gt; — "egress" just means &lt;em&gt;leaving&lt;/em&gt;. &lt;strong&gt;PII egress&lt;/strong&gt; = personal data &lt;strong&gt;leaving your&lt;br&gt;
server&lt;/strong&gt; — sent to an external API, written to a log, or returned to the browser. That's the moment&lt;br&gt;
that matters.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Taint&lt;/strong&gt; — following a piece of data as it moves through the code. If an email is "tainted," Lenscheck&lt;br&gt;
watches whether that exact value &lt;strong&gt;reaches an exit&lt;/strong&gt; (an external call, a log, a response). If it&lt;br&gt;
does, that's a confirmed leak.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Invariant&lt;/strong&gt; — a rule your codebase has &lt;em&gt;always&lt;/em&gt; followed, whether or not anyone wrote it down.&lt;br&gt;
Example: &lt;em&gt;"every endpoint that writes to the database first checks you're logged in."&lt;/em&gt; Lenscheck can&lt;br&gt;
&lt;strong&gt;discover&lt;/strong&gt; these from your git history, let you &lt;strong&gt;confirm&lt;/strong&gt; the real ones, and then &lt;strong&gt;enforce&lt;/strong&gt;&lt;br&gt;
them on every PR.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Semantic diff&lt;/strong&gt; — a normal diff compares &lt;em&gt;text&lt;/em&gt;. A &lt;strong&gt;semantic diff&lt;/strong&gt; compares &lt;em&gt;meaning&lt;/em&gt;: Lenscheck&lt;br&gt;
analyzes your code before and after the PR and reports the difference in &lt;strong&gt;behavior&lt;/strong&gt; (new&lt;br&gt;
endpoints, new DB writes, new calls…), ignoring cosmetic changes like renaming a function.&lt;/p&gt;




&lt;h2&gt;
  
  
  📌Companion tool: lenscheck-contract
&lt;/h2&gt;

&lt;p&gt;Everything above happens &lt;strong&gt;before merge&lt;/strong&gt; — the reviewer &lt;em&gt;discovers&lt;/em&gt; the rules your code follows and&lt;br&gt;
flags a PR that breaks one. Its companion, &lt;strong&gt;&lt;a href="https://github.com/AnkushSinghGandhi/lenscheck-contract" rel="noopener noreferrer"&gt;lenscheck-contract&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;
(a tiny, MIT-licensed runtime library), closes the loop &lt;strong&gt;at runtime&lt;/strong&gt;: your app keeps a declared list&lt;br&gt;
of what each endpoint is allowed to do — write these tables, call these hosts — and &lt;strong&gt;can't lie about&lt;br&gt;
it&lt;/strong&gt;. An undeclared DB write or a new external call is blocked (or logged) the moment it happens.&lt;/p&gt;

&lt;p&gt;So a rule you confirmed here — &lt;em&gt;"auth before any DB write," "personal data never leaves without&lt;br&gt;
auth"&lt;/em&gt; — can be &lt;strong&gt;declared once and enforced in production&lt;/strong&gt;, not just checked in review. Same&lt;br&gt;
promise, two moments: &lt;strong&gt;the reviewer catches it in the PR; the contract stops it in prod.&lt;/strong&gt; →&lt;br&gt;
&lt;a href="https://github.com/AnkushSinghGandhi/lenscheck-contract" rel="noopener noreferrer"&gt;Read the contract guide&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Lenscheck is source-available (Elastic-2.0). Built by &lt;a href="https://warriorwhocodes.com" rel="noopener noreferrer"&gt;Ankush Singh Gandhi&lt;/a&gt;. Questions,&lt;br&gt;
stars, and sponsorships welcome on &lt;a href="https://github.com/AnkushSinghGandhi/lenscheck-semantic-reviewer" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>python</category>
      <category>hacktoberfest</category>
    </item>
    <item>
      <title>WarriorOS: Building a Modern Terminal Portfolio with React, Gemini, and Cloud Run</title>
      <dc:creator>Ankush Singh Gandhi</dc:creator>
      <pubDate>Sun, 01 Feb 2026 17:04:52 +0000</pubDate>
      <link>https://dev.to/ankushsinghgandhi/warrioros-building-a-modern-terminal-portfolio-with-react-gemini-and-cloud-run-ehj</link>
      <guid>https://dev.to/ankushsinghgandhi/warrioros-building-a-modern-terminal-portfolio-with-react-gemini-and-cloud-run-ehj</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/new-year-new-you-google-ai-2025-12-31"&gt;New Year, New You Portfolio Challenge Presented by Google AI&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  About Me
&lt;/h2&gt;

&lt;p&gt;Hi everyone! I'm &lt;strong&gt;Ankush Singh Gandhi&lt;/strong&gt;, a software engineer and the "Warrior Who Codes." I specialize in full-stack development, system design, and building interactive web experiences.&lt;/p&gt;

&lt;p&gt;But I'm not just a coder—I'm a passionate technical writer and lifelong learner. Over the last few years, my articles on Dev.to have gathered &lt;strong&gt;over 48,000 views&lt;/strong&gt;, and I was previously recognized as a &lt;strong&gt;Top Voice in Computer Science&lt;/strong&gt; on LinkedIn for my contributions to community discussions. I absolutely love devouring system design blogs and engineering case studies.&lt;/p&gt;

&lt;p&gt;My goal with this portfolio was to create something that reflects this duality: a place that showcases my projects but also serves as an "Interactive Hub" for the content I create and consume. It blends a retro-terminal aesthetic with modern, high-performance UI to tell my story.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Evolution: WarriorOS (v4.0) vs. Original
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;⚠️ NOTE: Work in Progress&lt;/strong&gt;&lt;br&gt;
This project is currently in active development. You are seeing a live preview of the new &lt;strong&gt;WarriorOS&lt;/strong&gt; iteration.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This project is a complete reimplementation of my original portfolio, &lt;strong&gt;&lt;a href="https://warriorwhocodes.com" rel="noopener noreferrer"&gt;warriorwhocodes.com&lt;/a&gt;&lt;/strong&gt;. While the original site served me well, I wanted to push the boundaries of what a personal site could be—moving from a static showcase to a living, breathing operating system.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;� CRITICAL VIEWING EXPERIENCE RECOMMENDATION&lt;/strong&gt;&lt;br&gt;
While I have embedded the site below, &lt;strong&gt;I strongly prefer and recommend opening the portfolio in a New Window&lt;/strong&gt;.&lt;br&gt;
The complex terminal shortcuts, hover effects, and immersive UI are best experienced directly, not inside an iframe.&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://portfolio-1050489244458.us-central1.run.app/" rel="noopener noreferrer"&gt;Click Here to Open WarriorOS in Full Screen &amp;gt;&amp;gt;&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  1. The New Architecture (WarriorOS)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Status&lt;/strong&gt;: Active Development 🚧&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Focus&lt;/strong&gt;: Terminal-first navigation, AI integration, "One-Shot" learning modules.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;

&lt;/p&gt;
&lt;div class="ltag__cloud-run"&gt;
  &lt;iframe height="600px" src="https://portfolio-1050489244458.us-central1.run.app/"&gt;
  &lt;/iframe&gt;
&lt;/div&gt;




&lt;h3&gt;
  
  
  2. The Original Portfolio (Legacy)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Status&lt;/strong&gt;: Stable (v3.0)&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Focus&lt;/strong&gt;: Standard visual showcase.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;

&lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://warriorwhocodes.com/" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fwarriorwhocodes.com%2Fassets%2Fimages%2Fog-image.jpg" height="auto" class="m-0"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://warriorwhocodes.com/" rel="noopener noreferrer" class="c-link"&gt;
            Warrior Who Codes - Ankush Singh Gandhi
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            Backend &amp;amp; Software Developer specializing in Python, Django, Flask, and cloud systems. Also building modern web apps and Flutter-based mobile apps.
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fwarriorwhocodes.com%2Fassets%2Fimages%2Ffavicons%2Ffavicon.ico"&gt;
          warriorwhocodes.com
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;




&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;I built &lt;strong&gt;WarriorOS&lt;/strong&gt; (my portfolio) using a modern tech stack centered purely on offering a seamless user experience, accelerated by Google's AI tools.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tech Stack
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Frontend&lt;/strong&gt;: React (Vite), Tailwind CSS, Framer Motion for animations.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Deployment&lt;/strong&gt;: Google Cloud Run (Dockerized Nginx container).&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;AI Integration&lt;/strong&gt;: Google Gemini API.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Development Partner&lt;/strong&gt;: Built using &lt;strong&gt;Antigravity&lt;/strong&gt;, Google's advanced agentic coding assistant.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Building with Antigravity &amp;amp; Gemini
&lt;/h3&gt;

&lt;p&gt;This project didn't just &lt;em&gt;use&lt;/em&gt; AI features; it was built &lt;em&gt;with&lt;/em&gt; AI. I used &lt;strong&gt;Antigravity&lt;/strong&gt; (powered by Gemini) to pair-program the entire "WarriorOS".&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Rapid Prototyping&lt;/strong&gt;: I used the agent to iterate on the complex "Terminal Button" UI until it matched my exact vision—down to the pixel-perfect glow effects.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Deployment Automation&lt;/strong&gt;: The agent handled the containerization with Docker and the Cloud Run deployment commands, saving me hours of configuration time.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Google Gemini API Integration (The "New You" Feature)
&lt;/h3&gt;

&lt;p&gt;I integrated the &lt;strong&gt;Gemini API&lt;/strong&gt; directly into the site to create an &lt;strong&gt;AI Expert &amp;amp; Companion&lt;/strong&gt; that doesn't just chat, it &lt;em&gt;adapts&lt;/em&gt;. But more than just a chatbot, this feature represents my philosophy on &lt;strong&gt;Modern Content Writing: The AI + Human Symbiosis&lt;/strong&gt;.&lt;/p&gt;

&lt;h4&gt;
  
  
  The Mindset: Evolution of Technical Learning
&lt;/h4&gt;

&lt;p&gt;In the past, technical writing was static. You wrote a blog, someone read it, and if they got stuck, they had to leave your site to Google the answer.&lt;/p&gt;

&lt;p&gt;I believe the future of content is &lt;strong&gt;interactive and adaptive&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;The Human Role&lt;/strong&gt;: My job is to curate the &lt;em&gt;structure&lt;/em&gt;, the &lt;em&gt;roadmap&lt;/em&gt;, and the &lt;em&gt;core insights&lt;/em&gt; (the human experience).&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;The AI Role&lt;/strong&gt;: Gemini's job is to be the &lt;strong&gt;personalized expert&lt;/strong&gt; that adapts this content specifically for you.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With the new &lt;strong&gt;Personalization Profile&lt;/strong&gt; engine, the AI doesn't just "answer questions" — it knows &lt;em&gt;who&lt;/em&gt; you are. An &lt;strong&gt;Aspiring Backend Engineer&lt;/strong&gt; learning Redis needs different analogies than a &lt;strong&gt;Senior Frontend Dev&lt;/strong&gt; or a &lt;strong&gt;Product Manager&lt;/strong&gt;. By letting you configure your Occupation, Goal, and Skills, WarriorOS transforms static documentation into a bespoke mentorship session.&lt;/p&gt;

&lt;h4&gt;
  
  
  Where is Gemini Integrated?
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Context-Aware AI Personalization&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Open the &lt;strong&gt;AI Toolbox&lt;/strong&gt; via the floating button.&lt;/li&gt;
&lt;li&gt;  Click &lt;strong&gt;[CONFIGURE AI]&lt;/strong&gt; to set your profile (e.g., Occupation: "Student", Goal: "System Design").&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;The Magic&lt;/strong&gt;: Now, every AI tool—from the &lt;strong&gt;Pathfinder&lt;/strong&gt; to the &lt;strong&gt;Tutor&lt;/strong&gt;—will reshape its responses to fit your background. The Tutor uses your specific skills in examples, and the Quiz adjusts its difficulty automatically.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;The "One-Shot" Expert&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Navigate to the &lt;strong&gt;Library&lt;/strong&gt; and open any "One-Shot" roadmap.&lt;/li&gt;
&lt;li&gt;  The &lt;strong&gt;AI Expert&lt;/strong&gt; uses Gemini 2.5 Flash to provide responses that are not just accurate but &lt;em&gt;streamed in real-time&lt;/em&gt; for a natural conversational feel. It holds the full context of the roadmap you're reading, letting you ask deeper questions without losing scope.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Global AI Assistant&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Throughout the site, the AI acts as a guide to my portfolio. It can explain the architecture of my projects, suggest which blog post you should read based on your interests, or even quiz you on the skills listed in my "About Me" section.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Active Recall Quizzes&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Inside the Expert window, you can switch to "Quiz Mode." Gemini generates rapid-fire questions based on the content you're viewing, helping you verify your understanding in real-time.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What I'm Most Proud Of
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;The Global Terminal System&lt;/strong&gt;:
I didn't want the terminal to be a fake GIF. It's a fully functional global navigation CLI. No matter where you are on the site, you can hit the button and type commands like:

&lt;ul&gt;
&lt;li&gt;  &lt;code&gt;system.archive_access&lt;/code&gt; -&amp;gt; Instantly navigates to my library/blog section.&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;system.profile_bio&lt;/code&gt; -&amp;gt; Jumps to the About Me section.&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;python&lt;/code&gt; -&amp;gt; Launches a simulated Python environment (try &lt;code&gt;import antigravity&lt;/code&gt;!).
It treats the entire website navigation like a file system, giving power users a faster way to explore.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Semantic Terminal Navigation&lt;/strong&gt;:&lt;br&gt;
        This is where the magic happens. I integrated &lt;strong&gt;Google Gemini's capabilities directly into the CLI&lt;/strong&gt;. You aren't limited to memorizing strict commands.&lt;br&gt;
        *   Ask naturally: &lt;code&gt;Show me what you did at Desi Diaries&lt;/code&gt;&lt;br&gt;
        *   Express intent: &lt;code&gt;I want to see your backend projects&lt;/code&gt;&lt;br&gt;
        *   Get context: &lt;code&gt;Who are you?&lt;/code&gt;&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    The terminal intelligently parses your intent. If you want to navigate, it executes the system command. If you have a question about my work experience, it references my portfolio data to give you a concise, terminal-style answer. It transforms the CLI from a tool for power users into a conversational interface for everyone.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The "Configure AI" Ecosystem&lt;/strong&gt;:&lt;br&gt;
I built a dedicated &lt;strong&gt;Settings Configuration UI&lt;/strong&gt; where users can input their occupation and goals (e.g., "Student learning DSA"). This isn't just a form—it's the brain of the site. It stores your profile locally and dynamically injects it into every single AI interaction, making the "AI Expert" feel like a persistent companion rather than a stateless bot.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The Personalized Mentorship Hub&lt;/strong&gt;:&lt;br&gt;
Reflecting my passion for technical writing, I built interactive roadmap pages for topics like &lt;strong&gt;Redis&lt;/strong&gt;, &lt;strong&gt;Django ORM&lt;/strong&gt;, and &lt;strong&gt;MySQL&lt;/strong&gt;. But instead of just static guides, I've created a hub where the &lt;strong&gt;AI Expert&lt;/strong&gt; acts as a personal mentor, analyzing my written content through the lens of &lt;em&gt;your&lt;/em&gt; career goals and occupation.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Seamless Cloud Deployment&lt;/strong&gt;:&lt;br&gt;
Getting the app Dockerized and running on &lt;strong&gt;Google Cloud Run&lt;/strong&gt; was a huge win. The site loads instantly, is secured with HTTPS by default, and can scale up if my blog post goes viral.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I'm excited to share &lt;strong&gt;WarriorOS&lt;/strong&gt; with the community. It represents my journey from writing articles to building an entire operating system for my work.&lt;/p&gt;
&lt;h2&gt;
  
  
  Source Code
&lt;/h2&gt;

&lt;p&gt;You can explore the full source code for WarriorOS on GitHub:&lt;br&gt;


&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/AnkushSinghGandhi" rel="noopener noreferrer"&gt;
        AnkushSinghGandhi
      &lt;/a&gt; / &lt;a href="https://github.com/AnkushSinghGandhi/portfolio-website-v5" rel="noopener noreferrer"&gt;
        portfolio-website-v5
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div&gt;
  &lt;a rel="noopener noreferrer" href="https://github.com/AnkushSinghGandhi/portfolio-website-v5/logo.jpg"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2FAnkushSinghGandhi%2Fportfolio-website-v5%2Flogo.jpg" alt="WarriorOS Logo" width="200"&gt;&lt;/a&gt;
  &lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;WARRIOR OS (v4.0)&lt;/h1&gt;
&lt;/div&gt;
  &lt;p&gt;&lt;i&gt;A Modern Terminal-Inspired Portfolio &amp;amp; Engineering Archive&lt;/i&gt;&lt;/p&gt;
  &lt;p&gt;
    &lt;a href="https://github.com/AnkushSinghGandhi/portfolio-website-v5#" rel="noopener noreferrer"&gt;&lt;strong&gt;Live Preview &amp;gt;&amp;gt;&lt;/strong&gt;&lt;/a&gt;
  &lt;/p&gt;
&lt;/div&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;🚀 Overview&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;WarriorOS&lt;/strong&gt; is a complete reimplementation of the &lt;a href="https://warriorwhocodes.com" rel="nofollow noopener noreferrer"&gt;warriorwhocodes.com&lt;/a&gt; portfolio. It moves away from static web design towards an "Interactive Operating System" aesthetic, blending a retro-terminal CLI with modern, high-performance UI components.&lt;/p&gt;
&lt;p&gt;Built as a submission for the &lt;strong&gt;New Year, New You Portfolio Challenge&lt;/strong&gt;, this iteration focuses on &lt;strong&gt;human-AI symbiosis&lt;/strong&gt; in technical education.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;✨ Key Features&lt;/h2&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;🌐 Global Terminal (Warrior_OS CLI)&lt;/strong&gt;: A fully functional command-line interface used for navigation and system interaction.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;🤖 AI Expert &amp;amp; Companion&lt;/strong&gt;: Integrated Google Gemini API that acts as a context-aware tutor for roadmaps and technical content.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;🗺️ One-Shot Roadmaps&lt;/strong&gt;: Interactive, deep-dive learning modules on topics like Redis, MySQL, and Django ORM.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;⚡ High-Contrast Aesthetics&lt;/strong&gt;: A "Paper Terminal" theme featuring sharp black cards over white grid backgrounds for maximum readability.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;🛠️ Tech Stack&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend&lt;/strong&gt;: React…&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/AnkushSinghGandhi/portfolio-website-v5" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;




&lt;p&gt;&lt;strong&gt;Happy Coding! 🚀&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>googleaichallenge</category>
      <category>portfolio</category>
      <category>gemini</category>
    </item>
    <item>
      <title>Tips, Strategies, and Patterns to Solve and Identify DSA Problems</title>
      <dc:creator>Ankush Singh Gandhi</dc:creator>
      <pubDate>Fri, 03 Oct 2025 06:41:15 +0000</pubDate>
      <link>https://dev.to/ankushsinghgandhi/tips-strategies-and-patterns-to-solve-and-identify-dsa-problems-4jja</link>
      <guid>https://dev.to/ankushsinghgandhi/tips-strategies-and-patterns-to-solve-and-identify-dsa-problems-4jja</guid>
      <description>&lt;p&gt;One of the biggest struggles in mastering &lt;strong&gt;Data Structures and Algorithms (DSA)&lt;/strong&gt; is not writing code — it’s recognizing &lt;strong&gt;patterns&lt;/strong&gt; in problems. Once you can spot the underlying pattern, solving the problem becomes much easier.&lt;/p&gt;

&lt;p&gt;This guide is a &lt;strong&gt;cheat sheet + strategy blog&lt;/strong&gt; to help you &lt;strong&gt;identify DSA problem types&lt;/strong&gt; and choose the right approach.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔑 General Rules to Spot Patterns
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. &lt;strong&gt;If the input array is sorted →&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Try &lt;strong&gt;Binary Search&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Or &lt;strong&gt;Two Pointers&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. &lt;strong&gt;If asked for all permutations/subsets →&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Use &lt;strong&gt;Backtracking&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. &lt;strong&gt;If the problem involves a Tree →&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Use &lt;strong&gt;DFS&lt;/strong&gt; or &lt;strong&gt;BFS&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. &lt;strong&gt;If the problem involves a Graph →&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Again, &lt;strong&gt;DFS&lt;/strong&gt; or &lt;strong&gt;BFS&lt;/strong&gt; (with variations like Union-Find, Topological Sort, etc.)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  5. &lt;strong&gt;If the problem involves Linked Lists →&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Think of &lt;strong&gt;Two Pointers&lt;/strong&gt; (slow/fast pointer tricks)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  6. &lt;strong&gt;If recursion is not allowed →&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Use a &lt;strong&gt;Stack&lt;/strong&gt; to simulate recursion&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  7. &lt;strong&gt;If in-place solution is required →&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Use &lt;strong&gt;swapping&lt;/strong&gt;, or&lt;/li&gt;
&lt;li&gt;Store extra info inside existing pointers&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  8. &lt;strong&gt;If asked for maximum/minimum subarray/subset/option →&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Use &lt;strong&gt;Dynamic Programming&lt;/strong&gt; (Kadane’s, Knapsack, etc.)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  9. &lt;strong&gt;If asked for top/least K items →&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Use &lt;strong&gt;Heap&lt;/strong&gt; or &lt;strong&gt;QuickSelect&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  10. &lt;strong&gt;If asked for common strings/words →&lt;/strong&gt;
&lt;/h3&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;* Use **HashMap** or **Trie**
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
  
  
  11. &lt;strong&gt;Else&lt;/strong&gt;:
&lt;/h3&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;* Use **Map/Set** for O(1) lookup with O(n) space
* Or **Sort** input for O(n log n) time and O(1) space
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h2&gt;
  
  
  🧠 The Two-Pointer Pattern
&lt;/h2&gt;

&lt;h3&gt;
  
  
  🔍 How to Identify
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Finding &lt;strong&gt;pairs&lt;/strong&gt;, &lt;strong&gt;triplets&lt;/strong&gt;, or &lt;strong&gt;subarrays&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Problem mentions &lt;strong&gt;sorted array&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Problem wants &lt;strong&gt;in-place&lt;/strong&gt; solution (O(1) space).&lt;/li&gt;
&lt;li&gt;Need O(n) or O(n log n), brute force O(n²) is too slow.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🚀 Approaches
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Opposite Ends Approach&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;i = 0&lt;/code&gt;, &lt;code&gt;j = n-1&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Move inward based on condition
 👉 Examples: Two Sum (sorted), Container With Most Water, Valid Palindrome&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Same Direction Approach (Slow/Fast Pointers)&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Both start at 0, fast pointer explores, slow pointer lags behind
 👉 Examples: Remove Duplicates, Linked List Cycle, Sliding Window variations&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  💡 Tip: When modifying in-place, slow pointer usually marks “where to write”.
&lt;/h3&gt;

&lt;h3&gt;
  
  
  📝 Pointer Movement Table
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Condition&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Sum too small&lt;/td&gt;
&lt;td&gt;Move left++&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sum too big&lt;/td&gt;
&lt;td&gt;Move right--&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Found valid pair&lt;/td&gt;
&lt;td&gt;Move both inward&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Skip duplicates&lt;/td&gt;
&lt;td&gt;Move pointer at dup&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  ⚡ The Sliding Window Pattern
&lt;/h2&gt;

&lt;h3&gt;
  
  
  🔍 How to Identify
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Problems asking for &lt;strong&gt;subarray/substring&lt;/strong&gt; with constraints:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Maximum/minimum sum/length/count&lt;/li&gt;
&lt;li&gt;K distinct elements&lt;/li&gt;
&lt;li&gt;Character replacements&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🚀 Strategies
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Expanding Window (for max problems)&lt;/strong&gt;:&lt;br&gt;
Grow window until condition is invalid, then shrink.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Shrinking Window (for min problems)&lt;/strong&gt;:&lt;br&gt;
Shrink while condition holds, track min length.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  📝 Quick Rules
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Use if inside for loop&lt;/strong&gt; when at most one adjustment is needed per step (soft constraint).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use while loop&lt;/strong&gt; when multiple shrinks may be required (strict constraint).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;👉 Examples: Longest Substring Without Repeating Characters, Minimum Window Substring&lt;/p&gt;




&lt;h2&gt;
  
  
  🌳 Tree &amp;amp; Graph Patterns
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;DFS&lt;/strong&gt; → when recursion or full exploration is needed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BFS&lt;/strong&gt; → when solving shortest path (unweighted) or level-order.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Union-Find&lt;/strong&gt; → when dealing with connectivity/cycles.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Topological Sort&lt;/strong&gt; → for dependency/ordering problems.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;👉 Examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tree Traversals (Inorder/Preorder/Postorder)&lt;/li&gt;
&lt;li&gt;Shortest Path in Graph (BFS, Dijkstra)&lt;/li&gt;
&lt;li&gt;Detecting Cycles (DFS, Union-Find)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🧮 Dynamic Programming (DP)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  🔍 How to Identify
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Problem asks for &lt;strong&gt;minimum/maximum&lt;/strong&gt; something.&lt;/li&gt;
&lt;li&gt;Overlapping subproblems appear.&lt;/li&gt;
&lt;li&gt;Brute force recursion seems exponential.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🚀 Common DP Problems
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Kadane’s Algorithm (max subarray sum)&lt;/li&gt;
&lt;li&gt;Knapsack variations&lt;/li&gt;
&lt;li&gt;Fibonacci/Climbing Stairs&lt;/li&gt;
&lt;li&gt;Longest Common Subsequence / Substring&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;👉 Tip: Always try recursion first → then memoize → then bottom-up.&lt;/p&gt;




&lt;h2&gt;
  
  
  🏗️ Heaps and Priority Queues
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Use when asked for &lt;strong&gt;top K elements&lt;/strong&gt;, &lt;strong&gt;running median&lt;/strong&gt;, or &lt;strong&gt;minimum/maximum stream values&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Heap provides O(log n) insertion and O(1) top element.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;👉 Examples: Kth Largest Element, Merge K Sorted Lists, Sliding Window Maximum&lt;/p&gt;




&lt;h2&gt;
  
  
  🔡 Strings &amp;amp; Hashing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;HashMap / Set&lt;/strong&gt; → when you need to check existence/count (anagrams, duplicates).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trie&lt;/strong&gt; → when asked for prefix/suffix queries, autocomplete, or dictionary problems.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;👉 Examples: Group Anagrams, Word Search II, Longest Prefix&lt;/p&gt;




&lt;h2&gt;
  
  
  🧭 Checklist for Any DSA Question
&lt;/h2&gt;

&lt;p&gt;When you see a new problem, ask:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Is the input &lt;strong&gt;sorted&lt;/strong&gt;? → Try binary search / two pointers.&lt;/li&gt;
&lt;li&gt;Is it about &lt;strong&gt;subarray/substring&lt;/strong&gt;? → Try sliding window.&lt;/li&gt;
&lt;li&gt;Is it about &lt;strong&gt;permutations/subsets&lt;/strong&gt;? → Try backtracking.&lt;/li&gt;
&lt;li&gt;Is it about a &lt;strong&gt;tree/graph&lt;/strong&gt;? → Try DFS/BFS.&lt;/li&gt;
&lt;li&gt;Is it about &lt;strong&gt;max/min result&lt;/strong&gt;? → Try DP.&lt;/li&gt;
&lt;li&gt;Is it about &lt;strong&gt;Kth element/top items&lt;/strong&gt;? → Try heap/QuickSelect.&lt;/li&gt;
&lt;li&gt;Is it about &lt;strong&gt;strings/prefixes&lt;/strong&gt;? → Try HashMap/Trie.&lt;/li&gt;
&lt;li&gt;Else → Try Map/Set or Sorting.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  🎯 Final Tip
&lt;/h2&gt;

&lt;p&gt;👉 &lt;strong&gt;Brute force first, optimize later.&lt;/strong&gt;&lt;br&gt;
Most optimizations are about recognizing the &lt;strong&gt;pattern&lt;/strong&gt; and then replacing nested loops or recursion with the right technique.&lt;/p&gt;




&lt;p&gt;By building this &lt;strong&gt;pattern recognition skill&lt;/strong&gt;, you’ll start to “see through” DSA problems instead of brute-forcing every new one. That’s the mindset of a strong problem solver.&lt;/p&gt;

</description>
      <category>interview</category>
      <category>computerscience</category>
      <category>tutorial</category>
      <category>algorithms</category>
    </item>
    <item>
      <title>🌐 Essential API &amp; HTTP Interview Questions</title>
      <dc:creator>Ankush Singh Gandhi</dc:creator>
      <pubDate>Thu, 02 Oct 2025 16:16:25 +0000</pubDate>
      <link>https://dev.to/ankushsinghgandhi/essential-api-http-interview-questions-2mm5</link>
      <guid>https://dev.to/ankushsinghgandhi/essential-api-http-interview-questions-2mm5</guid>
      <description>&lt;p&gt;APIs and HTTP form the backbone of modern web communication. Below are the &lt;strong&gt;most important API &amp;amp; HTTP interview questions&lt;/strong&gt; every developer should know.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔹 What is an API and why do we use it?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;API (Application Programming Interface)&lt;/strong&gt; → A set of rules that allow software applications to communicate with each other.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use&lt;/strong&gt;: Enables integration, automation, and reusability (e.g., payment gateway, social login, weather services).&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 What are HTTP Methods?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GET&lt;/strong&gt; → Retrieve data.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;POST&lt;/strong&gt; → Create new resources.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PUT&lt;/strong&gt; → Update/replace entire resource.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PATCH&lt;/strong&gt; → Partially update resource.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DELETE&lt;/strong&gt; → Remove resource.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HEAD&lt;/strong&gt; → Retrieve headers only.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OPTIONS&lt;/strong&gt; → Discover supported methods.
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 GET vs POST
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GET&lt;/strong&gt; → Idempotent, data in URL, not secure for sensitive info, limited length.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;POST&lt;/strong&gt; → Non-idempotent, data in body, secure for large/sensitive payloads.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 PUT vs PATCH
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;PUT&lt;/strong&gt; → Replaces entire resource.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PATCH&lt;/strong&gt; → Updates specific fields in resource.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 PUT and POST
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;PUT&lt;/strong&gt; → Used for &lt;strong&gt;updating/replacing&lt;/strong&gt;. Idempotent.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;POST&lt;/strong&gt; → Used for &lt;strong&gt;creating&lt;/strong&gt;. Non-idempotent.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 SOAP API and Its Use
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;SOAP (Simple Object Access Protocol)&lt;/strong&gt; → XML-based protocol for exchanging structured information.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use&lt;/strong&gt;: High security, reliable messaging, enterprise systems like banking/telecom.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 REST API
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;REST (Representational State Transfer)&lt;/strong&gt; → Architectural style using HTTP for CRUD operations on resources.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lightweight&lt;/strong&gt;, &lt;strong&gt;scalable&lt;/strong&gt;, widely used in web/mobile apps.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 SOAP vs REST
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;SOAP&lt;/strong&gt; → Strict, XML only, heavier, built-in security.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;REST&lt;/strong&gt; → Flexible, supports XML/JSON, faster, easier to use.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 HTTP Status Codes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;1xx&lt;/strong&gt; → Informational.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;2xx&lt;/strong&gt; → Success (200 OK, 201 Created).
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;3xx&lt;/strong&gt; → Redirection (301 Moved Permanently).
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;4xx&lt;/strong&gt; → Client Error (400 Bad Request, 404 Not Found).
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;5xx&lt;/strong&gt; → Server Error (500 Internal Server Error).&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 Components of HTTP Request &amp;amp; Response
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Request&lt;/strong&gt; → Method, URI, Headers, Body (optional).
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Response&lt;/strong&gt; → Status line, Headers, Body (optional).&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 GET/POST Instead of PUT for Resource Creation
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;While &lt;strong&gt;POST&lt;/strong&gt; is standard for creation, some APIs use &lt;strong&gt;PUT&lt;/strong&gt; if the client knows the resource URI.
&lt;/li&gt;
&lt;li&gt;Using GET for creation is a bad practice (GET should be read-only).&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 RESTful Web Service &amp;amp; Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;RESTful WS&lt;/strong&gt; → Service following REST principles.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Features&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Client-server architecture
&lt;/li&gt;
&lt;li&gt;Stateless communication
&lt;/li&gt;
&lt;li&gt;Uniform interface
&lt;/li&gt;
&lt;li&gt;Cacheable responses
&lt;/li&gt;
&lt;li&gt;Layered system
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 Disadvantages of RESTful Web Services
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;No strict standards (loose rules).
&lt;/li&gt;
&lt;li&gt;Less secure compared to SOAP.
&lt;/li&gt;
&lt;li&gt;Overhead of multiple requests for complex operations.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 What’s Payload?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Payload&lt;/strong&gt; = Actual data sent in request/response body (e.g., JSON/XML).&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 Can We Send Payload in GET or DELETE?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Technically possible but &lt;strong&gt;not recommended&lt;/strong&gt;.
&lt;/li&gt;
&lt;li&gt;HTTP spec doesn’t forbid it, but many servers/proxies ignore it.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 Max Payload Size in POST
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;No official limit in HTTP spec.
&lt;/li&gt;
&lt;li&gt;Practical limit depends on server (e.g., Apache, Nginx default ~2MB to 100MB).&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 Markup Language for REST API
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;REST supports multiple formats, most commonly &lt;strong&gt;JSON&lt;/strong&gt; and &lt;strong&gt;XML&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 XML vs JSON
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;XML&lt;/strong&gt; → Verbose, supports attributes, widely used in SOAP.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;JSON&lt;/strong&gt; → Lightweight, human-readable, faster, widely used in REST.
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 What’s Resource in REST &amp;amp; How to Present?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Resource&lt;/strong&gt; = Any entity (user, product, order).
&lt;/li&gt;
&lt;li&gt;Represented by &lt;strong&gt;URI&lt;/strong&gt; (Uniform Resource Identifier).
Example: &lt;code&gt;/api/users/123&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 Advantages of REST in Web API
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Lightweight and scalable.
&lt;/li&gt;
&lt;li&gt;Platform/language independent.
&lt;/li&gt;
&lt;li&gt;Uses existing HTTP methods.
&lt;/li&gt;
&lt;li&gt;Easy to integrate with web/mobile.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 Concept of Statelessness in REST API
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Each request contains all info (no server-side session).
&lt;/li&gt;
&lt;li&gt;Improves scalability, reduces server memory usage.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 What’s URI?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;URI (Uniform Resource Identifier)&lt;/strong&gt; → Unique address for a resource.
Example: &lt;code&gt;https://api.example.com/products/1&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 CORS in Web API
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CORS (Cross-Origin Resource Sharing)&lt;/strong&gt; → Security feature of browsers.
&lt;/li&gt;
&lt;li&gt;Allows or restricts requests from different domains.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 What’s Postman &amp;amp; Its Use?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Postman&lt;/strong&gt; → API client tool for testing, documenting, and automating API calls.
&lt;/li&gt;
&lt;li&gt;Widely used for debugging and collaboration in teams.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  ✅ Conclusion
&lt;/h2&gt;

&lt;p&gt;APIs and HTTP form the &lt;strong&gt;foundation of modern web services&lt;/strong&gt;. Knowing &lt;strong&gt;HTTP methods, REST principles, SOAP vs REST, status codes, payloads, and tools like Postman&lt;/strong&gt; is critical for acing interviews and real-world backend development.&lt;/p&gt;




</description>
      <category>webdev</category>
      <category>programming</category>
      <category>api</category>
      <category>ai</category>
    </item>
    <item>
      <title>🚀 Essential Git and GitHub Interview Questions</title>
      <dc:creator>Ankush Singh Gandhi</dc:creator>
      <pubDate>Thu, 02 Oct 2025 16:09:20 +0000</pubDate>
      <link>https://dev.to/ankushsinghgandhi/essential-git-and-github-interview-questions-3846</link>
      <guid>https://dev.to/ankushsinghgandhi/essential-git-and-github-interview-questions-3846</guid>
      <description>&lt;p&gt;Git and GitHub are fundamental tools for developers, and interviewers often test your knowledge of them. This blog covers the &lt;strong&gt;most commonly asked Git and GitHub interview questions&lt;/strong&gt;, explained in a crisp and practical way.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔹 Git vs GitHub
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Git&lt;/strong&gt;: A distributed version control system (VCS) used to track source code changes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub&lt;/strong&gt;: A cloud-based hosting platform for Git repositories with collaboration features like pull requests, issues, and CI/CD.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 Repo vs Branch
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Repository (Repo)&lt;/strong&gt;: A collection of files and their entire version history.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Branch&lt;/strong&gt;: A lightweight movable pointer to a commit, allowing parallel development.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 Push vs Pull
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Push&lt;/strong&gt;: Uploads your local commits to a remote repository.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pull&lt;/strong&gt;: Fetches updates from the remote and merges them into your local branch.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 Pull vs Fetch
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pull&lt;/strong&gt; = Fetch + Merge.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fetch&lt;/strong&gt;: Downloads changes from remote but does not merge automatically.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 Clone vs Remote
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Clone&lt;/strong&gt;: Creates a local copy of a remote repo.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Remote&lt;/strong&gt;: A reference (like &lt;code&gt;origin&lt;/code&gt;) to the remote repository URL.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 Diff vs Status
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;git diff&lt;/strong&gt;: Shows actual changes (line-by-line) not staged or committed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;git status&lt;/strong&gt;: Shows the state of working directory and staging area.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 Merge vs Rebase
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Merge&lt;/strong&gt;: Combines histories of two branches with a new merge commit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rebase&lt;/strong&gt;: Reapplies commits of one branch onto another, resulting in a linear history.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 What’s a Git repo &amp;amp; how to create one?
&lt;/h2&gt;

&lt;p&gt;A &lt;strong&gt;Git repository&lt;/strong&gt; is a directory where Git tracks files and history.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git init          &lt;span class="c"&gt;# Create a local repo  &lt;/span&gt;
git clone &amp;lt;url&amp;gt;   &lt;span class="c"&gt;# Clone a remote repo  &lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🔹 Fix a Broken Commit
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git commit &lt;span class="nt"&gt;--amend&lt;/span&gt;        &lt;span class="c"&gt;# Fix last commit  &lt;/span&gt;
git reset &lt;span class="nt"&gt;--soft&lt;/span&gt; HEAD~1   &lt;span class="c"&gt;# Undo last commit, keep changes  &lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🔹 What happens if &lt;code&gt;.git&lt;/code&gt; folder gets deleted?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The repo &lt;strong&gt;loses its history and version control&lt;/strong&gt;, as &lt;code&gt;.git&lt;/code&gt; contains all commit objects, refs, and configurations.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 Use of Staging Area (Indexing)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Temporary area where changes are reviewed before committing.&lt;/li&gt;
&lt;li&gt;Allows selective commit (&lt;code&gt;git add &amp;lt;file&amp;gt;&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 Git Repo Hosting Functions
&lt;/h2&gt;

&lt;p&gt;Platforms like GitHub, GitLab, Bitbucket provide:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Remote hosting&lt;/li&gt;
&lt;li&gt;Collaboration (pull requests, issues)&lt;/li&gt;
&lt;li&gt;CI/CD pipelines&lt;/li&gt;
&lt;li&gt;Access control&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 VCS (Version Control System)
&lt;/h2&gt;

&lt;p&gt;Tracks changes in code over time, supports collaboration, and helps rollback or branch development.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔹 Features/Advantages of Git
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Distributed VCS (no single point of failure).&lt;/li&gt;
&lt;li&gt;Lightweight branching and merging.&lt;/li&gt;
&lt;li&gt;Offline work support.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 Git vs SVN
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Git&lt;/strong&gt;: Distributed, faster, branching-friendly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SVN&lt;/strong&gt;: Centralized, slower for branching, single point of failure.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 &lt;code&gt;git config&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;Sets user info and preferences.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git config &lt;span class="nt"&gt;--global&lt;/span&gt; user.name &lt;span class="s2"&gt;"Ankush"&lt;/span&gt;  
git config &lt;span class="nt"&gt;--global&lt;/span&gt; user.email &lt;span class="s2"&gt;"ankush@example.com"&lt;/span&gt;  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🔹 &lt;code&gt;git ls-tree&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;Shows content of a tree object (commits, blobs, trees).&lt;/p&gt;




&lt;h2&gt;
  
  
  🔹 Git Stash Commands
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Save work: &lt;code&gt;git stash&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;List stashes: &lt;code&gt;git stash list&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Apply latest: &lt;code&gt;git stash apply&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Drop stash: &lt;code&gt;git stash drop&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 Revert vs Reset
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Revert&lt;/strong&gt;: Creates a new commit that undoes changes. Safe for shared repos.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reset&lt;/strong&gt;: Moves HEAD to a previous commit, can discard changes.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 HEAD in Git
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;HEAD&lt;/strong&gt; is the current branch pointer (latest commit).&lt;/li&gt;
&lt;li&gt;Normally 1 active HEAD, but multiple branch heads can exist.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 Git Username and Email
&lt;/h2&gt;

&lt;p&gt;Each commit uses configured username &amp;amp; email (&lt;code&gt;git config&lt;/code&gt;).&lt;/p&gt;




&lt;h2&gt;
  
  
  🔹 Commit History
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git log  
git log &lt;span class="nt"&gt;--oneline&lt;/span&gt; &lt;span class="nt"&gt;--graph&lt;/span&gt;  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🔹 Branch Operations
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;New branch: &lt;code&gt;git branch new-feature&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Switch branch: &lt;code&gt;git checkout main&lt;/code&gt; OR &lt;code&gt;git switch main&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;List branches: &lt;code&gt;git branch&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Create + switch: &lt;code&gt;git checkout -b feature&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Delete branch: &lt;code&gt;git branch -d feature&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Merge branch: &lt;code&gt;git merge feature&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔹 Remote Tracking
&lt;/h2&gt;

&lt;p&gt;Check which branch is being tracked:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git branch &lt;span class="nt"&gt;-vv&lt;/span&gt;  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🔹 Force Push
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git push origin main &lt;span class="nt"&gt;--force&lt;/span&gt;  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🔹 Add Remote Repo
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git remote add origin &amp;lt;url&amp;gt;  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🔹 Rename File in Git
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git &lt;span class="nb"&gt;mv &lt;/span&gt;old.txt new.txt  
git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"Renamed file"&lt;/span&gt;  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🔹 &lt;code&gt;.gitignore&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;Defines files/folders Git should ignore. Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;node_modules/  
*.log  
.env  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🔹 Rollback Last Commit
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git reset &lt;span class="nt"&gt;--soft&lt;/span&gt; HEAD~1     &lt;span class="c"&gt;# Keep changes  &lt;/span&gt;
git reset &lt;span class="nt"&gt;--hard&lt;/span&gt; HEAD~1     &lt;span class="c"&gt;# Discard changes  &lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  ✅ Final Thoughts
&lt;/h2&gt;

&lt;p&gt;These questions cover &lt;strong&gt;core Git and GitHub concepts&lt;/strong&gt; often asked in interviews. Knowing both &lt;strong&gt;commands and theory&lt;/strong&gt; will help you stand out in backend or full-stack interviews.&lt;/p&gt;

</description>
      <category>interview</category>
      <category>git</category>
      <category>github</category>
      <category>career</category>
    </item>
    <item>
      <title>Build an ATS-Friendly Resume That Gets Seen (with Free LaTeX Template 🚀)</title>
      <dc:creator>Ankush Singh Gandhi</dc:creator>
      <pubDate>Wed, 03 Sep 2025 14:42:52 +0000</pubDate>
      <link>https://dev.to/ankushsinghgandhi/build-an-ats-friendly-resume-that-gets-seen-with-free-latex-template--o30</link>
      <guid>https://dev.to/ankushsinghgandhi/build-an-ats-friendly-resume-that-gets-seen-with-free-latex-template--o30</guid>
      <description>&lt;h1&gt;
  
  
  Most resumes fail before a human even reads them.
&lt;/h1&gt;

&lt;p&gt;Why? Because &lt;strong&gt;Applicant Tracking Systems (ATS)&lt;/strong&gt; – the software recruiters use to filter applications – can’t parse overly designed templates. So no matter how pretty your resume looks in Canva, if the ATS can’t read it, your application goes straight to the rejection pile.&lt;/p&gt;

&lt;p&gt;That’s why I built and shared a &lt;strong&gt;plain, single-column, ATS-friendly LaTeX resume template&lt;/strong&gt; → &lt;a href="https://github.com/AnkushSinghGandhi/ats-resume-template" rel="noopener noreferrer"&gt;ASG ATS Resume Template&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this blog, I’ll cover:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;✅ Why plain templates are essential&lt;/li&gt;
&lt;li&gt;✅ Actionable resume writing tips&lt;/li&gt;
&lt;li&gt;✅ How to structure your resume effectively&lt;/li&gt;
&lt;li&gt;✅ The LaTeX template I created (and why it’s optimized for ATS + recruiters)&lt;/li&gt;
&lt;li&gt;✅ Step-by-step guide: How to use the template from GitHub in Overleaf&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Why Plain Templates Work Best
&lt;/h2&gt;

&lt;p&gt;Recruiters spend &lt;strong&gt;6–8 seconds&lt;/strong&gt; skimming your resume.&lt;br&gt;
Fancy graphics, two-column layouts, and headshots only make it harder for both &lt;strong&gt;ATS software&lt;/strong&gt; and &lt;strong&gt;humans&lt;/strong&gt; to parse your resume.&lt;/p&gt;

&lt;p&gt;The reality:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ATS reads resumes &lt;strong&gt;line by line, left to right&lt;/strong&gt; → two columns confuse parsing.&lt;/li&gt;
&lt;li&gt;Logos, icons, and tables often get &lt;strong&gt;skipped or jumbled&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Even recruiters don’t have time for visual clutter – they just want &lt;strong&gt;keywords, skills, and impact&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A great resume should be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Plain and single-column&lt;/strong&gt; → ATS-friendly&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keyword-rich&lt;/strong&gt; → Matches job description&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Skimmable&lt;/strong&gt; → Recruiters can pick impact in seconds&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One-page&lt;/strong&gt; → if you have ≤5 years of experience&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  Resume Writing Tips 🔑
&lt;/h2&gt;

&lt;p&gt;Here are the tips I’ve followed and baked into the template:&lt;/p&gt;
&lt;h3&gt;
  
  
  Structure
&lt;/h3&gt;

&lt;p&gt;✅ Start with &lt;strong&gt;Work Experience&lt;/strong&gt; (or &lt;strong&gt;Projects&lt;/strong&gt; if fresher)&lt;br&gt;
✅ Add a &lt;strong&gt;Summary section&lt;/strong&gt; with job-relevant keywords&lt;br&gt;
✅ Use &lt;strong&gt;bullet points for all achievements&lt;/strong&gt;&lt;br&gt;
✅ Place &lt;strong&gt;Skills section at the end&lt;/strong&gt; – prove them earlier in projects/experience&lt;/p&gt;
&lt;h3&gt;
  
  
  Bullet Points
&lt;/h3&gt;

&lt;p&gt;✅ Keep them &lt;strong&gt;one line (70–180 chars)&lt;/strong&gt;&lt;br&gt;
✅ Don’t end with a period&lt;br&gt;
✅ Show &lt;strong&gt;impact with numbers&lt;/strong&gt; (&lt;em&gt;“Reduced API latency by 40%”&lt;/em&gt;)&lt;br&gt;
✅ Don’t overuse action verbs – mix clarity + metrics&lt;/p&gt;
&lt;h3&gt;
  
  
  General Rules
&lt;/h3&gt;

&lt;p&gt;✅ &lt;strong&gt;No photo&lt;/strong&gt; on your resume – ATS doesn’t process images&lt;br&gt;
✅ Skip &lt;strong&gt;10th/12th school details&lt;/strong&gt; if you have higher ed or experience&lt;br&gt;
✅ Deployed projects? Add a &lt;strong&gt;hyperlink&lt;/strong&gt;&lt;br&gt;
✅ Only add &lt;strong&gt;relevant achievements &amp;amp; hobbies&lt;/strong&gt;&lt;br&gt;
✅ Use &lt;strong&gt;bold smartly&lt;/strong&gt; – to catch the eye in 2 seconds&lt;/p&gt;


&lt;h2&gt;
  
  
  Why I Built the ASG ATS Resume Template 📝
&lt;/h2&gt;

&lt;p&gt;When I started experimenting with resumes, I realized most templates online were either:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Too flashy → not ATS-friendly&lt;/li&gt;
&lt;li&gt;Too plain → didn’t highlight keywords or impact&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So I built my own &lt;strong&gt;LaTeX template&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Features:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;📄 Single-column design for ATS parsing&lt;/li&gt;
&lt;li&gt;✒️ Uses &lt;strong&gt;Tinos font&lt;/strong&gt; (ATS-safe + clean for recruiters)&lt;/li&gt;
&lt;li&gt;─── Thin dividers (no heavy graphics)&lt;/li&gt;
&lt;li&gt;🔑 Bold project titles, plain descriptions underneath&lt;/li&gt;
&lt;li&gt;📌 Bullet points optimized for readability&lt;/li&gt;
&lt;li&gt;📍 Works 100% on Overleaf, GitHub, or local LaTeX install&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;👉 Try it here: &lt;a href="https://github.com/AnkushSinghGandhi/ats-resume-template" rel="noopener noreferrer"&gt;ASG ATS Resume Template&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  Technical Deep-Dive: How the Template Works ⚙️
&lt;/h2&gt;

&lt;p&gt;If you’re a developer (and especially if you’ve never touched LaTeX before), here’s what you’ll appreciate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Minimal packages&lt;/strong&gt; → No bloat, just &lt;code&gt;geometry&lt;/code&gt;, &lt;code&gt;enumitem&lt;/code&gt;, &lt;code&gt;hyperref&lt;/code&gt;, and &lt;code&gt;fontspec&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Exact alignment&lt;/strong&gt; → Uses &lt;code&gt;tabular*&lt;/code&gt; for job/project alignment (role left, date right).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custom Section Command&lt;/strong&gt; → A &lt;code&gt;\Section{}&lt;/code&gt; command renders uppercase titles + thin horizontal rule.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consistent spacing&lt;/strong&gt; → &lt;code&gt;parskip&lt;/code&gt; + tuned margins for a 1-page layout.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Font control&lt;/strong&gt; → &lt;code&gt;\setmainfont{Tinos}&lt;/code&gt; ensures ATS-readable + modern look.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here’s a small snippet that makes section headers neat:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;&lt;span class="c"&gt;% Section command: UPPERCASE bold heading + thin rule&lt;/span&gt;
&lt;span class="k"&gt;\newcommand&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="k"&gt;\Section&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;[1]&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="c"&gt;%&lt;/span&gt;
  &lt;span class="k"&gt;\vspace&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;6pt&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="k"&gt;\noindent&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="k"&gt;\large\bfseries\MakeUppercase&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;#1&lt;span class="p"&gt;}}&lt;/span&gt;&lt;span class="k"&gt;\\&lt;/span&gt;
  &lt;span class="k"&gt;\noindent\rule&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="k"&gt;\textwidth&lt;/span&gt;&lt;span class="p"&gt;}{&lt;/span&gt;0.4pt&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="k"&gt;\vspace&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;6pt&lt;span class="p"&gt;}}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And here’s how jobs/projects are aligned perfectly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;&lt;span class="c"&gt;% Job line helper&lt;/span&gt;
&lt;span class="k"&gt;\newcommand&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="k"&gt;\JobLine&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;[2]&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="c"&gt;%&lt;/span&gt;
  &lt;span class="k"&gt;\noindent&lt;/span&gt;&lt;span class="nt"&gt;\begin{tabular*}&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="k"&gt;\textwidth&lt;/span&gt;&lt;span class="p"&gt;}{&lt;/span&gt;@&lt;span class="p"&gt;{}&lt;/span&gt;l@&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="k"&gt;\extracolsep&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="k"&gt;\fill&lt;/span&gt;&lt;span class="p"&gt;}}&lt;/span&gt;r@&lt;span class="p"&gt;{}}&lt;/span&gt;&lt;span class="c"&gt;%&lt;/span&gt;
  #1 &lt;span class="p"&gt;&amp;amp;&lt;/span&gt; #2&lt;span class="k"&gt;\\&lt;/span&gt;&lt;span class="nt"&gt;\end{tabular*}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That’s the power of LaTeX → &lt;strong&gt;precision control&lt;/strong&gt; while keeping the output &lt;strong&gt;clean and consistent&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  🚀 How to Use the Template from GitHub on Overleaf
&lt;/h2&gt;

&lt;p&gt;This template works &lt;strong&gt;out of the box&lt;/strong&gt; on &lt;a href="https://www.overleaf.com/" rel="noopener noreferrer"&gt;Overleaf&lt;/a&gt;, so you don’t need to install LaTeX locally.&lt;/p&gt;

&lt;p&gt;Here’s the step-by-step:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Go to the GitHub Repo&lt;/strong&gt; → &lt;a href="https://dev.toYOUR_TEMPLATE_LINK_HERE"&gt;ASG ATS Resume Template&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Download as ZIP&lt;/strong&gt; → Click the green “Code” button → &lt;em&gt;Download ZIP&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open Overleaf&lt;/strong&gt; → Log into &lt;a href="https://www.overleaf.com/" rel="noopener noreferrer"&gt;overleaf.com&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Upload Project&lt;/strong&gt; → New Project → Upload ZIP.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Switch Compiler&lt;/strong&gt; → In Overleaf menu → &lt;em&gt;Menu &amp;gt; Compiler &amp;gt; XeLaTeX&lt;/em&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;⚠️ Important: The template uses &lt;code&gt;fontspec&lt;/code&gt;, which only works with &lt;strong&gt;XeLaTeX/LuaLaTeX&lt;/strong&gt; (not pdfLaTeX).

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Edit &lt;code&gt;main.tex&lt;/code&gt;&lt;/strong&gt; → Replace name, work experience, projects, etc.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Recompile&lt;/strong&gt; → Click “Recompile” and download your PDF.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;✅ That’s it – your ATS-optimized resume is ready.&lt;/p&gt;




&lt;h2&gt;
  
  
  Who Should Use This Template?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;🎓 &lt;strong&gt;Students/freshers&lt;/strong&gt; → Swap “Experience” with “Projects”&lt;/li&gt;
&lt;li&gt;👨‍💻 &lt;strong&gt;Software developers&lt;/strong&gt; → ATS loves tech keywords, this layout handles them well&lt;/li&gt;
&lt;li&gt;📈 &lt;strong&gt;Early-career professionals (1–5 years)&lt;/strong&gt; → Perfect for a one-pager resume&lt;/li&gt;
&lt;li&gt;🚀 &lt;strong&gt;Anyone applying online&lt;/strong&gt; → ATS parsing guaranteed&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Your resume isn’t about looking pretty – it’s about getting &lt;strong&gt;seen and understood quickly&lt;/strong&gt;.&lt;br&gt;
With a &lt;strong&gt;plain, ATS-friendly template&lt;/strong&gt;, you instantly improve your odds of making it past the automated filters and into the hands of a recruiter.&lt;/p&gt;

&lt;p&gt;That’s why I built the &lt;strong&gt;ASG ATS Resume Template&lt;/strong&gt; → &lt;a href="https://github.com/AnkushSinghGandhi/ats-resume-template" rel="noopener noreferrer"&gt;Grab it here&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;💬 I’d love to hear from you:&lt;br&gt;
👉 What’s the &lt;strong&gt;biggest mistake&lt;/strong&gt; you’ve seen people make on resumes?&lt;/p&gt;




&lt;p&gt;✍️ &lt;em&gt;PS: This template is free to use and customize. If it helps you land an interview, let me know!&lt;/em&gt;&lt;/p&gt;

</description>
      <category>resume</category>
      <category>career</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
    <item>
      <title>💡 TIME COMPLEXITY PRIMER – Understand Big O Like a Kid With Candies 🍬</title>
      <dc:creator>Ankush Singh Gandhi</dc:creator>
      <pubDate>Sun, 29 Jun 2025 18:38:29 +0000</pubDate>
      <link>https://dev.to/ankushsinghgandhi/time-complexity-primer-understand-big-o-like-a-kid-with-candies-2ih0</link>
      <guid>https://dev.to/ankushsinghgandhi/time-complexity-primer-understand-big-o-like-a-kid-with-candies-2ih0</guid>
      <description>&lt;h2&gt;
  
  
  🧠 What is Time Complexity?
&lt;/h2&gt;

&lt;p&gt;Think of time complexity like asking:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;"How many steps will my program take as the input gets bigger?"&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Imagine you're:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🧸 Putting LEGO blocks one by one (&lt;code&gt;O(n)&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;🎲 Checking only the first one (&lt;code&gt;O(1)&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;📚 Flipping every page of a big book to find a word (&lt;code&gt;O(n)&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;🕵️ Searching in a sorted drawer by cutting it in half every time (&lt;code&gt;O(log n)&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🍭 Big O Notation – Like Candy Boxes!
&lt;/h2&gt;

&lt;p&gt;Let’s say you have &lt;strong&gt;n candies&lt;/strong&gt;:&lt;/p&gt;

&lt;h3&gt;
  
  
  ✅ O(1) — &lt;strong&gt;"I take 1 candy, no matter how many I have"&lt;/strong&gt;
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;get_first&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;candies&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;candies&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;No matter if you have 10 or 10,000 candies — you &lt;strong&gt;just grab the first one&lt;/strong&gt;. 🎯&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h3&gt;
  
  
  ✅ O(n) — &lt;strong&gt;"I check every candy"&lt;/strong&gt;
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;find_sour_candy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;candies&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;candy&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;candies&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;candy&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;sour&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;If there are 5 candies, you may look 5 times. If there are 100? You might look 100 times!&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h3&gt;
  
  
  ✅ O(n²) — &lt;strong&gt;"I compare every candy with every other candy"&lt;/strong&gt;
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;find_duplicates&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;candies&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;candies&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;j&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;candies&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;j&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="n"&gt;j&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Imagine you’re checking every candy against every other candy — it gets &lt;strong&gt;super slow&lt;/strong&gt; when the pile grows! 🍬🍬🍬&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h3&gt;
  
  
  ✅ O(log n) — &lt;strong&gt;"I cut the candy box in half each time!"&lt;/strong&gt;
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;binary_search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;candies&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;left&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;right&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;candies&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
    &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="n"&gt;left&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="n"&gt;right&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;mid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;left&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;right&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;candies&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;mid&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;
        &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;candies&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;mid&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;left&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;mid&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
        &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;right&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;mid&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Smart search! Cut your pile in half every time until you find the candy 🍭&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h3&gt;
  
  
  ✅ O(n log n) — &lt;strong&gt;"Sort candies smartly!"&lt;/strong&gt;
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Merge sort, quicksort — faster than checking every pair like O(n²), but slower than O(n)&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  🍕 Analogy Recap:
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Big O&lt;/th&gt;
&lt;th&gt;Like this...&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;O(1)&lt;/td&gt;
&lt;td&gt;Grab the first candy 🍬&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;O(n)&lt;/td&gt;
&lt;td&gt;Taste every candy one by one 😋&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;O(n²)&lt;/td&gt;
&lt;td&gt;Compare every candy with every other candy 😵&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;O(log n)&lt;/td&gt;
&lt;td&gt;Smart guess by cutting box in half each time 🔪&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;O(n log n)&lt;/td&gt;
&lt;td&gt;Smart sorting like organizing Lego blocks fast 🧱&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  🧩 Exercise 1: Candy Basket 🍬
&lt;/h2&gt;

&lt;p&gt;You have a basket of &lt;code&gt;n&lt;/code&gt; candies. You want to find if there's &lt;strong&gt;any red candy&lt;/strong&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;has_red&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;candies&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;candy&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;candies&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;candy&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;red&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  ❓ What's the time complexity?
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;✅ &lt;strong&gt;Answer: &lt;code&gt;O(n)&lt;/code&gt;&lt;/strong&gt; — you may need to check all the candies!&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  🧩 Exercise 2: Toy Shelf 🧸
&lt;/h2&gt;

&lt;p&gt;You have a list of 10 toys. You always play with the &lt;strong&gt;first one&lt;/strong&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;play_with_toy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;toys&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;toys&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  ❓ Time complexity?
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;✅ &lt;strong&gt;Answer: &lt;code&gt;O(1)&lt;/code&gt;&lt;/strong&gt; — always 1 step, no matter how many toys!&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  🧩 Exercise 3: Checking Every Friend's Name 👧👦
&lt;/h2&gt;

&lt;p&gt;You want to say hi to every friend at the party.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;say_hi&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;friends&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;friend&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;friends&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hi&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;friend&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  ❓ Time complexity?
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;✅ &lt;strong&gt;Answer: &lt;code&gt;O(n)&lt;/code&gt;&lt;/strong&gt; — say "Hi" once per friend!&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  🧩 Exercise 4: Double Trouble 🎭
&lt;/h2&gt;

&lt;p&gt;You want to check every pair of kids to see if they’re best friends.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;check_best_friends&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;kids&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;kid1&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;kids&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;kid2&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;kids&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;kid1&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="n"&gt;kid2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;kid1&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; and &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;kid2&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; might be besties!&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  ❓ Time complexity?
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;✅ &lt;strong&gt;Answer: &lt;code&gt;O(n²)&lt;/code&gt;&lt;/strong&gt; — for each kid, check with every other kid.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  🧩 Exercise 5: Magic Box 📦
&lt;/h2&gt;

&lt;p&gt;You have a &lt;strong&gt;sorted&lt;/strong&gt; list of stickers. You want to find "Unicorn" using binary search.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;find_unicorn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;stickers&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;left&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;right&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;stickers&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
    &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="n"&gt;left&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="n"&gt;right&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;mid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;left&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;right&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;stickers&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;mid&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Unicorn&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;
        &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;stickers&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;mid&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Unicorn&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;left&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;mid&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
        &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;right&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;mid&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  ❓ Time complexity?
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;✅ &lt;strong&gt;Answer: &lt;code&gt;O(log n)&lt;/code&gt;&lt;/strong&gt; — cut the box in half each time!&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  ✨ Challenge Yourself:
&lt;/h2&gt;

&lt;p&gt;Try to guess the Big O for these:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Reversing a list of &lt;code&gt;n&lt;/code&gt; items&lt;/li&gt;
&lt;li&gt;Adding an item to a dictionary&lt;/li&gt;
&lt;li&gt;Looping twice one after the other (not nested)&lt;/li&gt;
&lt;li&gt;Creating all possible pairs in a list&lt;/li&gt;
&lt;li&gt;Looping inside a loop inside a loop (3 levels!)&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Big-O Time Complexities Cheat Sheet
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Category&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Operation / Pattern&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Time Complexity&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Arrays&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Traversal, updates&lt;/td&gt;
&lt;td&gt;O(n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Merge Sort&lt;/td&gt;
&lt;td&gt;O(n log n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Quick Sort (average)&lt;/td&gt;
&lt;td&gt;O(n log n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Quick Sort (worst case)&lt;/td&gt;
&lt;td&gt;O(n²)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Binary Search&lt;/td&gt;
&lt;td&gt;O(log n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Two-pointer / Sliding Window&lt;/td&gt;
&lt;td&gt;O(n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Prefix Sum construction&lt;/td&gt;
&lt;td&gt;O(n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Strings&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Reverse / Palindrome check&lt;/td&gt;
&lt;td&gt;O(n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Hashmap-based Anagram check&lt;/td&gt;
&lt;td&gt;O(n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Sorting-based Anagram check&lt;/td&gt;
&lt;td&gt;O(n log n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Linked List&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Reverse (iterative / recursive)&lt;/td&gt;
&lt;td&gt;O(n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Detect Cycle (Floyd’s)&lt;/td&gt;
&lt;td&gt;O(n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Merge Two Sorted Lists&lt;/td&gt;
&lt;td&gt;O(n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Find Middle Node&lt;/td&gt;
&lt;td&gt;O(n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Stack / Queue&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Push / Pop / Enqueue / Dequeue&lt;/td&gt;
&lt;td&gt;O(1)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Valid Parentheses&lt;/td&gt;
&lt;td&gt;O(n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Next Greater Element (Monotonic Stack)&lt;/td&gt;
&lt;td&gt;O(n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Hashing&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Insert / Search / Delete (average)&lt;/td&gt;
&lt;td&gt;O(1)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Count Frequencies&lt;/td&gt;
&lt;td&gt;O(n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Subarray with Sum / No Repeats&lt;/td&gt;
&lt;td&gt;O(n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Recursion / Backtracking&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Subsets / Permutations&lt;/td&gt;
&lt;td&gt;O(2^n * n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Trees (Binary)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Traversals (Inorder / Pre / Post / Level)&lt;/td&gt;
&lt;td&gt;O(n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Height, LCA, Validate BST&lt;/td&gt;
&lt;td&gt;O(n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Heaps&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Insert / Delete (Min / Max heap)&lt;/td&gt;
&lt;td&gt;O(log n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Build heap (heapify array)&lt;/td&gt;
&lt;td&gt;O(n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Dynamic Programming&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;0/1 Knapsack&lt;/td&gt;
&lt;td&gt;O(n * W)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Fibonacci (memoized)&lt;/td&gt;
&lt;td&gt;O(n)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Longest Common Subsequence (LCS)&lt;/td&gt;
&lt;td&gt;O(n * m)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Graphs&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;DFS / BFS traversal&lt;/td&gt;
&lt;td&gt;O(V + E)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Detect Cycle (undirected)&lt;/td&gt;
&lt;td&gt;O(V + E)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Topological Sort&lt;/td&gt;
&lt;td&gt;O(V + E)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

</description>
      <category>datastructures</category>
      <category>algorithms</category>
      <category>interview</category>
      <category>python</category>
    </item>
    <item>
      <title>Mastering Development Craftsmanship: A Comprehensive Guide to Essential Coding Practices</title>
      <dc:creator>Ankush Singh Gandhi</dc:creator>
      <pubDate>Wed, 28 Feb 2024 01:08:04 +0000</pubDate>
      <link>https://dev.to/ankushsinghgandhi/mastering-development-craftsmanship-a-comprehensive-guide-to-essential-coding-practices-3bhh</link>
      <guid>https://dev.to/ankushsinghgandhi/mastering-development-craftsmanship-a-comprehensive-guide-to-essential-coding-practices-3bhh</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Welcome to the world of software development, where coding excellence is just the starting point. To truly thrive, developers must embrace a set of best practices that extend beyond functional code. In this comprehensive guide, we will explore a myriad of essential topics that every developer should focus on to build high-quality, maintainable, and efficient software.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcfnoija49twkavcoqa7z.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcfnoija49twkavcoqa7z.gif" alt=" " width="480" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1) Continuous Integration and Continuous Deployment (CICD)🔽
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Implement tools like Jenkins or GitHub Actions for automated build, test, and deployment processes.&lt;/li&gt;
&lt;li&gt;Accelerate development cycles by reducing manual intervention and minimizing the risk of errors.&lt;/li&gt;
&lt;li&gt;CI/CD ensures changes are automatically tested and deployed in web applications, promoting collaboration.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2) Style Guide🔽
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Follow coding style guides like PEP 8 for Python or Airbnb JavaScript Style Guide.&lt;/li&gt;
&lt;li&gt;Consistent coding style enhances readability and maintainability.&lt;/li&gt;
&lt;li&gt;Adherence to a style guide promotes code consistency across the entire codebase.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3) Document Code🔽
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Utilize inline comments or tools like Sphinx and Javadoc for clear and concise documentation.&lt;/li&gt;
&lt;li&gt;Documentation aids in understanding, maintaining, and extending code effectively.&lt;/li&gt;
&lt;li&gt;Documenting REST API endpoints facilitates integration and helps in creating comprehensive API documentation.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4) Directory Structure🔽
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Establish an organized directory structure for a well-maintained codebase.&lt;/li&gt;
&lt;li&gt;Logical and consistent structure facilitates scalability and collaboration.&lt;/li&gt;
&lt;li&gt;Group templates, static files, and views in separate directories for enhanced code readability in frameworks like Django.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5) Variable Naming🔽
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Choose meaningful and descriptive variable names for improved readability.&lt;/li&gt;
&lt;li&gt;Descriptive names reduce ambiguity and help developers understand the intent behind each variable.&lt;/li&gt;
&lt;li&gt;Examples: &lt;code&gt;userInput&lt;/code&gt;, &lt;code&gt;totalRevenue&lt;/code&gt;, &lt;code&gt;customerName&lt;/code&gt; instead of &lt;code&gt;cname&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  6) Comments🔽
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Strive for self-explanatory code, but use comments for additional context.&lt;/li&gt;
&lt;li&gt;Comments should be concise, accurate, and focused on explaining the "why" rather than the "what."&lt;/li&gt;
&lt;li&gt;Commenting on complex algorithms or implementation choices enhances code clarity.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  7) Justified File Names🔽
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Use intuitive file names that reflect the content within, such as &lt;code&gt;UserCard.jsx&lt;/code&gt; or &lt;code&gt;apiService.js&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Meaningful file names contribute to overall code organization and facilitate navigation.&lt;/li&gt;
&lt;li&gt;File names should not be arbitrary; they should provide a roadmap for fellow developers.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  8) Keep it DRY (Don't Repeat Yourself)🔽
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Reduce redundancy in code by encapsulating reusable logic in functions, classes, or modules.&lt;/li&gt;
&lt;li&gt;DRY improves maintainability, consistency, and reduces the chance of errors.&lt;/li&gt;
&lt;li&gt;Create utility functions for common calculations to ensure consistency.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  9) KISS (Keep It Simple, Stupid)🔽
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Strive for straightforward solutions that are easy to understand and maintain.&lt;/li&gt;
&lt;li&gt;Choosing a simple, well-designed solution over unnecessary complexity enhances collaboration.&lt;/li&gt;
&lt;li&gt;Opt for straightforward algorithms to improve readability and reduce the likelihood of introducing bugs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  10) Version Control🔽
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Proper use of version control systems like Git is crucial for collaborative development.&lt;/li&gt;
&lt;li&gt;Adopt branching strategies like Git Flow and follow commit best practices for a well-organized version history.&lt;/li&gt;
&lt;li&gt;Resolve merge conflicts promptly and communicate changes effectively for a coherent version control history.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  11) Testing🔽
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Implement comprehensive testing, including unit tests, integration tests, and end-to-end tests.&lt;/li&gt;
&lt;li&gt;Use tools like Jest for JavaScript or pytest for Python to ensure thorough test coverage.&lt;/li&gt;
&lt;li&gt;A robust test suite acts as a safety net, catching bugs early and providing confidence for code changes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  12) Code Reviews🔽
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Conduct effective code reviews with constructive feedback to maintain code quality.&lt;/li&gt;
&lt;li&gt;Automated tools like linters complement manual code reviews, enhancing overall code quality.&lt;/li&gt;
&lt;li&gt;Use a code review checklist to ensure thorough and consistent reviews across the team.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  13) Security Best Practices🔽
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Implement input validation, encryption, and regular security scanning to safeguard against vulnerabilities.&lt;/li&gt;
&lt;li&gt;Prioritize security in the development lifecycle for building robust and secure applications.&lt;/li&gt;
&lt;li&gt;Validate user inputs to prevent common security threats like SQL injection.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  14) Performance Optimization🔽
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Profile code using tools like cProfile or Chrome DevTools to identify bottlenecks.&lt;/li&gt;
&lt;li&gt;Implement caching and select efficient algorithms for a responsive and scalable application.&lt;/li&gt;
&lt;li&gt;Caching frequently accessed data reduces the load on databases and improves overall performance.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  15) Error Handling🔽
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Implement graceful error handling, logging, and monitoring with tools like Sentry or New Relic.&lt;/li&gt;
&lt;li&gt;Maintain a robust error-handling strategy for enhanced user experience and simplified debugging.&lt;/li&gt;
&lt;li&gt;Logging detailed error messages and stack traces aids in diagnosing issues quickly.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  16) Dependency Management🔽
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Effectively manage project dependencies for stability and security.&lt;/li&gt;
&lt;li&gt;Specify version ranges, conduct security scanning, and consider license compatibility with tools like npm audit or FOSSA.&lt;/li&gt;
&lt;li&gt;Regularly update dependencies to address security vulnerabilities for a secure codebase.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  17) Code Refactoring🔽
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Regularly refactor code to improve maintainability.&lt;/li&gt;
&lt;li&gt;Identify code smells, apply refactoring techniques, and maintain test coverage during refactoring.&lt;/li&gt;
&lt;li&gt;Tools like SonarQube assist in identifying areas for improvement.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  18) Cross-Browser Compatibility🔽
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Ensure web applications work across different browsers through comprehensive browser testing.&lt;/li&gt;
&lt;li&gt;Use polyfills and responsive design techniques with tools like BrowserStack and Modernizr.&lt;/li&gt;
&lt;li&gt;Testing on different browsers and devices guarantees a consistent user experience.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  19) Accessibility🔽
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Create accessible software using semantic HTML and ensuring keyboard accessibility.&lt;/li&gt;
&lt;li&gt;Test with accessibility tools like Axe or Lighthouse for inclusivity.&lt;/li&gt;
&lt;li&gt;Providing alternative text for images and ensuring proper focus order enhances accessibility.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  20) Build Automation🔽
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Automate the build process with tools like Gradle, Maven, or webpack.&lt;/li&gt;
&lt;li&gt;Integrate build automation into continuous integration workflows for standardized development processes.&lt;/li&gt;
&lt;li&gt;Automation streamlines tasks like compilation, minification, and packaging for a reliable build pipeline.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  ❤️ SPONSER ME ON GITHUB ❤️
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://github.com/sponsors/AnkushSinghGandhi" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa08qh0s78ncyxcuse3sz.png" alt=" " width="799" height="309"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;By incorporating these essential coding practices into your development workflow, you are not just writing code; you are crafting software that is scalable, maintainable, and efficient. Continuously improving and adhering to these practices will not only benefit your current projects but will also elevate your skills as a proficient and sought-after developer in the ever-evolving landscape of software development. Remember, the journey to mastery is ongoing, and each best practice adopted is a step towards becoming a true development craftsman.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Python Roadmap 2024 🐍</title>
      <dc:creator>Ankush Singh Gandhi</dc:creator>
      <pubDate>Fri, 09 Feb 2024 18:37:35 +0000</pubDate>
      <link>https://dev.to/ankushsinghgandhi/from-basics-to-mastery-python-development-roadmap-2024-4c1h</link>
      <guid>https://dev.to/ankushsinghgandhi/from-basics-to-mastery-python-development-roadmap-2024-4c1h</guid>
      <description>&lt;h1&gt;
  
  
  Python Developer Roadmap 2024
&lt;/h1&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;📌Step 1: Introduction🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Introduction to Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Brief history and origin of Python&lt;/li&gt;
&lt;li&gt;Guido van Rossum's role in Python's development&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Python Environment Setup&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Installation of Python using different methods (Anaconda, virtual environments)&lt;/li&gt;
&lt;li&gt;Setting up an Integrated Development Environment (IDE) like VS Code, PyCharm&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Features of Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Dynamic typing, simplicity, readability&lt;/li&gt;
&lt;li&gt;High-level programming language features&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Basic Python Syntax&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Variables, data types, and expressions&lt;/li&gt;
&lt;li&gt;Understanding indentation and white space&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Statements, Indentation, and Comments&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Proper use of indentation&lt;/li&gt;
&lt;li&gt;Comments and their importance&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;7 Reasons to Learn Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Versatility, community support, ease of learning&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Benefits and Limitations of Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Use cases, strengths, and potential drawbacks&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A Career in Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Job roles, industries, and demand for Python developers&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Python vs Other Languages (Java, Scala, R)&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Comparison in terms of syntax, performance, and use cases&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Applications of Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Web development, data science, artificial intelligence, automation&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compilers and Interpreters Available&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;CPython, Jython, IronPython, PyPy&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Getting to Know the Python Interpreter&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Basics of running Python code in the interpreter&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flavors of Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;MicroPython, CircuitPython, IronPython&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 2: Basics🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Python Variables&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Naming conventions, variable assignment&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Python Variable Scope&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Local, global, and nonlocal scopes&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data Types in Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Integers, floats, strings, booleans&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Python Operators&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Arithmetic, comparison, logical operators&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bitwise Operators&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Binary manipulation&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Comparison Operators&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Detailed understanding of equality, inequality&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Operator Precedence&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Order of execution in complex expressions&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ternary Operators&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Shorthand for conditional statements&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Python Decision Making&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;if&lt;/code&gt;, &lt;code&gt;elif&lt;/code&gt;, &lt;code&gt;else&lt;/code&gt; statements&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Switch-case in Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Implementing switch-case using dictionaries&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Loops in Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;for&lt;/code&gt; and &lt;code&gt;while&lt;/code&gt; loops&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Numbers with Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Math module and its functions&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Python Strings&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;String manipulation, indexing, slicing&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;String Formatters and Escape Sequences&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Formatted strings, escape characters&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;String Functions and Operations&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Common string methods&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The &lt;code&gt;repr()&lt;/code&gt; Function&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Understanding the &lt;code&gt;repr()&lt;/code&gt; function and its use&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 3: Data Structures🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Python Lists&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;List operations, methods, and built-in functions&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;List Comprehension&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Creating concise lists in a single line&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The &lt;code&gt;array&lt;/code&gt; Module&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Numeric arrays in Python&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Python Tuples&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Immutable sequences and use cases&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The &lt;code&gt;zip()&lt;/code&gt; Function&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Merging multiple iterables&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tuples vs Lists&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Choosing the right data structure&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Slicing in Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Extracting portions of sequences&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Binary Sequence Types: &lt;code&gt;bytes&lt;/code&gt;, &lt;code&gt;bytearray&lt;/code&gt;, &lt;code&gt;memoryview&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Dealing with binary data&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dictionaries in Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Key-value pairs, dictionary methods&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sets in Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Unordered collections with unique elements&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Booleans in Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Logical data type&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  ❤️ SPONSER ME ON GITHUB ❤️
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://github.com/sponsors/AnkushSinghGandhi" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa08qh0s78ncyxcuse3sz.png" alt=" " width="799" height="309"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 4: Functional Programming🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Functions in Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Defining functions, arguments, return values&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lambda Expressions&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Anonymous functions for concise code&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Function Arguments&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Positional arguments, keyword arguments, default values&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Function Recursion&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Solving problems using recursive functions&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Built-in Functions&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Commonly used built-in functions&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;range()&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Generating sequences of numbers&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;eval()&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Evaluating dynamically created expressions&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;exec()&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Executing dynamic Python code&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Decorators in Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Enhancing functions with decorators&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Closure in Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Understanding closures and their applications&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Working with &lt;code&gt;itertools&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Powerful functions for iterators&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 5: Modules and Packages🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Modules&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Creating and importing modules&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;Counter&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Counting occurrences in sequences&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;Defaultdict&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Default values for missing keys in dictionaries&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;OrderedDict&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Preserving order of dictionary items&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;namedtuple&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Creating named tuples for clearer code&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Numeric Modules: &lt;code&gt;math&lt;/code&gt;, &lt;code&gt;decimal&lt;/code&gt;, &lt;code&gt;random&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Mathematical operations, precision, random number generation&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;sys&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Accessing Python interpreter internals&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generating Random Numbers&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Using &lt;code&gt;random&lt;/code&gt; module&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Packages&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Creating and structuring packages&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;pip&lt;/code&gt; and PyPI&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Package management and external libraries&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Modules vs Packages&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Differences and use cases&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 6: Miscellany🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Regular Expressions with Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Pattern matching and manipulation&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multithreading in Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Parallel execution for improved performance&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Working with Date and Time&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;datetime&lt;/code&gt; module, formatting, time zones&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Namespace and Scope&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Understanding variable scope and namespaces&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Virtual Environments and Packages&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Managing dependencies with virtual environments&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The &lt;code&gt;datetime&lt;/code&gt; Module (Part I and II)&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;In-depth exploration of date and time functions&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The &lt;code&gt;calendar&lt;/code&gt; Module&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Working with calendars and scheduling&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Python Debugger (&lt;code&gt;pdb&lt;/code&gt;)&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Debugging tools and techniques&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CGI Programming with Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Basics of Common Gateway Interface (CGI)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Understanding &lt;code&gt;urllib&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Working with URLs and web requests&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Terminologies in Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Glossary of key Python terms&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What's new in Python 3.7?&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Updates and features introduced in Python 3.7&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deep Copy vs Shallow Copy&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Differences and use cases&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Assert Statements in Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Using assertions for testing&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pretty-Printing with &lt;code&gt;pprint&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Improved printing for complex data structures&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Step 7: Object-Oriented Programming🔽
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Methods in Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Defining methods within classes&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Methods vs Functions&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Differences and use cases&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Magic (Dunder) Methods&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Special methods for customization&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Classes in Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Creating and using classes&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Abstract class&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Defining abstract classes for inheritance&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Concrete class&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Instantiating concrete classes&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Python Objects&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Instances, attributes, and methods&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inheritance in Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Extending classes and reusing code&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multiple Inheritance&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Managing complexity with multiple base classes&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Python Operator Overloading&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Customizing behavior for operators&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generators in Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Lazy evaluation for memory-efficient code&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Iterators in Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Creating iterable objects&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generators vs Iterators&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Differences and use cases&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Serialization with &lt;code&gt;pickle&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Serializing and deserializing Python objects&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The &lt;code&gt;property&lt;/code&gt; Decorator&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Creating read-only and calculated attributes&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsvb50jcxukyfwzb17omk.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsvb50jcxukyfwzb17omk.gif" alt=" " width="500" height="344"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 8: File Handling🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Reading and Writing Files&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Opening, reading, and writing to files&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Managing Directories and Files&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Operations on directories and file paths&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The &lt;code&gt;os&lt;/code&gt; Module&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Interacting with the operating system&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The &lt;code&gt;shutil&lt;/code&gt; Module&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;High-level file operations&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Copying Files with Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Copying files and directories&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Renaming Files with Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Changing file names programmatically&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zipping Files with Python&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Creating and extracting zip archives&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 9: Exception Handling🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Errors and Exceptions&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Different types of errors in Python&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Exception Handling&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Using &lt;code&gt;try&lt;/code&gt;, &lt;code&gt;except&lt;/code&gt;, &lt;code&gt;finally&lt;/code&gt; blocks&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Testing with &lt;code&gt;unittest&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Unit testing for robust code&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 10: Important Libraries🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Python Libraries&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Overview of key Python libraries and their applications&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;NumPy&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Numerical computing in Python&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;SciPy&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Scientific computing with additional functionality&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;pandas&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Data manipulation and analysis&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Visualizing with &lt;code&gt;matplotlib&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Creating various types of plots and visualizations&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;PyQT&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Developing desktop applications with Python&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;PyGTK&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;GTK+ toolkit integration for Python&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;PyTorch&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Deep learning library&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;Altair&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Declarative statistical visualization library&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Web Scraping with &lt;code&gt;Scrapy&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Extracting data from websites&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data access mechanisms&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Connecting to databases, data storage&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;Spacy&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Natural Language Processing (NLP) library&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;pygame&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Game development with Python&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;tkinter&lt;/code&gt;&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;GUI development toolkit&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  ❤️ SPONSER ME ON GITHUB ❤️
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://github.com/sponsors/AnkushSinghGandhi" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa08qh0s78ncyxcuse3sz.png" alt=" " width="799" height="309"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 11: Other Functionality🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;XML Processing&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reading and writing XML files&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Sending Mail with Python&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sending emails programmatically&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Networking&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Basics of network programming&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Processing Images&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Working with images in Python&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;GUI Programming&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Developing graphical user interfaces&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Forensics&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Basics of digital forensics with Python&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Extensions to Python&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Exploring Python extension modules&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Tools&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Popular Python development tools and IDEs&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Accessing the Database&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Database connectivity and querying&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Logging with Python&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Implementing logging for debugging and monitoring&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Descriptors&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Understanding descriptors in Python&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Buffering Protocol&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Managing input/output buffering&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;WSGI Protocol&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Web Server Gateway Interface for web applications&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Context Managers&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Implementing and using context managers&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Design Patterns&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Common design patterns in Python&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Async.io&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Asynchronous I/O for concurrent programming&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Metaprogramming&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Techniques for writing code that manipulates code&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Project-Based Learning&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Introduce project-based learning with practical Python projects.&lt;/li&gt;
&lt;li&gt;Provide examples in web development, data analysis, and machine learning.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Best Practices and Code Style&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Discuss Python best practices and adherence to coding standards.&lt;/li&gt;
&lt;li&gt;Emphasize the importance of following PEP 8.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Testing and Test-Driven Development (TDD)&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Introduce testing principles and the use of unittest and pytest.&lt;/li&gt;
&lt;li&gt;Encourage the adoption of test-driven development.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Continuous Integration and Deployment (CI/CD)&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Guide developers on setting up CI/CD pipelines using Jenkins, Travis CI, or GitHub Actions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Containerization and Docker&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Explore containerization with Docker for Python applications.&lt;/li&gt;
&lt;li&gt;Cover Docker images, Docker Compose, and container orchestration.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Web Development Frameworks Beyond Django and Flask&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Explore other web development frameworks like FastAPI, Tornado, and Pyramid.&lt;/li&gt;
&lt;li&gt;Provide tutorials on building applications with these frameworks.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Database Connectivity and ORM&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Extend the section on database access to include ORM with SQLAlchemy.&lt;/li&gt;
&lt;li&gt;Discuss connecting to various databases and performing CRUD operations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Advanced Topics in Data Science and Machine Learning&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Dive deeper into advanced topics like deep learning with TensorFlow or PyTorch.&lt;/li&gt;
&lt;li&gt;Explore NLP with spaCy and reinforcement learning.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Cloud Services and Deployment&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Guide developers on deploying Python applications to cloud platforms (AWS, Azure, Google Cloud).&lt;/li&gt;
&lt;li&gt;Discuss serverless computing, container orchestration, and cloud-native development.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Security Best Practices&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Emphasize security best practices for Python applications.&lt;/li&gt;
&lt;li&gt;Discuss common vulnerabilities, secure coding techniques, and code analysis tools.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Performance Optimization&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Provide tips and techniques for optimizing Python application performance.&lt;/li&gt;
&lt;li&gt;Discuss profiling tools, caching strategies, and code optimization.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Collaboration and Version Control&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Discuss collaboration tools like Git and platforms such as GitHub or GitLab.&lt;/li&gt;
&lt;li&gt;Explain branching strategies, pull requests, and code review best practices.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Community Engagement&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Encourage readers to engage with the Python community.&lt;/li&gt;
&lt;li&gt;Discuss participating in open-source projects, attending conferences, and joining forums.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Interview Preparation&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Include a section on preparing for Python developer interviews.&lt;/li&gt;
&lt;li&gt;Provide common interview questions, coding challenges, and tips for technical interviews.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Updates on Latest Python Releases&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Regularly update the blog with information on the latest Python releases.&lt;/li&gt;
&lt;li&gt;Highlight new features, improvements, and changes in best practices.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 12: Popular Frameworks🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Selenium&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Automation testing and web scraping&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Web Frameworks&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Overview of various web frameworks

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Django&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Full-stack web development framework&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flask&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Lightweight web framework for small to medium-sized applications&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 13: Specializations🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Learn advanced Data Structures and Algorithms&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Advanced data structures (trees, graphs), algorithmic complexity&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Metaprogramming&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Advanced techniques for code manipulation&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Blockchain&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Understanding and implementing blockchain concepts&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quantum Programming&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Basics of quantum computing and programming&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Artificial Intelligence &amp;amp; Deep Learning&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Neural networks, deep learning frameworks&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Machine Learning&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Machine learning algorithms, model training&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data Science&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Exploratory data analysis, machine learning in data science&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ethical Hacking&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Cybersecurity, ethical hacking techniques&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 14: Continuous Learning🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Stay updated with the latest Python versions and features&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Regularly check Python official documentation and release notes&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Contribute to open-source projects&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Collaborate with the Python community on GitHub&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Join developer communities&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Participate in forums, attend meetups and conferences&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Attend conferences and webinars&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Stay informed about industry trends and best practices&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read Python-related blogs and articles&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Follow reputable sources for Python-related content&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 15: Soft Skills Development🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Emphasize the importance of soft skills for Python developers.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Effective communication, teamwork, and problem-solving skills&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Discuss collaboration within development teams.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Resources for improving teamwork and interpersonal skills&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Provide resources for soft skills improvement.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Books, courses, and workshops for enhancing communication and collaboration&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Encourage community involvement.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Engaging with local tech communities and online forums&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 16: Version Control Systems Beyond Git🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Introduce other version control systems.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Mercurial, SVN, and their use cases&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Discuss strengths and weaknesses.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;When to prefer each version control system&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explore alternative workflows.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Diverging and converging strategies in version control&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 17: Python Design Patterns🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Dive into common design patterns in Python.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Singleton, Factory, Observer, and more&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Provide examples and use cases.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Practical applications of each design pattern&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Discuss best practices in design.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Creating scalable and maintainable code&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 18: Advanced Web Development🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Explore advanced web development concepts.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Asynchronous web frameworks like FastAPI and Tornado&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Introduce WebSocket communication.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Real-time communication in web applications&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Discuss server-sent events.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Implementing real-time updates in web applications&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 19: Real-time Applications with Python🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Explore building real-time applications.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Technologies like WebSockets and asynchronous programming&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Discuss frameworks suitable for real-time use cases.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Applications in chat, notifications, and live updates&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 20: Microservices Architecture🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Discuss the principles of microservices architecture.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Decoupling and scalability in modern applications&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explore Python frameworks for microservices.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Flask, FastAPI, and tools for building microservices&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Discuss containerization and orchestration.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Docker, Kubernetes, and managing microservices&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 21: DevOps Practices🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Introduce DevOps practices relevant to Python development.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Infrastructure as code (IaC), configuration management&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Discuss continuous deployment.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Implementing CI/CD pipelines with Jenkins, Travis CI, or GitHub Actions&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 22: Advanced Data Processing🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Dive into advanced data processing techniques.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Distributed computing with Apache Spark and Dask&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explore big data solutions.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Handling large datasets efficiently&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 23: IoT (Internet of Things) with Python🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Explore using Python for IoT projects.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Connecting devices, data processing, and visualization&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Discuss IoT libraries and frameworks.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;MicroPython, CircuitPython, and IoT platforms&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 24: Quantum Computing with Python🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Provide an introduction to quantum computing principles.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Basic concepts and principles of quantum programming&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explore Python libraries for quantum programming.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Qiskit, Cirq, and tools for quantum computing&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 25: Python for Automation and Robotics🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Discuss Python's role in automation and robotics.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Libraries and frameworks for controlling robots and automating tasks&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explore real-world applications.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Building automation scripts and controlling robots with Python&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 26: Accessibility in Python Applications🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Highlight the importance of creating accessible software.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Principles of accessibility and inclusivity&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Discuss best practices for accessibility in Python applications.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Implementing accessible user interfaces and content&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 27: Contributing to Open Source🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Guide developers on how to contribute to open-source Python projects.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Finding projects, submitting pull requests, and collaborating&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Discuss the benefits of contributing to the community.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Skill development, networking, and giving back&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 28: Building a Portfolio🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Offer guidance on building a strong portfolio for Python developers.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Showcasing projects, contributions, and skills effectively&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Discuss the importance of a portfolio in job applications.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Attracting employers and demonstrating expertise&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 29: Python Career Paths🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Explore various career paths for Python developers.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Roles in web development, data science, machine learning, DevOps, etc.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Discuss specialization and niche areas.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Choosing a career path based on interests and skills&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Step 30: Staying Current in Tech🔽&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Provide tips on staying updated with the latest trends and technologies.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Subscribing to newsletters, following industry blogs, and participating in online communities&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Discuss the importance of continuous learning.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Embracing a mindset of lifelong learning for career success&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  ❤️ SPONSER ME ON GITHUB ❤️
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://github.com/sponsors/AnkushSinghGandhi" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa08qh0s78ncyxcuse3sz.png" alt=" " width="799" height="309"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Remember to adapt this roadmap based on your interests and career goals. The world of technology is constantly evolving, so staying curious and embracing a mindset of continuous learning is crucial for success. Happy coding!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>python</category>
      <category>devops</category>
      <category>github</category>
    </item>
    <item>
      <title>Flutter With Python 😮😮</title>
      <dc:creator>Ankush Singh Gandhi</dc:creator>
      <pubDate>Fri, 09 Feb 2024 17:25:40 +0000</pubDate>
      <link>https://dev.to/ankushsinghgandhi/building-cross-platform-apps-with-flutter-and-python-a-short-guide-using-flet-epa</link>
      <guid>https://dev.to/ankushsinghgandhi/building-cross-platform-apps-with-flutter-and-python-a-short-guide-using-flet-epa</guid>
      <description>&lt;p&gt;In the dynamic landscape of mobile app development, the combination of Flutter and Python has gained considerable traction. This synergy allows developers to create cross-platform applications that marry the expressive UI capabilities of Flutter with the versatility and power of Python. In this guide, we'll delve into the integration of Flutter and Python using the Flet library, providing a detailed walkthrough from installation to creating a sample app and exploring more advanced scenarios.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbp3v3knl397jct9uge54.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbp3v3knl397jct9uge54.gif" alt=" " width="500" height="278"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction to Flutter and Python Integration
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. &lt;strong&gt;Flutter: A Brief Overview:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What is Flutter?&lt;/strong&gt; Flutter is an open-source UI software development toolkit created by Google. It enables developers to build natively compiled applications for mobile, web, and desktop from a single codebase.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Why Flutter?&lt;/strong&gt; Flutter is known for its expressive UI, fast development cycles, and the ability to create beautiful, performant applications across multiple platforms.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. &lt;strong&gt;Python in Mobile App Development:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Why Python?&lt;/strong&gt; Python is renowned for its readability, ease of learning, and extensive libraries. Integrating Python into mobile app development allows developers to leverage its capabilities for data processing, machine learning, and more.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Getting Started with Flet
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. &lt;strong&gt;What is Flet?&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Flet is a Python package that acts as a bridge between Flutter and Python. It facilitates seamless communication, enabling data exchange and method invocation.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. &lt;strong&gt;Installing Flet:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Use pip to install Flet in your Python environment:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt; pip &lt;span class="nb"&gt;install &lt;/span&gt;flet
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. &lt;strong&gt;Setting Up a Flutter Project:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Install Flutter by following the official documentation: &lt;a href="https://flutter.dev/docs/get-started/install" rel="noopener noreferrer"&gt;Flutter Installation Guide&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a new Flutter project using:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt; flutter create my_flutter_project
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. &lt;strong&gt;Connecting Flutter with Python using Flet:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Initialize Flet in your Flutter project by adding the Flet dependency in your &lt;code&gt;pubspec.yaml&lt;/code&gt; file:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt; &lt;span class="na"&gt;dependencies&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
   &lt;span class="na"&gt;flet&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;^0.2.1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Creating a Sample Flutter-Python App
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. &lt;strong&gt;Building the Flutter UI:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Create a simple Flutter UI with a button that triggers a Python function.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Example Flutter code (&lt;code&gt;lib/main.dart&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight dart"&gt;&lt;code&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="s"&gt;'package:flutter/material.dart'&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
 &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="s"&gt;'package:flet/flet.dart'&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

 &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
   &lt;span class="n"&gt;runApp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;MyApp&lt;/span&gt;&lt;span class="p"&gt;());&lt;/span&gt;
 &lt;span class="p"&gt;}&lt;/span&gt;

 &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;MyApp&lt;/span&gt; &lt;span class="kd"&gt;extends&lt;/span&gt; &lt;span class="n"&gt;StatelessWidget&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
   &lt;span class="nd"&gt;@override&lt;/span&gt;
   &lt;span class="n"&gt;Widget&lt;/span&gt; &lt;span class="n"&gt;build&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;BuildContext&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
     &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;MaterialApp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
       &lt;span class="nl"&gt;home:&lt;/span&gt; &lt;span class="n"&gt;MyHomePage&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
     &lt;span class="p"&gt;);&lt;/span&gt;
   &lt;span class="p"&gt;}&lt;/span&gt;
 &lt;span class="p"&gt;}&lt;/span&gt;

 &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;MyHomePage&lt;/span&gt; &lt;span class="kd"&gt;extends&lt;/span&gt; &lt;span class="n"&gt;StatelessWidget&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
   &lt;span class="nd"&gt;@override&lt;/span&gt;
   &lt;span class="n"&gt;Widget&lt;/span&gt; &lt;span class="n"&gt;build&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;BuildContext&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
     &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;Scaffold&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
       &lt;span class="nl"&gt;appBar:&lt;/span&gt; &lt;span class="n"&gt;AppBar&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
         &lt;span class="nl"&gt;title:&lt;/span&gt; &lt;span class="n"&gt;Text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;'Flutter with Python'&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
       &lt;span class="p"&gt;),&lt;/span&gt;
       &lt;span class="nl"&gt;body:&lt;/span&gt; &lt;span class="n"&gt;Center&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
         &lt;span class="nl"&gt;child:&lt;/span&gt; &lt;span class="n"&gt;ElevatedButton&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
           &lt;span class="nl"&gt;onPressed:&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
             &lt;span class="n"&gt;Flet&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;callPythonFunction&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;'my_python_function'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;'param'&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s"&gt;'Hello from Flutter!'&lt;/span&gt;&lt;span class="p"&gt;});&lt;/span&gt;
           &lt;span class="p"&gt;},&lt;/span&gt;
           &lt;span class="nl"&gt;child:&lt;/span&gt; &lt;span class="n"&gt;Text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;'Invoke Python Function'&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
         &lt;span class="p"&gt;),&lt;/span&gt;
       &lt;span class="p"&gt;),&lt;/span&gt;
     &lt;span class="p"&gt;);&lt;/span&gt;
   &lt;span class="p"&gt;}&lt;/span&gt;
 &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. &lt;strong&gt;Handling Python Function in Flutter:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Implement the corresponding Python function using Flet.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Example Python code (&lt;code&gt;my_python_script.py&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt; &lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;flet&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Flet&lt;/span&gt;

 &lt;span class="nd"&gt;@Flet.register_function&lt;/span&gt;
 &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;my_python_function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;param&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
     &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Received from Flutter: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;param&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
     &lt;span class="c1"&gt;# Add your Python logic here
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. &lt;strong&gt;Running the Flutter App:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Launch your Flutter app using:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt; flutter run
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. &lt;strong&gt;Running the Python Script:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Run your Python script using:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt; python my_python_script.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Advanced Integration: Using Python for Data Processing
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. &lt;strong&gt;Integrating Python Data Processing:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Leverage Python's data processing capabilities within your Flutter app.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Example Python code (&lt;code&gt;my_data_processing.py&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt; &lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;flet&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Flet&lt;/span&gt;

 &lt;span class="nd"&gt;@Flet.register_function&lt;/span&gt;
 &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;process_data&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
     &lt;span class="c1"&gt;# Add your data processing logic here
&lt;/span&gt;     &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;upper&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
     &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. &lt;strong&gt;Handling Data Processing in Flutter:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Modify your Flutter app to handle data processing using Python.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Example Flutter code (&lt;code&gt;lib/main.dart&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight dart"&gt;&lt;code&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;MyHomePage&lt;/span&gt; &lt;span class="kd"&gt;extends&lt;/span&gt; &lt;span class="n"&gt;StatelessWidget&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
   &lt;span class="kt"&gt;List&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;items&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;'apple'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;'banana'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;'orange'&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;

   &lt;span class="nd"&gt;@override&lt;/span&gt;
   &lt;span class="n"&gt;Widget&lt;/span&gt; &lt;span class="n"&gt;build&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;BuildContext&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
     &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;Scaffold&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
       &lt;span class="nl"&gt;appBar:&lt;/span&gt; &lt;span class="n"&gt;AppBar&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
         &lt;span class="nl"&gt;title:&lt;/span&gt; &lt;span class="n"&gt;Text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;'Flutter with Python'&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
       &lt;span class="p"&gt;),&lt;/span&gt;
       &lt;span class="nl"&gt;body:&lt;/span&gt; &lt;span class="n"&gt;Center&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
         &lt;span class="nl"&gt;child:&lt;/span&gt; &lt;span class="n"&gt;Column&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
           &lt;span class="nl"&gt;mainAxisAlignment:&lt;/span&gt; &lt;span class="n"&gt;MainAxisAlignment&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;center&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
           &lt;span class="nl"&gt;children:&lt;/span&gt; &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;Widget&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;[&lt;/span&gt;
             &lt;span class="n"&gt;ElevatedButton&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
               &lt;span class="nl"&gt;onPressed:&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="kd"&gt;async&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                 &lt;span class="kt"&gt;List&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kd"&gt;dynamic&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;processedData&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
                     &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;Flet&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;callPythonFunction&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;'process_data'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;'data'&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;});&lt;/span&gt;
                 &lt;span class="n"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;'Processed Data: &lt;/span&gt;&lt;span class="si"&gt;$processedData&lt;/span&gt;&lt;span class="s"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
               &lt;span class="p"&gt;},&lt;/span&gt;
               &lt;span class="nl"&gt;child:&lt;/span&gt; &lt;span class="n"&gt;Text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;'Process Data with Python'&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
             &lt;span class="p"&gt;),&lt;/span&gt;
           &lt;span class="p"&gt;],&lt;/span&gt;
         &lt;span class="p"&gt;),&lt;/span&gt;
       &lt;span class="p"&gt;),&lt;/span&gt;
     &lt;span class="p"&gt;);&lt;/span&gt;
   &lt;span class="p"&gt;}&lt;/span&gt;
 &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  ❤️ SPONSER ME ON GITHUB ❤️
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://github.com/sponsors/AnkushSinghGandhi" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa08qh0s78ncyxcuse3sz.png" alt=" " width="799" height="309"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Integrating Flutter with Python using the Flet library provides developers with a flexible and powerful solution for cross-platform development. From invoking Python functions to leveraging Python's data processing capabilities within your Flutter app, this integration opens up a world of possibilities. As you explore and apply these techniques in your projects, you'll find that the combination of Flutter and Python brings together the best of both worlds. Happy coding!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>tutorial</category>
      <category>python</category>
      <category>mobile</category>
    </item>
    <item>
      <title>Financial Data with Python 🤑🤑</title>
      <dc:creator>Ankush Singh Gandhi</dc:creator>
      <pubDate>Fri, 09 Feb 2024 16:59:25 +0000</pubDate>
      <link>https://dev.to/ankushsinghgandhi/mastering-global-data-feeds-websocket-api-with-python-for-real-time-financial-data-1bj3</link>
      <guid>https://dev.to/ankushsinghgandhi/mastering-global-data-feeds-websocket-api-with-python-for-real-time-financial-data-1bj3</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F17zpwdtyucetvh8c0i16.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F17zpwdtyucetvh8c0i16.gif" alt=" " width="500" height="204"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the fast-paced world of finance, having access to real-time market data is crucial for making informed decisions. Global Data Feeds (GDF) provides a powerful WebSocket API that enables developers to tap into a continuous stream of financial data. In this blog, we'll explore how to use the GDF WebSocket API with Python to fetch and process real-time financial information.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understanding Global Data Feeds WebSocket API
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. &lt;strong&gt;Introduction to Global Data Feeds:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Global Data Feeds Platform:&lt;/strong&gt; A comprehensive platform offering financial market data from various exchanges.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WebSocket API:&lt;/strong&gt; A real-time communication protocol for efficient and continuous data updates.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. &lt;strong&gt;Key Features of GDF WebSocket API:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Real-Time Price Updates:&lt;/strong&gt; Receive live updates on stock prices, indices, and other financial instruments.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Market Depth Information:&lt;/strong&gt; Access detailed market depth information for better analysis.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trade Execution Updates:&lt;/strong&gt; Stay informed about trade executions and transactions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Getting Started with Python and GDF WebSocket API
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. &lt;strong&gt;Setting Up Your GDF Account:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Register on GDF:&lt;/strong&gt; Sign up for an account on the Global Data Feeds platform.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;API Access Credentials:&lt;/strong&gt; Obtain API access credentials (API key, secret key).&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. &lt;strong&gt;Installing Required Python Libraries:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Use &lt;code&gt;pip&lt;/code&gt; to install necessary libraries:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt; pip &lt;span class="nb"&gt;install &lt;/span&gt;websocket-client requests
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. &lt;strong&gt;Connecting to GDF WebSocket API:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Use the &lt;code&gt;websocket-client&lt;/code&gt; library to establish a WebSocket connection.&lt;/li&gt;
&lt;li&gt;Implement authentication using your GDF API key.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;   &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;websocket&lt;/span&gt;
   &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;

   &lt;span class="c1"&gt;# Replace with your GDF API key
&lt;/span&gt;   &lt;span class="n"&gt;API_KEY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;your_api_key&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;on_message&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
       &lt;span class="c1"&gt;# Process incoming data as per your requirements
&lt;/span&gt;       &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;on_error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Error: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;on_close&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;close_status_code&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;close_msg&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Closed&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;on_open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="n"&gt;auth_payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;event&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;auth&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;apiKey&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;API_KEY&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
       &lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;auth_payload&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

   &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;__name__&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;__main__&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
       &lt;span class="n"&gt;ws_url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;wss://api.gdf.com/ws&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
       &lt;span class="n"&gt;ws&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;websocket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;WebSocketApp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ws_url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;on_message&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;on_message&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;on_error&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;on_error&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;on_close&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;on_close&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
       &lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;on_open&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;on_open&lt;/span&gt;
       &lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run_forever&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Exploring Real-Time Financial Data
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. &lt;strong&gt;Receiving Price Updates:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Subscribe to specific instruments to receive real-time price updates.&lt;/li&gt;
&lt;li&gt;Extract and process price information for analysis.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;on_open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="c1"&gt;# Subscribe to real-time updates for AAPL and MSFT stocks
&lt;/span&gt;       &lt;span class="n"&gt;subscribe_payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;event&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;subscribe&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ticker&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;AAPL&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;MSFT&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]}&lt;/span&gt;
       &lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;subscribe_payload&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

   &lt;span class="c1"&gt;# ...
&lt;/span&gt;
   &lt;span class="c1"&gt;# Process real-time price updates
&lt;/span&gt;   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;process_price_update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="n"&gt;instrument&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ticker&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;price&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Price Update for &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;instrument&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;: $&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;price&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. &lt;strong&gt;Accessing Market Depth Information:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Subscribe to market depth updates for a specific instrument.&lt;/li&gt;
&lt;li&gt;Extract and analyze market depth data for better insights.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;on_open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="c1"&gt;# Subscribe to market depth updates for AAPL stock
&lt;/span&gt;       &lt;span class="n"&gt;depth_subscribe_payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;event&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;subscribe&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ticker&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;AAPL&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;depth&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
       &lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;depth_subscribe_payload&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

   &lt;span class="c1"&gt;# ...
&lt;/span&gt;
   &lt;span class="c1"&gt;# Process market depth updates
&lt;/span&gt;   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;process_market_depth&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="n"&gt;instrument&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ticker&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="n"&gt;bids&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;bids&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="n"&gt;asks&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;asks&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Market Depth for &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;instrument&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; - Bids: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;bids&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;, Asks: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;asks&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. &lt;strong&gt;Handling Trade Execution Updates:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Subscribe to trade execution updates for a specific instrument.&lt;/li&gt;
&lt;li&gt;Capture and process trade execution data for timely information.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;on_open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="c1"&gt;# Subscribe to trade execution updates for AAPL stock
&lt;/span&gt;       &lt;span class="n"&gt;trade_subscribe_payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;event&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;subscribe&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ticker&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;AAPL&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;trades&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
       &lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;trade_subscribe_payload&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

   &lt;span class="c1"&gt;# ...
&lt;/span&gt;
   &lt;span class="c1"&gt;# Process trade execution updates
&lt;/span&gt;   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;process_trade_execution&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="n"&gt;instrument&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ticker&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;price&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="n"&gt;quantity&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;quantity&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Trade Executed for &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;instrument&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; - Price: $&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;price&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;, Quantity: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;quantity&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Advanced Usage of Global Data Feeds WebSocket API
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. &lt;strong&gt;Fetching Last Quotes for Multiple Instruments:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Extend the WebSocket subscription to receive last quotes for multiple instruments simultaneously.&lt;/li&gt;
&lt;li&gt;Parse and process the last quote data for detailed insights.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;on_open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="c1"&gt;# Subscribe to last quotes for AAPL, MSFT, and GOOGL stocks
&lt;/span&gt;       &lt;span class="n"&gt;last_quote_subscribe_payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;event&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;subscribe&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ticker&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;AAPL&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;MSFT&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;GOOGL&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;lastquote&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
       &lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;last_quote_subscribe_payload&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

   &lt;span class="c1"&gt;# ...
&lt;/span&gt;
   &lt;span class="c1"&gt;# Process last quote updates
&lt;/span&gt;   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;process_last_quote&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="n"&gt;instrument&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ticker&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="n"&gt;bid_price&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;bid&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="n"&gt;ask_price&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ask&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Last Quote for &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;instrument&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; - Bid: $&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;bid_price&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;, Ask: $&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;ask_price&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. &lt;strong&gt;Fetching Strike Prices for Options:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Subscribe to receive information about strike prices for options on a particular underlying instrument.&lt;/li&gt;
&lt;li&gt;Analyze and utilize strike price data for option trading strategies.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;on_open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="c1"&gt;# Subscribe to strike prices for options on AAPL
&lt;/span&gt;       &lt;span class="n"&gt;strike_price_subscribe_payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;event&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;subscribe&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ticker&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;AAPL&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;strikeprices&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
       &lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;strike_price_subscribe_payload&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

   &lt;span class="c1"&gt;# ...
&lt;/span&gt;
   &lt;span class="c1"&gt;# Process strike price updates
&lt;/span&gt;   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;process_strike_price&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="n"&gt;instrument&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ticker&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="n"&gt;strike_prices&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;strikeprices&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Strike Prices for Options on &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;instrument&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;strike_prices&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. &lt;strong&gt;Fetching Instrument Details:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Retrieve detailed information about a specific financial instrument.&lt;/li&gt;
&lt;li&gt;Utilize instrument details for comprehensive market analysis.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;on_open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="c1"&gt;# Subscribe to instrument details for AAPL
&lt;/span&gt;       &lt;span class="n"&gt;instrument_details_subscribe_payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;event&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;subscribe&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ticker&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;AAPL&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;instrumentdetails&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
       &lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;instrument_details_subscribe_payload&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

   &lt;span class="c1"&gt;# ...
&lt;/span&gt;
   &lt;span class="c1"&gt;# Process instrument details
&lt;/span&gt;   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;process_instrument_details&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="n"&gt;instrument&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ticker&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="n"&gt;details&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;instrumentdetails&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Instrument Details for &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;instrument&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;details&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. &lt;strong&gt;Fetching Last Quote Array:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Subscribe to receive an array of last quotes for multiple instruments.&lt;/li&gt;
&lt;li&gt;Handle and process the array of last quotes for efficient data analysis.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;on_open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="c1"&gt;# Subscribe to last quotes array for AAPL, MSFT, and GOOGL stocks
&lt;/span&gt;       &lt;span class="n"&gt;last_quote_array_subscribe_payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;event&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;subscribe&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ticker&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;AAPL&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;MSFT&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;GOOGL&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;lastquotearray&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
       &lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;last_quote_array_subscribe_payload&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

   &lt;span class="c1"&gt;# ...
&lt;/span&gt;
   &lt;span class="c1"&gt;# Process last quote array updates
&lt;/span&gt;   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;process_last_quote_array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="n"&gt;quotes_array&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;lastquotes&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;quote&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;quotes_array&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
           &lt;span class="n"&gt;instrument&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;quote&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ticker&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
           &lt;span class="n"&gt;bid_price&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;quote&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;bid&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
           &lt;span class="n"&gt;ask_price&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;quote&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ask&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
           &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Last Quote for &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;instrument&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; - Bid: $&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;bid_price&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;, Ask: $&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;ask_price&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  5. &lt;strong&gt;Fetching Expiry Dates for Options:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Subscribe to receive expiration dates for options on a particular underlying instrument.&lt;/li&gt;
&lt;li&gt;Leverage expiration date information for options trading strategies.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;on_open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="c1"&gt;# Subscribe to expiration dates for options on AAPL
&lt;/span&gt;       &lt;span class="n"&gt;expiry_dates_subscribe_payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;event&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;subscribe&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ticker&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;AAPL&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;expirydates&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
       &lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;expiry_dates_subscribe_payload&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

   &lt;span class="c1"&gt;# ...
&lt;/span&gt;
   &lt;span class="c1"&gt;# Process expiry date updates
&lt;/span&gt;   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;process_expiry_dates&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="n"&gt;instrument&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ticker&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="n"&gt;expiry_dates&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;expirydates&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Expiry Dates for Options on &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;instrument&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;expiry_dates&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  6. &lt;strong&gt;Fetching Option Chain Data:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Subscribe to receive the option chain data for a specific underlying instrument.&lt;/li&gt;
&lt;li&gt;Analyze the option chain for various strike prices, expirations, and Greeks.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;on_open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="c1"&gt;# Subscribe to option chain data for AAPL
&lt;/span&gt;       &lt;span class="n"&gt;option_chain_subscribe_payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;event&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;subscribe&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ticker&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;AAPL&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;optionchain&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
       &lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;option_chain_subscribe_payload&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

   &lt;span class="c1"&gt;# ...
&lt;/span&gt;
   &lt;span class="c1"&gt;# Process option chain updates
&lt;/span&gt;   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;process_option_chain&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="n"&gt;instrument&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ticker&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="n"&gt;option_chain&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;optionchain&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Option Chain for &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;instrument&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;option_chain&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  7. &lt;strong&gt;Fetching Greeks for Options:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Subscribe to receive Greeks (Delta, Gamma, Theta, Vega) for options on a specific underlying instrument.&lt;/li&gt;
&lt;li&gt;Utilize Greeks data for risk management and option pricing strategies.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;

 &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;on_open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="c1"&gt;# Subscribe to Greeks for options on AAPL
&lt;/span&gt;       &lt;span class="n"&gt;greeks_subscribe_payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;event&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;subscribe&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ticker&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;AAPL&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;greeks&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
       &lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;greeks_subscribe_payload&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

   &lt;span class="c1"&gt;# ...
&lt;/span&gt;
   &lt;span class="c1"&gt;# Process Greeks updates
&lt;/span&gt;   &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;process_greeks&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
       &lt;span class="n"&gt;instrument&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ticker&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="n"&gt;greeks_data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;greeks&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
       &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Greeks for Options on &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;instrument&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;greeks_data&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Best Practices and Considerations
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. &lt;strong&gt;Error Handling and Reconnection:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Implement robust error handling to manage unexpected scenarios.&lt;/li&gt;
&lt;li&gt;Set up reconnection mechanisms to ensure continuous data flow.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. &lt;strong&gt;Data Processing and Analysis:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Use appropriate data structures to efficiently process and store real-time data.&lt;/li&gt;
&lt;li&gt;Implement algorithms for analyzing price trends, market depth, and trade executions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. &lt;strong&gt;Throttling and Rate Limiting:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Adhere to GDF's API usage policies, including any rate limits imposed.&lt;/li&gt;
&lt;li&gt;Implement throttling mechanisms to avoid exceeding rate limits.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Advanced Real-Time Financial Applications
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcgfbhuw9tae4f84ni1f0.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcgfbhuw9tae4f84ni1f0.gif" alt=" " width="480" height="204"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  1. &lt;strong&gt;Building an Advanced Options Trading Dashboard:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Utilize option chain data, strike prices, and Greeks for creating a comprehensive options trading dashboard.&lt;/li&gt;
&lt;li&gt;Implement real-time updates for efficient decision-making.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. &lt;strong&gt;Implementing Algorithmic Trading Strategies:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Leverage real-time data, last quotes, and instrument details to implement algorithmic trading strategies.&lt;/li&gt;
&lt;li&gt;Integrate decision-making logic based on advanced financial data.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. &lt;strong&gt;Developing a Real-Time Stock Ticker:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Utilize GDF WebSocket API to create a dynamic stock ticker application.&lt;/li&gt;
&lt;li&gt;Display real-time price updates for selected instruments.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. &lt;strong&gt;Building a Market Depth Analyzer:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Implement a tool to visualize and analyze market depth data.&lt;/li&gt;
&lt;li&gt;Use graphical representations to enhance understanding.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  ❤️ SPONSER ME ON GITHUB ❤️
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://github.com/sponsors/AnkushSinghGandhi" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa08qh0s78ncyxcuse3sz.png" alt=" " width="799" height="309"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Congratulations! You've explored advanced features of the Global Data Feeds WebSocket API with Python, enabling you to build sophisticated financial applications. By incorporating last quotes, strike prices, instrument details, option chain data, and Greeks into your analysis, you can take your financial insights to the next level. Happy coding and profitable trading!&lt;/p&gt;

&lt;h2&gt;
  
  
  Part 2 Coming Soon.......
&lt;/h2&gt;

</description>
      <category>webdev</category>
      <category>python</category>
      <category>api</category>
      <category>frontend</category>
    </item>
    <item>
      <title>Creat Algorithm Complexity Chrome Extension</title>
      <dc:creator>Ankush Singh Gandhi</dc:creator>
      <pubDate>Sat, 01 Oct 2022 14:53:33 +0000</pubDate>
      <link>https://dev.to/ankushsinghgandhi/creat-your-first-chrome-extension-mk</link>
      <guid>https://dev.to/ankushsinghgandhi/creat-your-first-chrome-extension-mk</guid>
      <description>&lt;h2&gt;
  
  
  If you are a Google Chrome user, you've probably used some extensions in the browser.
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fftuobe8oyxufhs4dmy4a.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fftuobe8oyxufhs4dmy4a.gif" alt="img" width="400" height="320"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Have you ever considered building one yourself? In this tutorial, I'll show you how to build a Chrome extension from the ground up.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a Chrome Extension?
&lt;/h2&gt;

&lt;p&gt;A chrome extension is an application that is installed in the Chrome browser to improve the browser's capabilities. You can easily create one by utilising web technologies like as HTML, CSS, and JavaScript.&lt;/p&gt;

&lt;p&gt;Developing a chrome extension is similar to creating a web application, but it requires a &lt;u&gt;manifest.json&lt;/u&gt; file, which we will go over in the last&amp;nbsp;of this post.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Will our Chrome Extension Look Like?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5tkbbag87d91kh6q4mbg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5tkbbag87d91kh6q4mbg.png" alt="img" width="800" height="510"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The complete source code of this project can be found on &lt;a href="https://github.com/AnkushSinghGandhi/algorithm-complexity-extension" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Create a Chrome Extension?
&lt;/h2&gt;

&lt;p&gt;Let's dive into the step-by-step process:&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Create Project Folder and HTML File
&lt;/h2&gt;

&lt;p&gt;Start by creating an empty folder for your project. Inside it, create an index.html file with the following HTML boilerplate:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;

&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;

    &amp;lt;link rel="stylesheet" href="popup.css"&amp;gt;

    &amp;lt;title&amp;gt;Algoritm Complexity Extension&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
&amp;lt;/body&amp;gt;

&amp;lt;script src="popup.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Design Your Extension Popup
&lt;/h2&gt;

&lt;p&gt;In the popup.html file, structure your extension's popup:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;body&amp;gt;
    &amp;lt;h1 class="ml title"&amp;gt;Algoritm Complexity Extension&amp;lt;/h1&amp;gt;

    &amp;lt;div class="container"&amp;gt;
        &amp;lt;h3 class="algo" id="algorithm"&amp;gt;&amp;lt;/h3&amp;gt;
        &amp;lt;p&amp;gt;&amp;lt;b&amp;gt;Best time complexity: &amp;lt;/b&amp;gt;&amp;lt;div id="best"&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/p&amp;gt;
        &amp;lt;p&amp;gt;&amp;lt;b&amp;gt;Average time complexity: &amp;lt;/b&amp;gt;&amp;lt;div id="avg"&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/h4&amp;gt;
        &amp;lt;p&amp;gt;&amp;lt;b&amp;gt;Worst time complexity: &amp;lt;/b&amp;gt;&amp;lt;p id="worst"&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/h4&amp;gt;
        &amp;lt;div class="al-auto"&amp;gt;
            &amp;lt;button id="algo" class="button"&amp;gt;Next&amp;lt;/button&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;p class="ml"&amp;gt;
        &amp;amp;copy; &amp;lt;a href="https://github.com/ankushsinghgandhi" style="text-decoration: none; color:blue;"&amp;gt;Ankush Singh Gandhi&amp;lt;/a&amp;gt; 2021
    &amp;lt;/p&amp;gt;
&amp;lt;/body&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Style Your Popup
&lt;/h2&gt;

&lt;p&gt;In popup.css, style your popup to make it visually appealing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
body {
    width: 300px;
    background-color:cornsilk;
}
.ml {
    margin: auto;
    text-align: center;
}
.title {
    text-align: center;
}
.container {
    height: 280px;
    position: relative;
    border: 3px solid green;
}
.al-auto {
    margin: 0;
    position: absolute;
    bottom: 10%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.button {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 5px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. Implement JavaScript Logic
&lt;/h2&gt;

&lt;p&gt;In popup.js, add JavaScript code to handle button clicks and display algorithm complexities:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var algorithms = ['Linear Search','Binary Search', 'Bubble Sort', 'Selection Sort', 'Insertion Sort', 'Merge Sort', 'Quick Sort', 'Heap Sort', 'Bucket Sort', 'Radix Sort', 'Tim Sort', 'Shell Sort']
var besttime = ['O(1)', 'O(1)', 'O(n)', 'O(n^2)', 'O(n)', 'O(nlogn)', 'O(nlogn)', 'O(nlogn)', 'O(n+k)', 'O(nk)', 'O(n)', 'O(n)']
var avgtime = ['O(n)', 'O(logn)', 'O(n^2)', 'O(n^2)', 'O(n^2)', 'O(nlogn)', 'O(nlogn)', 'O(nlogn)', 'O(n+k)', 'O(nk)', 'O((nlogn)^2)']
var worsttime = ['O(n)', 'O(logn)', 'O(n^2)', 'O(n^2)', 'O(n^2)', 'O(nlogn)', 'O(n^2)', 'O(nlogn)', 'O(n^2)', 'O(nk)', 'O((nlogn)^2)']

document.getElementById("algo").addEventListener("click", newComplexity);

function newComplexity() {
    var random = Math.floor(Math.random() * (algorithms.length));
    document.getElementById('algorithm').innerText = algorithms[random];
    document.getElementById('best').innerHTML = besttime[random];
    document.getElementById('avg').innerHTML = avgtime[random];
    document.getElementById('worst').innerHTML = worsttime[random];
}

newComplexity()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. Create manifest.json
&lt;/h2&gt;

&lt;p&gt;In the root folder, create a manifest.json file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
    "manifest_version": 3,
    "name": "Algoritm Complexity Extension",
    "version": "1.0.0",
    "description": "Shows complexities of random algorithms",
    "action": {
        "default_popup": "popup.html",
        "default_icon": "algo-icon.png"
    },
    "icons": {
        "16": "algo-icon.png",
        "32": "algo-icon.png",
        "48": "algo-icon.png",
        "128": "algo-icon.png"
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And add the following code inside the file and save.&lt;/p&gt;

&lt;p&gt;Name, version, description, manifest version (3 in this example, which is the most recent manifest version), author, and action columns are all included in our manifest.json file. The value for default popup in the action field contains the location to the HTML file, which in this example is index.html.&lt;/p&gt;

&lt;p&gt;You can examine all of the manifest.json file configurations &lt;a href="https://developer.chrome.com/docs/extensions/mv3/manifest/" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Load the Extension in Chrome
&lt;/h2&gt;

&lt;p&gt;We need to go to Select More Tools and then choose Extensions from the browser menu as shown in the picture below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fksv586yuveuhp4t0jjgx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fksv586yuveuhp4t0jjgx.png" alt="img" width="800" height="504"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After choosing Extensions, it redirects to the extensions page in Chrome. Make sure to enable the Developer mode here.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiaj500yjytdo1wgld1wc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiaj500yjytdo1wgld1wc.png" alt="img" width="800" height="295"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once that's done, you need to click the Load unpacked button which will allow us to load our project in the Chrome extension store.&lt;/p&gt;

&lt;p&gt;Now, the extension is available in our Chrome extension store. You can also pin the extension in the browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5tkbbag87d91kh6q4mbg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5tkbbag87d91kh6q4mbg.png" alt="img" width="800" height="510"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This extension works only in your browser. If you want to publish it on the Chrome Web Store, you can follow this &lt;a href="https://developer.chrome.com/docs/webstore/register/" rel="noopener noreferrer"&gt;link&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;CONGRATULATIONS, we just created our very first chrome extension.&lt;/p&gt;

&lt;p&gt;The entire code for this project is available on &lt;a href="https://github.com/AnkushSinghGandhi/algorithm-complexity-extension" rel="noopener noreferrer"&gt;Github&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I hope this post help you get your first chrome extension up and running. if you need help in creating a chrome extension, or need help with any other project you can DM me on &lt;a href="https://twitter.com/ankushsgandhi" rel="noopener noreferrer"&gt;twitter&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There more similar projects available on my &lt;a href="https://github.com/ankushsinghgandhi" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>webdev</category>
      <category>programming</category>
      <category>hacktoberfest</category>
    </item>
  </channel>
</rss>
