<?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: Irfan Tayyab</title>
    <description>The latest articles on DEV Community by Irfan Tayyab (@irfantayyab).</description>
    <link>https://dev.to/irfantayyab</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%2F4239875%2Fd9cdeb5e-8405-4fc3-85da-a79e0dcbab26.png</url>
      <title>DEV Community: Irfan Tayyab</title>
      <link>https://dev.to/irfantayyab</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/irfantayyab"/>
    <language>en</language>
    <item>
      <title>How do you keep your resume and portfolio in sync?</title>
      <dc:creator>Irfan Tayyab</dc:creator>
      <pubDate>Mon, 16 Nov 2026 04:11:18 +0000</pubDate>
      <link>https://dev.to/irfantayyab/how-do-you-keep-your-resume-and-portfolio-in-sync-102m</link>
      <guid>https://dev.to/irfantayyab/how-do-you-keep-your-resume-and-portfolio-in-sync-102m</guid>
      <description>&lt;p&gt;I've noticed my professional details live in at least three places: my resume, my LinkedIn and my portfolio site. Every time something changes, a new job, a retitled role, a new link, I have to remember to update all of them. I recently retitled one of my roles on LinkedIn and found my resume still said the old title.&lt;/p&gt;

&lt;p&gt;Small slips, but a recruiter who sees two versions might wonder which one is true.&lt;/p&gt;

&lt;p&gt;How do you handle it?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Do you have a single source you copy from?&lt;/li&gt;
&lt;li&gt;Do you just update everything by hand when something changes?&lt;/li&gt;
&lt;li&gt;Has anyone automated any of it?&lt;/li&gt;
&lt;li&gt;Or do you not worry, since nobody compares them closely?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For what it's worth, I automated part of it: my site's facts are generated from my LaTeX resume, and the build fails if the two disagree (&lt;a href="https://dev.to/irfantayyab/holding-a-portfolio-to-its-resume-3pnm"&gt;wrote it up here&lt;/a&gt;). But LinkedIn still has to be updated by hand, since it has no API for that, so I'm curious how others handle it.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>career</category>
      <category>webdev</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Holding a portfolio to its resume</title>
      <dc:creator>Irfan Tayyab</dc:creator>
      <pubDate>Mon, 16 Nov 2026 01:18:25 +0000</pubDate>
      <link>https://dev.to/irfantayyab/holding-a-portfolio-to-its-resume-3pnm</link>
      <guid>https://dev.to/irfantayyab/holding-a-portfolio-to-its-resume-3pnm</guid>
      <description>&lt;p&gt;A portfolio and a resume describe the same person, so they must never disagree. The resume is what a recruiter reads first, and the moment the two differ, the portfolio is the one that looks careless: a job title spelled differently, a date a month off, a link that moved. Small things, but each might cost a little trust.&lt;/p&gt;

&lt;p&gt;I could keep the two matching by hand, but I might forget. So this site is built on one principle: &lt;strong&gt;if the portfolio and the resume disagree, the site's build fails&lt;/strong&gt;, and nothing goes live until they agree again.&lt;/p&gt;

&lt;h2&gt;
  
  
  One place for every claim
&lt;/h2&gt;

&lt;p&gt;Everything the site repeats from the resume lives in one TypeScript file, &lt;code&gt;claims.ts&lt;/code&gt;: my name and headline, my email, my LinkedIn, GitHub and website addresses, and each job and degree with its dates. I call these &lt;strong&gt;the claims&lt;/strong&gt;. The site's pages are built from that file.&lt;/p&gt;

&lt;p&gt;I never edit &lt;code&gt;claims.ts&lt;/code&gt; by hand. A script writes it from the resume every time I save the resume, so the resume is the one place a claim ever changes, and the site follows.&lt;/p&gt;

&lt;h2&gt;
  
  
  A test that reads the LaTeX
&lt;/h2&gt;

&lt;p&gt;The resume is written in LaTeX: a plain-text file, &lt;code&gt;Irfan_Tayyab_SWE.tex&lt;/code&gt;, which a program called XeLaTeX turns into the PDF. From here on I call that file &lt;strong&gt;the source&lt;/strong&gt;, since the PDF is built from it. It sits in the same repository as the site.&lt;/p&gt;

&lt;p&gt;The script reads the source, picks out every claim in it, and writes &lt;code&gt;claims.ts&lt;/code&gt;, which I commit with the resume. The site's build then reads a finished file and never has to understand LaTeX.&lt;/p&gt;

&lt;p&gt;A step that runs on save can still be skipped: the resume edited outside VS Code, say, or &lt;code&gt;claims.ts&lt;/code&gt; changed by hand. So a test does the script's work again: it reads the source, works out what the script would write, and fails unless &lt;code&gt;claims.ts&lt;/code&gt; is exactly that.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9wwsucf3jl8pdq88sknc.webp" 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%2F9wwsucf3jl8pdq88sknc.webp" alt="The top of the resume PDF: the name Irfan Tayyab, and under it the headline Full-Stack AI Engineer" width="800" height="295"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The “name” and “headline” at the top of the resume, the first two claims the site repeats letter for letter&lt;/p&gt;

&lt;p&gt;The tests run on my PC before every push, and again on every pull request in CI, the build server, where nothing merges until they pass. So a claim on the site can only change in the same commit as the resume.&lt;/p&gt;

&lt;h2&gt;
  
  
  The PDF is checked too
&lt;/h2&gt;

