Computer Learning Zone CLZ Access Excel Word Windows

Education breeds confidence. Confidence breeds hope. Hope breeds peace.

-Confucius
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Captain's Log    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
My First Vibe-Coded Web App
Richard Rost 
          
2 hours ago
This morning I took my first real shot at what people are calling "vibe coding."

Now, before anyone starts throwing tomatoes, let me clarify something. I know HTML. I know JavaScript. I was a C programmer for years back in the 1990s, and JavaScript is heavily influenced by C. The syntax feels familiar. If I look at JavaScript code, I can generally follow what's going on. But could I sit down today and write a complete JavaScript application from scratch without constantly looking things up? Probably not. That's where today's little experiment came in.

The idea came from a recent vacation with my wife. You know how beach vacations go. You spend time by the pool, relax in the sun, maybe do a little swimming, chat with people, and occasionally visit the pool bar. After a while, it becomes surprisingly easy to lose track of how many drinks you've had. I got to thinking that it would be nice to have a simple drink timer. Not a blood alcohol calculator. Not something scientific. Just a simple rule-of-thumb tracker.

For the average person, a common guideline is that your body processes roughly one drink per hour. That's not exact. It's not medical advice. Everybody is different. Plus a beer hits different than a dirty martini. But for me personally, I know from experience that once I get past about three drinks in fairly rapid succession, I start feeling it. That's when the pleasant little vacation buzz starts turning into "maybe I shouldn't be trusted with stairs" territory. And this ain't synthahol. You can't just shake off those poolside pina coladas and report for duty like nothing happened.

Now, for reference, I'm six feet tall* and weigh two-hundred-and-something pounds. We're not going to discuss exactly what the something is. Some mysteries are best left unsolved. So the goal was simple. Every time I have a drink, I tap a button. A one-hour timer starts counting down. If I already have three active drink timers running, maybe it's time to slow down and enjoy the scenery for a bit before ordering another one. Once the first timer expires, I know that first drink has had roughly an hour to work its way through my system, and I'm probably fine to have another.

Could I have built this myself by manually coding it? Absolutely. Would I have built it in ten minutes? Absolutely not.

It probably would have taken me most of an afternoon. Not because it's particularly difficult, but because I'd have to dust off old JavaScript knowledge, look up browser APIs, fiddle with mobile layouts, test persistence, and handle all the little details that go into building even a simple web application. Instead, I described what I wanted to ChatGPT. We went back and forth for about ten minutes.

Here's what I want. Put a timer here. Make it mobile friendly. Add a delete button. Remember the data if I close the browser. Let me adjust the timer if I forgot to record a drink until later. One small refinement at a time, the application came together exactly the way I wanted it. Honestly, I was impressed.

Now, before anyone interprets this as me saying AI can replace programmers, let me add an important disclaimer. This was a fun little personal project. If I were building a mission-critical business application that my employees, customers, or members depended on, my standards would be very different. I would want to understand every single line of code. I would want to know how it works, why it works, and how to fix it myself if something breaks.

AI is a fantastic accelerator. It is not a substitute for understanding. At least not for anything important. If you're responsible for maintaining a system, you need to understand the system. Period. For a fun little utility that helps me keep track of poolside beverages on vacation? Sure. This was the perfect use case. And now I have a handy little drink timer that works on my phone, remembers its state even if I close the browser, lets me add and remove timers, and helps me avoid accidentally turning a relaxing afternoon into an unplanned adventure.

If you'd like to try it yourself, here's the link: Rick's Drink Timer

The data is stored locally in your browser using local storage, so everything stays on your device. If you close the browser and come back later, your active timers should still be there waiting for you. And no, it doesn't have to be used for drinks. You could use the exact same concept for project tracking, task timing, workout intervals, study sessions, or anything else that involves multiple overlapping timers. Change a few labels and you've got a completely different application.

If you'd like to see more content like this, whether that's HTML, JavaScript, classic ASP, web development, or even more experiments with AI-assisted coding, post a comment and let me know. I actually recorded an HTML 101 course many, many years ago, back when web development was still the Wild West. I think it was around 2002. It might be fun to revisit some of that material with modern tools.

One final observation. It took me about ten minutes to build the application. It's taken me longer to write this article. That alone tells me something interesting about where these tools are headed. And yes, I'm still impressed.

A Quick Look Under The Hood

For those curious about how the application works, here's the high-level overview. At the top of the page is the HTML structure. That's simply the layout of the page: buttons, timer display areas, counters, and drop-down lists.

Next comes the CSS section. CSS controls the appearance of the page. It handles the colors, fonts, spacing, button styles, mobile layout, and overall look and feel. The CSS is what makes the page work nicely on both desktop computers and mobile phones.

After that comes the JavaScript code. The JavaScript contains several functions that handle the actual behavior of the application. There is a function that adds a new drink timer. Another function removes a timer if you accidentally added one. Another periodically updates all active countdown timers. There are functions for clearing completed timers, resetting everything, formatting the countdown display, and updating the status indicators at the top of the screen. The application stores timer information in a simple array in memory while the page is running. Each timer keeps track of when it started and how long it should run.

The most interesting part is probably local storage. Local storage is a feature built into modern web browsers that allows a web page to save small amounts of data directly on your device. Unlike cookies, which are traditionally sent back and forth to a web server, local storage stays entirely within your browser. When you add or remove a timer, the application saves the current timer list to local storage. When you reopen the page later, the application loads that data back into memory and recreates your timers.

That's why the app remembers your timers even if you refresh the page or close the browser and come back later. It's a surprisingly powerful feature for small self-contained applications like this one. And that's really all there is to it. A little HTML, some CSS, a handful of JavaScript functions, local storage, and about ten minutes of collaboration between a human and an AI.

Not bad for a fun little morning project.

LLAP
RR

P.S. Apparently I couldn't leave well enough alone. I spent another ten minutes working on the app. I had ChatGPT help me add a notification sound and phone vibration when one of your drink timers expires. There's now a little hamburger menu in the upper left corner where you can turn sound and vibration alerts on or off. I also added a three-second timer option for testing purposes because waiting a full hour every time you want to test something gets old pretty fast. No, the app is not suggesting that anyone can metabolize a drink in three seconds. Unless you're Barry Allen or Clark Kent, that's probably not happening. It's just there so I can quickly test the alerts without sitting around for an hour waiting for a ding.

* OK, fine, you caught me. I was 6' in my 20s. I've shrunk an inch since then. Last physical I measured 5'11". Damn oldness.

Richard Rost OP  @Reply  
          
2 hours ago

Kevin Robertson  @Reply  
          
2 hours ago
Very cool.
I changed the timer to 3 seconds and added 25 drinks and got a nice little tune when they expired. LOL
Add a Reply Upload an Image
Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 6/12/2026 4:22:38 PM. PLT: 1s