Devlog #2
🐾 Hey everyone! Welcome back to HTMeow. The feline WebOS is growing fast, but growth comes at a cost… mostly to my sanity.
-
The Great Spaghetti Refactoring
As I started adding multiple windows and desktop icons, my JavaScript quickly turned into a scary bowl of spaghetti code. IDs were clashing, functions were repeating, and it was getting out of hand. So, I took a deep breath and did a massive refactoring. I embraced the DRY (Don’t Repeat Yourself) principle and built some magical functions using template literals. Now, initialising a brand new app only takes a couple lines of code instead of copy-pasting a mountain of text. I feel like a wizard! -
Desktop Icons & The Z-Index Dance
I finally added real desktop icons! You can single-click to select them and double-click to open apps. But the real hidden challenge was the “z-index dance”. I had to teach HTMeow how to automatically bring a window to the front when you click on it. Turns out, making fake browser windows act like real OS windows requires some serious brain power! -
Meowtes: The Flagship Notes App
Following the Hacker Notes guide (Part 5 of the WebOS jam), I built my very first real application. But obviously, I had to give it a cat twist, so I named it Meowtes.
I took the core logic from the guide (like loading content from an array into a dynamic sidebar) and completely overhauled the UI. I gave it a dark, sophisticated sidebar and a cream-colored text area that looks like real paper. I even made the window title update dynamically based on the note you are reading. It’s lightweight, elegant, and perfect for planning world domination.
What’s next?
The core OS logic is super solid now. Next time, I really need to focus on the aesthetics. The desktop needs a proper cat-theme, and maybe some custom SVG icons to make everything look cohesive.
Stay pawsitive! 🐈