<?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: Javed Iqbal</title>
    <description>The latest articles on DEV Community by Javed Iqbal (@dev_javed_f012670742f628b).</description>
    <link>https://dev.to/dev_javed_f012670742f628b</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%2F2592516%2Fb99bb4ff-8df6-4809-967c-3a2d5a28133e.jpg</url>
      <title>DEV Community: Javed Iqbal</title>
      <link>https://dev.to/dev_javed_f012670742f628b</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dev_javed_f012670742f628b"/>
    <language>en</language>
    <item>
      <title>A filterable table that still works with JavaScript off</title>
      <dc:creator>Javed Iqbal</dc:creator>
      <pubDate>Sat, 07 Nov 2026 19:52:58 +0000</pubDate>
      <link>https://dev.to/dev_javed_f012670742f628b/a-filterable-table-that-still-works-with-javascript-off-k8a</link>
      <guid>https://dev.to/dev_javed_f012670742f628b/a-filterable-table-that-still-works-with-javascript-off-k8a</guid>
      <description>&lt;p&gt;I made a small page for health.dailyappslab.com that filters 259 US fast-food menu items by protein and calories. The filtering is the easy part. What I cared about was that the page still shows everything when the script doesn't run.&lt;/p&gt;

&lt;p&gt;The data is one TypeScript file. Each item has a chain, a name, calories, protein and a few optional fields like sodium. Each chain entry also stores the nutrition page the numbers came from and the date I read it, so the source sits next to the data instead of in my memory.&lt;/p&gt;

&lt;p&gt;Astro renders every item as a table row at build time. Each row carries its values as data attributes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;tr&lt;/span&gt; &lt;span class="na"&gt;data-chain=&lt;/span&gt;&lt;span class="s"&gt;"subway"&lt;/span&gt; &lt;span class="na"&gt;data-meal=&lt;/span&gt;&lt;span class="s"&gt;"main"&lt;/span&gt; &lt;span class="na"&gt;data-protein=&lt;/span&gt;&lt;span class="s"&gt;"31"&lt;/span&gt; &lt;span class="na"&gt;data-cal=&lt;/span&gt;&lt;span class="s"&gt;"400"&lt;/span&gt; &lt;span class="na"&gt;data-per=&lt;/span&gt;&lt;span class="s"&gt;"7.8"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;"Protein per 100 calories" is computed once in the data file, not in the browser:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;perHundred&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;Item&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;round&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;protein&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;cal&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With JavaScript off, you get the full table, already sorted by that number. Crawlers that don't run scripts see the same page.&lt;/p&gt;

&lt;p&gt;The script only hides and reorders rows. It reads the form, filters the rows by their data attributes, sorts what's left, and sets &lt;code&gt;hidden&lt;/code&gt; on the rest:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nx"&gt;all&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;tr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;tr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;hidden&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;span class="nx"&gt;shown&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;tr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;tr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;hidden&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nx"&gt;tbody&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;appendChild&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;tr&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;There is no framework on the page and no fetch call. The table is already in the DOM, so the script only moves rows around.&lt;/p&gt;

&lt;p&gt;The filters also live in the URL. After each change the script writes them with &lt;code&gt;history.replaceState&lt;/code&gt; and &lt;code&gt;URLSearchParams&lt;/code&gt;, and on load it reads them back, so a filtered list can be shared as a link. The form is a plain GET form to the same path, which makes it behave sensibly as markup. Since the site is static, though, the server ignores the query string and only the script acts on it.&lt;/p&gt;

&lt;p&gt;Two limits. The numbers are a snapshot: I copied them from each chain's own US nutrition page on the dates shown in the page, so they will drift when menus change. And they are US menus only. All 259 rows were checked against the article tables they came from before the page went live. If the data grows, a script that runs that comparison on every build is what I'd add first.&lt;/p&gt;

&lt;p&gt;If you want to see it run, the page is here: &lt;a href="https://health.dailyappslab.com/macroscout/protein-finder/" rel="noopener noreferrer"&gt;https://health.dailyappslab.com/macroscout/protein-finder/&lt;/a&gt;. It's free and needs no signup.&lt;/p&gt;

&lt;p&gt;Disclosure: this is a page on my own site, built at Daily Apps Lab, and I used AI tools to help draft this post.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>astro</category>
      <category>javascript</category>
      <category>html</category>
    </item>
    <item>
      <title>The hardest part of publishing my app wasn't the code</title>
      <dc:creator>Javed Iqbal</dc:creator>
      <pubDate>Sat, 31 Oct 2026 20:58:20 +0000</pubDate>
      <link>https://dev.to/dev_javed_f012670742f628b/the-hardest-part-of-publishing-my-app-wasnt-the-code-192j</link>
      <guid>https://dev.to/dev_javed_f012670742f628b/the-hardest-part-of-publishing-my-app-wasnt-the-code-192j</guid>
      <description>&lt;p&gt;I built MacroScout, a calorie tracker for iPhone and Android. I expected the code to be the hard part of shipping it. It wasn't. The hard part was the App Store: learning its rules and getting my app to line up with them.&lt;/p&gt;

&lt;p&gt;Building is a problem you can work through on your own. App Store rules are different, because they're someone else's standard. You have to read them, work out how they apply to your app, and change things to fit.&lt;/p&gt;

&lt;p&gt;The facts themselves are simple enough:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The Apple Developer Program costs $99 a year.&lt;/li&gt;
&lt;li&gt;Google Play charges a one-time US$25 registration fee.&lt;/li&gt;
&lt;li&gt;Apple says it typically reviews 90% of submissions in less than 48 hours.&lt;/li&gt;
&lt;li&gt;New personal Google Play accounts must run a closed test with at least 12 testers for 14 days.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Those are easy to look up. Lining your actual app up with the rules is what takes the time.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I changed for next time
&lt;/h2&gt;

&lt;p&gt;I saved all the App Store rules I had to follow into one place, so the next app starts from that list and not from zero.&lt;/p&gt;

&lt;p&gt;If I could give one tip to anyone shipping a first app, it'd be this: keep your own rules list from day one, and check it while you build, not just before you submit.&lt;/p&gt;

&lt;p&gt;I turned what I learned into a step-by-step guide covering both stores: &lt;a href="https://dailyappslab.com/guides/how-to-publish-an-app-on-the-app-store/" rel="noopener noreferrer"&gt;how to publish an app on the App Store and Google Play&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;What tripped you up on your first submission?&lt;/p&gt;

</description>
      <category>android</category>
      <category>ios</category>
      <category>mobile</category>
      <category>startup</category>
    </item>
  </channel>
</rss>
