<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Roman Horokhovatskyy — Blog</title>
        <link>https://horoman.com/blog/</link>
        <description>Personal homepage of Roman Horokhovatskyy a Ukrainian multi-disciplinary digital designer based in Dublin, Ireland.</description>
        <language>en</language>
        <atom:link href="https://horoman.com/feed.xml" rel="self" type="application/rss+xml" />
        <item>
            <title>Why I stopped using Figma and prototype directly in code with AI</title>
            <link>https://horoman.com/blog/why-i-stopped-using-figma-and-prototype-in-code-with-ai/</link>
            <guid isPermaLink="true">https://horoman.com/blog/why-i-stopped-using-figma-and-prototype-in-code-with-ai/</guid>
            <pubDate>Wed, 18 Nov 2026 00:00:00 +0000</pubDate>
            <category>AI</category>
            <description>Six months without opening Figma: how Claude Code, a coded design system and Git changed UX ideation, A/B/C user testing, speed to market and why UX designers need to get technical.</description>
            <content:encoded><![CDATA[<p>Everyone talks about how AI is changing software development, and that part is already obvious. What fewer people are willing to admit out loud is how hard AI is shaking up UX design, and specifically the tools we have treated as untouchable for the last decade.</p>
<p>Here is my honest reality right now: it has been about six months since I last opened <a href="https://www.figma.com/">Figma</a> for real product work.</p>
<p>I did not stop designing, and I did not stop caring about craft. I stopped using Figma because once you have a real coded design system and a tool like <a href="https://claude.com/product/claude-code">Claude Code</a>, drawing interactive products inside a browser-based vector editor starts to feel outdated.</p>
<h2>Where AI really changes UX: the ideation phase</h2>
<p>I am not talking about skipping discovery, user research or product strategy. You still need to talk to users, understand domain constraints, map out information architecture and align with business goals.</p>
<p>The moment everything shifts is the ideation phase. Once your research materials are gathered and you have a clear enough vision to start shaping a feature or a new product, the old workflow was very slow: open Figma, pull components from a UI kit, arrange dozens of frames, wire up prototype connectors and try to simulate how the product might feel.</p>
<p>Back in 2013 <a href="https://horoman.com/blog/rapid-prototyping-in-html-and-why-static-mockups-fall-short/">I already argued that rapid HTML prototyping beats static mockups</a>, and in 2021 <a href="https://horoman.com/blog/a-design-system-is-not-a-figma-ui-kit/">I wrote about why a real design system lives in code, not in Figma</a>. For a long time though, building rich interactive prototypes in code still required hours of manual front-end work.</p>
<p>With AI coding agents, that bottleneck is gone. Because we already have our design system in code, I can sit down with Claude Code and turn an ideation concept into a real, working, hyper-realistic prototype in minutes instead of days.</p>
<h2>Hyper-realistic prototypes and real A/B/C testing</h2>
<p>Anyone who has tried to build a serious interactive prototype in Figma knows how frustrating it gets. Once a flow has conditional logic, real form inputs, dynamic filtering or multiple states, Figma prototypes turn into a mess of fragile connections full of weird bugs. On top of that, Figma's performance degrades fast as soon as a file grows heavy, and you end up spending hours or even days polishing fake interactions that still break during a demo.</p>
<p>Prototyping straight in code changes user testing completely.</p>
<p>Because the prototype runs in a real browser using real design system components, users can type real values, resize windows, navigate with a keyboard, trigger real validation states and interact with realistic data. It feels like testing a finished product, not clicking through a fragile slideshow.</p>
<p>Even better, speed unlocks real <strong>A/B/C testing</strong> during ideation. Instead of burning a whole week perfecting one Figma flow and getting attached to it, I can build three completely different approaches on three branches in an afternoon and put all three in front of real users the next day. Bad assumptions die early, winning directions stand out immediately, and you never waste engineering sprints building an unproven guess.</p>
<h2>VS Code + Claude Code vs Figma Make</h2>
<p>A lot of designers ask why not just use <a href="https://www.figma.com/make/">Figma Make</a> if you want AI-generated prototypes. I tried it, and for real product teams it makes very little sense to me.</p>
<p>With Figma Make you burn through Figma AI credits, wait longer for generations, work inside a closed sandbox, and still end up with something detached from your actual engineering codebase.</p>
<p>Compare that to opening <a href="https://code.visualstudio.com/">VS Code</a> (or whatever code editor you prefer) and working with Claude Code directly inside your product repository. If your repo is set up with the right <code>CLAUDE.md</code>, custom agent skills and design system context, the LLM already knows your tokens, your real components, your layout patterns and your accessibility rules.</p>
<p>Working right inside the repo gives you real advantages immediately:</p>
<ul>
<li>Every exploration lives cleanly on a <a href="https://git-scm.com/">Git</a> branch with full history, diffs and easy rollbacks.</li>
<li>You can inspect and test states in <a href="https://storybook.js.org/">Storybook</a> alongside your real component library.</li>
<li>You are not burning extra vendor credits inside a slow browser canvas just to recreate components that already exist in code.</li>
<li>When an idea wins user testing, you hand engineers a working branch built with real components instead of a flat picture they have to translate from scratch.</li>
</ul>
<h2>The business reality: time, money and speed to market</h2>
<p>Moving from a senior role to a Staff Product Designer changes how you evaluate tools. You stop looking only at what feels comfortable for designers and start paying much closer attention to business impact, budgets, performance and how fast a team can get a validated product to market.</p>
<p>Look closely at the real cost of keeping Figma at the center of a modern product organization:</p>
<ul>
<li>Expensive per-seat subscriptions for designers, plus extra Dev Mode seats for engineers, plus AI credit packs on top.</li>
<li>Hundreds of hours spent every year keeping Figma libraries manually synced with production code (and they still drift apart).</li>
<li>Weeks lost in translation between &quot;final&quot; Figma screens and what engineering actually ships, followed by endless QA rounds fixing spacing, states and responsive quirks.</li>
</ul>
<p>In a market-first world where shipping validated features quickly directly affects revenue and competitiveness, paying all that money and burning all that calendar time just to maintain a parallel fake version of your software is hard to justify. Prototyping directly in code gets you closer to ready-to-market software from day one, lowers rework, and saves real money.</p>
<h2>UX designers need to get more technical</h2>
<p>For this workflow to work, UX designers need to become more technical and learn tools like <a href="https://github.com/">GitHub</a>, basic Git (creating a branch, committing, opening a pull request) and a real code editor like VS Code.</p>
<p>I hear plenty of pushback from designers who say they are not engineers and do not want to touch a terminal. The reality is that if you really care about UX and love building real products, picking up the basics of Git and VS Code is really not hard anymore. You do not need to memorize commands or debug complex build configs alone. An LLM like Claude Code will guide you through 95% of the technical steps, explain errors in plain language and handle the heavy syntax while you focus on user flows, edge cases, copy, hierarchy and interaction quality.</p>
<p>The barrier to entry has never been lower, and the gap between designers who can ship working prototypes in a repo and designers who only push pixels in static tools is growing wider every month.</p>
<h2>Figma had a great run, now it is time to move on</h2>
<p>Just like Photoshop gave way to Sketch, and Sketch gave way to Figma, design tools always have an expiration date. Figma served our industry well for years, especially when code and design lived in two completely separate worlds.</p>
<p>That world is fading fast. If your team already has a design system in code and you are still spending days maintaining slow, buggy Figma prototypes and paying for seats and credits to fake interactivity, you are wasting both your time and your company's money. Open a code editor, wire up your repo context, prototype directly with AI, and test the real thing.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Switching from macOS to Linux with Omarchy</title>
            <link>https://horoman.com/blog/switching-from-macos-to-linux-with-omarchy/</link>
            <guid isPermaLink="true">https://horoman.com/blog/switching-from-macos-to-linux-with-omarchy/</guid>
            <pubDate>Fri, 18 Sep 2026 00:00:00 +0000</pubDate>
            <category>Tools</category>
            <description>After years with macOS as my main operating system, I switched to DHH&#39;s Omarchy (Quattro) on a Lenovo Legion 7a with an Apple Studio Display. Here is why it makes me smile every day.</description>
            <content:encoded><![CDATA[<p>Over the years I have used Windows, <a href="https://ubuntu.com/">Ubuntu</a> and <a href="https://www.apple.com/macos/">macOS</a> regularly for different projects and machines, but macOS was always my main daily operating system. For design and front-end work it stayed predictable, fonts looked sharp, hardware just worked, and I never felt a real push to leave it behind.</p>
<p>This month I finally made a jump I never really expected to make: I moved my primary daily workstation over to Linux, specifically <a href="https://omarchy.org/">Omarchy</a>.</p>
<p>Once again I have to blame <a href="https://dhh.dk/">David Heinemeier Hansson (DHH)</a> for getting me interested in this, just like <a href="https://horoman.com/blog/why-old-school-infrastructure-still-beats-the-cloud-for-most-projects/">when he wrote about leaving the cloud</a>. I jumped in fairly late compared to early adopters, starting straight with <strong>Omarchy 4 (Quattro)</strong> after it came out in August, and I was really surprised by how mature, fast and stable it already feels.</p>
<h2>Built for people who love computers</h2>
<p>Omarchy is built on <a href="https://archlinux.org/">Arch Linux</a> and the <a href="https://hyprland.org/">Hyprland</a> tiling window manager, wrapped in a unified desktop shell and opinionated defaults. DHH talks a lot about building an operating system for people who really love computers, where using your machine feels fast, intentional and fun again instead of bloated, noisy and corporate.</p>
<p>Usually, trying Arch Linux means spending an entire weekend reading wikis, picking a display manager, configuring audio, tweaking scaling and fixing broken font rendering. Omarchy skips all of that pain. Installation takes minutes, drivers work right away, and the whole system is super fast and stable from the first boot.</p>
<p>What stood out to me is that by default it already covers everything 95% of developers, designers and power users actually need every day. You sit down, log in, and you are immediately productive without fighting your operating system.</p>
<h2>Window management you will miss everywhere else</h2>
<p>The biggest shift coming from macOS is Hyprland's tiling window management.</p>
<p>On macOS and Windows you spend half your day dragging floating windows around, resizing edges with a mouse, hunting behind overlapping apps and trying to line two screens up cleanly. In Omarchy, windows snap into clean, balanced splits automatically, and jumping between workspaces or moving an app to another screen happens instantly from the keyboard.</p>
<p>Once your fingers learn those shortcuts, there is no going back. The moment you sit back down at a macOS or Windows laptop and start manually dragging title bars around, you almost want to cry because you miss Omarchy immediately.</p>
<h2>Themes that actually feel designed</h2>
<p>As a designer, one of the biggest reasons I never lasted long on Linux desktops in the past was visual inconsistency. You would install five apps and every single one looked like it came from a different decade and a different toolkit.</p>
<p>Omarchy's theme system changes that completely. Switching a theme updates your entire environment cleanly across the top bar, window borders, terminal and core apps in one go. Everything shares the same visual rhythm and color palette, so the whole desktop feels cohesive and cared for rather than hacked together.</p>
<h2>The plugins I use every day</h2>
<p>Omarchy 4's plugin ecosystem makes it easy to customize the desktop and top bar without maintaining fragile custom shell scripts. I like keeping my setup minimal, so right now I run a small set of plugins I actually use every day:</p>
<ul>
<li><a href="https://plugins.omarchy.org/plugin.html?id=dansmith888.cpu">CPU</a> to keep an eye on live CPU usage right in the bar.</li>
<li><a href="https://plugins.omarchy.org/plugin.html?id=dansmith888.gpu">GPU</a> for GPU stats (I prefer having CPU and GPU as separate plugins rather than one combined widget).</li>
<li><a href="https://plugins.omarchy.org/plugin.html?id=mehiel.darky">Darky</a> to automatically switch my themes between day and night.</li>
<li><a href="https://plugins.omarchy.org/plugin.html?id=jankeesvw.notification-center">Notification Center</a> for a clean, simple notification history without clutter.</li>
<li><a href="https://plugins.omarchy.org/plugin.html?id=io.github.kristoferlund.webcam">Webcam</a> for a quick camera preview before jumping into meetings.</li>
</ul>
<p>Installing or removing a plugin takes seconds, and the bar stays fast and clean.</p>
<h2>Debugging and tweaking the OS with your own AI agent</h2>
<p>Another huge reason Linux feels completely different in 2026 compared to ten years ago is how well Omarchy works with AI agents right at the operating system level.</p>
<p>Because everything on Arch and Hyprland lives in readable plain-text config files, logs and standard CLI tools, you can point whichever AI agent you prefer directly at your system to debug an issue or customize your setup. Instead of digging through ten-year-old forum threads when you want to tweak a Hyprland window rule, adjust a monitor layout, inspect a systemd service or diagnose a weird Bluetooth hiccup, you just ask your agent of choice. It reads the real config files and logs, explains what is going on, and helps you fix it in seconds.</p>
<p>Having that kind of open, scriptable OS paired with your own agent completely removes the old fear of breaking Linux. You stay in full control, you are not locked into one vendor's built-in assistant, and customizing your machine becomes fun instead of stressful.</p>
<h2>Hardware: Lenovo Legion 7a and Apple Studio Display</h2>
<p>To give Linux a fair shot instead of keeping it in a dual boot I would rarely open, I picked up a dedicated laptop: a 15-inch <a href="https://www.lenovo.com/">Lenovo Legion 7a</a> with an AMD Ryzen AI Max+ 392, 64GB of unified memory and 3TB of SSD storage.</p>
<p>Omarchy runs on this machine like a dream. Everything from Wi-Fi and Bluetooth to power management and smooth animations works with zero drama, and having 64GB of fast unified memory makes heavy multitasking, local builds and running local tools feel completely instant.</p>
<p>The part I was most nervous about was my desk monitor: an <a href="https://www.apple.com/studio-display/">Apple Studio Display</a> (1st generation). Apple hardware on Linux has a reputation for being tricky, especially around brightness controls, cameras and audio. To my surprise, everything works properly right away: full 5K resolution, refresh rate, auto-brightness, the built-in webcam, the speakers, and single-cable USB-C charging for the laptop.</p>
<p>Plugging in one USB-C cable at my desk and watching the Studio Display light up at full 5K with audio, webcam and power all working cleanly just like on a MacBook was the exact moment I knew I could live on this setup full time.</p>
<h2>Why it makes me smile every day</h2>
<p>Switching your primary operating system after more than a decade on macOS is never a casual move, and I really did not expect to enjoy the transition this much.</p>
<p>Omarchy feels like something extraordinary happening in desktop computing right now. It brings back the feeling that your computer belongs to you, responds instantly to what you want to do, and gets better every week alongside a passionate community. I am really excited to be part of it, and it is rare for an operating system to actually make me smile every single day when I sit down to work.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Ditching wireless headphones for wired audio and Hi-Fi</title>
            <link>https://horoman.com/blog/ditching-wireless-headphones-for-wired-audio-and-hifi/</link>
            <guid isPermaLink="true">https://horoman.com/blog/ditching-wireless-headphones-for-wired-audio-and-hifi/</guid>
            <pubDate>Sun, 14 Dec 2025 00:00:00 +0000</pubDate>
            <category>Tools</category>
            <description>After going through five pairs of Apple headphones in seven years, I switched to wired beyerdynamic DT 1770 PRO MKII, a FiiO K7 DAC and SIMGOT EW300 IEMs. Plus my thoughts on Apple Music and Tidal.</description>
            <content:encoded><![CDATA[<p>2025 turned out to be the year I completely changed how I listen to music, and it started with a pair of dead headphones.</p>
<p>My <a href="https://www.apple.com/airpods-max/">AirPods Max</a> (USB-C) broke barely over a year after I bought them, killed by the well-known condensation issue that builds up inside the aluminum ear cups. At that point I had enough. I sat down and counted how many Apple headphones I had owned over the last seven years: the first-generation AirPods, then AirPods Pro, then AirPods Pro 2, plus replacements along the way.</p>
<p>Five pairs of headphones in seven years. Every single one of them eventually died because of a hardware defect or a tiny glued-in battery that cannot be replaced.</p>
<p>Spending hundreds of euros every couple of years on disposable Bluetooth hardware stopped making any sense to me, so I decided to leave Apple audio behind and go back to wired analog headphones. I am so glad I did.</p>
<h2>Back to wired audio at the desk</h2>
<p>For my desk setup I picked up the <a href="https://global.beyerdynamic.com/p/dt-1770-pro-mk-2">beyerdynamic DT 1770 PRO MKII</a>, handmade in Germany.</p>
<p>They cost less than a pair of AirPods Max, they are built out of proper serviceable parts you can actually replace years from now, there is no battery inside to degrade, and they sound ten times better. The detail, separation and punch you get from real studio drivers over a cable makes Bluetooth compression immediately obvious the second you switch back.</p>
<p>To drive them properly at my desk, I paired them with a <a href="https://www.fiio.com/k7">FiiO K7</a> desktop DAC and headphone amplifier. It is a clean, solid unit with plenty of power, a physical volume knob that feels great to turn, and zero software bloat. Once you have a proper DAC and wired studio headphones on your desk, going back to wireless over-ears sounds noticeably flat and muffled.</p>
<h2>On the go with USB-C IEMs</h2>
<p>Of course I am not carrying full-size studio headphones on a train or a walk. For listening on the go, I switched to a pair of <a href="https://www.linsoul.com/products/simgot-ew300">Linsoul SIMGOT EW300</a> in-ear monitors, connected exclusively via USB-C straight to my phone.</p>
<p>For the price, they are surprisingly good. You get crisp, lively sound, decent passive isolation, zero charging cases to remember, and no batteries slowly dying after eighteen months of daily use. Plugging in a cable takes two seconds, and it just works every single time.</p>
<h2>What about Hi-Fi streaming platforms?</h2>
<p>Once you upgrade your headphones and DAC, you naturally start paying more attention to where your music comes from. Even though I walked away from Apple's audio hardware, I still have to give credit where it is due on the software side.</p>
<p>For lossless and Hi-Res streaming, <a href="https://music.apple.com/">Apple Music</a> is still at the top for me. You get full lossless and Hi-Res ALAC audio included at the standard subscription price, and the catalog is huge, especially for niche albums and international releases.</p>
<p>The other obvious choice for Hi-Fi is <a href="https://tidal.com/">Tidal</a>. Sound quality is great, but their app experience still drives me crazy. Cross-device playback and handoff are weak compared to what other services figured out years ago, and they still do not offer an official native Linux client. Apple does not give us a native Linux app either, of course, though I find it much easier to forgive Apple when it wins so clearly on catalog size and audio quality for the money.</p>
<p>Switching back to wired headphones felt like a step backward on paper, especially in a world where everyone wears wireless earbuds. In practice it is the exact opposite: better sound, better build quality, lower long-term cost, and gear that will still work ten years from now.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Why old-school infrastructure still beats the cloud for most projects</title>
            <link>https://horoman.com/blog/why-old-school-infrastructure-still-beats-the-cloud-for-most-projects/</link>
            <guid isPermaLink="true">https://horoman.com/blog/why-old-school-infrastructure-still-beats-the-cloud-for-most-projects/</guid>
            <pubDate>Fri, 04 Nov 2022 00:00:00 +0000</pubDate>
            <category>Development</category>
            <description>Inspired by DHH&#39;s essay on leaving the cloud, why owning boring in-house servers is often more cost-effective than renting from AWS, and my concern about cloud-only IT education.</description>
            <content:encoded><![CDATA[<p>A couple of weeks ago <a href="https://dhh.dk/">David Heinemeier Hansson (DHH)</a> published an essay called <a href="https://world.hey.com/dhh/why-we-re-leaving-the-cloud-654b47e0">Why we're leaving the cloud</a>, explaining why <a href="https://37signals.com/">37signals</a> is pulling <a href="https://basecamp.com/">Basecamp</a> and <a href="https://www.hey.com/">HEY</a> off <a href="https://aws.amazon.com/">AWS</a> and <a href="https://cloud.google.com/">Google Cloud</a> and moving back to their own hardware.</p>
<p>Reading it felt like a real relief. Finally I am not the only one thinking that putting everything in the cloud makes very little sense for the majority of projects.</p>
<p>I will be the first to admit that I am not a DevOps engineer or an infrastructure specialist. My background is in design and front-end development. Still, working closely with engineering teams and clients over the past decade, I have watched the same pattern repeat itself over and over: simple, predictable products getting wrapped in expensive, over-engineered cloud setups just because that is what everyone assumes you are supposed to do.</p>
<h2>&quot;Old school&quot; does not mean ineffective</h2>
<p>Somewhere along the last ten years, cloud marketing did an incredible job of convincing the whole tech industry that running your own servers or using a straightforward, traditional hosting setup is somehow outdated or amateur.</p>
<p>As DHH points out so clearly, &quot;the cloud&quot; is mostly just a nicer name for renting someone else's computers at a steep markup. Paying half a million dollars a year just for managed database and search services on HEY when you could buy serious hardware and run it for years is a wild number to read out loud, and the same math plays out on smaller scales across hundreds of medium-sized companies.</p>
<p>Calling an in-house setup or a well-configured server &quot;old school&quot; misses the point completely. Boring, predictable infrastructure that you actually own and understand is often way more cost-effective, runs reliably for years without surprise monthly bills, and does not collapse just because a major AWS region has a bad afternoon.</p>
<p>Sure, the cloud makes total sense at the two extremes DHH mentions: tiny side projects where a managed platform like <a href="https://www.heroku.com/">Heroku</a> or <a href="https://render.com/">Render</a> saves you time on day one, or sudden viral traffic spikes where you really do not know if you need ten servers or a hundred next week. Most businesses and web products though do not live at either extreme. They have steady, predictable traffic and a clear idea of what they need.</p>
<h2>A whole generation trained to default to AWS</h2>
<p>What worries me even more than the monthly invoices is how we got to a point where nobody even questions this anymore.</p>
<p>Look at modern IT university degrees, coding bootcamps and online engineering courses today. So many of them are heavily built around AWS, <a href="https://azure.microsoft.com/">Azure</a>, Google Cloud and cloud certifications. Students learn how to wire together managed cloud services, <a href="https://kubernetes.io/">Kubernetes</a> clusters and serverless functions before they have ever set up a plain Linux box, configured a web server from scratch, or seen how much traffic a single decent machine can actually handle on its own.</p>
<p>Whether intentional or not, that kind of education creates a whole generation of developers and architects who automatically choose and recommend the cloud as their first and only option. It is not even because they compared the numbers and decided AWS won on merit. It is simply because they have never tried, learned or operated any other kind of solution.</p>
<p>When your entire training teaches you to solve every problem by clicking through an AWS console, building a calm, self-hosted, in-house solution feels scary and unfamiliar, even when it would be simpler, cheaper and easier to maintain over five years.</p>
<h2>Questioning the default</h2>
<p>Again, I am not pretending to be an infrastructure guru who can architect a global data center. You do not need to be a specialist to notice when an industry stops thinking critically and just follows the loudest default.</p>
<p>We have seen this cycle before in design and front-end too, where heavy tools and trendy stacks become mandatory just because everybody talks about them, until people pause and realize a simpler approach actually works better.</p>
<p>I am really glad DHH and 37signals are speaking up publicly and putting real numbers behind it. The cloud is a useful tool when you really need elasticity, not a law of nature. Giving &quot;old school&quot; in-house solutions a fair look again makes much more sense for budgets and teams, and it is healthier for an open, decentralized web too.</p>
]]></content:encoded>
        </item>
        <item>
            <title>A design system is not a Figma UI kit</title>
            <link>https://horoman.com/blog/a-design-system-is-not-a-figma-ui-kit/</link>
            <guid isPermaLink="true">https://horoman.com/blog/a-design-system-is-not-a-figma-ui-kit/</guid>
            <pubDate>Thu, 14 Oct 2021 00:00:00 +0000</pubDate>
            <category>Design</category>
            <description>A design system is a real product that builds other products. From code repos, CI pipelines, SemVer releases and adoption metrics to WCAG 2.1 accessibility, theming, data visualization and internal evangelism.</description>
            <content:encoded><![CDATA[<p>Back in 2013 when <a href="https://horoman.com/blog/atomic-design-pattern-lab-and-thinking-in-systems/">I wrote about Atomic Design and Pattern Lab</a>, the hard part was convincing companies that building interfaces out of reusable blocks was even worth the effort. Most organizations were still designing and coding web applications page by page.</p>
<p>Eight years later, the industry swung completely to the other side. Today almost every company claims they have a design system, or that they are about to build one next quarter. Then you actually sit down with the team, ask to see it, and they send you a link to a single <a href="https://www.figma.com/">Figma</a> file containing a color palette, a typography scale and a page of button variants.</p>
<p>Let's be clear about this: that is a UI kit, not a design system.</p>
<p>A Figma library is useful, and it is definitely part of the story, yet it is only one small piece of what makes a real design system work. As <a href="https://medium.com/eightshapes-llc/a-design-system-isnt-a-project-its-a-product-serving-products-74dcfffef935">Nathan Curtis</a> put it so clearly back in 2016, a design system is not a side project with a finish line. It is a real product whose job is to help teams build other products.</p>
<p>Before going further, one important clarification. In large organizations, the phrase &quot;design system&quot; can mean completely different things depending on who is in the room. To a brand team it means corporate identity, logos and print manuals; to industrial or hardware divisions it can refer to physical product architecture, packaging, retail spaces or manufacturing standards. To avoid confusion, we need to be specific: in this article I am talking strictly about a <strong>digital design system</strong>, the system that allows teams to design, build and maintain digital products and their user interfaces.</p>
<p>After working on complex multi-product systems over the last few years, I wanted to write down everything a real digital design system actually consists of, because most teams underestimate how big the work actually is.</p>
<h2>Why component reusability breaks when it stops at Figma</h2>
<p>The main promise of a design system is component reusability at scale. You design, test, build and harden a complex pattern once, whether it is an accessible datepicker, a multi-select combobox or a data table, and every team across the company reuses it instead of burning weeks inventing slightly different versions.</p>
<p>If that reusability only exists inside Figma, you have barely solved ten percent of the problem. Designers drop tidy components onto artboards, hand them off, and three different front-end teams still write three separate implementations in CSS and JavaScript, each with its own bugs, padding inconsistencies and edge cases. Within six months the Figma file says one thing and production shows three other things.</p>
<p>Real reusability only happens when design assets, design tokens and production code live together as one synchronized product.</p>
<h2>Code repositories, tokens and CI/CD pipelines</h2>
<p>Once you move past the UI kit, the heart of a design system is engineering infrastructure.</p>
<p>Depending on the size of the company and the platforms you support, that usually means either a structured monorepo or multiple dedicated repositories: one for platform-agnostic design tokens, one for core styles and web components or framework libraries (React, Angular, Vue), and often separate native packages for iOS and Android.</p>
<p>Tools like Amazon's <a href="https://amzn.github.io/style-dictionary/">Style Dictionary</a> let you keep your foundational design decisions (colors, spacing, typography, elevation, radii) in clean JSON token files and compile them automatically into CSS custom properties, Sass variables, Swift and Android XML. When a semantic token changes, it propagates predictably across every platform instead of relying on someone manually copying hex codes out of a slide deck.</p>
<p>Around those repositories you need real automated pipelines:</p>
<ul>
<li>Linting and unit tests on every pull request so broken logic never slips into shared components.</li>
<li>Visual regression testing using tools like <a href="https://storybook.js.org/">Storybook</a> and <a href="https://www.chromatic.com/">Chromatic</a> to catch accidental pixel shifts across component states and breakpoints before release.</li>
<li>Automated build and publishing pipelines (via <a href="https://github.com/features/actions">GitHub Actions</a>, <a href="https://docs.gitlab.com/ee/ci/">GitLab CI</a> or similar) that package and publish libraries cleanly to internal or public <a href="https://www.npmjs.com/">npm</a> registries.</li>
</ul>
<p>Without automated testing and release pipelines, teams stop trusting the system the very first time an update breaks their production checkout or dashboard.</p>
<h2>Versioning, breaking changes and migration guides</h2>
<p>A design system is never &quot;finished&quot;. Products evolve, browser capabilities improve, brand identities refresh, and early architectural mistakes eventually have to be fixed. That means a design system has a real lifecycle with releases, deprecations and major upgrades.</p>
<p>Following <a href="https://semver.org/">Semantic Versioning (SemVer)</a> is mandatory here. Consuming teams need to know at a glance what kind of risk an update carries:</p>
<ul>
<li>A patch release (for example moving from <code>v2.5.5</code> to <code>v2.5.6</code>) only fixes bugs without changing the API.</li>
<li>A minor release (<code>v2.5.6</code> to <code>v2.6.0</code>) adds new components, props or variants in a backwards-compatible way.</li>
<li>A major release (<code>v2.5.6</code> jumping to <code>v3.0.0</code>) introduces intentional breaking changes, such as renaming props, restructuring markup for better accessibility, or retiring legacy tokens.</li>
</ul>
<p>How you handle a major jump like <code>v2.5.6</code> to <code>v3.0.0</code> separates a real product team from an internal side project. You do not just push a breaking update on Friday and tell forty developers to figure it out.</p>
<p>You publish deprecation warnings in earlier minor versions, maintain a clear human-readable changelog for every single release, write step-by-step migration guides showing before-and-after code snippets (and automated codemods whenever possible), and give product teams a realistic transition window where <code>v2</code> still receives critical security or bug fixes while they schedule the upgrade to <code>v3</code>.</p>
<h2>The documentation portal and the research behind the decisions</h2>
<p>Every serious design system needs its own dedicated documentation site or CMS. Some teams use specialized platforms like <a href="https://zeroheight.com/">Zeroheight</a> or Storybook Docs; personally I am a big fan of building custom documentation portals with tools like <a href="https://horoman.com/blog/why-im-moving-to-eleventy-for-my-site-and-documentation-projects/">Eleventy</a> or a tailored headless CMS so we have full control over navigation, live interactive sandboxes and search.</p>
<p>Most teams remember to document the &quot;what&quot;: component previews, prop tables, code snippets and visual do/don't examples. What gets forgotten far too often is documenting the <strong>why</strong>.</p>
<p>A great documentation portal should also preserve the UX research behind the components: usability testing summaries, accessibility audit notes, comparative benchmarks and short decision logs explaining why a component behaves the way it does.</p>
<p>Why does this matter so much? Because in medium and large companies people join, switch teams and leave all the time. If you do not document the research that led to a specific form validation pattern or table interaction, six months later a new designer or product manager will walk in and suggest changing it back to the exact pattern that failed with eight users in testing a year ago. Keeping research right next to the component specs preserves that knowledge over time and turns opinion debates into fact-based discussions.</p>
<h2>Accessibility beyond AA and AAA color contrast</h2>
<p>Accessibility is another area where I see a lot of shallow checkboxes. A designer runs a contrast plugin in Figma, verifies that primary text passes <a href="https://www.w3.org/TR/WCAG21/">WCAG 2.1</a> AA (or AAA for critical labels), puts an &quot;Accessible&quot; badge on the slide deck, and considers the job done.</p>
<p>Color contrast is only the starting line. Real accessibility in a design system lives in semantics, keyboard behavior and assistive technology support across every interactive state.</p>
<p>Every component shipped by the system has to handle the important details properly by default:</p>
<ul>
<li>Complete keyboard operability, including predictable <code>Tab</code> and <code>Shift+Tab</code> order, arrow-key navigation inside tabs, menus, radio groups and dropdowns, and <code>Escape</code> to dismiss dialogs or popovers.</li>
<li>Clear, high-visibility focus rings (<code>:focus-visible</code>) that never get stripped out with <code>outline: none</code> just because someone thought they looked noisy.</li>
<li>Proper focus management, such as trapping focus inside an open modal and returning focus back to the exact trigger button when the modal closes.</li>
<li>Clean semantic HTML first, backed by accurate <a href="https://www.w3.org/WAI/standards-guidelines/aria/">WAI-ARIA</a> roles, states and live regions (<code>aria-expanded</code>, <code>aria-controls</code>, <code>aria-invalid</code>, <code>aria-live</code>) tested with real screen readers like VoiceOver and <a href="https://www.nvaccess.org/">NVDA</a>.</li>
<li>Respect for user system preferences like <code>prefers-reduced-motion</code>, zoomed text up to 200%, Windows High Contrast mode and comfortable touch target sizes on mobile.</li>
</ul>
<p>This is one of the biggest practical benefits of a design system. When the core team gets these details right once in the shared components, every product team in the company ships far more accessible software automatically.</p>
<h2>Performance as a shared responsibility</h2>
<p>When twenty applications import your component library, performance stops being a local concern and becomes a system-wide responsibility.</p>
<p>If your icon package forces every app to download 400 unused SVGs, or your datepicker pulls in a massive legacy date library, you have just slowed down the entire company's product suite in one commit.</p>
<p>A mature design system treats performance budgets as first-class requirements. Components should be modular and tree-shakable so consuming apps only ship the code they actually import. Stylesheets should stay lean without deep specificity wars or giant unused utility dumps. Heavy modules like rich text editors or charting wrappers should support lazy loading, and CI pipelines should flag bundle-size regressions on every pull request just like failing unit tests.</p>
<h2>Theming beyond light and dark mode</h2>
<p>When people hear &quot;theming&quot; in 2021, they immediately think of adding a dark mode toggle. Dark mode is nice, of course, yet enterprise design systems usually need theming for much bigger structural reasons.</p>
<p>Think about a company managing multiple sub-brands, white-label partner portals, or a mix of public marketing apps and dense internal tools. A solid semantic token architecture lets one underlying component library power completely different expressions without duplicating code:</p>
<ul>
<li>Brand themes that swap typography, palettes, border radii and elevation cleanly for different products or partner brands.</li>
<li>Density themes, offering a spacious layout for consumer flows and a compact, high-density mode for power-user tables, financial tools or engineering dashboards.</li>
<li>High-contrast accessibility themes tailored for users with low vision or harsh viewing environments, alongside standard light and dark modes.</li>
</ul>
<p>Because components reference semantic tokens like <code>--color-surface-elevated</code> or <code>--color-text-muted</code> instead of raw colors like <code>#f4f4f4</code>, switching themes becomes a clean configuration change rather than a painful CSS rewrite.</p>
<h2>Data visualization belongs in the system too</h2>
<p>One area that gets left out of early design systems and then turns into total chaos later is data visualization.</p>
<p>Almost every serious B2B or enterprise product eventually needs charts, dashboards, sparklines, KPI summaries and complex tables. If the design system only covers buttons and modals, every product squad grabs a different charting library, invents its own rainbow color palette, formats axes differently, and builds inconsistent tooltips and empty states.</p>
<p>Bringing data visualization into the design system means defining clear, colorblind-safe categorical, sequential and diverging palettes, standardizing typography for numbers (including tabular figures so columns align cleanly), specifying hover/focus tooltips, legends, loading skeletons and accessible data-table fallbacks. Whether engineering implements them on top of <a href="https://d3js.org/">D3.js</a> or <a href="https://echarts.apache.org/">Apache ECharts</a>, dashboards across the whole product ecosystem finally feel like they belong to the same family.</p>
<h2>Measuring real adoption across the organization</h2>
<p>Because a design system is a product, you cannot run it blind. You need real adoption data, not gut feelings.</p>
<p>A healthy design system team tracks concrete metrics across the company:</p>
<ul>
<li>Who is using the system, in which repositories, and in which live products?</li>
<li>Which exact version is each team running right now? Knowing that six teams upgraded to <code>v3.0.0</code> while two critical products are still stuck on <code>v1.9.2</code> immediately tells you where you need to offer migration help.</li>
<li>Which components get used everywhere, and which ones are being ignored, overridden with custom CSS or detached in Figma? High detach rates in Figma or heavy CSS overrides in code are clear signals that a component is too rigid or missing a real use case.</li>
<li>How much duplicate custom UI code is actually shrinking over time, and how fast can a new team spin up a compliant screen compared to a year ago?</li>
</ul>
<p>These numbers do two important things: they guide the roadmap based on real developer and designer pain points, and they give leadership tangible proof that investing in the design system team is paying off.</p>
<h2>Evangelism, support and treating teams like customers</h2>
<p>Finally, there is the human side, which is where most design systems either take off or slowly die.</p>
<p>You can build the cleanest component library in the world, backed by solid CI pipelines and good documentation, and still see nobody use it if you build it in isolation and just hand it over.</p>
<p>Running a design system requires active internal evangelism and product promotion. You have to show up where product teams work: announce new releases clearly with demos in Slack or internal newsletters, run regular office hours where designers and engineers can bring messy real-world problems, host onboarding workshops for new hires, and celebrate teams that ship great work with the system.</p>
<p>Just as important is governance and contribution. If product teams feel like the design system team is just a strict gatekeeper that says &quot;no&quot; to every request, they will route around you and build their own components in secret. If instead you provide a clear, welcoming contribution process and listen closely when a component does not fit a real user need, teams start seeing the system as a shared asset they want to protect and improve.</p>
<h2>Call a UI kit a UI kit, and treat a design system like a product</h2>
<p>Not every organization needs all of this on day one. If you are a five-person startup building your first MVP, a clean Figma UI kit paired with a small shared component folder is completely fine. Calling it what it is saves everyone a lot of confusion.</p>
<p>Once a company has multiple products, multiple squads and years of software ahead of it though, pretending that a Figma file is a design system sets everyone up for failure. A real design system is an ongoing product with codebases, pipelines, SemVer releases, migration guides, research-backed documentation, deep accessibility, performance budgets, theming, data visualization, adoption telemetry and active community support.</p>
<p>It takes serious commitment, dedicated people and patience to build properly. When you treat it with that level of craft, it stops being an internal bottleneck and becomes the foundation that lets an entire organization ship better, faster and more accessible products year after year.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Why Information Architecture will always matter in UX</title>
            <link>https://horoman.com/blog/why-information-architecture-will-always-matter-in-ux/</link>
            <guid isPermaLink="true">https://horoman.com/blog/why-information-architecture-will-always-matter-in-ux/</guid>
            <pubDate>Tue, 18 May 2021 00:00:00 +0000</pubDate>
            <category>Design</category>
            <description>Information Architecture is often reduced to drawing a quick sitemap before jumping into UI design. Why real IA is still the foundation of complex digital products, with practical examples.</description>
            <content:encoded><![CDATA[<p>If you follow product design discussions right now, almost everything revolves around UI craft: <a href="https://www.figma.com/">Figma</a> component libraries, auto-layout tricks, design tokens, animations and polished visual case studies. Meanwhile, one of the oldest and most important disciplines in UX, Information Architecture (IA), gets pushed to the side or skipped completely.</p>
<p>Part of the problem is that a lot of people in our industry do not really understand what Information Architecture is anymore. On many projects I see IA treated as a one-hour deliverable where someone draws a quick sitemap with six boxes in a diagram tool, gets a thumbs-up from a stakeholder, and immediately opens Figma to design screens.</p>
<p>A sitemap is not Information Architecture. It is just one small picture of a hierarchy. And when teams skip real IA work on complex products, you can usually feel the damage for years.</p>
<h2>What Information Architecture actually covers</h2>
<p>If you go back to the classic UX literature, especially <a href="https://www.oreilly.com/library/view/information-architecture-4th/9781491913529/">Information Architecture: For the Web and Beyond</a> (the &quot;polar bear book&quot; by Louis Rosenfeld, Peter Morville and Jorge Arango) and <a href="https://abbycovert.com/">Abby Covert</a>'s <a href="https://www.howtomakesenseofanymess.com/">How to Make Sense of Any Mess</a>, IA is about how you structure, organize and label shared information environments so people can understand where they are and find what they need.</p>
<p>In practice, it sits at the intersection of three messy things: business context (goals, constraints, internal politics, technology), content (data types, volume, ownership, existing structure) and users (their actual tasks, vocabulary and mental models).</p>
<p>To make those three align, real IA works across four connected systems:</p>
<ol>
<li>Organization systems, which decide how information is grouped and structured (by task, by object, by audience, chronologically or across multiple facets).</li>
<li>Labeling systems, which decide what every section, action and category is called so users recognize it immediately without decoding internal jargon.</li>
<li>Navigation systems, which help people move through the product and always know where they are relative to the rest of the system.</li>
<li>Search systems, which cover what gets indexed, how results are ranked, how synonyms work and how users filter down large sets of results.</li>
</ol>
<p>Notice that none of this is about colors, rounded corners or button styles. You can have the cleanest design system in the world, and if these four systems are broken, users will still get lost and frustrated.</p>
<h2>Example 1: The enterprise portal shaped like an org chart</h2>
<p>One of the most common IA disasters happens in large B2B portals, banking platforms and enterprise software.</p>
<p>Imagine a company with four internal departments: Retail Operations, Billing Services, Legal &amp; Compliance, and Client Support. When they build a self-service portal for their customers, nobody sits down to do real IA research, so the top navigation ends up mirroring the company's internal org chart:</p>
<pre class="language-text"><code class="language-text">Portal (org-chart structure)
├── Retail Services
│   ├── Active Plans
│   └── Upgrade Requests
├── Billing & Finance
│   ├── Monthly Statements
│   └── Tax Documents
├── Legal & Compliance
│   ├── Signed Contracts
│   └── Renewal Terms
└── Support Center
    ├── Open Tickets
    └── Change Account Details</code></pre>
<p>From the inside of the company, this looks completely logical because every director sees their own department in the menu. From the customer's point of view, it makes zero sense.</p>
<p>Suppose a customer wants to check when their current contract expires, download the last invoice for it, and update the billing address on that same contract. In the org-chart structure, those three closely related actions are scattered across Legal &amp; Compliance, Billing &amp; Finance, and Support Center. The user has to guess how the company is organized internally just to finish one basic task.</p>
<p>A proper object-and-task-oriented IA reorganizes the exact same content around what the user actually thinks about:</p>
<pre class="language-text"><code class="language-text">Portal (user-centered structure)
├── My Contracts
│   └── [Contract #402]
│       ├── Overview & Renewal Terms
│       ├── Statements & Tax Documents
│       ├── Signed Agreements
│       └── Billing Details
├── Requests & Support
└── Account & Permissions</code></pre>
<p>Nothing in the visual design had to change to fix the core usability problem. Changing the underlying information model turned a confusing search across menus into a predictable place where everything related to a contract lives together.</p>
<h2>Example 2: Multi-faceted technical catalogs</h2>
<p>Hierarchies alone break down fast once a product grows past a few hundred items.</p>
<p>Consider a technical catalog with 50,000 industrial components or software modules. Take a single item: a wireless high-temperature sensor used in factory HVAC systems. Where does it belong in a rigid folder tree?</p>
<ul>
<li>Under <strong>Sensors &gt; Temperature</strong>?</li>
<li>Under <strong>Wireless Devices</strong>?</li>
<li>Under <strong>Industrial Automation &gt; HVAC</strong>?</li>
<li>Under <strong>By Manufacturer</strong>?</li>
</ul>
<p>If you force everything into one strict parent-child tree, three out of four users will look in the wrong branch first. Worse, different roles enter the exact same catalog with completely different mental models: an engineer filters by voltage range and operating temperature, a procurement manager searches by part number or availability, and a maintenance technician browses by the machine they are repairing.</p>
<p>This is where real IA moves beyond simple trees into faceted classification, polyhierarchy and controlled vocabularies. Instead of duplicating the same product page in four categories (or building a giant five-level mega-menu nobody can scan), every item has one canonical home and clean structured metadata:</p>
<ul>
<li>Category: Temperature Sensor</li>
<li>Connectivity: Wireless</li>
<li>Industry: Industrial HVAC</li>
<li>Operating range: -40C to 125C</li>
<li>Manufacturer: Brand X</li>
</ul>
<p>Now browsing, filtering and search all work on the same underlying taxonomy. Users can start from their own mental model and narrow down 50,000 items to 6 relevant results in three clicks.</p>
<h2>Example 3: Labeling, URLs and invisible friction</h2>
<p>Even a solid structure falls apart when the labeling system is sloppy.</p>
<p>I have audited complex dashboards where the navigation had &quot;Settings&quot;, &quot;Preferences&quot;, &quot;Configuration&quot; and &quot;Account&quot; all at the same time. Nobody on the team could even explain the difference between them without clicking through every screen. The same happens when marketing invents clever names for core features (calling a basic document archive &quot;Knowledge Universe&quot; or renaming &quot;Invoices&quot; to &quot;Financial Hub&quot;). Users do not want clever labels; they want simple, clear words that match what they already expect.</p>
<p>URL structure is part of IA too, even though almost nobody talks about it anymore. Compare <code>/accounts/acme/contracts/2021/</code> with <code>/app/view.do?id=9842&amp;tab=3</code>. A clean, predictable URL acts as an extra breadcrumb, tells users where they sit in the hierarchy, and stays understandable when someone pastes it into an email or Slack message.</p>
<h2>Old-school UX methods that still work</h2>
<p>The reason IA gets skipped so often is that doing it properly feels slow and less visible. You do not get shiny screens to show off in a design review at the end of week one.</p>
<p>Instead, you do classic, old-school UX work.</p>
<p>It usually starts with a content inventory and audit: actually listing every page, object, data field and document that exists today, seeing what is duplicated, outdated or owned by nobody. It is tedious spreadsheet work, and it almost always uncovers structural problems nobody knew existed.</p>
<p>Next comes card sorting. In an open card sort, you give real users cards with your content items and ask them to group things in a way that makes sense to them, and name those groups in their own words. That exposes how users actually think about the domain. Later, a closed card sort tests whether your proposed categories hold up under real use.</p>
<p>Finally, before drawing a single UI component, you can run a text-only tree test with a tool like <a href="https://www.optimalworkshop.com/treejack/">Treejack</a> from <a href="https://www.optimalworkshop.com/">Optimal Workshop</a>. You give participants concrete tasks (&quot;Find where to download your 2020 tax certificate&quot;) and measure how many go straight to the right branch without visual cues hiding a broken hierarchy.</p>
<p>Running a tree test on a plain text outline takes a couple of days and saves months of engineering rework later.</p>
<h2>Why IA will never go out of date</h2>
<p>Design tools change every few years. Front-end frameworks change even faster. Visual trends come and go in cycles.</p>
<p>What does not change is how human beings make sense of complex information. Whether someone is navigating a dense enterprise web application, a mobile app, a documentation portal or a voice interface, they still rely on clear structure, predictable grouping and unambiguous language.</p>
<p>UI design makes a product look clear and feel pleasant to use, and good engineering makes it fast and reliable. Information Architecture is what makes it actually understandable in the first place. That is why, no matter how modern our tools get, IA will always sit at the core of real UX work.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Why Safari on iOS is still hard to beat for pure usability</title>
            <link>https://horoman.com/blog/why-safari-on-ios-is-still-hard-to-beat-for-pure-usability/</link>
            <guid isPermaLink="true">https://horoman.com/blog/why-safari-on-ios-is-still-hard-to-beat-for-pure-usability/</guid>
            <pubDate>Mon, 12 Oct 2020 00:00:00 +0000</pubDate>
            <category>Design</category>
            <description>Developers love criticizing Safari, and many of those complaints are fair. Still, from a pure usability point of view on iOS, its Favorites, Reading List and SMS autofill beat other browsers.</description>
            <content:encoded><![CDATA[<p>With iOS 14 finally letting people change their default browser last month, my feed has been full of developers celebrating that they can ditch <a href="https://www.apple.com/safari/">Safari</a> for <a href="https://www.google.com/chrome/">Chrome</a> or <a href="https://www.mozilla.org/firefox/">Firefox</a>. And to be fair, I completely understand why web developers complain about Safari.</p>
<p>If you build web apps for a living, Safari on iOS can be very frustrating. Apple forces every third-party browser on iOS to use <a href="https://webkit.org/">WebKit</a> as its engine, updates are mostly tied to yearly iOS releases, and important platform features lag behind. We still do not have Web Push notifications on iOS, <a href="https://web.dev/progressive-web-apps/">PWA</a> support feels half-hearted, <a href="https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/">Intelligent Tracking Prevention</a> now wipes script-writable storage after seven days of inactivity, <code>100vh</code> still behaves awkwardly with the dynamic address bar, and it took until Safari 14 just to get WebP support.</p>
<p>All of those criticisms are valid from a developer perspective. From a pure usability perspective as an everyday user on an iPhone though, I still think Safari is one of the best mobile browsers out there.</p>
<h2>Simplicity and bookmarks that actually make sense</h2>
<p>What I appreciate most about Safari on iOS is how simple and direct the interface stays. When you open a new tab, your Favorites are right there in front of you as a clean grid of touch-friendly icons. One tap and you are on the site you visit every day.</p>
<p>Compare that to almost every other mobile browser. In Chrome, Firefox and <a href="https://www.microsoft.com/edge">Edge</a> on iOS, bookmarks are buried several taps deep inside menus and submenus. Even worse, they insist on splitting your saved links into separate &quot;Mobile Bookmarks&quot; and &quot;Desktop Bookmarks&quot; folders.</p>
<p>That has never made any sense to me. The web is one web, not two separate worlds. If I bookmark an article, a tool or a client staging link on my Mac, I want it in the exact same place when I pick up my iPhone five minutes later. Safari's iCloud sync keeps one unified list of Favorites and bookmarks across Mac, iPad and iPhone, and it syncs fast without asking me to dig through a &quot;Desktop Bookmarks&quot; folder on my phone.</p>
<h2>Small UX details you notice every single day</h2>
<p>Beyond the clean layout, Safari gets a handful of everyday interactions right that other browsers either ignore or make clumsy.</p>
<p>One of my favorites is SMS security code autofill using the standard <code>autocomplete=&quot;one-time-code&quot;</code> attribute that Apple introduced in iOS 12:</p>
<pre class="language-html"><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>input</span>
  <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>text<span class="token punctuation">"</span></span>
  <span class="token attr-name">inputmode</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>numeric<span class="token punctuation">"</span></span>
  <span class="token attr-name">autocomplete</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>one-time-code<span class="token punctuation">"</span></span>
  <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>verification_code<span class="token punctuation">"</span></span><span class="token punctuation">></span></span></code></pre>
<p>When a bank or web app sends a six-digit login code by SMS, Safari reads the incoming message and puts the code right on top of the keyboard. One tap fills the field and you move on, without switching to Messages, trying to remember six numbers, and switching back. As a designer and developer, it is one of those tiny touches that removes real friction from a flow everyone hates.</p>
<p>Another feature I use constantly is Reading List. Saving an article for later takes two taps, it syncs across all my devices via iCloud, and with the &quot;Automatically Save Offline&quot; setting turned on I can read long posts on a flight or in the subway with zero connection. Pair that with Reader View for clean typography, and I rarely feel the need to install separate read-it-later apps like <a href="https://getpocket.com/">Pocket</a> or <a href="https://www.instapaper.com/">Instapaper</a>.</p>
<h2>Where Safari still falls short: iCloud Keychain</h2>
<p>Not everything in Apple's ecosystem is great, and password management is where I have real complaints.</p>
<p>Autofilling a saved login inside Safari works fine, sure, but <a href="https://support.apple.com/en-us/HT204085">iCloud Keychain</a> is still a pretty barebones way to manage passwords. There is no standalone app for it, so whenever you need to look up a password manually you have to dig into the system Settings app on iOS or open Safari Preferences on Mac. You do not get folders, tags, secure notes, or a clean way to share credentials with a family member or a team. And the moment you have to log into something on a Windows or Linux machine, you are stuck.</p>
<p>For serious password management, dedicated cross-platform tools like <a href="https://1password.com/">1Password</a> or <a href="https://bitwarden.com/">Bitwarden</a> are still miles ahead of iCloud Keychain.</p>
<h2>Still my default on iOS</h2>
<p>I hope developers keep pushing Apple to fix Safari's WebKit limitations and ship missing web standards faster, and I really hope Apple gives password management a proper standalone experience one day.</p>
<p>Even with those flaws though, once I actually tried switching my default browser on iOS 14, I went right back to Safari within a few days. Clean Favorites on every new tab, fast unified bookmark sync, offline Reading List and one-tap SMS autofill add up to a calmer, faster mobile browsing experience than anything else on the App Store.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Why I am moving to Eleventy for my site and documentation projects</title>
            <link>https://horoman.com/blog/why-im-moving-to-eleventy-for-my-site-and-documentation-projects/</link>
            <guid isPermaLink="true">https://horoman.com/blog/why-im-moving-to-eleventy-for-my-site-and-documentation-projects/</guid>
            <pubDate>Thu, 16 Apr 2020 00:00:00 +0000</pubDate>
            <category>Development</category>
            <description>Leaving Ruby and Jekyll behind for Eleventy (11ty): 100% control over final HTML, CSS and JavaScript, fast builds, custom documentation sites, and proud hosting on GitHub Pages.</description>
            <content:encoded><![CDATA[<p>For almost six years <a href="https://horoman.com/blog/moving-my-site-to-jekyll-and-github-pages/">Jekyll</a> did a great job powering my personal site. Lately though, dealing with Ruby versions, Bundler errors and slow local rebuilds started getting in the way, especially when I wanted to build more customized layouts.</p>
<p>I looked at newer tools like <a href="https://www.gatsbyjs.org/">Gatsby</a> too, since everyone in the front-end world talks about them right now. The problem is that I do not want to ship a heavy React bundle and GraphQL layer to the browser just to render a portfolio, a blog or a documentation page.</p>
<p>That is why I started adopting <a href="https://www.11ty.dev/">Eleventy (11ty)</a>, created by <a href="https://www.zachleat.com/">Zach Leatherman</a>, not only for my own personal website but also for several documentation projects that need deep customization.</p>
<h2>100% control over the final HTML, CSS and JavaScript</h2>
<p>The main reason Eleventy clicked for me right away is simple: it stays completely out of your output.</p>
<p>Eleventy runs on <a href="https://nodejs.org/">Node.js</a>, compiles your templates at build time, and writes plain static files. It does not inject a single line of client-side JavaScript, no hydration scripts, no weird wrapper <code>&lt;div&gt;</code> elements, and no forced CSS framework. Every byte of HTML, CSS and JS that reaches the browser is 100% what I wrote.</p>
<p>That total control pays off directly in performance. When your pages are pure pre-rendered HTML with a small stylesheet and minimal JavaScript, load times are near instant even on slow mobile connections, and keeping accessibility and semantics clean is straightforward.</p>
<p>Configuration is just a small <code>.eleventy.js</code> file:</p>
<pre class="language-js"><code class="language-js">module<span class="token punctuation">.</span><span class="token function-variable function">exports</span> <span class="token operator">=</span> <span class="token keyword">function</span><span class="token punctuation">(</span><span class="token parameter">eleventyConfig</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
  eleventyConfig<span class="token punctuation">.</span><span class="token function">addPassthroughCopy</span><span class="token punctuation">(</span><span class="token string">'src/static'</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

  <span class="token keyword">return</span> <span class="token punctuation">{</span>
    <span class="token literal-property property">dir</span><span class="token operator">:</span> <span class="token punctuation">{</span>
      <span class="token literal-property property">input</span><span class="token operator">:</span> <span class="token string">'src'</span><span class="token punctuation">,</span>
      <span class="token literal-property property">output</span><span class="token operator">:</span> <span class="token string">'dist'</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">}</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span><span class="token punctuation">;</span></code></pre>
<p>You can mix <a href="https://mozilla.github.io/nunjucks/">Nunjucks</a>, <a href="https://shopify.github.io/liquid/">Liquid</a>, <a href="https://daringfireball.net/projects/markdown/">Markdown</a> and plain HTML in the same project, and builds finish in a fraction of a second.</p>
<h2>Why it works so well for custom documentation sites</h2>
<p>Beyond my personal site, Eleventy has become my favorite tool for building technical and design system documentation.</p>
<p>Off-the-shelf documentation generators work fine until a team needs something outside their default sidebar theme: custom live component previews, structured design token tables generated from JSON, multi-level navigation or tailored page layouts. Fighting a rigid documentation theme usually takes longer than building it properly from scratch.</p>
<p>With Eleventy, content authors still write clean Markdown files, while <code>_data/</code> JSON and JavaScript files feed structured data directly into Nunjucks templates and custom collections. You get complete freedom over the design, the markup and the interactive examples, without giving up a simple editorial workflow.</p>
<h2>Still proudly hosted on GitHub Pages</h2>
<p>Just like my old Jekyll setup, everything I build with Eleventy still deploys straight to <a href="https://pages.github.com/">GitHub Pages</a>.</p>
<p>With <a href="https://github.com/features/actions">GitHub Actions</a> now handling the build step automatically on every push and free HTTPS working automatically on custom domains, hosting static sites on GitHub Pages is even better than it was in 2014. There is no server to patch, no monthly hosting fee for static content, and the entire source lives cleanly in one Git repository.</p>
<p>Moving from Jekyll to Eleventy feels like keeping everything I loved about static sites while dropping the Ruby friction and gaining full flexibility. Whether it is my own site or a heavily customized documentation portal, having 100% control over the final code and shipping fast static HTML is the best setup I have used.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Why native apps still beat hybrid frameworks on accessibility and UX</title>
            <link>https://horoman.com/blog/why-native-apps-still-beat-hybrid-frameworks-on-accessibility-and-ux/</link>
            <guid isPermaLink="true">https://horoman.com/blog/why-native-apps-still-beat-hybrid-frameworks-on-accessibility-and-ux/</guid>
            <pubDate>Wed, 16 Oct 2019 00:00:00 +0000</pubDate>
            <category>Accessibility</category>
            <description>Why choosing between native iOS/Android and hybrid frameworks like Ionic is a core UX and accessibility decision, not just an engineering shortcut, and why designers need to actually learn native platforms.</description>
            <content:encoded><![CDATA[<p>Every time a company plans a new mobile app, the exact same conversation happens in the first kickoff meeting: &quot;Can we just build it once with <a href="https://ionicframework.com/">Ionic</a> or a hybrid framework so we don't have to pay for separate iOS and Android teams?&quot;</p>
<p>Usually that decision gets made by engineering managers and stakeholders as a pure budget and staffing call, without ever involving UX designers. That is a huge mistake. Choosing between native and hybrid is not just a technical implementation detail; it directly shapes the core user experience and accessibility of the product.</p>
<h2>The illusion of &quot;write once&quot; with Ionic</h2>
<p>I have worked on and audited several hybrid mobile apps built with Ionic and <a href="https://cordova.apache.org/">Apache Cordova</a>, and on paper the pitch always sounds tempting: write HTML, CSS and JavaScript once, wrap it inside a WebView, and ship to both stores.</p>
<p>In practice, you feel the compromises almost immediately. Scrolling inertia feels slightly off, navigation transitions stutter on mid-range phones, keyboard appearance pushes fixed headers around awkwardly, and every time iOS or Android updates its system design language, your CSS-faked native components suddenly look dated and broken.</p>
<p>What bothers me much more than rough animations though is <strong>accessibility</strong>.</p>
<h2>Real users do not use default phone settings</h2>
<p>A surprising number of designers and developers still assume everyone uses their phone at factory default settings. They do not.</p>
<p>Millions of people customize their phones every single day just to read and operate them comfortably:</p>
<ul>
<li>They bump up the system font size (sometimes all the way to extra-large accessibility sizes) because default 16pt body copy is tiring or impossible to read.</li>
<li>They turn on <strong>Bold Text</strong> across the entire operating system to make thin typefaces legible.</li>
<li>They enable <strong>Reduce Motion</strong> because zooming transitions, bouncing modals and parallax effects trigger real motion sickness and headaches.</li>
<li>They turn on <strong>Increase Contrast</strong>, <strong>Button Shapes</strong>, or navigate the whole phone with VoiceOver on iOS and TalkBack on Android.</li>
</ul>
<p>Respecting those preferences is not an optional edge case you tack on after launch. It is part of how real people use their devices, which makes it core UX.</p>
<p>When you build a native iOS app with UIKit (or a native Android app with standard platform components), a big part of this already works by default. iOS gives you <strong>Dynamic Type</strong> so text scales automatically across the interface, respects Bold Text and Reduce Motion natively, handles VoiceOver focus order predictably, and delivers native haptics and gesture navigation without writing fragile JavaScript hacks.</p>
<p>Inside a hybrid WebView framework like Ionic, almost all of that breaks by default. System font scaling is often ignored completely unless engineers manually bridge OS settings into CSS, Reduce Motion rarely maps cleanly to custom JavaScript transitions, and screen readers frequently break on fake HTML modals and nested <code>&lt;div&gt;</code> buttons. Saving money upfront by picking a hybrid wrapper almost always ends up taxing your users' accessibility and costing way more to patch later.</p>
<h2>The other half of the problem: designers do not learn native</h2>
<p>To be fair, engineers and budgets are not the only reason native mobile apps suffer. A lot of UX and UI designers simply do not know what it actually means to design natively, especially for iOS.</p>
<p>Because most of us grew up designing for the web, we take a desktop layout, shrink it to 375px, invent custom navigation bars, custom back buttons, custom datepickers and fixed pixel text sizes, and then hand it to iOS developers who have to fight UIKit just to build our non-native ideas.</p>
<p>Part of that confusion comes from documentation too. While <a href="https://material.io/design/">Google's Material Design</a> gives you tons of visual specs, spacing diagrams and ready-made component blueprints, <a href="https://developer.apple.com/design/human-interface-guidelines/">Apple's Human Interface Guidelines</a> can feel frustrating at first. Apple does not hand you everything as a copy-paste UI template; the guidelines are principle-driven and sometimes sparse on concrete visual examples.</p>
<p>If you want to design great native apps, you actually have to care enough to dig deeper: read the HIG carefully, sit down with iOS engineers to understand how real UIKit components behave when Dynamic Type hits 200% or when a user turns on Reduce Motion, and spend time studying the best native craft in the industry.</p>
<p>Look closely at apps like <a href="https://culturedcode.com/things/">Things 3</a>, <a href="https://bear.app/">Bear</a>, <a href="https://overcast.fm/">Overcast</a> or <a href="https://flexibits.com/fantastical">Fantastical</a>. Change your iPhone's font size, flip on Bold Text and Reduce Motion, turn on VoiceOver, and see how well those apps adapt while still looking clean and well designed. You will learn more about real native UX in one evening studying those apps than from a hundred Dribbble shots.</p>
<h2>Respect the platform and respect the user</h2>
<p>Hybrid frameworks might still make sense for a quick internal prototype or a throwaway conference app. For a real consumer or enterprise product that people rely on every day, going native gives you speed, platform conventions and out-of-the-box accessibility that WebViews simply cannot match.</p>
<p>UX designers need to have a real voice in that architecture decision, and we need to hold ourselves to a higher standard by actually learning how native platforms work. When you respect the operating system, you respect the people using it.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Why every product company needs Service Design</title>
            <link>https://horoman.com/blog/why-every-product-company-needs-service-design/</link>
            <guid isPermaLink="true">https://horoman.com/blog/why-every-product-company-needs-service-design/</guid>
            <pubDate>Tue, 24 Apr 2018 00:00:00 +0000</pubDate>
            <category>Design</category>
            <description>Inspired by conversations with my colleague Ilaria Farina, why a great UI is never enough on its own, what Service Design actually is, how to practice it, and why it has to be maintained continuously.</description>
            <content:encoded><![CDATA[<p>Picture a completely ordinary Tuesday morning. You need to open a new account with a bank or renew a utility contract. You download their mobile app, and you are actually impressed: the typography is clean, the onboarding flow is smooth, the micro-interactions feel polished, and you submit all your documents in five minutes.</p>
<p>Then the next day something small goes wrong with your address.</p>
<p>You get an automated email from a <code>noreply</code> address telling you to call customer support. You wait fifteen minutes on hold, explain everything from scratch, and the support agent tells you they cannot see the documents you uploaded in the app because their internal CRM does not talk to the mobile platform. They ask you to walk into a local branch, print the same form on paper, and sign it again.</p>
<p>The UI designer who built that app did a great job. The engineers shipped clean code. Yet from the customer's point of view, the entire experience was broken.</p>
<p>I have been thinking a lot about moments like this lately after many inspiring conversations with my colleague <strong>Ilaria Farina</strong>, a UX and Service Designer I have the privilege of working with. Talking through real product problems with her pushed me to write this down, because I believe every product company needs <strong>Service Design</strong>, and far too few actually invest in it.</p>
<h2>What Service Design really is</h2>
<p>Most digital teams zoom in tightly on a single screen or touchpoint: the checkout flow, the mobile app, the marketing landing page. Service Design zooms out and looks at the entire end-to-end journey a person goes through with a company, across every channel, over time.</p>
<p>As laid out in <a href="https://www.thisisservicedesigndoing.com/">This Is Service Design Doing</a> (a great practical book from Marc Stickdorn, Markus Hormess, Adam Lawrence and Jakob Schneider that just came out earlier this year), a service is made of two halves working together.</p>
<p>There is the frontstage: everything the customer directly sees and interacts with, from your website and mobile app to automated emails, packaging, store staff and support calls. And right behind it is the backstage: the internal processes, employee tools, databases, policies and handoffs between departments that make the frontstage possible.</p>
<p>You cannot fix a broken frontstage experience with nicer buttons if the backstage is disconnected. Service Design connects both sides into one coherent system.</p>
<h2>Why it matters so much for the business</h2>
<p>Companies often treat Service Design as a soft, abstract exercise for agencies or public institutions. In reality, it is one of the most practical business tools a product organization can have.</p>
<p>When frontstage and backstage are out of sync, the company loses a lot of money in ways that rarely show up in a single UI analytics dashboard:</p>
<ul>
<li>Customer support teams get flooded with repetitive tickets caused by gaps between digital channels and internal operations.</li>
<li>Customers abandon onboarding or churn not because a screen was confusing, but because delivery, billing or follow-up broke their trust.</li>
<li>Internal departments duplicate work, fight over ownership and build competing tools because nobody has a shared map of how the service actually runs end to end.</li>
</ul>
<p>Investing in Service Design aligns business operations around real customer value. It exposes expensive internal bottlenecks early, reduces support overhead, and makes every euro spent on UI and engineering actually pay off.</p>
<h2>When should you do it?</h2>
<p>The best moment to bring in Service Design is before you commit to building a new product, launching in a new market, or running a major digital transformation. Mapping the full service upfront saves months of building features that collapse the moment they hit real operational constraints.</p>
<p>That said, you do not need a brand-new product to start. If your app already has high drop-off rates, angry support reviews or constant friction between product, operations and legal teams, doing a Service Design audit right now will tell you more than ten rounds of UI tweaks ever could.</p>
<h2>How to practice it in the real world</h2>
<p>Real Service Design cannot happen inside a design silo. If a designer sits alone in a room drawing ideal customer journeys, nothing in the company will actually change.</p>
<p>In practice, it works best as a cross-functional effort. You bring together people from product, UX, engineering, customer support, operations and business stakeholders. You start with real field research: interviewing customers across their whole lifecycle, listening to real support calls, and shadowing the frontline staff who deal with broken internal tools every day.</p>
<p>From that evidence, you build shared maps like Customer Journey Maps and <a href="https://www.nngroup.com/articles/service-blueprints-definition/">Service Blueprints</a>. A Service Blueprint lays out customer actions at the top, frontstage touchpoints right below, backstage employee actions underneath, and the underlying systems and policies at the bottom. Put that on a wall in front of a leadership team and hidden breakdowns jump out immediately.</p>
<p>From there, you prototype and test service improvements in small, low-cost pilots before rolling out big organizational or technical changes.</p>
<h2>A service is never &quot;finished&quot;</h2>
<p>Here is the biggest trap I see companies fall into when they finally try Service Design: treating it like a one-off project.</p>
<p>They hire a consultant or run a two-week workshop, print a huge colorful Service Blueprint poster, hang it in a meeting room, feel proud for a month, and then go right back to working in silos. Six months later the product has new features, a new billing provider replaced the old one, support changed its workflow, and that poster on the wall is already fiction.</p>
<p>Service Design is not something you finish and check off a list. A real service is alive. Customer expectations evolve, competitors raise the bar, regulations change, and internal teams grow and reorganize. Your service blueprints, research and operational loops have to be maintained, revisited and explored continuously as part of how the company works every quarter.</p>
<p>Good UI makes a single screen pleasant to use. Service Design makes the entire company work cleanly around the people it serves. Every serious product company should treat it as a core capability, not an afterthought.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Building a small device lab with Browsersync and DevTools throttling</title>
            <link>https://horoman.com/blog/building-a-small-device-lab-with-browsersync-and-throttling/</link>
            <guid isPermaLink="true">https://horoman.com/blog/building-a-small-device-lab-with-browsersync-and-throttling/</guid>
            <pubDate>Thu, 15 Jun 2017 00:00:00 +0000</pubDate>
            <category>Development</category>
            <description>Why testing only on flagship phones and office Wi-Fi hides real UX problems, how to build a low-cost device lab with mid-range and budget hardware, and how I use Browsersync and Chrome DevTools throttling.</description>
            <content:encoded><![CDATA[<p>Almost every design and development team I meet tests their website the exact same way: on a fast MacBook Pro, inside Chrome's responsive viewport mode, and maybe once on a brand new iPhone 7 or Galaxy S8 connected to fast office Wi-Fi.</p>
<p>Everything looks smooth, animations run at 60fps, and pages load in half a second. Then the site goes live and real users start complaining that scrolling is not smooth, forms lag when typing, and the homepage takes eight seconds to appear on a train.</p>
<p>That gap is why I strongly believe every web team (and even solo freelancers) should invest in a small physical <strong>device lab</strong>, and pair it with <a href="https://www.browsersync.io/">Browsersync</a> and network throttling.</p>
<h2>Skip the flagships, buy budget and mid-range phones</h2>
<p>When people hear &quot;device lab&quot;, they immediately imagine spending thousands of euros on every new flagship smartphone. That misses the whole point.</p>
<p>If your product runs fast and feels responsive on a two-year-old budget Android phone, it will fly on a flagship iPhone. The reverse is almost never true.</p>
<p>A small, practical device lab in 2017 only needs four or five real machines:</p>
<ul>
<li>A budget or mid-range Android phone like a <a href="https://www.motorola.com/">Moto G</a> or a Samsung Galaxy J series (this is where heavy JavaScript and unoptimized images expose themselves immediately).</li>
<li>An older small-screen iPhone like an iPhone 5s or iPhone SE (still plenty of people browsing at 320px wide).</li>
<li>One mid-range tablet like an older iPad or Android tablet to catch awkward portrait/landscape breakpoints.</li>
<li>A cheap Windows laptop with Edge and Internet Explorer 11 if your audience includes corporate offices.</li>
</ul>
<p>You do not need a big budget to put this together. The easiest low-cost way to start is asking friends and coworkers for the old phones sitting dead in their desk drawers, picking up two refurbished mid-range Android devices for under €100 each, plugging them into a simple multi-port USB charging hub, and checking if there is a community <a href="https://opendevicelab.com/">Open Device Lab</a> near your city you can visit for free.</p>
<h2>Syncing every screen with Browsersync</h2>
<p>Testing on five physical devices manually gets annoying fast if you have to type URLs, reload five browsers and scroll to the same section five times in a row.</p>
<p>That is where <a href="https://www.browsersync.io/">Browsersync</a> saves hours every week. It spins up a local network URL (something like <code>http://192.168.1.42:3000</code>) that every phone and tablet on your Wi-Fi can open at once, and then mirrors your scroll position, clicks, form inputs and live CSS updates across every connected screen simultaneously.</p>
<p>For quick static prototypes or HTML work, you can launch it straight from the terminal in one line:</p>
<pre class="language-bash"><code class="language-bash">browser-sync start <span class="token parameter variable">--server</span> <span class="token string">"dist"</span> <span class="token parameter variable">--files</span> <span class="token string">"dist/css/*.css, dist/*.html"</span></code></pre>
<p>When I want full control inside a project (for example proxying a local WordPress or Kirby site and keeping scroll, clicks and forms synced across the lab), I drop a small <code>bs-config.js</code> file in the repo:</p>
<pre class="language-js"><code class="language-js">module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>
  <span class="token literal-property property">proxy</span><span class="token operator">:</span> <span class="token string">'client-site.local'</span><span class="token punctuation">,</span>
  <span class="token literal-property property">files</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">'dist/css/*.css'</span><span class="token punctuation">,</span> <span class="token string">'dist/js/*.js'</span><span class="token punctuation">,</span> <span class="token string">'templates/**/*.php'</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
  <span class="token literal-property property">ghostMode</span><span class="token operator">:</span> <span class="token punctuation">{</span>
    <span class="token literal-property property">clicks</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
    <span class="token literal-property property">forms</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
    <span class="token literal-property property">scroll</span><span class="token operator">:</span> <span class="token boolean">true</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
  <span class="token literal-property property">open</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
  <span class="token literal-property property">notify</span><span class="token operator">:</span> <span class="token boolean">false</span>
<span class="token punctuation">}</span><span class="token punctuation">;</span></code></pre>
<p>And run it with <code>browser-sync start --config bs-config.js</code>. Now when I scroll down a landing page on my laptop, all four phones on the desk stand scroll in sync at the exact same time. When I tap a navigation menu or fill in a checkout field on one phone, every other screen mirrors it. You immediately spot layout shifts, cut-off headings, sticky headers covering inputs, and slow touch responses across every screen size in one pass.</p>
<h2>Low-cost simulation with Chrome DevTools throttling</h2>
<p>Even if you only own one phone right now, you still have zero excuse for testing only on fast office broadband and a desktop CPU.</p>
<p><a href="https://developer.chrome.com/devtools">Chrome DevTools</a> has built-in throttling that gets you surprisingly close to real-world pain:</p>
<ul>
<li>Open the <strong>Network</strong> tab and switch from <code>No throttling</code> to <strong>Slow 3G</strong> or <strong>Fast 3G</strong> (with <code>Disable cache</code> checked). Suddenly you feel real latency and limited bandwidth, and you see immediately if your web fonts hide text for four seconds or if a 2MB hero image blocks the whole page.</li>
<li>Open the <strong>Performance</strong> tab and set <strong>CPU throttling</strong> to <code>4x slowdown</code> or <code>6x slowdown</code>. This simulates a weak mobile processor struggling to parse big JavaScript bundles, run scroll listeners or repaint expensive CSS shadows.</li>
<li>Combine that with Android remote debugging via <code>chrome://inspect</code> over USB (and Safari Web Inspector for iOS) so you can inspect live DOM and network waterfalls directly on the physical phones in your lab.</li>
</ul>
<h2>Why cloud services like BrowserStack are not enough</h2>
<p>People often ask why bother keeping physical phones on a desk when you can just pay for a cloud testing service like <a href="https://www.browserstack.com/">BrowserStack</a>.</p>
<p>BrowserStack is very useful when you need to check a quick layout bug on an obscure Windows browser or an older Safari version you do not own. For testing real mobile usability though, streaming a remote device inside a browser window does not replace holding the phone in your hand.</p>
<p>First, there is always video and input latency over the network, so scrolling and tapping feel delayed even when the actual website is fast, making it hard to tell whether a laggy animation is your code or the remote stream. Second, clicking a virtual phone screen with a desktop mouse hides everything about physical ergonomics: you never feel how awkward a top-left button is to reach with one thumb, or how tight two links sit next to each other on a small touch screen.</p>
<p>Just as important are real-world physical conditions. Holding a cheap phone in your hands lets you see your product with your own eyes under harsh office lighting, outdoors in sunlight, with screen glare, on low brightness or on a budget LCD display with weak contrast. Those details expose thin fonts and low-contrast grays in seconds in a way a calibrated MacBook screen running BrowserStack never will.</p>
<h2>Speed and responsiveness are core UX</h2>
<p>We spend a lot of time talking about visual polish, animations and new front-end frameworks, yet one of the most crucial parts of good user experience is simply making sure a product loads fast and reacts smoothly when a real person taps and scrolls on an average phone.</p>
<p>Setting up a small, cheap device lab with Browsersync and making 3G/CPU throttling part of your regular workflow changes how you design and code. Once you watch your own site struggle on a €100 Android phone over a throttled 3G connection, you start caring about clean markup, lean JavaScript and real performance in a way a fast MacBook will never teach you.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Exploring WebVR, Mozilla A-Frame and the limits of mobile VR</title>
            <link>https://horoman.com/blog/exploring-webvr-a-frame-and-the-limits-of-mobile-vr/</link>
            <guid isPermaLink="true">https://horoman.com/blog/exploring-webvr-a-frame-and-the-limits-of-mobile-vr/</guid>
            <pubDate>Thu, 22 Sep 2016 00:00:00 +0000</pubDate>
            <category>Development</category>
            <description>Why browser-based Virtual Reality is getting much easier to build with Mozilla&#39;s A-Frame, what my experimental VR thesis taught me about performance and motion sickness, and the limits of mobile screens.</description>
            <content:encoded><![CDATA[<p>I have been excited about Virtual Reality since the very first <a href="https://www.oculus.com/">Oculus Rift</a> Kickstarter and early Dev Kit prototypes, even before <a href="https://www.facebook.com/">Facebook bought Oculus</a> back in 2014. Seeing real consumer headsets like the Rift and the <a href="https://www.vive.com/">HTC Vive</a> finally hit the market this year feels like watching science fiction turn into actual hardware.</p>
<p>What gets me even more excited as a web designer and developer though is not closed desktop app stores. It is <strong>WebVR</strong>, the idea that you can open a normal URL in a browser and step straight into a 3D environment without downloading a 4GB native app first.</p>
<h2>How Mozilla A-Frame makes WebVR approachable</h2>
<p>Until recently, building a 3D or VR experience for the browser meant writing a lot of boilerplate <a href="https://www.khronos.org/webgl/">WebGL</a> and <a href="https://threejs.org/">Three.js</a> JavaScript, handling stereoscopic cameras, lens distortion, orientation sensors and fallbacks by hand.</p>
<p>That changed fast thanks to <a href="https://www.mozilla.org/">Mozilla</a> and their <a href="https://aframe.io/">A-Frame</a> library. Built by the MozVR team on top of Three.js and the new <a href="https://webvr.info/">WebVR</a> 1.0 API (with A-Frame 0.3.0 just out last month), it lets you describe a VR scene using plain, declarative HTML tags:</p>
<pre class="language-html"><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>script</span> <span class="token attr-name">src</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>https://aframe.io/releases/0.3.0/aframe.min.js<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token script"></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>script</span><span class="token punctuation">></span></span>

<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a-scene</span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a-box</span> <span class="token attr-name">position</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>0 1.5 -3<span class="token punctuation">"</span></span> <span class="token attr-name">rotation</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>0 45 0<span class="token punctuation">"</span></span> <span class="token attr-name">color</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>#4CC3D9<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a-box</span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a-plane</span> <span class="token attr-name">position</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>0 0 -4<span class="token punctuation">"</span></span> <span class="token attr-name">rotation</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>-90 0 0<span class="token punctuation">"</span></span> <span class="token attr-name">width</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>8<span class="token punctuation">"</span></span> <span class="token attr-name">height</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>8<span class="token punctuation">"</span></span> <span class="token attr-name">color</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>#7BC8A4<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a-plane</span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a-sky</span> <span class="token attr-name">color</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>#ECECEC<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a-sky</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a-scene</span><span class="token punctuation">></span></span></code></pre>
<p>Drop that into an HTML file, open it in Firefox or on a smartphone, tap the VR goggles icon, and you already have a stereoscopic scene ready for <a href="https://vr.google.com/cardboard/">Google Cardboard</a> or a desktop headset. Lowering the barrier to entry this much means designers and front-end developers can finally prototype spatial interfaces in the browser instead of waiting for specialized game engine pipelines.</p>
<h2>What my experimental VR thesis taught me about performance</h2>
<p>Earlier this year I spent months working on my experimental thesis project, building a browser-based Virtual Reality experience designed to run across everyday devices instead of only high-end gaming PCs. I won't go into all the details of the project here, since it deserves its own dedicated case study, but building it from 3D models and lighting all the way to browser interactions taught me one huge lesson: in VR, <strong>performance is everything</strong>.</p>
<p>On a normal website, a choppy scroll or a brief frame drop is annoying. In Virtual Reality, dropped frames and input latency immediately cause <strong>motion sickness</strong>. If your head turns and the scene lags behind by even a fraction of a second, your brain rejects the illusion and you feel nauseous within minutes.</p>
<p>Keeping geometry low-poly, baking lighting into textures instead of calculating heavy real-time shadows, and watching every single draw call stops being a nice optimization and becomes a hard requirement for basic human comfort.</p>
<h2>The real limits of mobile screens right now</h2>
<p>Testing WebVR across phones and tablets also makes the current hardware limits very clear.</p>
<p>Desktop headsets like the Oculus Rift run at 90Hz with dedicated GPUs and full positional tracking. Most smartphones today are still stuck at 60Hz, have limited mobile GPUs that heat up and throttle after a few minutes of rendering two stereoscopic views at once, and only track head rotation rather than physical movement in space.</p>
<p>Even the screens themselves show their limits once you put two magnifying lenses inches from your eyes. Lower-resolution mobile displays suffer heavily from the &quot;screen-door effect&quot; where you can literally see the grid of pixels, small UI text becomes hard to read without eye strain, and battery drains fast.</p>
<h2>Still early, but heading in the right direction</h2>
<p>Despite all of those hardware and performance constraints, I am really optimistic about where WebVR is going. Mobile screens are getting sharper every year, browser support for WebVR 1.0 is moving forward quickly, and tools like Mozilla's A-Frame are making spatial web experiments way simpler to build and share with a single link.</p>
<p>VR on the web is still early and imperfect in 2016, just like early HTML5 and mobile web apps were a few years ago. Once hardware catches up and we get better at optimizing 3D performance in the browser, the web is going to be one of the most open and accessible platforms for Virtual Reality.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Moving the heavy lifting to the browser with ES6, AngularJS and Webpack</title>
            <link>https://horoman.com/blog/moving-the-heavy-lifting-to-the-browser-with-es6-angularjs-and-webpack/</link>
            <guid isPermaLink="true">https://horoman.com/blog/moving-the-heavy-lifting-to-the-browser-with-es6-angularjs-and-webpack/</guid>
            <pubDate>Tue, 20 Oct 2015 00:00:00 +0000</pubDate>
            <category>Development</category>
            <description>Why shifting UI rendering and interaction logic from traditional PHP servers to client-side JavaScript makes web apps feel faster, and how ES6, AngularJS and Webpack fit into my 2015 workflow.</description>
            <content:encoded><![CDATA[<p>For most of my career, building a dynamic website followed the same classic pattern: the server did almost all the work. Whether I was working with <a href="https://horoman.com/blog/wordpress-custom-post-types-and-advanced-custom-fields/">WordPress</a> or <a href="https://horoman.com/blog/falling-in-love-with-kirby-cms-and-why-i-prefer-it-to-wordpress/">Kirby</a>, <a href="https://www.php.net/">PHP</a> queried the data, assembled the entire HTML document on the server, and sent a fresh page back to the browser on every single click.</p>
<p>That model still works great for blogs and content sites. Lately though, as web projects feel more and more like full applications, I have been pushing the heavy lifting into the browser with JavaScript instead of making the server regenerate HTML for every small interaction.</p>
<h2>Why letting the browser do more work makes sense</h2>
<p>Think about a typical product catalog or dashboard built the traditional PHP way. The user clicks a category filter, sorts by price, or moves to page two. Each action sends a request back to the PHP server, runs a query, renders the whole header, sidebar, footer and grid from scratch, and forces a full browser reload. Even on a fast server, that constant round-trip makes the interface feel slow, and the server ends up burning CPU cycles rendering the exact same layout chrome over and over for every visitor.</p>
<p>When you move that heavy lifting to client-side JavaScript, the division of labor becomes much cleaner. PHP (or whatever back-end you use) stops worrying about HTML markup and just returns lightweight <a href="https://www.json.org/">JSON</a> data from a simple API endpoint.</p>
<p>Once the browser has that data, JavaScript handles filtering, sorting, searching, form validation and view updates right on the user's machine. Modern laptops and smartphones have plenty of power for this, the server load drops dramatically, and the interface responds instantly without flashing a blank white page on every click.</p>
<h2>Writing cleaner client-side code with AngularJS and ES6</h2>
<p>Over the last couple of years <a href="https://angularjs.org/">AngularJS</a> became my go-to framework for structuring these client-side interfaces. Having two-way data binding, reusable directives, services and client-side routing made it way easier to keep complex front-end apps organized instead of ending up with a messy pile of jQuery callbacks.</p>
<p>What really changed my day-to-day JavaScript this year though is <a href="http://www.ecma-international.org/ecma-262/6.0/">ECMAScript 2015 (ES6)</a>, which was officially finalized in June. Features like <code>const</code> and <code>let</code>, arrow functions, template literals, classes and native <code>import</code>/<code>export</code> modules finally make JavaScript feel like a real, clean language for large front-end codebases.</p>
<p>Pairing ES6 classes and modules with AngularJS makes controllers and services much easier to read:</p>
<pre class="language-js"><code class="language-js"><span class="token comment">// projects.controller.js</span>
<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token keyword">class</span> <span class="token class-name">ProjectsController</span> <span class="token punctuation">{</span>
  <span class="token function">constructor</span><span class="token punctuation">(</span><span class="token parameter">ProjectsService</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token keyword">this</span><span class="token punctuation">.</span>search <span class="token operator">=</span> <span class="token string">''</span><span class="token punctuation">;</span>
    <span class="token keyword">this</span><span class="token punctuation">.</span>projects <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span>

    ProjectsService<span class="token punctuation">.</span><span class="token function">getAll</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token parameter">items</span><span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span>
      <span class="token keyword">this</span><span class="token punctuation">.</span>projects <span class="token operator">=</span> items<span class="token punctuation">;</span>
    <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token punctuation">}</span>

  <span class="token keyword">get</span> <span class="token function">filteredProjects</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token keyword">const</span> query <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>search<span class="token punctuation">.</span><span class="token function">toLowerCase</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">return</span> <span class="token keyword">this</span><span class="token punctuation">.</span>projects<span class="token punctuation">.</span><span class="token function">filter</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token parameter">item</span><span class="token punctuation">)</span> <span class="token operator">=></span>
      item<span class="token punctuation">.</span>title<span class="token punctuation">.</span><span class="token function">toLowerCase</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">includes</span><span class="token punctuation">(</span>query<span class="token punctuation">)</span>
    <span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>

ProjectsController<span class="token punctuation">.</span>$inject <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token string">'ProjectsService'</span><span class="token punctuation">]</span><span class="token punctuation">;</span></code></pre>
<p>Instead of hitting PHP every time the user types a letter into the search box, the filtering happens live in memory at 60 frames per second.</p>
<h2>Why Webpack became essential with ES6</h2>
<p>There is one obvious catch with writing ES6 right now: browsers do not natively support ES6 modules or all the new syntax yet. If you just drop <code>import</code> and <code>class</code> straight into a <code>&lt;script&gt;</code> tag, it will break in most browsers.</p>
<p>For a while I tried gluing things together with <a href="https://gruntjs.com/">Grunt</a> and <a href="https://gulpjs.com/">Gulp</a> tasks, concatenating files in a fragile manual order. Moving to <a href="https://webpack.github.io/">Webpack</a> together with <a href="https://babeljs.io/">Babel</a> (which was renamed from 6to5 earlier this year) solved that completely.</p>
<p>Webpack understands my <code>import</code> and <code>export</code> statements, follows the entire dependency graph starting from a single entry file, passes everything through <code>babel-loader</code> to compile ES6 down to standard ES5 that runs everywhere, and outputs one clean bundle for the browser:</p>
<pre class="language-js"><code class="language-js"><span class="token comment">// webpack.config.js</span>
module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>
  <span class="token literal-property property">entry</span><span class="token operator">:</span> <span class="token string">'./src/app.js'</span><span class="token punctuation">,</span>
  <span class="token literal-property property">output</span><span class="token operator">:</span> <span class="token punctuation">{</span>
    <span class="token literal-property property">path</span><span class="token operator">:</span> <span class="token string">'./dist/js'</span><span class="token punctuation">,</span>
    <span class="token literal-property property">filename</span><span class="token operator">:</span> <span class="token string">'bundle.js'</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
  <span class="token literal-property property">module</span><span class="token operator">:</span> <span class="token punctuation">{</span>
    <span class="token literal-property property">loaders</span><span class="token operator">:</span> <span class="token punctuation">[</span>
      <span class="token punctuation">{</span>
        <span class="token literal-property property">test</span><span class="token operator">:</span> <span class="token regex"><span class="token regex-delimiter">/</span><span class="token regex-source language-regex">\.js$</span><span class="token regex-delimiter">/</span></span><span class="token punctuation">,</span>
        <span class="token literal-property property">exclude</span><span class="token operator">:</span> <span class="token regex"><span class="token regex-delimiter">/</span><span class="token regex-source language-regex">node_modules</span><span class="token regex-delimiter">/</span></span><span class="token punctuation">,</span>
        <span class="token literal-property property">loader</span><span class="token operator">:</span> <span class="token string">'babel'</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">]</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span><span class="token punctuation">;</span></code></pre>
<p>Yes, setting up <a href="https://www.npmjs.com/">npm</a>, Webpack and Babel takes a bit more effort upfront compared to dropping a single <code>&lt;script&gt;</code> tag into a PHP template. Once it is wired up though, you get real modular JavaScript, clean ES6 syntax today, and a single optimized bundle without manually managing twenty script tags in your HTML.</p>
<h2>Not every site needs it, but for web apps it wins</h2>
<p>I am not saying you should throw away PHP or server-rendered HTML for every small brochure site or blog. When a page is mostly static text, sending clean HTML straight from the server is still the simplest and most accessible choice.</p>
<p>For interactive dashboards, search-heavy catalogs and real web applications though, letting the server serve clean JSON while ES6, AngularJS and Webpack handle the heavy lifting in the browser is a massive step forward. Users get a faster, smoother experience, and our front-end code finally has the structure it deserves.</p>
]]></content:encoded>
        </item>
        <item>
            <title>The EU cookie banner chaos and why governments need UX and W3C</title>
            <link>https://horoman.com/blog/the-eu-cookie-banner-chaos-and-why-governments-need-ux-and-w3c/</link>
            <guid isPermaLink="true">https://horoman.com/blog/the-eu-cookie-banner-chaos-and-why-governments-need-ux-and-w3c/</guid>
            <pubDate>Thu, 18 Jun 2015 00:00:00 +0000</pubDate>
            <category>Accessibility</category>
            <description>What happens when privacy laws are written with zero UX designers, zero accessibility experts and zero collaboration with the W3C: a broken web buried under useless cookie banners.</description>
            <content:encoded><![CDATA[<p>Try browsing European websites over the last couple of weeks, especially since the June 2 enforcement deadline in Italy under the <a href="https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32009L0136">EU ePrivacy Directive (2009/136/EC)</a>. Before you can read a headline, look up a phone number or open a menu, almost every single site blocks the screen with a giant cookie banner.</p>
<p>Protecting people's privacy online is a completely valid goal. The problem is not the intention behind the law. The problem is what happens when governments write rules for the web with zero UX designers, zero accessibility experts and zero collaboration with the <a href="https://www.w3.org/">W3C</a>.</p>
<p>What we got is pure chaos.</p>
<h2>Banner blindness instead of real privacy</h2>
<p>Every website is now forced to invent its own notice: sticky bars at the top, banners covering the bottom, full-screen modals blocking the page, vague warnings written in dense legal language, and links to 2,000-word privacy policies nobody has time to read.</p>
<p>Any UX designer could have predicted what real human beings would do in about five seconds. Nobody reads fifty different cookie policies a day while trying to check train times or read a recipe. People immediately develop banner blindness and click &quot;Accept&quot; or &quot;OK&quot; as fast as possible just to get the annoying box out of their way.</p>
<p>So the law did not actually educate users or give them meaningful control over tracking. It just trained everyone to click &quot;OK&quot; blindly on every popup they see, which is arguably worse for security and privacy than where we started.</p>
<h2>A disaster for mobile and accessibility</h2>
<p>If cookie banners are annoying on a big desktop monitor, on a smartphone and for assistive technologies they are a genuine mess.</p>
<p>On a small 320px or 375px phone screen, a chunky fixed cookie banner easily eats up a third or half of the viewport, covering main navigation, search bars or call-to-action buttons. Some banners fail to dismiss properly on mobile Safari, and others shift the whole page down right as you are about to tap a link.</p>
<p>For keyboard and screen reader users, the accessibility damage is even worse:</p>
<ul>
<li>Most hastily added cookie scripts inject a <code>&lt;div&gt;</code> at the very end of the HTML document with <code>position: fixed</code>, so keyboard users have to tab through the entire page just to reach the &quot;Close&quot; button, or never know the banner is blocking the screen at all.</li>
<li>Many banners use clickable <code>&lt;span&gt;</code> or <code>&lt;a&gt;</code> elements with no proper focus states, low color contrast, and unlabeled &quot;X&quot; icons that screen readers cannot explain.</li>
<li>Full-screen cookie overlays rarely manage focus properly, leaving keyboard users trapped behind the modal on the dimmed page underneath.</li>
</ul>
<p>When millions of websites are suddenly forced under threat of fines to bolt on third-party banner plugins overnight, accessibility is always the first casualty.</p>
<h2>This should have been solved with the W3C at the browser level</h2>
<p>The most frustrating part of this whole mess is that asking every individual website to interrupt every visitor is completely the wrong architecture.</p>
<p>Consent and cookie preferences belong in the <strong>browser</strong>, not in ten million inconsistent JavaScript popups.</p>
<p>If European lawmakers had actually worked alongside the W3C and browser vendors like <a href="https://www.mozilla.org/">Mozilla</a>, Google, Apple and Microsoft, we could have had a clean, standardized, legally enforceable browser-level mechanism, building on work like the W3C's <a href="https://www.w3.org/TR/tracking-dnt/">Do Not Track</a> specification and native browser privacy controls.</p>
<p>Think how simple that would be from a UX and accessibility point of view: you configure your privacy preference once inside your browser settings, in clear human language, with proper keyboard and screen reader support built in by the browser vendor. From that moment on, every website receives your preference automatically over HTTP and has to respect it by law. Zero banners, zero extra third-party scripts slowing down every page, and actual informed choice for users.</p>
<p>Instead, regulators ignored browser-level standards, left websites scrambling to interpret vague national guidelines, and handed the whole web a broken user experience.</p>
<h2>Can you just avoid cookies altogether?</h2>
<p>For large commercial sites running ad networks and retargeting campaigns, avoiding profiling cookies in 2015 is obviously difficult. For portfolios, blogs, documentation and smaller company sites though, it is often much easier than people think to skip third-party tracking cookies completely and avoid needing a heavy blocking banner in the first place.</p>
<p>A few practical habits help a lot:</p>
<ul>
<li>Use HTML5 <a href="https://www.w3.org/TR/webstorage/">Web Storage</a> (<code>localStorage</code> and <code>sessionStorage</code>) when you only need to save simple, local UI state on the user's machine (like a collapsed sidebar or a draft form) instead of shipping cookies back and forth on every HTTP request.</li>
<li>Remove official third-party social share embeds (Facebook Like boxes, Twitter widgets, YouTube iframes loaded eagerly) that silently drop profiling cookies the second a page loads. Plain HTML share links and <code>youtube-nocookie.com</code> embeds do the job with zero tracking.</li>
<li>If you only need basic traffic numbers, rely on plain server access logs or simple anonymized first-party analytics instead of dropping third-party ad trackers on every page.</li>
</ul>
<p>It takes a bit more discipline than pasting five marketing snippets into <code>&lt;head&gt;</code>, yet the side effect is a faster, lighter website that actually respects visitors instead of nagging them with a popup. Until governments start bringing UX designers, accessibility specialists and web standards bodies to the table before passing digital laws, keeping our own sites clean is the best defense we have.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Making websites faster with responsive images, srcset and Picturefill</title>
            <link>https://horoman.com/blog/faster-websites-with-responsive-images-srcset-and-picturefill/</link>
            <guid isPermaLink="true">https://horoman.com/blog/faster-websites-with-responsive-images-srcset-and-picturefill/</guid>
            <pubDate>Wed, 12 Nov 2014 00:00:00 +0000</pubDate>
            <category>Development</category>
            <description>Scaling images with CSS was never enough for real performance. Here is why responsive images matter for bandwidth and accessibility, and how I use srcset (1x, 1.5x, 2x) and Picturefill 2.0 in practice.</description>
            <content:encoded><![CDATA[<p>Back in 2010 when <a href="https://horoman.com/blog/responsive-web-design-and-thinking-beyond-devices/">I wrote about Responsive Web Design</a>, making images flexible with <code>max-width: 100%</code> felt like a great solution. Visually it worked, and images stopped breaking out of fluid grids on phones and tablets.</p>
<p>The problem is that CSS only changes how an image looks on screen, not what the browser actually downloads.</p>
<p>If you put a 1800px Retina image on a page and scale it down with CSS to fit a 320px phone screen, the mobile browser still downloads the entire heavy desktop file over a 3G connection. Over the last couple of years, as high-DPI screens became normal on phones, tablets and laptops, page weights exploded, and images are now easily the biggest part of almost every website.</p>
<p>Lately I have been obsessed with frontend performance and finding clean ways to make pages load faster. Fixing how we serve images is easily the biggest win you can get.</p>
<h2>Why bandwidth and speed are also about accessibility</h2>
<p>When people talk about web performance, they often treat it as a purely technical topic or something only big e-commerce sites care about. For me, speed is directly connected to accessibility too.</p>
<p>Not everyone visits your site from a fast office fiber connection on a brand new MacBook. Plenty of people are browsing on a slow 3G mobile signal, on a train where the connection keeps dropping, on older smartphones with limited memory, or on strict mobile data plans where every megabyte costs money.</p>
<p>If a portfolio page or an article downloads 4 or 5 megabytes of oversized images just to show a few small thumbnails, the page feels broken for those users. Cutting image weight by 60% or 80% doesn't just make the site feel faster on desktop, it makes the content actually reachable and usable for way more people.</p>
<p>Think about a simple hero image: a large desktop JPEG at 1800px might easily weigh around 300 KB. A properly sized 640px version of the same photo for a phone is closer to 50 KB. Multiply that across five or ten images on a single page and you are saving megabytes of bandwidth on every visit.</p>
<h2>Picturefill and the new <code>&lt;picture&gt;</code> and <code>srcset</code> standards</h2>
<p>For a long time we didn't have a real standard in HTML to tell the browser which image file to download. That is why <a href="https://scottjehl.github.io/picturefill/">Picturefill</a>, created by <a href="https://scottjehl.com/">Scott Jehl</a> of <a href="https://www.filamentgroup.com/">Filament Group</a> back in 2012, became such an important tool for frontend developers.</p>
<p>The first version of Picturefill used custom <code>&lt;span data-picture&gt;</code> markup as a temporary workaround while the <a href="https://responsiveimages.org/">Responsive Images Community Group</a> worked on a real spec. Earlier this year though, Filament Group released <a href="https://github.com/scottjehl/picturefill/releases/tag/2.0.0">Picturefill 2.0</a>, which uses the real native <code>&lt;picture&gt;</code>, <code>srcset</code> and <code>sizes</code> syntax.</p>
<p>Even better, native browser support is finally starting to land right now. Chrome 38 and Opera 25 just shipped native <code>&lt;picture&gt;</code> and <code>srcset</code> support last month, and Safari 8 and iOS 8 support <code>srcset</code> with density descriptors. For Firefox, Internet Explorer and older browsers, dropping in Picturefill 2.0 lets us use the exact same standard HTML today without waiting years for every browser to catch up.</p>
<p>Setting up Picturefill 2.0 in the <code>&lt;head&gt;</code> only takes two lines:</p>
<pre class="language-html"><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>script</span><span class="token punctuation">></span></span><span class="token script"><span class="token language-javascript">
  <span class="token comment">// Picture element HTML5 shiv for older IE</span>
  document<span class="token punctuation">.</span><span class="token function">createElement</span><span class="token punctuation">(</span><span class="token string">"picture"</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>script</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>script</span> <span class="token attr-name">src</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>/js/picturefill.min.js<span class="token punctuation">"</span></span> <span class="token attr-name">async</span><span class="token punctuation">></span></span><span class="token script"></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>script</span><span class="token punctuation">></span></span></code></pre>
<p>Because it loads with <code>async</code>, it won't block the rest of the page from rendering, and in browsers that already support <code>&lt;picture&gt;</code> natively it simply gets out of the way.</p>
<h2>Serving 1x, 1.5x and 2x with <code>srcset</code></h2>
<p>For fixed-size UI elements like product thumbnails, badges or icons, the simplest and cleanest approach is using <code>srcset</code> with pixel density descriptors.</p>
<p>Instead of only exporting <code>1x</code> and <code>2x</code>, I like preparing <code>1x</code>, <code>1.5x</code> and <code>2x</code> versions whenever it makes sense. That way standard desktop monitors get the light <code>1x</code> file, mid-density Android phones and 150% displays get <code>1.5x</code> instead of downloading a massive <code>2x</code> asset they don't fully need, and Retina displays still get crisp <code>2x</code> graphics:</p>
<pre class="language-html"><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>img</span>
  <span class="token attr-name">src</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>/images/product-thumb-1x.jpg<span class="token punctuation">"</span></span>
  <span class="token attr-name">srcset</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>/images/product-thumb-1x.jpg 1x,
          /images/product-thumb-1.5x.jpg 1.5x,
          /images/product-thumb-2x.jpg 2x<span class="token punctuation">"</span></span>
  <span class="token attr-name">width</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>240<span class="token punctuation">"</span></span>
  <span class="token attr-name">height</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>180<span class="token punctuation">"</span></span>
  <span class="token attr-name">alt</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>Product thumbnail preview<span class="token punctuation">"</span></span><span class="token punctuation">></span></span></code></pre>
<p>Notice that <code>src</code> is still there as a safe fallback for browsers that don't understand <code>srcset</code> and don't run JavaScript.</p>
<h2>Combining <code>&lt;picture&gt;</code>, media queries and <code>1x</code> / <code>1.5x</code> / <code>2x</code></h2>
<p>When a layout changes across breakpoints, or when you want different image crops on small screens versus large desktop monitors (art direction), you can combine <code>&lt;picture&gt;</code> with <code>media</code> queries and density descriptors inside each <code>&lt;source&gt;</code>:</p>
<pre class="language-html"><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>picture</span><span class="token punctuation">></span></span>
  <span class="token comment">&lt;!--[if IE 9]>&lt;video style="display: none;">&lt;![endif]--></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>source</span> <span class="token attr-name">media</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>(min-width: 60em)<span class="token punctuation">"</span></span>
          <span class="token attr-name">srcset</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>/images/hero-large-1x.jpg 1x,
                  /images/hero-large-1.5x.jpg 1.5x,
                  /images/hero-large-2x.jpg 2x<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>source</span> <span class="token attr-name">media</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>(min-width: 35em)<span class="token punctuation">"</span></span>
          <span class="token attr-name">srcset</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>/images/hero-medium-1x.jpg 1x,
                  /images/hero-medium-1.5x.jpg 1.5x,
                  /images/hero-medium-2x.jpg 2x<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>source</span> <span class="token attr-name">srcset</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>/images/hero-small-1x.jpg 1x,
                  /images/hero-small-1.5x.jpg 1.5x,
                  /images/hero-small-2x.jpg 2x<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
  <span class="token comment">&lt;!--[if IE 9]>&lt;/video>&lt;![endif]--></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>img</span> <span class="token attr-name">srcset</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>/images/hero-small-1x.jpg 1x, /images/hero-small-2x.jpg 2x<span class="token punctuation">"</span></span>
       <span class="token attr-name">alt</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>Showcase overview of the project<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>picture</span><span class="token punctuation">></span></span></code></pre>
<p>That tiny IE 9 conditional <code>&lt;video&gt;</code> wrapper looks a little weird at first, I know, but it is a clever Picturefill 2.0 trick so Internet Explorer 9 doesn't ignore <code>&lt;source&gt;</code> tags inside <code>&lt;picture&gt;</code>.</p>
<p>With this setup, a small phone downloads the small crop at its exact screen density, a tablet gets the medium crop, and a wide desktop screen gets the full landscape image. Nobody downloads bytes they will never see.</p>
<h2>Using width descriptors and <code>sizes</code> for fluid images</h2>
<p>If the image crop stays the same and only the display width changes with the fluid grid, you don't even need <code>&lt;picture&gt;</code>. You can give the browser the real pixel widths (<code>w</code>) of your exported images together with a <code>sizes</code> attribute, and let the browser do the math automatically based on both screen width and pixel density:</p>
<pre class="language-html"><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>img</span>
  <span class="token attr-name">src</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>/images/case-study-640.jpg<span class="token punctuation">"</span></span>
  <span class="token attr-name">srcset</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>/images/case-study-480.jpg 480w,
          /images/case-study-960.jpg 960w,
          /images/case-study-1440.jpg 1440w,
          /images/case-study-1920.jpg 1920w<span class="token punctuation">"</span></span>
  <span class="token attr-name">sizes</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>(min-width: 60em) 50vw, 100vw<span class="token punctuation">"</span></span>
  <span class="token attr-name">alt</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>Interface layout preview<span class="token punctuation">"</span></span><span class="token punctuation">></span></span></code></pre>
<p>In this example, on a desktop viewport wider than <code>60em</code> the image takes half the screen (<code>50vw</code>), while on smaller viewports it takes the full width (<code>100vw</code>). The browser combines that with whether the device is <code>1x</code>, <code>1.5x</code> or <code>2x</code> and downloads only the single best file.</p>
<p>Yes, exporting multiple image sizes adds a bit of extra work to the workflow (unless you automate it with <a href="https://gruntjs.com/">Grunt</a> or <a href="https://gulpjs.com/">Gulp</a> tasks or your CMS), and the HTML is definitely more verbose than a plain <code>&lt;img&gt;</code> tag. Still, once you test a heavy page on a real 3G connection before and after using <code>srcset</code> and Picturefill, it is very hard to go back. Fast websites are simply better websites for everyone.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Moving my site to Jekyll and GitHub Pages</title>
            <link>https://horoman.com/blog/moving-my-site-to-jekyll-and-github-pages/</link>
            <guid isPermaLink="true">https://horoman.com/blog/moving-my-site-to-jekyll-and-github-pages/</guid>
            <pubDate>Tue, 22 Jul 2014 00:00:00 +0000</pubDate>
            <category>Development</category>
            <description>Why I am moving my personal site off dynamic PHP hosting to static HTML built with Jekyll 2.0 and hosted on GitHub Pages for speed, security and a cleaner Git workflow.</description>
            <content:encoded><![CDATA[<p>A personal portfolio and blog does not change every second. Maybe I publish a new article once a month, or add a new project every few months. Yet for years I kept paying for shared PHP hosting so a server could run scripts and assemble the exact same HTML pages over and over for every single visitor.</p>
<p>This summer I decided to simplify the whole thing and move my personal site completely over to <a href="https://jekyllrb.com/">Jekyll</a> and <a href="https://pages.github.com/">GitHub Pages</a>.</p>
<h2>Why pre-built static HTML is so fast</h2>
<p>Jekyll is a static site generator written in <a href="https://www.ruby-lang.org/">Ruby</a> by <a href="https://tom.preston-werner.com/">Tom Preston-Werner</a>. Instead of generating pages on the fly when someone visits a URL, Jekyll builds the entire website once into plain HTML, CSS and JavaScript files.</p>
<p>For a site like mine, the difference is immediate:</p>
<ul>
<li>Pages load almost instantly because the server is only sending static files with zero PHP execution and zero database queries.</li>
<li>There is no admin login to brute-force, no WordPress plugins to patch every week and no MySQL server to crash if a post gets a spike in traffic.</li>
<li>All my articles stay as portable <a href="https://horoman.com/blog/why-i-switched-to-markdown-and-ia-writer/">Markdown</a> files that I can write in <a href="https://ia.net/writer">iA Writer</a> or <a href="https://www.sublimetext.com/">Sublime Text</a> and track in <a href="https://git-scm.com/">Git</a>.</li>
</ul>
<p>With Jekyll 2.0 coming out back in May, it even added native <a href="https://sass-lang.com/">Sass</a> support directly, which means I can keep using my indented <code>.sass</code> files without setting up an extra build step just to compile CSS.</p>
<h2>A clean folder structure with Markdown and Liquid</h2>
<p>What won me over when testing Jekyll is how transparent the project structure is. Everything sits in a few plain folders:</p>
<pre class="language-text"><code class="language-text">_config.yml
_includes/
  header.html
  footer.html
_layouts/
  default.html
  post.html
_posts/
  2014-07-22-moving-to-jekyll.md
css/
  main.sass
CNAME</code></pre>
<p>Writing a new blog post just means adding a dated file inside <code>_posts/</code> with a small <a href="https://yaml.org/">YAML</a> front matter block at the top:</p>
<pre class="language-markdown"><code class="language-markdown"><span class="token front-matter-block"><span class="token punctuation">---</span>
<span class="token front-matter yaml language-yaml"><span class="token key atrule">layout</span><span class="token punctuation">:</span> post
<span class="token key atrule">title</span><span class="token punctuation">:</span> Moving my site to Jekyll and GitHub Pages
<span class="token key atrule">date</span><span class="token punctuation">:</span> <span class="token datetime number">2014-07-22</span></span>
<span class="token punctuation">---</span></span>

Plain Markdown content goes right here.</code></pre>
<p>Templates use <a href="https://shopify.github.io/liquid/">Liquid</a>, which is simple enough to pick up in an afternoon if you have ever written PHP templates or Jade partials. Running <code>jekyll serve --watch</code> spins up a local preview server and rebuilds the site automatically every time you save a file.</p>
<h2>Deploying with <code>git push</code> on GitHub Pages</h2>
<p>The second half of why this setup works so well is <a href="https://pages.github.com/">GitHub Pages</a>.</p>
<p>If you push your Jekyll repository to <code>username.github.io</code>, GitHub builds the site automatically and hosts the generated static files for free. Dropping a plain <code>CNAME</code> file with your domain name into the root of the repo lets you connect your own custom domain in a couple of minutes.</p>
<p>Publishing a new post or fixing a typo is literally <code>git commit</code> and <code>git push</code>. No FTP client, no cPanel, no staging database dumps, and no monthly shared hosting bills for a personal site that doesn't need a backend.</p>
<h2>Not for every project, but ideal for my own</h2>
<p>For client websites where non-technical editors need a visual admin interface to upload images and edit pages, a CMS like <a href="https://horoman.com/blog/falling-in-love-with-kirby-cms-and-why-i-prefer-it-to-wordpress/">Kirby</a> or <a href="https://wordpress.org/">WordPress</a> is still the right tool.</p>
<p>For my own site, portfolio and writing though, switching completely to Jekyll and GitHub Pages makes total sense. Everything is faster, safer, versioned in Git and much easier to maintain over the years.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Writing HTML and CSS faster with Jade and Sass</title>
            <link>https://horoman.com/blog/writing-html-and-css-faster-with-jade-and-sass/</link>
            <guid isPermaLink="true">https://horoman.com/blog/writing-html-and-css-faster-with-jade-and-sass/</guid>
            <pubDate>Sat, 28 Dec 2013 00:00:00 +0000</pubDate>
            <category>Development</category>
            <description>Why I prefer indented Sass (.sass) over SCSS and pair it with Jade templates, variables and mixins to speed up rapid prototyping and front-end development.</description>
            <content:encoded><![CDATA[<p>Building prototypes directly in the browser is great, as <a href="https://horoman.com/blog/rapid-prototyping-in-html-and-why-static-mockups-fall-short/">I wrote when talking about rapid HTML prototyping</a>, but once you work that way every day you hit a second bottleneck pretty quickly: plain HTML and CSS are verbose and repetitive.</p>
<p>Even with <a href="https://horoman.com/blog/switching-from-coda-to-sublime-text-2/">Sublime Text 2</a> and <a href="https://emmet.io/">Emmet</a> speeding up my typing, maintaining a ten-page HTML prototype by hand gets messy fast. If you want to change one link in the navigation bar, you have to edit ten files. If you want to test a list of six cards with slightly different titles, you copy and paste the same <code>&lt;div&gt;</code> structure six times. And in plain CSS you keep repeating the same hex colors, font stacks and vendor prefixes over and over.</p>
<p>Over the last year I fell in love with a combination that solves all of this cleanly: <a href="http://jade-lang.com/">Jade</a> for HTML and indented <a href="https://sass-lang.com/">Sass</a> (the original <code>.sass</code> syntax, not <code>.scss</code>) for CSS.</p>
<h2>Why Jade beats writing raw HTML</h2>
<p>Jade is a template engine created by <a href="https://github.com/visionmedia">TJ Holowaychuk</a> for <a href="https://nodejs.org/">Node.js</a>. Instead of angle brackets and closing tags everywhere, Jade uses clean indentation to define structure, and it lets you use real variables, loops, conditionals, mixins and template inheritance.</p>
<p>Here is a simple example of a card grid written in regular HTML:</p>
<pre class="language-html"><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>section</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>projects<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>h2</span><span class="token punctuation">></span></span>Selected work<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>h2</span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>project-card<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>h3</span><span class="token punctuation">></span></span>Portfolio redesign<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>h3</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span><span class="token punctuation">></span></span>Responsive layout and pattern library.<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>/work/portfolio.html<span class="token punctuation">"</span></span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>btn<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>View project<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a</span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>project-card<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>h3</span><span class="token punctuation">></span></span>Mobile booking flow<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>h3</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span><span class="token punctuation">></span></span>HTML prototype tested with twelve users.<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>/work/booking.html<span class="token punctuation">"</span></span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>btn<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>View project<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a</span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>project-card<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>h3</span><span class="token punctuation">></span></span>Checkout refresh<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>h3</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span><span class="token punctuation">></span></span>Simplified form fields and error states.<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>/work/checkout.html<span class="token punctuation">"</span></span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>btn<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>View project<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a</span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>section</span><span class="token punctuation">></span></span></code></pre>
<p>Now look at the exact same output written in Jade using a data array, a loop and a reusable mixin:</p>
<pre class="language-jade"><code class="language-jade">- var projects = [
-   { title: 'Portfolio redesign', desc: 'Responsive layout and pattern library.', url: '/work/portfolio.html' },
-   { title: 'Mobile booking flow', desc: 'HTML prototype tested with twelve users.', url: '/work/booking.html' },
-   { title: 'Checkout refresh', desc: 'Simplified form fields and error states.', url: '/work/checkout.html' }
- ]

mixin projectCard(item)
  .project-card
    h3= item.title
    p= item.desc
    a.btn(href=item.url) View project

section.projects
  h2 Selected work
  each project in projects
    +projectCard(project)</code></pre>
<p>For rapid prototyping this saves a ton of time. If I want to change <code>.project-card</code> from a <code>&lt;div&gt;</code> to an <code>&lt;article&gt;</code> or add a category badge to every card, I change it in one mixin and every card updates immediately.</p>
<p>Even better is template inheritance with <code>extends</code>, <code>block</code> and <code>include</code>. I can define a single <code>_layout.jade</code> file with my <code>&lt;head&gt;</code>, header and footer, and every prototype page only writes its own content block:</p>
<pre class="language-jade"><code class="language-jade">extends _layout

block content
  include _hero
  section.projects
    h2 Selected work
    each project in projects
      +projectCard(project)</code></pre>
<p>No more copy-pasting headers across fifteen static <code>.html</code> files, and no more forgetting to close a <code>&lt;/div&gt;</code> and breaking the layout.</p>
<h2>Why I choose indented Sass (<code>.sass</code>) instead of SCSS</h2>
<p>On the CSS side, most developers I talk to use SCSS because it looks just like standard CSS with curly braces and semicolons. I understand why it is easier for people to adopt, and you can paste plain CSS straight into it.</p>
<p>Personally though, I strongly prefer the original indented <code>.sass</code> syntax. Once you drop <code>{</code>, <code>}</code> and <code>;</code>, your stylesheets become way cleaner to scan and faster to type, and your brain stays in the exact same indentation mindset as Jade.</p>
<p>Compare a small button and card block in plain CSS:</p>
<pre class="language-css"><code class="language-css"><span class="token selector">.project-card</span> <span class="token punctuation">{</span>
  <span class="token property">background</span><span class="token punctuation">:</span> #ffffff<span class="token punctuation">;</span>
  <span class="token property">border</span><span class="token punctuation">:</span> 1px solid #e2e2e2<span class="token punctuation">;</span>
  <span class="token property">padding</span><span class="token punctuation">:</span> 20px<span class="token punctuation">;</span>
  <span class="token property">margin-bottom</span><span class="token punctuation">:</span> 24px<span class="token punctuation">;</span>
<span class="token punctuation">}</span>

<span class="token selector">.project-card h3</span> <span class="token punctuation">{</span>
  <span class="token property">color</span><span class="token punctuation">:</span> #222222<span class="token punctuation">;</span>
  <span class="token property">margin-top</span><span class="token punctuation">:</span> 0<span class="token punctuation">;</span>
<span class="token punctuation">}</span>

<span class="token selector">.project-card .btn</span> <span class="token punctuation">{</span>
  <span class="token property">display</span><span class="token punctuation">:</span> inline-block<span class="token punctuation">;</span>
  <span class="token property">padding</span><span class="token punctuation">:</span> 10px 16px<span class="token punctuation">;</span>
  <span class="token property">background</span><span class="token punctuation">:</span> #0066cc<span class="token punctuation">;</span>
  <span class="token property">color</span><span class="token punctuation">:</span> #ffffff<span class="token punctuation">;</span>
  <span class="token property">text-decoration</span><span class="token punctuation">:</span> none<span class="token punctuation">;</span>
<span class="token punctuation">}</span>

<span class="token selector">.project-card .btn:hover</span> <span class="token punctuation">{</span>
  <span class="token property">background</span><span class="token punctuation">:</span> #004f9e<span class="token punctuation">;</span>
<span class="token punctuation">}</span></code></pre>
<p>And here is the same styling in indented <code>.sass</code>, using variables, nesting, color functions and a mixin:</p>
<pre class="language-sass"><code class="language-sass"><span class="token variable-line"><span class="token variable">$brand</span><span class="token punctuation">:</span> #0066cc</span>
<span class="token variable-line"><span class="token variable">$text</span><span class="token punctuation">:</span> #222222</span>
<span class="token variable-line"><span class="token variable">$border</span><span class="token punctuation">:</span> #e2e2e2</span>
<span class="token variable-line"><span class="token variable">$space</span><span class="token punctuation">:</span> 20px</span>

<span class="token atrule-line"><span class="token atrule">@mixin</span> button($bg)</span>
<span class="token property-line">  <span class="token property">display</span><span class="token punctuation">:</span> inline-block</span>
<span class="token property-line">  <span class="token property">padding</span><span class="token punctuation">:</span> 10px 16px</span>
<span class="token property-line">  <span class="token property">background</span><span class="token punctuation">:</span> <span class="token variable">$bg</span></span>
<span class="token property-line">  <span class="token property">color</span><span class="token punctuation">:</span> #ffffff</span>
<span class="token property-line">  <span class="token property">text-decoration</span><span class="token punctuation">:</span> none</span>
<span class="token property-line">  <span class="token property">&amp;</span><span class="token punctuation">:</span><span class="token property">hover</span></span>
<span class="token property-line">    <span class="token property">background</span><span class="token punctuation">:</span> darken(<span class="token variable">$bg</span>, 10<span class="token operator">%</span>)</span>

<span class="token selector">.project-card</span>
<span class="token property-line">  <span class="token property">background</span><span class="token punctuation">:</span> #ffffff</span>
<span class="token property-line">  <span class="token property">border</span><span class="token punctuation">:</span> 1px solid <span class="token variable">$border</span></span>
<span class="token property-line">  <span class="token property">padding</span><span class="token punctuation">:</span> <span class="token variable">$space</span></span>
<span class="token property-line">  <span class="token property">margin-bottom</span><span class="token punctuation">:</span> <span class="token variable">$space</span> <span class="token operator">+</span> 4px</span>

  <span class="token selector">h3</span>
<span class="token property-line">    <span class="token property">color</span><span class="token punctuation">:</span> <span class="token variable">$text</span></span>
<span class="token property-line">    <span class="token property">margin-top</span><span class="token punctuation">:</span> 0</span>

  <span class="token selector">.btn</span>
<span class="token atrule-line">    <span class="token atrule">@include</span> button($brand)</span></code></pre>
<p>There is zero visual noise. You immediately see the hierarchy from the indentation alone, and if a client wants to test a different accent color across the whole prototype, changing <code>$brand</code> in one line updates every button, hover state and link across the entire site.</p>
<h2>How it fits into my daily workflow</h2>
<p>You do not even need a complicated terminal setup to use Jade and Sass together today. On Mac, <a href="https://incident57.com/codekit/">CodeKit</a> watches your project folder, compiles <code>.jade</code> and <code>.sass</code> files automatically on save, handles partials and reloads the browser for you. If you work cross-platform or prefer the command line, <a href="https://prepros.io/">Prepros</a> and <a href="https://gruntjs.com/">Grunt</a> do the same job nicely.</p>
<p>Between Jade templates with logic and variables on one side, and indented Sass with mixins and partials on the other, building and iterating on HTML prototypes is faster than ever. Once you get used to writing clean, indentation-based markup and styles without braces or closing tags, going back to raw HTML and plain CSS feels very slow.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Atomic Design, Pattern Lab and why we need to think in systems</title>
            <link>https://horoman.com/blog/atomic-design-pattern-lab-and-thinking-in-systems/</link>
            <guid isPermaLink="true">https://horoman.com/blog/atomic-design-pattern-lab-and-thinking-in-systems/</guid>
            <pubDate>Mon, 16 Dec 2013 00:00:00 +0000</pubDate>
            <category>Design</category>
            <description>Why Brad Frost&#39;s Atomic Design methodology and Pattern Lab matter for scalable products, multi-disciplinary teams, cleaner QA and ending duplicated UI patterns.</description>
            <content:encoded><![CDATA[<p>Since <a href="https://bradfrost.com/">Brad Frost</a> published his post on <a href="https://bradfrost.com/blog/post/atomic-web-design/">Atomic Design</a> back in June, the idea has been stuck in my head. It takes the exact modular mindset from OOCSS, SMACSS, Bootstrap and <a href="https://horoman.com/blog/rapid-prototyping-in-html-and-why-static-mockups-fall-short/">rapid HTML prototyping</a> and gives it a clear, practical structure.</p>
<p>The more I work on larger web applications, the more convinced I am that this systemic way of thinking is not just a trendy design metaphor. For medium and large companies, it is really the only sustainable way forward.</p>
<h2>Breaking interfaces down like LEGO bricks</h2>
<p>If you have not read Brad's post yet, the idea is inspired by chemistry. Instead of designing whole pages from top to bottom, you break an interface down into five levels, starting from the smallest parts and combining them up into full screens.</p>
<p>At the base you have atoms, which are the smallest HTML building blocks like a label, an input field, a button, a heading, a color swatch or a font style. On their own they do not do much, just like single LEGO bricks. Combine a few atoms together and you get molecules, small functional units such as a search form made of a label, a text input and a submit button.</p>
<p>Put molecules and atoms together and you get organisms, distinct sections of an interface like a site header containing a logo, a primary navigation menu and that search form. Templates then arrange those organisms into a page-level layout structure using placeholder content, and finally pages are real instances of templates filled with real copy, real images and real data, where you test whether the system actually holds up.</p>
<p>I like to explain this to clients and teams as a box of LEGO bricks with a clear set of rules and patterns. You do not sculpt a brand new piece of plastic every time you want to build a house or a car. You combine the same reliable bricks in predictable ways, and when you do need a new piece, you design it so it clicks cleanly with everything else in the box.</p>
<h2>Why Pattern Lab makes it real</h2>
<p>A lot of people talk about style guides, and usually what happens is someone creates a nice PDF or a static <a href="https://www.sketch.com/">Sketch</a> document at the start of a project, puts it in a shared folder, and two months later nobody opens it again because the live product has already moved on.</p>
<p>That is why <a href="https://patternlab.io/">Pattern Lab</a>, the open-source tool Brad Frost built together with <a href="https://dmolsen.com/">Dave Olsen</a>, is so important. Instead of being a static document sitting on the side, Pattern Lab is a living front-end environment built with PHP and <a href="https://mustache.github.io/">Mustache</a> templates.</p>
<p>Because it uses Mustache partials and JSON data, your atoms actually live inside your molecules, which actually live inside your organisms and templates. If you update a button atom or change the spacing inside a card molecule, that change automatically flows through every organism, template and page that uses it. It even includes Brad's <a href="https://bradfrost.com/demo/ish/">ish.</a> viewport resizer right in the toolbar, so you can test every single pattern at random screen widths instead of just checking one desktop width and one iPhone width.</p>
<p>Seeing your whole interface broken down in a real browser like this changes how you design. You stop making one-off visual decisions for a single page and start asking: &quot;Does this pattern belong in our system, and how will it behave everywhere else?&quot;</p>
<h2>Scaling across teams of designers and developers</h2>
<p>When you are a solo designer building a five-page brochure site, you can probably keep the whole interface in your head. The moment you have a team with three designers and six developers working on a growing product, keeping things in your head falls apart fast.</p>
<p>I have seen the exact same thing happen in medium and large companies over and over again. One developer builds a modal window for the account settings page. Two months later, another developer needs a confirmation dialog on the checkout flow, does not know the first modal exists (or cannot easily reuse its CSS), and writes a brand new one from scratch. Meanwhile, a designer working on a new marketing landing page creates a slightly different button radius and a third shade of blue.</p>
<p>Before anyone notices, the codebase has four different dropdowns, six card styles that are 90% identical, and thousands of lines of custom CSS fighting each other.</p>
<p>A shared atomic pattern library solves this at the root. Both designers and developers look at the exact same living catalog of components and speak the same language. When a new feature comes in, the first step is checking what molecules and organisms we already have, not reinventing them.</p>
<h2>Better QA, easier maintenance and fewer bugs</h2>
<p>This systemic mindset really pays off once the product is in production and needs to be maintained over years.</p>
<p>Think about QA testing. If your site has ten custom-coded forms scattered across ten different templates, your QA team has to test every single one of them across browsers and devices every time something changes, and fixing a bug in one place leaves the other nine broken.</p>
<p>When those ten forms are all built from the same tested input atoms and form molecules, you fix a bug or an accessibility issue once and every screen that uses that pattern gets the fix automatically. Your QA surface shrinks, the number of weird visual regressions drops, and onboarding a new developer or designer onto the project becomes way faster because the rules are right there in front of them.</p>
<p>The same applies to complexity. Whether you are designing a simple notification banner or a massive enterprise dashboard with filters, tables, sidebars and charts, breaking the problem down into small, predictable pieces keeps the whole system under control.</p>
<h2>The only real way for medium and large products</h2>
<p>Small agencies and solo freelancers can get away with crafting custom one-off pages for a while, though even on smaller projects thinking in patterns saves a ton of time.</p>
<p>For medium and large companies building real digital products that have to grow, evolve and stay consistent across multiple teams, I really believe an atomic, systemic approach is the only solution that holds up over time. Designing pages one by one simply does not scale anymore. Designing systems of reusable parts does.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Rapid prototyping in HTML and why static mockups fall short</title>
            <link>https://horoman.com/blog/rapid-prototyping-in-html-and-why-static-mockups-fall-short/</link>
            <guid isPermaLink="true">https://horoman.com/blog/rapid-prototyping-in-html-and-why-static-mockups-fall-short/</guid>
            <pubDate>Tue, 26 Nov 2013 00:00:00 +0000</pubDate>
            <category>Design</category>
            <description>From OOCSS and SMACSS to Bootstrap and Foundation, modular front-end blocks changed how I prototype. Why working HTML prototypes beat static tools like Balsamiq, InVision and Marvel for real user testing.</description>
            <content:encoded><![CDATA[<p>A few years ago <a href="https://horoman.com/blog/moving-beyond-photoshop-drawit-and-sketch/">when I started moving away from Photoshop to Sketch</a>, it already felt like a huge step forward for my design workflow. Sketch is fast, clean and built for screen design, and I still use it all the time for visual exploration and iconography.</p>
<p>Lately though, I noticed a pattern on almost every web project I work on. You can spend days crafting dozens of clean artboards in Sketch, aligning every pixel, and at the end of the week what do you actually have? A folder full of static images. Nothing responds when you resize the window, no form actually accepts text, and no dropdown or modal behaves like it will in a real browser.</p>
<p>That is why more and more of my early design work has moved straight into rapid prototyping in HTML, CSS and a bit of basic JavaScript.</p>
<h2>From static pages to reusable building blocks</h2>
<p>This way of working did not come out of nowhere. Over the last few years, the front-end community completely changed how we think about interfaces, moving away from styling individual pages one by one and toward building systems of reusable blocks.</p>
<p>Back in 2009, Nicole Sullivan introduced the idea of <a href="https://github.com/stubbornella/oocss">OOCSS (Object-Oriented CSS)</a>. For the first time, people stopped thinking in terms of whole pages and started looking at repeating visual patterns as independent objects that could be reused anywhere, regardless of context. When she wrote about the <a href="http://www.stubbornella.org/content/2010/06/25/the-media-object-saves-hundreds-of-lines-of-code/">Media Object</a> pattern a year later, it clicked for a lot of us: an image next to a block of text is the same structural block whether it lives in a comment thread, a sidebar or a news feed.</p>
<p>Then in 2011, Jonathan Snook published <a href="http://smacss.com/">SMACSS (Scalable and Modular Architecture for CSS)</a>, which gave us a practical way to organize stylesheets into Base, Layout, Module and State rules. That concept of a &quot;Module&quot; is basically the exact ancestor of what we treat as a UI component today, whether it is a card, a button group, a navigation bar or an alert box.</p>
<p>Around the same time, in August 2011, Twitter released <a href="https://getbootstrap.com/">Bootstrap</a>, and ZURB followed just a couple of months later with <a href="https://get.foundation/">Foundation</a>. Even though Bootstrap is not a heavy JavaScript application framework, it completely normalized the idea of assembling interfaces out of ready-made blocks: navbars, badges, alerts, tabs, modals and carousels. With Bootstrap 3 going mobile-first this summer and Foundation 5 just out, you can spin up a responsive grid with working interactive widgets in ten minutes.</p>
<p>All of this changed rapid prototyping completely. You no longer have to reinvent the wheel from scratch every time you want to test an idea in the browser.</p>
<h2>Putting blocks together instead of drawing pictures</h2>
<p>When I prototype a new flow now, I rarely start by drawing every single state in a graphics editor. Instead, I grab a lightweight starter setup with Bootstrap or Foundation (or my own small set of SMACSS-style modules) and start assembling the page directly in HTML.</p>
<p>A simple responsive layout with a navigation bar, a feedback alert and a few content cards takes less than a minute to put together:</p>
<pre class="language-html"><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>container<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>alert alert-info<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
    Your draft has been saved automatically.
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span>

  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>row<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>col-sm-6 col-md-4<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>panel panel-default<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>panel-heading<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>Project overview<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>panel-body<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
          <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span><span class="token punctuation">></span></span>Quick summary text to test how real copy wraps on smaller screens.<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">></span></span>
          <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>#details<span class="token punctuation">"</span></span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>btn btn-primary<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>Open details<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a</span><span class="token punctuation">></span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span></code></pre>
<p>It does not need to look like the final polished product yet. The point is that in five minutes you have something alive in Chrome, Safari and on your phone. You can change the copy, add three more cards, test what happens when a headline wraps onto three lines, and immediately see how the grid behaves at 320px, 768px and 1280px.</p>
<p>Try doing that manually in <a href="https://www.sketch.com/">Sketch</a> across three breakpoints and ten screens, and you will lose half a day just moving boxes around.</p>
<h2>Where Balsamiq, InVision and Marvel fall short</h2>
<p>I know a lot of designers rely on wireframing and click-through tools, and I have used plenty of them myself. <a href="https://balsamiq.com/">Balsamiq Mockups</a> is fine if you just want to sketch a rough layout in a meeting and throw it away an hour later, though a marker and a whiteboard are usually faster.</p>
<p>Tools like <a href="https://www.invisionapp.com/">InVision</a>, or the new <a href="https://marvelapp.com/">Marvel App</a> that lets you link screens directly from Dropbox, are definitely better than emailing a folder of numbered PNGs to a client. You can draw hotspots over static mockups and click from screen A to screen B.</p>
<p>The problem is that they still only simulate a website. In reality you are still just looking at static images. Users cannot type into a search field, cannot open a real select menu on iOS, cannot scroll a sticky header smoothly, and cannot resize the browser to see how a responsive layout adapts. Worse, every time you want to test a small variation in copy or layout, you have to go back to Sketch or Photoshop, edit multiple artboards, export everything again and re-link the hotspots.</p>
<p>In HTML, you edit one template or one CSS class, refresh the browser, and the whole prototype updates.</p>
<h2>Real prototypes make user testing actually useful</h2>
<p>The biggest reason I push for HTML prototyping is <strong>user testing</strong>.</p>
<p>When you put a static mockup or a Balsamiq wireframe in front of a real person, half of the session is spent explaining what would happen if this were real: &quot;imagine you typed your email here&quot;, &quot;pretend this menu opens when you tap it&quot;, &quot;ignore that the text is cut off&quot;. People behave differently when they know they are looking at a drawing, and they tend to give polite, surface-level feedback.</p>
<p>When you hand someone a phone or sit them in front of a laptop with a real HTML prototype, all that pretending disappears. You immediately see if a button is too small to tap with a thumb, if a form feels tedious to fill out, if a carousel hides important content, or if a navigation bar collapses in a confusing way on mobile.</p>
<p>Clients and stakeholders react differently too. Showing a working prototype in a browser builds way more trust and clarity than presenting static slides. Instead of debating abstract ideas, everyone is clicking through the actual experience and spotting real usability problems early, when changing things is still cheap.</p>
<h2>Designers should learn basic HTML, CSS and JavaScript</h2>
<p>This brings me to something that always starts heated debates in our industry, but I strongly believe it: web designers should learn to write basic HTML, CSS and JavaScript.</p>
<p>I am not saying every designer needs to become a full-time software engineer or architect complex backend code. You do not need to write production-ready JavaScript applications from scratch.</p>
<p>What you do need is enough comfort with HTML semantics, CSS layout, and a bit of basic JavaScript or <a href="https://jquery.com/">jQuery</a> to connect states, toggle classes and use component libraries like Bootstrap or Foundation without fear.</p>
<p>Once you understand the material you are actually designing for, everything changes. You stop handing developers impossible layouts that fall apart as soon as real data hits the page. You prototype much faster than drawing static screens by hand, and you spend your time testing real interfaces with real people instead of polishing fake pictures.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Mobile-first, viewports and why stacking columns is not enough</title>
            <link>https://horoman.com/blog/mobile-first-viewports-and-why-stacking-columns-is-not-enough/</link>
            <guid isPermaLink="true">https://horoman.com/blog/mobile-first-viewports-and-why-stacking-columns-is-not-enough/</guid>
            <pubDate>Thu, 16 May 2013 00:00:00 +0000</pubDate>
            <category>Design</category>
            <description>Why starting with desktop mockups and stacking blocks into one column is fake mobile-first, why we should talk about viewports instead of devices, and why media performance matters just as much as layout.</description>
            <content:encoded><![CDATA[<p>Even though mobile traffic has been exploding for years and on many products smartphone visitors already outnumber desktop visitors, I still see the exact same habit on almost every new project: the team designs a wide desktop layout first, gets it approved, and only at the very end asks how to squeeze it onto a phone.</p>
<p>The result is almost always the same. Three columns become one endless vertical column stacked on top of each other, the sidebar gets dumped at the bottom of the page where nobody will ever scroll, and the whole thing gets labeled &quot;responsive&quot;.</p>
<p>That is not mobile-first design. It is desktop-first design folded into a narrow box.</p>
<h2>Why designers default to desktop (and why it hurts the product)</h2>
<p>I understand why it happens. Most of us spent years designing on big 24-inch or 27-inch monitors, so starting with a 1200px canvas feels comfortable and familiar. You have tons of empty space, so you never have to make hard decisions about what actually matters: you throw in a giant hero carousel, three promotional banners, a sidebar widget, social feeds and a multi-column footer because there is room for all of it.</p>
<p>When you change the process and actually start <strong>mobile-first</strong>, the way <a href="https://www.lukew.com/">Luke Wroblewski</a> laid out in his book <a href="https://abookapart.com/products/mobile-first">Mobile First</a>, everything changes.</p>
<p>Starting from a narrow viewport forces you to be very clear from day one. You have limited space, limited attention and often a slower mobile connection. You have to decide what the primary user task really is, remove unnecessary elements, establish clear content hierarchy, and make sure the core flow works cleanly with zero extras.</p>
<p>Then, as more space becomes available, you apply <strong>progressive enhancement</strong>: you introduce multi-column grids, secondary navigation, richer sidebars and wider layouts step by step using <code>min-width</code> media queries in CSS:</p>
<pre class="language-css"><code class="language-css"><span class="token comment">/* Base styles for the smallest viewport */</span>
<span class="token selector">.article-item</span> <span class="token punctuation">{</span>
  <span class="token property">width</span><span class="token punctuation">:</span> 100%<span class="token punctuation">;</span>
  <span class="token property">margin-bottom</span><span class="token punctuation">:</span> 1.5em<span class="token punctuation">;</span>
<span class="token punctuation">}</span>

<span class="token comment">/* Enhance layout only when the viewport has enough room */</span>
<span class="token atrule"><span class="token rule">@media</span> <span class="token punctuation">(</span><span class="token property">min-width</span><span class="token punctuation">:</span> 45em<span class="token punctuation">)</span></span> <span class="token punctuation">{</span>
  <span class="token selector">.article-item</span> <span class="token punctuation">{</span>
    <span class="token property">float</span><span class="token punctuation">:</span> left<span class="token punctuation">;</span>
    <span class="token property">width</span><span class="token punctuation">:</span> 48%<span class="token punctuation">;</span>
    <span class="token property">margin-right</span><span class="token punctuation">:</span> 2%<span class="token punctuation">;</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span></code></pre>
<p>Instead of writing complex desktop CSS and then overriding half of it with <code>max-width</code> rules to hide things on phones, your stylesheet stays smaller, cleaner and easier to reason about.</p>
<h2>Stop saying &quot;tablet&quot; and &quot;desktop&quot; experiences. Talk about viewports.</h2>
<p>Back in 2010 when <a href="https://horoman.com/blog/responsive-web-design-and-thinking-beyond-devices/">I first wrote about Responsive Web Design</a>, I already felt uneasy about splitting the web into rigid device buckets. Three years later, people still talk about &quot;the mobile version&quot;, &quot;the tablet experience&quot; and &quot;the desktop layout&quot; as if screen width tells you what hardware someone is holding.</p>
<p>It does not, and thinking that way leads to bad design decisions.</p>
<p>Think about how people actually use big desktop monitors every day. Plenty of users keep two browser windows side by side on a 27-inch screen, or resize a browser window down to 500px wide while reading documentation next to a code editor. Did their desktop computer suddenly turn into a smartphone or a tablet? Of course not. They still have a mouse, a physical keyboard and a fast connection, just inside a narrower <strong>viewport</strong>.</p>
<p>At the same time, some large tablets and small laptops share the exact same pixel width, while one uses touch and the other uses a trackpad.</p>
<p>That is why I stopped designing for &quot;devices&quot; and started designing strictly for <strong>viewports</strong>. Your layout breakpoints should happen where the content and typography actually start feeling cramped or stretched, not at arbitrary iPhone or iPad dimensions.</p>
<h2>Mobile-first also means media and performance</h2>
<p>One of the biggest flaws in how mobile-first is practiced today is treating it as purely a layout exercise.</p>
<p>I constantly inspect &quot;mobile-first&quot; websites that stack their columns cleanly on a 320px viewport while still downloading a 1600px hero JPEG, five high-resolution background textures and heavy desktop JavaScript bundles over a 3G mobile connection. Hiding a desktop banner with <code>display: none</code> does not stop the browser from downloading it.</p>
<p>If you are serious about mobile-first, media and assets have to follow the same progressive enhancement mindset:</p>
<ul>
<li>Load heavy decorative background images only inside larger <code>min-width</code> media queries so small viewports never download them.</li>
<li>Use vector <a href="https://www.w3.org/Graphics/SVG/">SVG</a> for icons and logos instead of bloated sprite sheets or oversized PNGs.</li>
<li>Avoid shipping massive desktop photos to small screens by using server-side image resizing or early responsive image tools like <a href="https://github.com/scottjehl/picturefill">Picturefill</a> until browsers finally agree on a native HTML standard.</li>
<li>Keep your base JavaScript lean and load heavier interactive widgets only when the viewport and capability actually need them.</li>
</ul>
<p>True mobile-first is not about shrinking a desktop site at the end of a sprint. It is about prioritizing core content, designing fluidly around viewports instead of device labels, and respecting bandwidth and performance from the very first line of CSS.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Switching from Coda to Sublime Text 2</title>
            <link>https://horoman.com/blog/switching-from-coda-to-sublime-text-2/</link>
            <guid isPermaLink="true">https://horoman.com/blog/switching-from-coda-to-sublime-text-2/</guid>
            <pubDate>Thu, 27 Dec 2012 00:00:00 +0000</pubDate>
            <category>Tools</category>
            <description>After years with Panic&#39;s Coda on Mac, Sublime Text 2 became my main code editor. Here is why speed, multiple cursors, Package Control, SideBarEnhancements and Emmet won me over.</description>
            <content:encoded><![CDATA[<p>For a long time <a href="https://panic.com/coda/">Coda</a> by <a href="https://panic.com/">Panic</a> was my daily code editor on Mac. Having FTP, a visual preview, CSS tools and a file browser all packed into one native OS X app felt great, especially when I was jumping between client WordPress sites and small HTML projects.</p>
<p>Over the past few months though, I kept noticing Coda feeling heavier than I wanted, especially when opening larger projects or jumping quickly between dozens of files. Even after Coda 2 came out earlier this year, I decided to give <a href="https://www.sublimetext.com/2">Sublime Text 2</a> a proper try for a full week of real client work.</p>
<p>That one week turned into a permanent switch. Sublime Text 2 is now my editor of choice, and going back to anything slower feels almost impossible.</p>
<h2>Speed and staying on the keyboard</h2>
<p>The first thing you notice about Sublime Text 2 is how fast it is. It opens instantly, handles huge files without stuttering, and gets completely out of your way with a clean, dark interface and that tiny minimap on the right.</p>
<p>Even more than raw speed, it changed how I move around a project. With Goto Anything (<code>Cmd+P</code>) I can type a few letters of any filename and jump straight to it, or add <code>@</code> to jump to a specific CSS selector or PHP function inside that file. The Command Palette (<code>Cmd+Shift+P</code>) puts almost every editor action a couple of keystrokes away, so my hands barely have to leave the keyboard.</p>
<h2>Multiple cursors change everything</h2>
<p>If I had to pick a single feature that sold me on Sublime Text 2 right away, it is multiple cursors.</p>
<p>Once you get used to selecting a word and hitting <code>Cmd+D</code> to select the next occurrences, or holding <code>Cmd</code> and clicking in five different places to edit five lines at once, editing HTML and CSS feels completely different. Renaming a class across a block of markup, wrapping a list of items in <code>&lt;li&gt;</code> tags with <code>Cmd+Shift+L</code>, or cleaning up repetitive WordPress template code takes two seconds instead of annoying find-and-replace dialogs.</p>
<p>It sounds like a small trick until you try to edit code in another editor without it and immediately miss it.</p>
<h2>Package Control and my favorite plugins</h2>
<p>By default, Sublime Text 2 is very minimal, which is why it stays so fast. What really makes it work for daily projects is installing <a href="https://wbond.net/sublime_packages/package_control">Package Control</a> by Will Bond. Instead of manually downloading plugin folders from GitHub, Package Control lets you search, install and keep plugins updated right from the Command Palette.</p>
<p>I try not to overload my setup with fifty extensions, so these are the few plugins I install first on any machine.</p>
<h3>SideBarEnhancements</h3>
<p>One of the few rough edges in default Sublime Text 2 is the sidebar. By default you only get very basic actions like New File, Rename and Delete, which felt like a big downgrade coming from Coda.</p>
<p><a href="https://github.com/titoBouzout/SideBarEnhancements">SideBarEnhancements</a> fixes that completely. It adds all the everyday file operations you expect: Duplicate, Move, Copy Path, Open in Browser, Reveal in Finder and Move to Trash. It really feels like something that should already be built into the editor.</p>
<h3>Emmet (formerly Zen Coding)</h3>
<p>If you write a lot of HTML and CSS by hand, <a href="https://emmet.io/">Emmet</a> (which just evolved out of <a href="https://code.google.com/p/zen-coding/">Zen Coding</a> by Sergey Chikuyonok) is a massive time saver.</p>
<p>Instead of typing opening and closing tags over and over, you write a short CSS-like abbreviation and press <code>Tab</code>:</p>
<pre class="language-text"><code class="language-text">nav.main-nav>ul>li.nav-item*4>a[href="#"]{Item $}</code></pre>
<p>And Emmet instantly expands it into clean markup:</p>
<pre class="language-html"><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>nav</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>main-nav<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>ul</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>li</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>nav-item<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>#<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>Item 1<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>li</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>li</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>nav-item<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>#<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>Item 2<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>li</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>li</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>nav-item<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>#<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>Item 3<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>li</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>li</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>nav-item<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>#<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>Item 4<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>li</span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>ul</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>nav</span><span class="token punctuation">></span></span></code></pre>
<p>It works for CSS properties too (<code>m10-20</code> becomes <code>margin: 10px 20px;</code>, <code>fz14</code> becomes <code>font-size: 14px;</code>), and when you combine Emmet with Sublime's multiple cursors, writing front-end code becomes much faster.</p>
<h3>A couple of small extras</h3>
<p>Beyond those two, I also like keeping <a href="https://github.com/facelessuser/BracketHighlighter">BracketHighlighter</a> installed so matching HTML tags and PHP braces are always clear in the gutter, and <a href="https://github.com/buymeasoda/soda-theme">Soda Theme</a> for a cleaner, more native-looking Mac UI around the tabs and sidebar.</p>
<h2>Leaving the all-in-one IDE behind</h2>
<p>Switching from Coda did mean giving up a built-in FTP client, so I went back to using <a href="https://panic.com/transmit/">Transmit</a> alongside Sublime Text 2 (and <a href="https://git-scm.com/">Git</a> whenever the project allows it). At first I thought splitting tools would slow me down, but the opposite happened: having a dedicated, lightning-fast code editor that does one job really well beats an all-in-one app every time.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Falling in love with Kirby CMS and why I prefer it to WordPress</title>
            <link>https://horoman.com/blog/falling-in-love-with-kirby-cms-and-why-i-prefer-it-to-wordpress/</link>
            <guid isPermaLink="true">https://horoman.com/blog/falling-in-love-with-kirby-cms-and-why-i-prefer-it-to-wordpress/</guid>
            <pubDate>Thu, 18 Oct 2012 00:00:00 +0000</pubDate>
            <category>Development</category>
            <description>After testing Kirby v1 and the Kirby Panel on a real client site, file-based content, blueprints and clean PHP templates beat WordPress and paid plugins for most custom websites.</description>
            <content:encoded><![CDATA[<p>Earlier this year I discovered <a href="https://getkirby.com/">Kirby</a>, a file-based PHP CMS created by <a href="https://bastianallgeier.com/">Bastian Allgeier</a> that launched its version 1 in January. Even after getting comfortable with <a href="https://horoman.com/blog/wordpress-custom-post-types-and-advanced-custom-fields/">WordPress, Custom Post Types and ACF</a>, <a href="https://wordpress.org/">WordPress</a> still carries a lot of weight: a MySQL database to maintain and migrate, endless core and plugin updates, security plugins, caching plugins, and paid add-ons every time a client needs something custom.</p>
<p>After testing Kirby on a few personal experiments, I saw its potential right away, and the first time I got a chance to pitch it to a client, I went for it.</p>
<p>The result was a tank of a website: super fast, completely manageable by the client through the <a href="https://getkirby.com/panel">Kirby Panel</a> with structured fields for every single section, and built without buying a single third-party plugin.</p>
<h2>No database, just clean folders and text files</h2>
<p>The biggest shift with Kirby is that there is no MySQL database at all. Your entire website structure is literally a folder tree inside <code>/content/</code>, and each page is a plain text file:</p>
<pre class="language-text"><code class="language-text">content/
  01-projects/
    01-studio-website/
      project.txt
      hero.jpg
      detail-01.jpg
    02-brand-identity/
      project.txt
      cover.jpg
  02-about/
    about.txt</code></pre>
<p>Inside <code>project.txt</code>, your structured fields are just readable plain text separated by four dashes:</p>
<pre class="language-text"><code class="language-text">Title: Studio Website
----
Client: Acme Studio
----
Year: 2012
----
Text: A responsive portfolio built with clean HTML5 and CSS.</code></pre>
<p>That alone makes Kirby way more versatile and reliable than WordPress in practice. Backing up a site means copying a folder. Moving from local to staging to production takes seconds with zero database dumps or broken serialized URLs. You can even put the entire site and its content under <a href="https://git-scm.com/">Git</a> version control.</p>
<h2>Structured fields with blueprints, no plugins required</h2>
<p>In WordPress, getting a clean, foolproof admin screen means installing ACF, configuring field groups in the database, hiding default meta boxes and hoping the next WordPress update doesn't break one of your plugins.</p>
<p>In Kirby v1, you just drop a simple <a href="https://yaml.org/">YAML</a> blueprint file inside <code>site/panel/blueprints/project.php</code>:</p>
<pre class="language-yaml"><code class="language-yaml">&lt;<span class="token punctuation">?</span>php if(<span class="token tag">!defined('KIRBY'))</span> exit <span class="token punctuation">?</span><span class="token punctuation">></span>

<span class="token key atrule">title</span><span class="token punctuation">:</span> Project
<span class="token key atrule">pages</span><span class="token punctuation">:</span> <span class="token boolean important">false</span>
<span class="token key atrule">files</span><span class="token punctuation">:</span> <span class="token boolean important">true</span>
<span class="token key atrule">fields</span><span class="token punctuation">:</span>
  <span class="token key atrule">title</span><span class="token punctuation">:</span>
    <span class="token key atrule">label</span><span class="token punctuation">:</span> Title
    <span class="token key atrule">type</span><span class="token punctuation">:</span>  text
  <span class="token key atrule">client</span><span class="token punctuation">:</span>
    <span class="token key atrule">label</span><span class="token punctuation">:</span> Client
    <span class="token key atrule">type</span><span class="token punctuation">:</span>  text
  <span class="token key atrule">year</span><span class="token punctuation">:</span>
    <span class="token key atrule">label</span><span class="token punctuation">:</span> Year
    <span class="token key atrule">type</span><span class="token punctuation">:</span>  text
  <span class="token key atrule">text</span><span class="token punctuation">:</span>
    <span class="token key atrule">label</span><span class="token punctuation">:</span> Description
    <span class="token key atrule">type</span><span class="token punctuation">:</span>  textarea</code></pre>
<p>The Kirby Panel reads that blueprint and immediately builds a clean, minimal admin form for the client. They get structured inputs, drag-and-drop image uploads directly into the page folder, and <a href="https://daringfireball.net/projects/markdown/">Markdown</a> / <a href="https://getkirby.com/docs/content/text">Kirbytext</a> formatting without a bloated WYSIWYG toolbar where they can paste broken styles from Word.</p>
<p>And because blueprints are just files in your repository, you never have to pay for extra plugins or click around an admin screen to recreate fields on another server.</p>
<h2>Cleaner, faster PHP templates</h2>
<p>Writing templates in Kirby is also much cleaner compared to WordPress's <code>WP_Query</code> loops and dozens of template tags. If a content file is named <code>project.txt</code>, Kirby automatically renders it with <code>site/templates/project.php</code>:</p>
<pre class="language-php"><code class="language-php"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>article</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>project<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>h1</span><span class="token punctuation">></span></span><span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">echo</span> <span class="token function">html</span><span class="token punctuation">(</span><span class="token variable">$page</span><span class="token operator">-></span><span class="token function">title</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token delimiter important">?></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>h1</span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>meta<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
    <span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">echo</span> <span class="token function">html</span><span class="token punctuation">(</span><span class="token variable">$page</span><span class="token operator">-></span><span class="token function">client</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token delimiter important">?></span></span> (<span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">echo</span> <span class="token function">html</span><span class="token punctuation">(</span><span class="token variable">$page</span><span class="token operator">-></span><span class="token function">year</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token delimiter important">?></span></span>)
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">></span></span>

  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>content<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
    <span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">echo</span> <span class="token function">kirbytext</span><span class="token punctuation">(</span><span class="token variable">$page</span><span class="token operator">-></span><span class="token function">text</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token delimiter important">?></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span>

  <span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">foreach</span><span class="token punctuation">(</span><span class="token variable">$page</span><span class="token operator">-></span><span class="token function">images</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">as</span> <span class="token variable">$image</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token delimiter important">?></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>img</span> <span class="token attr-name">src</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span><span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">echo</span> <span class="token variable">$image</span><span class="token operator">-></span><span class="token function">url</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token delimiter important">?></span></span><span class="token punctuation">"</span></span> <span class="token attr-name">alt</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span><span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">echo</span> <span class="token function">html</span><span class="token punctuation">(</span><span class="token variable">$page</span><span class="token operator">-></span><span class="token function">title</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token delimiter important">?></span></span><span class="token punctuation">"</span></span> <span class="token punctuation">/></span></span>
  <span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">endforeach</span> <span class="token delimiter important">?></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>article</span><span class="token punctuation">></span></span></code></pre>
<p>Want to list all visible projects on the homepage? It is one readable line: <code>$pages-&gt;find('projects')-&gt;children()-&gt;visible()</code>. There is no fighting a blog engine to pretend it is a portfolio or a company website. You define the exact data structure the project actually needs, and Kirby stays completely out of your HTML.</p>
<h2>Moving my work to Kirby (when clients let me)</h2>
<p>After seeing how solid and reliable that first client site turned out, I started moving almost all of my new custom projects over to Kirby. It is faster to build, easier to maintain, practically immune to the usual database and plugin headaches, and clients pick up the Panel in five minutes.</p>
<p>Of course, the reality of freelance work is that more than half of my clients still ask for WordPress simply because they already know the name, used it at a previous job, or have an internal team comfortable with it. I still build plenty of WordPress sites when a client asks for it.</p>
<p>Whenever the choice is mine though, Kirby v1 is easily my favorite CMS right now. For custom-designed websites, it is simply cleaner, more versatile and built like a tank.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Why I switched to Markdown and iA Writer for writing</title>
            <link>https://horoman.com/blog/why-i-switched-to-markdown-and-ia-writer/</link>
            <guid isPermaLink="true">https://horoman.com/blog/why-i-switched-to-markdown-and-ia-writer/</guid>
            <pubDate>Thu, 14 Jun 2012 00:00:00 +0000</pubDate>
            <category>Tools</category>
            <description>Moving away from Microsoft Word and messy WYSIWYG editors to plain-text Markdown for full control over content and clean HTML, plus why iA Writer helps me stay focused.</description>
            <content:encoded><![CDATA[<p>If you have ever copied an article from Microsoft Word and pasted it into a web CMS, you already know the mess that comes out on the other side. Empty <code>&lt;span&gt;</code> tags, inline <code>style=&quot;font-family: Calibri&quot;</code> rules, broken line breaks and random <code>&lt;div&gt;</code> wrappers everywhere. Even web WYSIWYG editors like <a href="https://www.tinymce.com/">TinyMCE</a> hide the real HTML markup until something breaks in the layout and you have to switch to the HTML tab to clean it up by hand.</p>
<p>Over the last few months I stopped writing drafts in Word and WYSIWYG boxes and moved almost everything to <a href="https://daringfireball.net/projects/markdown/">Markdown</a>.</p>
<h2>Full control over your text and clean HTML</h2>
<p>Markdown was created by <a href="https://daringfireball.net/">John Gruber</a> back in 2004, and the idea is very simple: you write in plain text using a few easy-to-read symbols, and a parser converts it into clean, standard HTML.</p>
<p>What I like most about it is that you stay in complete control of your data. There is no proprietary <code>.docx</code> container, no hidden formatting that breaks when you move a paragraph, and no mystery markup behind a toolbar button. Every heading, link or list is right there in plain sight, and because it is just a <code>.txt</code> or <code>.md</code> file, you will still be able to open and read it twenty years from now on any computer.</p>
<p>Compare what happens when you paste a simple heading and a bold link from Word into a rich text editor:</p>
<pre class="language-html"><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>MsoNormal<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>b</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span> <span class="token special-attr"><span class="token attr-name">style</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span><span class="token value css language-css"><span class="token property">font-size</span><span class="token punctuation">:</span>14.0pt<span class="token punctuation">;</span><span class="token property">font-family</span><span class="token punctuation">:</span>Calibri</span><span class="token punctuation">"</span></span></span><span class="token punctuation">></span></span>
Project notes<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>b</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>MsoNormal<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>Check the <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>http://example.com<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span> <span class="token special-attr"><span class="token attr-name">style</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span><span class="token value css language-css"><span class="token property">color</span><span class="token punctuation">:</span>windowtext</span><span class="token punctuation">"</span></span></span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>b</span><span class="token punctuation">></span></span>final spec<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>b</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a</span><span class="token punctuation">></span></span> before Friday.<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">></span></span></code></pre>
<p>With Markdown, you just write normal text:</p>
<pre class="language-markdown"><code class="language-markdown"><span class="token title important"><span class="token punctuation">##</span> Project notes</span>

Check the <span class="token bold"><span class="token punctuation">**</span><span class="token content"><span class="token url">[<span class="token content">final spec</span>](<span class="token url">http://example.com</span>)</span></span><span class="token punctuation">**</span></span> before Friday.</code></pre>
<p>And the HTML that comes out is clean every single time:</p>
<pre class="language-html"><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>h2</span><span class="token punctuation">></span></span>Project notes<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>h2</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span><span class="token punctuation">></span></span>Check the <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>strong</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>http://example.com<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>final spec<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>strong</span><span class="token punctuation">></span></span> before Friday.<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">></span></span></code></pre>
<h2>The syntax I use every day</h2>
<p>It takes maybe ten minutes to learn almost everything you need for blog posts, client documentation and project notes:</p>
<pre class="language-markdown"><code class="language-markdown"><span class="token title important"><span class="token punctuation">#</span> Main heading</span>
<span class="token title important"><span class="token punctuation">##</span> Section heading</span>

Regular paragraph with <span class="token italic"><span class="token punctuation">*</span><span class="token content">italic</span><span class="token punctuation">*</span></span>, <span class="token bold"><span class="token punctuation">**</span><span class="token content">bold</span><span class="token punctuation">**</span></span> and <span class="token code-snippet code keyword">`inline code`</span>.

<span class="token list punctuation">-</span> First item
<span class="token list punctuation">-</span> Second item
<span class="token list punctuation">-</span> Third item

<span class="token blockquote punctuation">></span> A short quote from a client or an article.

Read more on <span class="token url">[<span class="token content">Daring Fireball</span>](<span class="token url">https://daringfireball.net/projects/markdown/</span>)</span>.</code></pre>
<p>One limitation of John Gruber's original 2004 syntax is that it did not include tables. Thankfully, extensions like <a href="https://michelf.ca/projects/php-markdown/extra/">PHP Markdown Extra</a> and <a href="https://fletcherpenney.net/multimarkdown/">MultiMarkdown</a> solved that with a readable pipe syntax that works in most modern parsers and editors:</p>
<pre class="language-markdown"><code class="language-markdown"><span class="token table"><span class="token table-header-row"><span class="token punctuation">|</span><span class="token table-header important"> Format   </span><span class="token punctuation">|</span><span class="token table-header important"> Readable as plain text </span><span class="token punctuation">|</span><span class="token table-header important"> Clean HTML output </span><span class="token punctuation">|</span>
</span><span class="token table-line"><span class="token punctuation">|</span> <span class="token punctuation">--------</span> <span class="token punctuation">|</span> <span class="token punctuation">----------------------</span> <span class="token punctuation">|</span> <span class="token punctuation">-----------------</span> <span class="token punctuation">|</span>
</span><span class="token table-data-rows"><span class="token punctuation">|</span><span class="token table-data"> Word     </span><span class="token punctuation">|</span><span class="token table-data"> No                     </span><span class="token punctuation">|</span><span class="token table-data"> No                </span><span class="token punctuation">|</span>
<span class="token punctuation">|</span><span class="token table-data"> WYSIWYG  </span><span class="token punctuation">|</span><span class="token table-data"> No                     </span><span class="token punctuation">|</span><span class="token table-data"> Rarely            </span><span class="token punctuation">|</span>
<span class="token punctuation">|</span><span class="token table-data"> Markdown </span><span class="token punctuation">|</span><span class="token table-data"> Yes                    </span><span class="token punctuation">|</span><span class="token table-data"> Yes               </span><span class="token punctuation">|</span>
</span></span></code></pre>
<p>Even before it gets converted into a <code>&lt;table&gt;</code>, you can read it straight in your text file without squinting through <code>&lt;tr&gt;</code> and <code>&lt;td&gt;</code> tags.</p>
<h2>Staying focused with iA Writer</h2>
<p>You can write Markdown in any text editor, of course, but pairing it with <a href="https://ia.net/writer">iA Writer</a> by <a href="https://ia.net/">Information Architects</a> is what really made the habit stick for me.</p>
<p>When you open Word or Pages, half the screen is covered in ribbons, font dropdowns, rulers and alignment icons. You end up wasting twenty minutes picking a typeface and fiddling with margins before you have even written two paragraphs.</p>
<p>iA Writer strips all of that away. You get a single clean page, one fixed monospace font, zero settings to tweak, and built-in Markdown preview and HTML export. My favorite part is Focus Mode, which fades out the rest of the document and highlights only the sentence you are typing right now. With the Mac app and the updated iPhone and iPad versions syncing over iCloud, I can start an article on my laptop and finish editing it on the train without fighting formatting menus.</p>
<p>Writing in plain text feels a bit strange for the first couple of days if you are used to seeing formatted pages as you type. Once you get used to it though, having clean markup, portable files and zero distractions while you write makes a big difference.</p>
]]></content:encoded>
        </item>
        <item>
            <title>My local WordPress and front-end setup with MAMP PRO and CodeKit</title>
            <link>https://horoman.com/blog/my-local-wordpress-and-frontend-setup-with-mamp-pro-and-codekit/</link>
            <guid isPermaLink="true">https://horoman.com/blog/my-local-wordpress-and-frontend-setup-with-mamp-pro-and-codekit/</guid>
            <pubDate>Thu, 08 Dec 2011 00:00:00 +0000</pubDate>
            <category>Tools</category>
            <description>Running local WordPress sites on Mac with MAMP PRO 2 virtual hosts and automating Sass, LESS, JavaScript minification and browser reloads with the new CodeKit beta.</description>
            <content:encoded><![CDATA[<p>This year has easily been my biggest year for <a href="https://wordpress.org/">WordPress</a> client work. Last month <a href="https://horoman.com/blog/wordpress-custom-post-types-and-advanced-custom-fields/">I wrote about Custom Post Types and Advanced Custom Fields</a>, which fixed a lot of the pain on the CMS side. The other half of working fast on WordPress projects though is having a solid local development setup on your Mac instead of editing files over FTP on a remote server.</p>
<p>For a while I tried configuring Mac OS X's built-in Apache and MySQL by hand, and I also used the free version of MAMP. Right now though, two Mac apps completely transformed my daily workflow: <a href="https://www.mamp.info/en/mamp-pro/">MAMP PRO</a> for the PHP and WordPress stack, and the brand new <a href="https://incident57.com/codekit/">CodeKit</a> beta for everything on the front-end.</p>
<h2>MAMP PRO 2 for the PHP and WordPress stack</h2>
<p>The free version of <a href="https://www.mamp.info/">MAMP</a> is totally fine when you only have one project running at <code>http://localhost:8888</code>. The problem starts the moment you are maintaining five or six different client WordPress sites at the same time.</p>
<p>Upgrading to MAMP PRO 2 (which came out this summer with proper Mac OS X Lion support) solved every headache I had with local PHP environments. The main reason I paid for it is virtual host management. Instead of editing <code>/etc/hosts</code> and Apache's <code>httpd-vhosts.conf</code> by hand every time a new project starts, you just open MAMP PRO, add a host like <code>client-project.local</code>, point it to your project folder, and click apply.</p>
<p>In daily WordPress work, a few small details make a huge difference:</p>
<ul>
<li>Every local WordPress install runs at the root of its own domain (<code>http://client-project.local/</code>), so root-relative URLs and <code>.htaccess</code> pretty permalinks behave exactly like they will on the live server.</li>
<li>You can switch between PHP 5.2 and PHP 5.3 with a single click, which is a lifesaver when a client's old shared hosting server is still stuck on an older PHP version.</li>
<li>Managing local MySQL databases is simple with the built-in <a href="https://www.phpmyadmin.net/">phpMyAdmin</a> or by connecting straight into MAMP's MySQL socket from <a href="https://www.sequelpro.com/">Sequel Pro</a>.</li>
</ul>
<p>Once MAMP PRO is running in the background, spinning up a fresh local WordPress site takes maybe two minutes.</p>
<h2>CodeKit for front-end automation</h2>
<p>If MAMP PRO handles the back-end stack, <a href="https://incident57.com/codekit/">CodeKit</a> by Bryan Jones is what takes care of the front-end. I was already a fan of his earlier <a href="https://incident57.com/less/">LESS.app</a>, and when the first CodeKit beta dropped last month I installed it immediately.</p>
<p>The idea is simple: you drag your project folder into CodeKit, and it watches your files in the background without forcing you to keep three terminal tabs open all day.</p>
<p>Every time you save a file in your editor, CodeKit automatically handles all the boring front-end tasks:</p>
<ul>
<li>Compiles <a href="https://sass-lang.com/">Sass</a>, <a href="http://compass-style.org/">Compass</a>, <a href="http://lesscss.org/">LESS</a> and <a href="http://coffeescript.org/">CoffeeScript</a> right on save, and pops up a Growl notification if you made a syntax mistake.</li>
<li>Checks your JavaScript with <a href="http://www.jslint.com/">JSLint</a> or <a href="https://jshint.com/">JSHint</a>, and combines and minifies scripts so you don't ship five separate uncompressed <code>.js</code> files to production.</li>
<li>Losslessly optimizes PNG and JPEG images inside your theme folder with one click.</li>
<li>Automatically refreshes Safari or Chrome when you edit HTML or PHP files, and even better, injects updated CSS directly into the open page without doing a full reload.</li>
</ul>
<h2>Putting MAMP PRO and CodeKit together</h2>
<p>Using both apps together works really well for WordPress theme development.</p>
<p>MAMP PRO serves the local WordPress site at <code>http://client-project.local/</code>, while CodeKit watches my theme directory inside <code>wp-content/themes/client-theme/</code>. I open the local site on one side of my monitor and my code editor on the other. When I tweak a Sass variable or adjust a layout rule and hit <code>Cmd+S</code>, CodeKit compiles the CSS and injects it live into Chrome in less than a second.</p>
<p>No more waiting on FTP uploads or babysitting terminal windows. If you build WordPress sites on a Mac, MAMP PRO and CodeKit together save hours every week.</p>
]]></content:encoded>
        </item>
        <item>
            <title>WordPress, Custom Post Types and why Advanced Custom Fields changed my workflow</title>
            <link>https://horoman.com/blog/wordpress-custom-post-types-and-advanced-custom-fields/</link>
            <guid isPermaLink="true">https://horoman.com/blog/wordpress-custom-post-types-and-advanced-custom-fields/</guid>
            <pubDate>Thu, 10 Nov 2011 00:00:00 +0000</pubDate>
            <category>Development</category>
            <description>After starting with WordPress 2.6 and seeing Custom Post Types arrive in 3.0, Elliot Condon&#39;s Advanced Custom Fields finally made structured content and clean client input simple.</description>
            <content:encoded><![CDATA[<p>I started working with <a href="https://wordpress.org/">WordPress</a> back around <a href="https://wordpress.org/news/2008/07/wordpress-26/">version 2.6</a>, mostly because there was already a huge demand for it on the market. Clients knew the name, wanted an admin panel they could actually understand, and rarely had the budget for a custom CMS built from scratch.</p>
<p>For a while though, using WordPress for anything more complex than a normal blog or a small brochure site felt a bit forced. You ended up using regular blog categories to fake a portfolio, a team page or an events list, and hoping the client wouldn't mix everything up later.</p>
<p>Things really started to change last year with <a href="https://wordpress.org/news/2010/06/thelonious/">WordPress 3.0</a>, which finally brought proper <a href="https://codex.wordpress.org/Post_Types">Custom Post Types</a> into core. Suddenly you could separate projects, case studies, team members or events cleanly in the sidebar, each with its own templates and URLs.</p>
<h2>The pain of writing custom metaboxes in PHP</h2>
<p>Even with Custom Post Types, there was still a big annoying part left: managing structured data.</p>
<p>WordPress has always had default <a href="https://codex.wordpress.org/Custom_Fields">custom fields</a>, of course, but asking a client to manually type key and value pairs into a raw table is a recipe for disaster. One small typo in the field name and nothing shows up on the site.</p>
<p>So if a project needed structured data like a client name, a release date, a project link or extra image uploads, you had to code heavy custom metaboxes completely by hand in PHP. That meant writing <a href="https://codex.wordpress.org/Function_Reference/add_meta_box"><code>add_meta_box()</code></a>, building all the form markup yourself, adding nonces, hooking into <code>save_post</code>, checking autosaves and permissions, sanitizing every value and saving everything with <a href="https://codex.wordpress.org/Function_Reference/update_post_meta"><code>update_post_meta()</code></a>.</p>
<p>For one simple field it was annoying. For a full client website with twenty different fields across five templates, it meant repeating hundreds of lines of boilerplate code over and over, and most of the time the admin screen still ended up looking messy.</p>
<h2>Why Advanced Custom Fields made such a difference</h2>
<p>Earlier this year I discovered <a href="https://www.advancedcustomfields.com/">Advanced Custom Fields</a> (ACF), a plugin created by <a href="https://www.elliotcondon.com/">Elliot Condon</a>, and it immediately solved almost every problem I had with metaboxes.</p>
<p>Instead of spending hours writing metabox PHP by hand, ACF gives you a really clean and intuitive graphical interface right inside WordPress. You build a field group, pick your field types, set up the location rules to decide where those fields appear (for example only on a &quot;Projects&quot; Custom Post Type, or only on the Homepage template), and you are ready to go.</p>
<p>Another detail I love is that you can even hide the default WordPress editor on specific pages when a layout is made purely of structured blocks. That way the client only sees the exact fields they actually need to fill in, without wondering what the big empty text box at the top is for.</p>
<p>I became a huge fan almost immediately and now I use it on basically every WordPress project I build.</p>
<h2>Real examples from my client sites</h2>
<p>Here are a few everyday situations where ACF immediately made my life easier compared to old custom metabox setups.</p>
<h3>1. Portfolio projects with clean metadata</h3>
<p>On a portfolio or agency site, every project usually needs a client name, a release date, a live URL and maybe a flag to feature it on the homepage. Instead of putting all of that inside the main text editor, I set up a dedicated field group attached to the <code>project</code> Custom Post Type and pull each value safely in the template:</p>
<pre class="language-php"><code class="language-php"><span class="token php language-php"><span class="token delimiter important">&lt;?php</span>
<span class="token variable">$client</span>   <span class="token operator">=</span> <span class="token function">get_field</span><span class="token punctuation">(</span> <span class="token string single-quoted-string">'client_name'</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token variable">$date</span>     <span class="token operator">=</span> <span class="token function">get_field</span><span class="token punctuation">(</span> <span class="token string single-quoted-string">'release_date'</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token variable">$link</span>     <span class="token operator">=</span> <span class="token function">get_field</span><span class="token punctuation">(</span> <span class="token string single-quoted-string">'project_url'</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token variable">$featured</span> <span class="token operator">=</span> <span class="token function">get_field</span><span class="token punctuation">(</span> <span class="token string single-quoted-string">'featured_project'</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>project-meta<span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">echo</span> <span class="token variable">$featured</span> <span class="token operator">?</span> <span class="token string single-quoted-string">' featured'</span> <span class="token punctuation">:</span> <span class="token string single-quoted-string">''</span><span class="token punctuation">;</span> <span class="token delimiter important">?></span></span><span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
  <span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">if</span> <span class="token punctuation">(</span> <span class="token variable">$client</span> <span class="token punctuation">)</span> <span class="token punctuation">:</span> <span class="token delimiter important">?></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>project-client<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">echo</span> <span class="token function">esc_html</span><span class="token punctuation">(</span> <span class="token variable">$client</span> <span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token delimiter important">?></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">></span></span>
  <span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">endif</span><span class="token punctuation">;</span> <span class="token delimiter important">?></span></span>

  <span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">if</span> <span class="token punctuation">(</span> <span class="token variable">$date</span> <span class="token punctuation">)</span> <span class="token punctuation">:</span> <span class="token delimiter important">?></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>project-date<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">echo</span> <span class="token function">esc_html</span><span class="token punctuation">(</span> <span class="token variable">$date</span> <span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token delimiter important">?></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">></span></span>
  <span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">endif</span><span class="token punctuation">;</span> <span class="token delimiter important">?></span></span>

  <span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">if</span> <span class="token punctuation">(</span> <span class="token variable">$link</span> <span class="token punctuation">)</span> <span class="token punctuation">:</span> <span class="token delimiter important">?></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>project-link<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span><span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">echo</span> <span class="token function">esc_url</span><span class="token punctuation">(</span> <span class="token variable">$link</span> <span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token delimiter important">?></span></span><span class="token punctuation">"</span></span><span class="token punctuation">></span></span>Visit website<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">></span></span>
  <span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">endif</span><span class="token punctuation">;</span> <span class="token delimiter important">?></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span></code></pre>
<p>If an optional field like the live URL is left empty, the markup simply skips it without leaving broken links or empty HTML tags behind.</p>
<h3>2. Events and schedules without inconsistent dates</h3>
<p>Before ACF, whenever a client managed an events page inside a normal text box, every editor wrote dates in a different way: &quot;12 Nov&quot;, &quot;November 12th 2011&quot;, &quot;12/11/11&quot;. Sorting or styling those blocks consistently was almost impossible.</p>
<p>Using a dedicated Date Picker field together with plain text fields for venue and city solves the problem completely. Every event stores the date in the exact same format, and the editor doesn't have to guess how to type it.</p>
<h3>3. Art-directed blog posts and product pages</h3>
<p>One of my favorite uses of ACF is making art-directed posts or product pages without having to create a separate PHP template for every special page.</p>
<p>For example, on a blog or a product showcase, most entries can follow the default site design. When a special article or a new product launch deserves its own visual mood, you can attach a small set of optional styling fields (like background color, accent color, header image or even a custom CSS field for that specific post) right inside the editor:</p>
<pre class="language-php"><code class="language-php"><span class="token php language-php"><span class="token delimiter important">&lt;?php</span>
<span class="token variable">$bg_color</span>     <span class="token operator">=</span> <span class="token function">get_field</span><span class="token punctuation">(</span> <span class="token string single-quoted-string">'page_bg_color'</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token variable">$accent_color</span> <span class="token operator">=</span> <span class="token function">get_field</span><span class="token punctuation">(</span> <span class="token string single-quoted-string">'page_accent_color'</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token variable">$custom_css</span>   <span class="token operator">=</span> <span class="token function">get_field</span><span class="token punctuation">(</span> <span class="token string single-quoted-string">'post_custom_css'</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token keyword">if</span> <span class="token punctuation">(</span> <span class="token variable">$bg_color</span> <span class="token operator">||</span> <span class="token variable">$accent_color</span> <span class="token operator">||</span> <span class="token variable">$custom_css</span> <span class="token punctuation">)</span> <span class="token punctuation">:</span> <span class="token delimiter important">?></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>style</span> <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>text/css<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token style"><span class="token language-css">
    <span class="token selector"><span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">if</span> <span class="token punctuation">(</span> <span class="token variable">$bg_color</span> <span class="token punctuation">)</span> <span class="token punctuation">:</span> <span class="token delimiter important">?></span></span>
      body</span> <span class="token punctuation">{</span> <span class="token property">background-color</span><span class="token punctuation">:</span> <span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">echo</span> <span class="token function">esc_attr</span><span class="token punctuation">(</span> <span class="token variable">$bg_color</span> <span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token delimiter important">?></span></span><span class="token punctuation">;</span> <span class="token punctuation">}</span>
    <span class="token selector"><span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">endif</span><span class="token punctuation">;</span> <span class="token delimiter important">?></span></span>
    <span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">if</span> <span class="token punctuation">(</span> <span class="token variable">$accent_color</span> <span class="token punctuation">)</span> <span class="token punctuation">:</span> <span class="token delimiter important">?></span></span>
      a, h1</span> <span class="token punctuation">{</span> <span class="token property">color</span><span class="token punctuation">:</span> <span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">echo</span> <span class="token function">esc_attr</span><span class="token punctuation">(</span> <span class="token variable">$accent_color</span> <span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token delimiter important">?></span></span><span class="token punctuation">;</span> <span class="token punctuation">}</span>
    <span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">endif</span><span class="token punctuation">;</span> <span class="token delimiter important">?></span></span>
    <span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">if</span> <span class="token punctuation">(</span> <span class="token variable">$custom_css</span> <span class="token punctuation">)</span> <span class="token punctuation">:</span> <span class="token delimiter important">?></span></span>
      <span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">echo</span> <span class="token function">strip_tags</span><span class="token punctuation">(</span> <span class="token variable">$custom_css</span> <span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token delimiter important">?></span></span>
    <span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">endif</span><span class="token punctuation">;</span> <span class="token delimiter important">?></span></span>
  </span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>style</span><span class="token punctuation">></span></span>
<span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">endif</span><span class="token punctuation">;</span> <span class="token delimiter important">?></span></span></code></pre>
<p>If you leave those fields empty, the page uses the normal stylesheet. When you fill them in, that single article or product page can completely change its look and feel while still keeping the exact same clean HTML structure underneath.</p>
<h2>Controlling client input to protect the design</h2>
<p>For me as a designer, the best part of ACF is not just saving PHP development time. It is how much better you can control the data that clients enter, so they don't accidentally break the layout two weeks after launch.</p>
<p>When you only give someone one giant WYSIWYG editor, you already know what happens: pasted styles from Microsoft Word, random inline colors, huge uncompressed images dropped in the middle of a paragraph, or missing fields that ruin the visual hierarchy.</p>
<p>With ACF you can guide almost every input properly:</p>
<ul>
<li>Choosing the right input types for each piece of content, like a plain text input instead of a rich editor, a dedicated image uploader, a date picker, a true/false checkbox, or a select dropdown when only a few specific options should be allowed.</li>
<li>Marking critical fields as required, so an editor cannot publish a project or an event with missing data that leaves empty holes in a grid or card.</li>
<li>Writing clear short instructions under each field (for example reminding the client to keep a summary under 140 characters, or what image proportions work best) and adding a safe fallback limit in PHP when rendering short teasers:</li>
</ul>
<pre class="language-php"><code class="language-php"><span class="token php language-php"><span class="token delimiter important">&lt;?php</span>
<span class="token variable">$summary</span> <span class="token operator">=</span> <span class="token function">get_field</span><span class="token punctuation">(</span> <span class="token string single-quoted-string">'short_summary'</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token keyword">if</span> <span class="token punctuation">(</span> <span class="token variable">$summary</span> <span class="token punctuation">)</span> <span class="token punctuation">{</span>
  <span class="token keyword">echo</span> <span class="token string single-quoted-string">'&lt;p>'</span> <span class="token operator">.</span> <span class="token function">esc_html</span><span class="token punctuation">(</span> <span class="token function">mb_strimwidth</span><span class="token punctuation">(</span> <span class="token variable">$summary</span><span class="token punctuation">,</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token number">140</span><span class="token punctuation">,</span> <span class="token string single-quoted-string">'...'</span> <span class="token punctuation">)</span> <span class="token punctuation">)</span> <span class="token operator">.</span> <span class="token string single-quoted-string">'&lt;/p>'</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token delimiter important">?></span></span></code></pre>
<p>It makes the admin experience way less intimidating for clients, because they don't have to worry about breaking anything, and at the same time it keeps the front-end HTML clean and predictable. Between Custom Post Types in WordPress 3.0 and ACF, WordPress finally feels like a real CMS I am happy to build on.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Responsive web design and thinking beyond fixed devices</title>
            <link>https://horoman.com/blog/responsive-web-design-and-thinking-beyond-devices/</link>
            <guid isPermaLink="true">https://horoman.com/blog/responsive-web-design-and-thinking-beyond-devices/</guid>
            <pubDate>Thu, 18 Nov 2010 00:00:00 +0000</pubDate>
            <category>Accessibility</category>
            <description>After reading Ethan Marcotte on A List Apart, fluid grids, flexible media and CSS Media Queries feel like the real answer to adapting websites to any screen size.</description>
            <content:encoded><![CDATA[<p>Recently I came across an article on <a href="https://alistapart.com/">A List Apart</a> by <a href="https://ethanmarcotte.com/">Ethan Marcotte</a> called <a href="https://alistapart.com/article/responsive-web-design/">&quot;Responsive Web Design&quot;</a>, and honestly it felt like a lightbulb moment.</p>
<p>Back last year, after getting my iPhone 3GS, <a href="https://horoman.com/blog/first-impressions-of-the-iphone-3gs-and-the-mobile-web/">I wrote</a> that making a separate mobile site on an <code>m.</code> subdomain or building native apps for every platform felt like the wrong long term direction. I kept thinking there had to be a way in web standards to make a single site adapt cleanly to smaller screens.</p>
<p>What Marcotte proposes finally puts all the pieces together in a simple and practical way: combining fluid grids, flexible images and <a href="https://www.w3.org/TR/css3-mediaqueries/">CSS Media Queries</a> so the same website can adapt to whatever screen is viewing it.</p>
<h2>Not just mobile, tablet and desktop</h2>
<p>Now that the <a href="https://www.apple.com/ipad/">iPad</a> is out with Safari on a 9.7-inch screen, we are already dealing with at least three different classes of devices, and more will surely come.</p>
<p>Still, thinking about this over the past few days, I don't think we should focus too much on fixed labels like &quot;mobile&quot;, &quot;tablet&quot; and &quot;desktop&quot;. Those buckets already start to fall apart if you look closely.</p>
<p>What does &quot;desktop&quot; even mean today? An external monitor, sure, but which one? 20, 24, 27 or 32 inches? On the other side, a lot of small laptops and netbooks right now have screens that are actually smaller, or have less vertical resolution, than an iPad. And people don't even keep their browser windows maximized all the time on big monitors anyway.</p>
<p>Instead of designing three rigid versions for three specific gadgets, it makes much more sense to design sites that stay comfortable and accessible across a full range of widths, including larger resolutions where a fixed 960px layout starts looking tiny in the middle of the screen.</p>
<h2>Three practical things to start focusing on</h2>
<p>For me, trying to apply this in real projects comes down to three main basics:</p>
<ol>
<li>A fluid, responsive grid: moving away from rigid pixel widths for every container and column, using percentage widths together with Media Queries to adjust the layout when the screen gets narrower or wider.</li>
<li>Flexible images and video: making sure photos and embedded videos don't break out of their containers on smaller screens, starting with simple rules like <code>max-width: 100%</code> so media scales together with the grid.</li>
<li>Adapting <code>font-size</code>: text that looks fine on a laptop can become way too small on a big 27-inch screen or awkward on a phone. Using relative units like <code>em</code> or percentages and adjusting the base <code>font-size</code> with Media Queries helps keep reading comfortable everywhere.</li>
</ol>
<pre class="language-css"><code class="language-css"><span class="token selector">img, video</span> <span class="token punctuation">{</span>
  <span class="token property">max-width</span><span class="token punctuation">:</span> 100%<span class="token punctuation">;</span>
  <span class="token property">height</span><span class="token punctuation">:</span> auto<span class="token punctuation">;</span>
<span class="token punctuation">}</span>

<span class="token atrule"><span class="token rule">@media</span> screen <span class="token keyword">and</span> <span class="token punctuation">(</span><span class="token property">max-width</span><span class="token punctuation">:</span> 768px<span class="token punctuation">)</span></span> <span class="token punctuation">{</span>
  <span class="token selector">body</span> <span class="token punctuation">{</span>
    <span class="token property">font-size</span><span class="token punctuation">:</span> 95%<span class="token punctuation">;</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span></code></pre>
<p>Of course browser support (especially older Internet Explorer versions) still needs some care and fallbacks, and changing how we design grids is not something that happens overnight. Even so, this feels like the first real, standards-based answer to the multi-device web.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Rethinking web design tools, from Photoshop to DrawIt and Sketch</title>
            <link>https://horoman.com/blog/moving-beyond-photoshop-drawit-and-sketch/</link>
            <guid isPermaLink="true">https://horoman.com/blog/moving-beyond-photoshop-drawit-and-sketch/</guid>
            <pubDate>Thu, 14 Oct 2010 00:00:00 +0000</pubDate>
            <category>Tools</category>
            <description>After years of designing websites in Photoshop and Illustrator, the shift to @2x Retina screens makes heavy Adobe tools feel even more outdated. Native Mac apps like DrawIt and the new Sketch look like the future.</description>
            <content:encoded><![CDATA[<p>I started doing web design with <a href="https://www.adobe.com/products/photoshop.html">Adobe Photoshop</a> even before <a href="https://www.adobe.com/aboutadobe/pressroom/pressreleases/200512/120505AdobeAcquiresMacromedia.html">Adobe bought Macromedia</a> back in 2005. For years the industry workflow was basically the same for almost everyone: <a href="https://www.adobe.com/products/illustrator.html">Illustrator</a> for icons, logos and anything vector, and Photoshop for laying out full websites.</p>
<p>It was so common that nobody really questioned it. Even if Photoshop was born for photo retouching and Illustrator for print, we all learned our shortcuts, built our PSD templates and sliced images for the browser.</p>
<p>Lately though, especially after the <a href="https://www.apple.com/iphone/">iPhone 4</a> came out with the Retina display, I am starting to think Photoshop and Illustrator are not the ideal choice for web and interface design anymore.</p>
<h2>The @2x problem with raster workflows</h2>
<p>Until a few months ago, designing everything at <code>@1x</code> in Photoshop felt mostly fine, as long as you were careful with pixel alignment. Now with the Retina display, <code>@1x</code> is not enough anymore. To be safe and make sure icons, buttons and interfaces stay sharp, it makes much more sense to set up projects at <code>@2x</code> or keep everything purely vector so you can scale cleanly.</p>
<p>Doing that in Photoshop feels awkward pretty quickly. Files get huge, layer styles and bitmap shapes don't always scale nicely, and you spend way too much time fighting a photo editor just to align boxes and export clean UI assets.</p>
<h2>Paying a lot for heavy tools we barely use</h2>
<p>The other thing that bothers me more and more is how bloated Creative Suite has become. Photoshop and Illustrator are slow to launch, heavy on memory, and full of features for print, CMYK, photo manipulation and 3D that web designers almost never touch.</p>
<p>And we are paying a lot of money for all of it. Buying or upgrading <a href="https://www.adobe.com/products/creativesuite/">Adobe Creative Suite</a> costs hundreds of dollars, mostly to pay for huge features we don't even need in our day to day web work. It is kind of crazy when you stop and think about it.</p>
<h2>Why DrawIt and Sketch make me excited</h2>
<p>That is why I have been really excited to follow smaller, lightweight apps built specifically as native tools for Mac OS X.</p>
<p>A while ago I started keeping an eye on <a href="http://www.bohemiancoding.com/drawit/">DrawIt</a> by <a href="http://www.bohemiancoding.com/">Bohemian Coding</a>. It was fast, vector based, clean and felt right at home on the Mac without all the extra noise of Adobe's interface. And now they just took that idea further and launched <a href="http://www.bohemiancoding.com/sketch/">Sketch</a> last month.</p>
<p>Of course it is still very early days and Photoshop is not disappearing tomorrow, especially when clients and agencies still expect PSD files. Still, seeing a lightweight, native Mac vector app focused on clean digital graphics makes a lot of sense to me. Working natively in vectors makes <code>@1x</code> and <code>@2x</code> workflows way less painful, and the app actually feels fast when you use it.</p>
<p>In my opinion, dedicated lightweight tools like Sketch are going to be the future for web design work. We don't need giant print and photo suites anymore just to design screens.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Why HTML5 gets me so excited about the future of the web</title>
            <link>https://horoman.com/blog/why-html5-gets-me-excited-about-the-web/</link>
            <guid isPermaLink="true">https://horoman.com/blog/why-html5-gets-me-excited-about-the-web/</guid>
            <pubDate>Wed, 01 Sep 2010 00:00:00 +0000</pubDate>
            <category>Accessibility</category>
            <description>After receiving my copy of Introducing HTML5, seeing native video, audio, canvas, semantic tags and offline storage come together makes me more excited about open web standards than ever.</description>
            <content:encoded><![CDATA[<p>My copy of <a href="https://introducinghtml5.com/">&quot;Introducing HTML5&quot;</a> by <a href="https://brucelawson.co.uk/">Bruce Lawson</a> and <a href="https://remysharp.com/">Remy Sharp</a> just arrived a few days ago, and reading through it got me really excited about where the web is heading.</p>
<p>Back in 2007 <a href="https://horoman.com/blog/why-i-dont-believe-in-flash/">I wrote</a> that I didn't believe in Flash for building websites and that open web standards were the only thing that really made sense long term. At the time, even if you loved standards, you still had to admit that HTML and CSS had big limits when it came to multimedia or richer web apps.</p>
<p>Even though HTML5 is still a <a href="https://www.w3.org/TR/html5/">W3C Working Draft</a>, a surprising amount of it already works in modern browsers today. What excites me the most is not just the shiny demos, it is how many practical benefits and accessibility improvements we get by default.</p>
<h2>Native video, audio and canvas without Flash</h2>
<p>For years, putting a simple video or audio player on a page meant embedding Flash and hoping the visitor had the right plugin version installed. With the new native <code>&lt;video&gt;</code>, <code>&lt;audio&gt;</code> and <code>&lt;canvas&gt;</code> elements, media and graphics run directly inside the browser.</p>
<pre class="language-html"><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>video</span> <span class="token attr-name">width</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>640<span class="token punctuation">"</span></span> <span class="token attr-name">height</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>360<span class="token punctuation">"</span></span> <span class="token attr-name">controls</span> <span class="token attr-name">poster</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>preview.jpg<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>source</span> <span class="token attr-name">src</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>demo.mp4<span class="token punctuation">"</span></span> <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>video/mp4<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>source</span> <span class="token attr-name">src</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>demo.ogv<span class="token punctuation">"</span></span> <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>video/ogg<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span><span class="token punctuation">></span></span>Your browser does not support HTML5 video. <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>demo.mp4<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>Download the video<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a</span><span class="token punctuation">></span></span>.<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>video</span><span class="token punctuation">></span></span></code></pre>
<p>Even with the current codec split between MP4 (H.264), Ogg and the new <a href="https://www.webmproject.org/">WebM</a> format (so you still provide more than one <code>&lt;source&gt;</code> file), the advantages are massive right away:</p>
<ul>
<li>No more Flash plugin crashes taking down the whole browser tab.</li>
<li>Closing huge security holes that came from relying on an external binary plugin that needed constant patches.</li>
<li>Much lower CPU usage and drastically better battery life on smartphones and mobile devices, where running heavy plugins was a real disaster.</li>
<li>Native browser controls that work with keyboard navigation out of the box, instead of custom Flash buttons nobody can tab into.</li>
</ul>
<p>And with <code>&lt;audio&gt;</code> and <code>&lt;canvas&gt;</code>, podcasts, sound players, charts and interactive drawings can all live cleanly inside standard web pages too.</p>
<h2>Semantic structure for search engines and accessibility</h2>
<p>For a long time, even standards-based pages were basically a soup of <code>&lt;div id=&quot;header&quot;&gt;</code>, <code>&lt;div id=&quot;nav&quot;&gt;</code>, <code>&lt;div id=&quot;content&quot;&gt;</code> and <code>&lt;div id=&quot;footer&quot;&gt;</code>. To a human reading the code those IDs made sense, but to a browser, a search engine or a screen reader they were all just generic boxes.</p>
<p>HTML5 gives us a much cleaner <code>&lt;!DOCTYPE html&gt;</code> and real semantic elements that describe what each part of the page actually is:</p>
<pre class="language-html"><code class="language-html"><span class="token doctype"><span class="token punctuation">&lt;!</span><span class="token doctype-tag">DOCTYPE</span> <span class="token name">html</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>html</span> <span class="token attr-name">lang</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>en<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>head</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>meta</span> <span class="token attr-name">charset</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>utf-8<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>title</span><span class="token punctuation">></span></span>My Article<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>title</span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>head</span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>body</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>header</span><span class="token punctuation">></span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>nav</span><span class="token punctuation">></span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>ul</span><span class="token punctuation">></span></span>
          <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>li</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>/<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>Home<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>li</span><span class="token punctuation">></span></span>
          <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>li</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>/blog/<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>Blog<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>li</span><span class="token punctuation">></span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>ul</span><span class="token punctuation">></span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>nav</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>header</span><span class="token punctuation">></span></span>

    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>article</span><span class="token punctuation">></span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>header</span><span class="token punctuation">></span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>h1</span><span class="token punctuation">></span></span>Why semantics matter<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>h1</span><span class="token punctuation">></span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>time</span> <span class="token attr-name">datetime</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>2010-08-22<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>August 22, 2010<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>time</span><span class="token punctuation">></span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>header</span><span class="token punctuation">></span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>section</span><span class="token punctuation">></span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span><span class="token punctuation">></span></span>Clear structure helps both people and machines read the page.<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">></span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>section</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>article</span><span class="token punctuation">></span></span>

    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>aside</span><span class="token punctuation">></span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>h2</span><span class="token punctuation">></span></span>Related links<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>h2</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>aside</span><span class="token punctuation">></span></span>

    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>footer</span><span class="token punctuation">></span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span><span class="token punctuation">></span></span>Copyright 2010<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>footer</span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>body</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>html</span><span class="token punctuation">></span></span></code></pre>
<p>Using tags like <code>&lt;header&gt;</code>, <code>&lt;nav&gt;</code>, <code>&lt;article&gt;</code>, <code>&lt;section&gt;</code>, <code>&lt;aside&gt;</code>, <code>&lt;footer&gt;</code>, <code>&lt;figure&gt;</code> and <code>&lt;time&gt;</code> gives screen readers real landmarks to jump around the page, and helps search engines understand what is main content versus navigation or sidebar links.</p>
<p>I also love the new form input types like <code>type=&quot;email&quot;</code>, <code>type=&quot;url&quot;</code>, <code>type=&quot;tel&quot;</code> and the <code>required</code> attribute. On an iPhone, an email field automatically opens the keyboard with the <code>@</code> key, and basic validation starts working natively without loading another JavaScript library. And if an older browser like IE7 or IE8 doesn't recognize them, they just fall back to normal text inputs safely.</p>
<h2>Offline features and local storage</h2>
<p>Another huge step forward in HTML5 is that web pages don't have to completely die the second you lose your internet connection, or depend only on tiny cookies to remember state.</p>
<p>With <a href="https://www.w3.org/TR/webstorage/">Web Storage</a> (<code>localStorage</code> and <code>sessionStorage</code>), storing user preferences or draft form data right in the browser takes just a couple of lines of JavaScript, without sending extra data back and forth on every HTTP request like cookies do:</p>
<pre class="language-js"><code class="language-js"><span class="token comment">// Save a user preference locally</span>
localStorage<span class="token punctuation">.</span><span class="token function">setItem</span><span class="token punctuation">(</span><span class="token string">'theme'</span><span class="token punctuation">,</span> <span class="token string">'compact'</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token comment">// Read it back on the next visit</span>
<span class="token keyword">var</span> savedTheme <span class="token operator">=</span> localStorage<span class="token punctuation">.</span><span class="token function">getItem</span><span class="token punctuation">(</span><span class="token string">'theme'</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre>
<p>Combined with the HTML5 Application Cache (<code>manifest=&quot;cache.manifest&quot;</code>), you can even tell the browser which HTML, CSS, JavaScript and image files to keep locally so a web app or documentation page stays usable while you are offline on a train or on a slow mobile connection.</p>
<p>Of course we still have to deal with older Internet Explorer versions for a while (using small scripts like Remy Sharp's <a href="https://code.google.com/p/html5shiv/">html5shiv</a> for IE), and parts of the spec are still evolving. Still, after reading &quot;Introducing HTML5&quot;, this feels like the biggest real upgrade the web has had in years, because it makes websites faster, safer and more accessible by default.</p>
]]></content:encoded>
        </item>
        <item>
            <title>First impressions with the iPhone 3GS and the mobile web</title>
            <link>https://horoman.com/blog/first-impressions-of-the-iphone-3gs-and-the-mobile-web/</link>
            <guid isPermaLink="true">https://horoman.com/blog/first-impressions-of-the-iphone-3gs-and-the-mobile-web/</guid>
            <pubDate>Fri, 18 Sep 2009 00:00:00 +0000</pubDate>
            <category>Design</category>
            <description>After using my first iPhone for a few weeks, from Skype and Maps to Safari, I think mobile interfaces are the future, even if the mobile web right now is in pretty bad shape.</description>
            <content:encoded><![CDATA[<p>A few weeks ago I bought my first iPhone, an <a href="https://www.apple.com/iphone/">iPhone 3GS</a>. I knew it was going to be a nice phone, of course, but using it every day actually changed how I think about mobile devices and interfaces.</p>
<p>Until recently a phone was just for calls, SMS and maybe checking emails when you really had no choice. With a good touch screen, 3G and the <a href="https://www.apple.com/iphone/apps-for-iphone/">App Store</a>, the iPhone feels more like a tiny computer that you always have in your pocket.</p>
<h2>Skype and Maps on the go</h2>
<p>Two apps in particular surprised me right away because they are actually useful in daily life.</p>
<p>The first one is <a href="https://www.skype.com/">Skype</a>. I started using it for work when I am away from the computer, replying to chat messages on the go and even taking calls whenever I am on Wi-Fi. Several of my colleagues were honestly surprised that I could reply to messages and jump on calls while outside the office.</p>
<p>The second one is Maps. Having GPS together with the digital compass on the 3GS makes finding places around the city so much easier. Once you get used to it, going back to normal paper maps or printing directions before leaving home feels very old.</p>
<h2>Safari is my most used app, and the mobile web is in trouble</h2>
<p>Even with all the apps on the App Store, the app I open the most every day is still Safari. And that is where you really see how dramatic the situation of the web on mobile is right now.</p>
<p>Mobile Safari is great and pinch-to-zoom works surprisingly well, so you can technically open almost any website. In reality though, almost all websites are built only for desktop screens (usually around 960px wide) and only a very small number have a &quot;special&quot; mobile or iPhone version on a separate domain like <code>m.</code> or <code>iphone.</code>.</p>
<p>On a 3.5-inch screen, browsing normal desktop sites gets tiring very fast:</p>
<ul>
<li>You are constantly zooming in and out and scrolling sideways just to read a paragraph or find the menu.</li>
<li>Small links and menus that depend on mouse <code>:hover</code> are really annoying to tap with a finger.</li>
<li>Whenever a site still uses Flash, Mobile Safari just shows an empty box.</li>
</ul>
<p>In my opinion mobile interfaces are clearly the future. There will be more and more people browsing from phones like this, so we really need to start investing in interfaces that actually work well on these devices.</p>
<h2>Native apps vs web standards</h2>
<p>Looking at how bad most websites feel on a phone today, building a native iPhone app with Objective-C and the <a href="https://developer.apple.com/iphone/">iPhone SDK</a> looks like the most logical choice. Native apps run fast, feel right at home on iPhone OS 3 and are easy for users to find in the App Store.</p>
<p>Still, from a practical point of view I am not completely convinced this is sustainable for most projects. Having a website plus a separate native app (or even a separate mobile website) means managing two different repositories, two builds, two deploy processes and supporting everything over time. It quickly becomes complicated and especially expensive. And it won't stop at iPhone either, because <a href="https://www.android.com/">Android</a>, BlackBerry, Nokia and <a href="https://developer.palm.com/">Palm WebOS</a> are all out there too.</p>
<p>Personally, I still believe much more in web standards. There should be a way on the web to make normal websites adapt properly to phones without having to build dedicated mobile versions or separate native apps for every platform. We are not really there yet, but I hope web standards move in that direction soon, because right now browsing the web on a phone needs a lot of work.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Cufon, sIFR and why web typography needs real standards</title>
            <link>https://horoman.com/blog/cufon-sifr-and-the-future-of-web-fonts/</link>
            <guid isPermaLink="true">https://horoman.com/blog/cufon-sifr-and-the-future-of-web-fonts/</guid>
            <pubDate>Mon, 24 Nov 2008 00:00:00 +0000</pubDate>
            <category>Accessibility</category>
            <description>Replacing text with sIFR or Cufon makes websites less accessible just to look nicer. Real art direction on the web needs proper web font standards and licenses.</description>
            <content:encoded><![CDATA[<p>Every web designer knows how frustrating it is to be stuck with the same few web-safe fonts. Arial, Georgia, Verdana, Helvetica, Times New Roman. Year after year our layouts get better, while typography on the web feels basically the same as ten years ago.</p>
<p>Because of this limit, people came up with all kind of tricks to replace HTML text with custom fonts. First it was image replacement with PNGs, then <a href="http://www.mikeindustries.com/blog/sifr/">sIFR</a> (which replaces headings with small Flash movies), and lately <a href="https://cufon.shoqolate.com/">Cufon</a>, that draws letters using JavaScript with <code>&lt;canvas&gt;</code> and VML. I understand why designers get excited about them, because screenshots look much closer to print design.</p>
<p>Still, I think both sIFR and Cufon are bad for accessibility and push the web in the wrong direction.</p>
<h2>Making an accessible web less accessible</h2>
<p>What I always liked about the web is that it is accessible out of the box. Normal text in HTML can be selected, copied, searched, resized, indexed by Google and read by screen readers without doing anything special. You get all of this for free just by using standard markup.</p>
<p>Now we are slowly throwing that away in favor of aesthetics:</p>
<ul>
<li>With sIFR, every heading becomes a small Flash object. Pages get heavier, Flash has to load multiple times on the same screen, keyboard navigation gets weird, and very often you see the fallback font flicker before the <code>.swf</code> replaces it.</li>
<li>With Cufon, you don't need Flash anymore, which sounds better at first, but it turns real text into vector drawings on the page. Try to select a title made with Cufon, copy a word or search it with <code>Ctrl+F</code>: it doesn't behave like real text anymore, because on screen it is literally just drawn shapes.</li>
<li>Both methods try to hide the original text somewhere behind or off-screen so screen readers can still read it. In my view that is just a hack to cover a problem we created ourselves.</li>
</ul>
<p>I don't think good visual design should mean breaking basic things like selecting text or using a screen reader.</p>
<h2>Web font standards and licenses have to change</h2>
<p>The funny part is that CSS already has <a href="https://www.w3.org/TR/1998/REC-CSS2-19980512/fonts.html"><code>@font-face</code> in the spec</a> for years:</p>
<pre class="language-css"><code class="language-css"><span class="token atrule"><span class="token rule">@font-face</span></span> <span class="token punctuation">{</span>
  <span class="token property">font-family</span><span class="token punctuation">:</span> <span class="token string">"CustomHeadline"</span><span class="token punctuation">;</span>
  <span class="token property">src</span><span class="token punctuation">:</span> <span class="token url"><span class="token function">url</span><span class="token punctuation">(</span><span class="token string url">"/fonts/custom-headline.otf"</span><span class="token punctuation">)</span></span> <span class="token function">format</span><span class="token punctuation">(</span><span class="token string">"opentype"</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>

<span class="token selector">h1</span> <span class="token punctuation">{</span>
  <span class="token property">font-family</span><span class="token punctuation">:</span> <span class="token string">"CustomHeadline"</span><span class="token punctuation">,</span> Georgia<span class="token punctuation">,</span> serif<span class="token punctuation">;</span>
<span class="token punctuation">}</span></code></pre>
<p>Safari 3.1 already proved this year that <a href="https://webkit.org/blog/124/downloadable-fonts/">native <code>@font-face</code></a> with real OpenType and TrueType fonts works cleanly. Text stays real text, fast and accessible, with zero JavaScript hacks or Flash plugins. Now other browsers need to support it in a consistent way instead of sticking to proprietary stuff like <a href="https://www.w3.org/Submission/EOT/">EOT</a> in Internet Explorer.</p>
<p>Even more important than browsers, though, is the license problem.</p>
<p>Right now most type foundries only sell desktop licenses that forbid you to upload font files on a web server. That is the main reason why tools like sIFR and Cufon even exist, because designers try to work around licensing limits. Until font foundries update their licenses for the web and let us legally embed real fonts, people will keep using broken workarounds.</p>
<p>For me, proper web font standards together with clear web font licenses are the real next step toward true art direction in web design. Not more scripts trying to fake text with Flash or canvas.</p>
]]></content:encoded>
        </item>
        <item>
            <title>Why I don&#39;t believe in the future of Flash</title>
            <link>https://horoman.com/blog/why-i-dont-believe-in-flash/</link>
            <guid isPermaLink="true">https://horoman.com/blog/why-i-dont-believe-in-flash/</guid>
            <pubDate>Thu, 15 Mar 2007 00:00:00 +0000</pubDate>
            <category>Accessibility</category>
            <description>Full Flash websites are everywhere right now, but I think they break too many basic things about the web. Here is why I prefer W3C standards.</description>
            <content:encoded><![CDATA[<p>If you look around web design galleries right now, it feels like half of the sites are made completely in Flash. Long intro animations, custom mouse cursors, sounds when you hover a button and fancy transitions between pages are everywhere, especially on agency sites and portfolios.</p>
<p>Even if everybody seems to love it, I honestly don't believe in Flash for building websites and in my opinion it doesn't have a real future on the web.</p>
<p>Flash is fine for animations or small multimedia pieces, sure. The problem starts when you put an entire website inside a single <code>.swf</code> file. Doing that breaks almost everything that makes the web work in the first place. Open W3C standards like <a href="https://www.w3.org/TR/xhtml1/">XHTML 1.0</a>, <a href="https://www.w3.org/Style/CSS/">CSS</a> and <a href="https://www.w3.org/TR/WCAG10/">WCAG 1.0</a> are maybe less impressive at first look, but they make much more sense in the long run.</p>
<h2>A website is not a video</h2>
<p>The main issue with full-Flash websites is that they ignore how people actually use a browser. When a site is built only in Flash, very simple things stop working properly:</p>
<ul>
<li>You can't bookmark a specific page or send a direct link to a friend, because the URL never changes.</li>
<li>Pressing the browser Back button usually takes you completely out of the site instead of the previous page.</li>
<li>You can't select and copy text (for example an email address or a phone number), you can't search the page with <code>Ctrl+F</code>, and you can't resize the font from the browser if the text is too small.</li>
<li>Almost every site makes you wait with a &quot;Loading... 50%&quot; bar just to read a simple About or Contact page.</li>
</ul>
<p>When you have to rebuild scrollbars, links and navigation from zero inside Flash, for me it is already a sign that we are using the wrong tool.</p>
<h2>Depending on a closed plugin</h2>
<p>Another big problem is that a Flash website depends completely on a proprietary plugin from one company. If a user doesn't have the right version of <a href="https://www.adobe.com/products/flashplayer/">Flash Player</a> installed, or is browsing from an office computer where plugins are blocked, the page is basically an empty box.</p>
<p>On top of that, search engines have a hard time reading content locked inside a <code>.swf</code> file, and accessibility becomes a real mess. Following W3C WCAG 1.0 guidelines means people should be able to read and navigate a site no matter if they use <a href="https://www.mozilla.com/firefox/">Firefox</a>, Internet Explorer, <a href="https://www.opera.com/">Opera</a>, only a keyboard, or a screen reader. A full-Flash site simply leaves those users out.</p>
<h2>Why W3C standards work better in practice</h2>
<p>Using clean XHTML 1.0 and external CSS files avoids all these problems right away. Content stays separated from the visual style:</p>
<pre class="language-html"><code class="language-html"><span class="token doctype"><span class="token punctuation">&lt;!</span><span class="token doctype-tag">DOCTYPE</span> <span class="token name">html</span> <span class="token name">PUBLIC</span> <span class="token string">"-//W3C//DTD XHTML 1.0 Strict//EN"</span>
  <span class="token string">"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>html</span> <span class="token attr-name">xmlns</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>http://www.w3.org/1999/xhtml<span class="token punctuation">"</span></span> <span class="token attr-name">lang</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>en<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>head</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>title</span><span class="token punctuation">></span></span>Portfolio - About<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>title</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>link</span> <span class="token attr-name">rel</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>stylesheet<span class="token punctuation">"</span></span> <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>text/css<span class="token punctuation">"</span></span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>/css/screen.css<span class="token punctuation">"</span></span> <span class="token attr-name">media</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>screen<span class="token punctuation">"</span></span> <span class="token punctuation">/></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>link</span> <span class="token attr-name">rel</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>stylesheet<span class="token punctuation">"</span></span> <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>text/css<span class="token punctuation">"</span></span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>/css/print.css<span class="token punctuation">"</span></span> <span class="token attr-name">media</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>print<span class="token punctuation">"</span></span> <span class="token punctuation">/></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>head</span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>body</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>h1</span><span class="token punctuation">></span></span>About<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>h1</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span><span class="token punctuation">></span></span>Simple and accessible content that works in any browser.<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">></span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>body</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>html</span><span class="token punctuation">></span></span></code></pre>
<p>In day to day work the difference is huge:</p>
<ol>
<li>Updating text or fixing a small typo takes seconds. You just edit the HTML or CSS file, without opening a heavy <code>.fla</code> project, exporting a new <code>.swf</code> and uploading everything again.</li>
<li>Pages are way lighter and faster to load, and they don't make your computer fan spin just to show a navigation menu.</li>
<li>With a separate <code>print.css</code> the exact same page prints nicely on paper and still makes sense on text browsers or small devices.</li>
<li>When you really need interactivity, unobtrusive JavaScript, <a href="https://domscripting.com/">DOM scripting</a> and <a href="https://adaptivepath.org/ideas/ajax-new-approach-web-applications/">AJAX</a> can add it on top of a normal XHTML page without breaking it for everyone else.</li>
</ol>
<p>Visual trends pass fast. Most of the Flash intros from three years ago already look slow and old today. Standard HTML and CSS pages stay fast, linkable and readable even years later. Flash will probably stay around for video players or browser games, but for building real websites I really don't see a future in it.</p>
]]></content:encoded>
        </item>
    </channel>
</rss>
