From a rapid 17-minute prototype generated by ChatGPT to 1–1.5 hours of real-world integration, cross-browser and mobile QA, and UX refinements. Real projects demand documentation, code reviews, and stakeholder feedback – often consuming 2–3× the initial coding time.
Over the past few months, I’ve been on a Medium publishing spree – writing deep dives and how-tos for my growing audience. To make my work accessible to non-members, I mirror every post on my own static site: no fancy frameworks, just plain HTML and CSS. As traffic climbed, I found myself wishing there was a simple way for readers to share these articles across their social networks.
These days, whenever I want to do any coding, I just ask ChatGPT. For most small tweaks and feature add-ons, it’s a lean, lightning-fast way to get exactly what I need without the overhead of heavyweight AI or non-AI based Dev tools. Adding a social share feature fit the bill of getting it done using AI.
In this post, I’ll walk you through the exact prompts I used, the code we generated together, how long it took, and the lessons learned along the way.
Before diving in, I first had to pick the right ChatGPT model. Based on my earlier experiments comparing ChatGPT 4o and Claude Sonnet 3.7 for a JavaScript tool, I went straight for ChatGPT o4-mini-high. In the rest of the article, whenever I mention only ChatGPT or LLMs, I am referring to ChatGPT o4-mini-high.
From there, I treated ChatGPT as a collaborative partner – tweaking prompts, refining output – until we arrived at a polished, reusable component.
Here's are 9 prompts I gave to ChatGPT and approximate time spent prompting and reading the responses:
Time (min) | Prompt Description |
---|---|
0–2 | “Generate html component which has capabilities to share the current page…” |
2–4 | “Can this be a html component” (convert to Web Component) |
4–6 | “Have you done all kinds of error handling?” |
6–8 | “Give capabilities to share on Bluesky” |
8–10 | “How do I pass the pageurl, pagetitle from html page?” |
10–12 | “Rewrite as standalone JS file that programmatically injects the template” |
12–14 | “Nothing is rendering—explain why and how to fix” |
14–15 | “Regenerate the single JS file again” |
15–17 | “How can I right-align with Bulma CSS?” |
Time spent in the ChatGPT session: ~17 minutes, plus an additional 1–1.5 hours of real-world integration and testing (including layout tweaks, browser and mobile QA).
text=
parameter and never pre-populates the compose box. Instead, it scrapes your page's OpenGraph tags for the preview. To ensure correctness, always include:
<meta property="og:title" content="…"/>
<meta property="og:description" content="…"/>
<meta property="og:image" content="…"/>
<template>
in JavaScript without injecting it into the DOM, querySelector('#social-share-template')
will fail – leading to a hidden component. Always append the template before defining the element.In under 20 minutes, I had my first code cut ready – proof of ChatGPT's rapid prototyping power. But turning that prototype into a polished feature took another 1–1.5 hours: integrating it into one of my blogs, fine-tuning layout, performing cross-browser and mobile QA, writing documentation, and gathering beta feedback.
Just like any real-world project, “code complete” is only the beginning. Testing, documentation, code reviews, UX refinements, and stakeholder validation often consume 2–3× more time than writing the initial code. So when you hear someone say, “I built this in 17 minutes,” remember the many critical follow-up steps that make the feature production-ready.
This experience also reinforces what I have written in my earlier articles: future developer roles will lean heavily on human-centered activities – system validation, integration, UX design, and cross-team collaboration – where empathy, judgment, and iterative feedback are key. ChatGPT speeds up coding, but the art of delivering high-quality code with seamless user experience still depends on human effort.
Claude 3.7 vs ChatGPT: A Hands-On Comparison for AWS Graviton Calculator Development
We Trusted ChatGPT to Build a Like Button – Here’s What Happened
The AI Revolution in Software Development: Why Thinking Matters More Than Typing
Hungry for more hands‑on guides on coding, security, and open‑source? Join our newsletter community—new insights delivered every week. Sign up below 👇