&lt;p&gt;The source is not what people read. They read the PDF. So a second test pulls the text out of the committed PDF and looks for every claim from &lt;code&gt;claims.ts&lt;/code&gt; in it, each one whole and in order.&lt;/p&gt;

&lt;p&gt;That still leaves a gap. CI cannot build the PDF: it uses Microsoft's Aptos fonts, which are licensed with Office and cannot be installed on a build server. So I build it on my own PC and commit it beside its source. If I edit the source and forget to rebuild, the PDF goes stale. The tests above catch a stale claim, but not a change to anything that is not a claim, such as a &lt;strong&gt;bullet&lt;/strong&gt;, one of the lines under a job describing what I did there. That gap needed one more check: one that ties the PDF to its source.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tying the PDF to its source
&lt;/h2&gt;

&lt;p&gt;The resume builds in VS Code, through LaTeX Workshop, the extension that runs XeLaTeX each time I save. Each build of the resume ends with a small script that takes a SHA-256 hash of the source and of the PDF, and saves both in a small file of their own, &lt;code&gt;Irfan_Tayyab_SWE.sha256&lt;/code&gt;, committed beside them. A hash is a &lt;strong&gt;fingerprint&lt;/strong&gt; of a file: change a single byte, even in the PDF's metadata, and it changes. A third test, run before every push and again in CI, takes fresh fingerprints of the source and the PDF, and compares them with the two saved in &lt;code&gt;Irfan_Tayyab_SWE.sha256&lt;/code&gt;. If either differs, the test fails. It means the source or the PDF changed after the last build.&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%2F8i8n5lbl29bhejev54i1.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%2F8i8n5lbl29bhejev54i1.png" alt="From the resume's source to a checked PDF" width="800" height="1073"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;XeLaTeX builds the PDF from the source, and a script saves the hashes of both in Irfan_Tayyab_SWE.sha256. Before every push and in CI, a test hashes the source and the PDF again and compares them with that file, failing if either changed.&lt;/p&gt;

&lt;p&gt;LaTeX Workshop runs the script after every build, failed ones included, so the script itself has to tell a good build from a bad one. Before saving the fingerprints, it compares the times the files were last written. XeLaTeX rewrites its log on every run, but writes the PDF, after the log, only when the build succeeds. So a log older than the source means no build ran since the last save, and a PDF older than the log means that build failed. Either way, it saves no fingerprints. These are the two checks, in bold:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;scripts/resume-hash.mjs&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;statSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;log&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mtimeMs&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nf"&gt;statSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tex&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mtimeMs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;skip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`XeLaTeX did not run on ${basename(tex)} since it was saved`&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="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;statSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mtimeMs&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nf"&gt;statSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;log&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mtimeMs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;skip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${basename(pdf)} was not written by this build, which failed`&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;/div&gt;



&lt;p&gt;One nuance needed handling too. A PDF normally stamps the time it was made inside itself, so running a build without any change to the source would still produce a new PDF, with a new fingerprint, to commit. The resume's build pins that time, so an unchanged source always builds the identical PDF.&lt;/p&gt;

&lt;h2&gt;
  
  
  All six checks
&lt;/h2&gt;

&lt;p&gt;The site, a Next.js static export, builds its pages from &lt;code&gt;claims.ts&lt;/code&gt; and serves the resume as a file at a URL of its own. That makes six checks, watching five pairs that could drift apart: the source and &lt;code&gt;claims.ts&lt;/code&gt;, the PDF and &lt;code&gt;claims.ts&lt;/code&gt;, the PDF and its source (watched by two checks, against two different mistakes), the pages and &lt;code&gt;claims.ts&lt;/code&gt;, the file served and the file committed. The claims script and the hash script run on my PC after every build of the resume; the rest run before every push, and again in CI:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The claims test&lt;/strong&gt; catches a &lt;code&gt;claims.ts&lt;/code&gt; that is not what the script would write from the source, whether a save skipped the script or the file was edited by hand.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The PDF text check&lt;/strong&gt; catches a PDF that says something different from &lt;code&gt;claims.ts&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The hash script&lt;/strong&gt; saves fingerprints only after checking that the PDF was just written by a build that succeeded, so a failed build is never recorded.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The hash check&lt;/strong&gt; fails when the source or the PDF changed since the hash script last ran, so an edit without a rebuild, bullets included, cannot pass until I rebuild.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The page check&lt;/strong&gt; reads the text of the built pages (not how they look) and catches a claim that is missing or misspelled there, a bug in the page itself that the tests on &lt;code&gt;claims.ts&lt;/code&gt; cannot see.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The download check&lt;/strong&gt; compares the resume the site serves with the committed PDF, byte for byte, so visitors download exactly the PDF the other checks passed.&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Keeping the shared facts in one file, and failing the build when another document disagrees with it, works for any two documents that must agree, not only a portfolio and a resume: a product page and its price list, say.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What it buys
&lt;/h2&gt;

&lt;p&gt;None of it is clever. It is six small checks that turn "I'll remember to update both" into a build that will not pass until I do. What it buys me is simplicity: I change a claim in one place, save, and the build tells me if anything slipped, so I never cross-check the site against the resume by hand, and I can send either one without a second look. All of it is in the site's public repository, &lt;a href="https://github.com/irfantayyab/irfantayyab" rel="noopener noreferrer"&gt;irfantayyab/irfantayyab&lt;/a&gt;, for anyone who wants to read the code itself.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>showdev</category>
      <category>nextjs</category>
      <category>testing</category>
    </item>
  </channel>
</rss>
