<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sidney Alcantara on Medium]]></title>
        <description><![CDATA[Stories by Sidney Alcantara on Medium]]></description>
        <link>https://medium.com/@notsidney?source=rss-4eb0515be764------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*96FrONQWUqDoAWynbp_Uew.jpeg</url>
            <title>Stories by Sidney Alcantara on Medium</title>
            <link>https://medium.com/@notsidney?source=rss-4eb0515be764------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 13:22:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@notsidney/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The targeting of Divine Playhouse is a frustrating reminder of why I left the Church]]></title>
            <link>https://notsidney.medium.com/the-targeting-of-divine-playhouse-is-a-frustrating-reminder-of-why-i-left-the-church-5d1c8cf4f548?source=rss-4eb0515be764------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d1c8cf4f548</guid>
            <category><![CDATA[australia]]></category>
            <category><![CDATA[culture]]></category>
            <category><![CDATA[christianity]]></category>
            <category><![CDATA[lgbtq]]></category>
            <category><![CDATA[religion]]></category>
            <dc:creator><![CDATA[Sidney Alcantara]]></dc:creator>
            <pubDate>Thu, 30 Jul 2026 13:36:18 GMT</pubDate>
            <atom:updated>2026-08-04T14:10:07.472Z</atom:updated>
            <content:encoded><![CDATA[<h4>With so many stones cast, we must be living in a sea of saints</h4><figure><img alt="A photograph of a collage of printed images. In the top third, Carl Bloch’s painting, Sermon on the Mount. In the bottom left, photos of men in all black, chanting prayers on King Street, Newtown. In the bottom right, a photo of the protesters outside Divine Playhouse. All images are ripped, revealing underneath a “No religion” checkbox from the Australian census form." src="https://cdn-images-1.medium.com/max/1024/0*B34R3Y3hoTu8bC5p.jpeg" /></figure><p>On 19 July 2026, the landlord who purchased a former Catholic Church in Sydney’s CBD, which had been deconsecrated 94 years ago, <a href="https://www.instagram.com/p/DbAUDYTiaTF/">terminated the one-year lease</a> of the tenant, Divine Playhouse, for “offensive trade”. This was the direct result of an online campaign by Christian activists calling for its closure: they saw the queer-owned creative arts space as mocking Christianity for its use of religious imagery. This culminated in a <a href="https://www.theguardian.com/australia-news/2026/jul/14/divine-playhouse-lgbtq-events-cancelled-sydney-church">protest of 70</a> outside the theatre on its opening night.</p><p>This was a frustrating reminder of a conflict I had come to terms with. Namely, that the community I was once part of, the Catholic Church (and Christianity as a whole), and the queer community I’ve found belonging in, will never see eye to eye on everything. The Vatican will never accept same-sex marriage, let alone women priests. There are some who would take fundamentalist views that see the very existence of queer people as an abomination. But there are many Christians who don’t, and welcome queer people with open arms. It was naïve of me to think I could put this behind me.</p><p>I come from the Philippines, a country where Catholicism was very successfully forced upon us by European colonisers. <a href="https://web.archive.org/web/20230812114943/https://www.psa.gov.ph/system/files/phcd/1_Press%20Release%20on%20Religious%20Affiliation_RML_01272023_FJRA_PMMJ_CRD-signed_0.pdf">As of 2020</a>, just under 80% of the population were Roman Catholic and 90% were Christian.</p><p>I was baptised as an infant and was sent exclusively to Catholic schools. (Their quality of education was seen to be much higher than the perpetually underfunded and overcrowded public schools of the country.) Throughout these years, I was taught the Catholic faith and undertook its various ceremonies. I never saw this as a negative thing. As I looked around me and saw all the other kids in my year, it always felt like I was just doing what was right.</p><p>It wasn’t until I started high school in Australia when I started to question my faith. Apart from questioning the creation myth in Genesis, what twisted the knife was seeing how many groups used Christianity to punch down and belittle people, while revelling in the act. This came at a crucial time when I was slowly coming out of denial and discovering my queer identity.</p><p>These include fringe groups like the Westboro Baptist Church, who <a href="https://en.wikipedia.org/wiki/Protests_by_Westboro_Baptist_Church">went out of their way</a> to protest the existence of queer people with picket signs reading slogans like “You’re going to hell”, or, famously, “God hates fags”. In fact, their website’s URL is still <a href="https://godhatesfags.com/">godhatesfags.com</a> (which is camp, IMO).</p><p>At one point, in homeroom, we were handed a letter from the Diocese that we were weakly encouraged to give to our parents (my homeroom teacher refused to say a word about the document), since we weren’t of voting age. It urged them to remember that the Catholic position was to vote no to same-sex marriage. <a href="https://archive.is/d7Oos">I promptly discarded it.</a></p><p>I thought this was a part of the Church that was more apathetic on the topic of queerness, but in reality, they used the same language, just with hushed voices. I began to feel closer to the handful of Muslim students who stood silently for the midday Angelus prayer randomly introduced one year by the Diocese to interrupt classes and, when queueing for Communion, would turn away at the least conspicuous time to maintain seating order.</p><p>I realised this wasn’t a community I felt like I belonged to anymore.</p><p>Especially after years away from the homeland, this drove a wedge between me and Filipino culture as a whole, where Catholicism feels like an obligation. This is a country where being a non-believer <a href="https://www.theatlantic.com/international/archive/2017/03/new-atheists-philippines/518175/">makes you more maligned</a> from the 80% Catholic supermajority than having a different faith. In the <a href="https://web.archive.org/web/20230812114943/https://www.psa.gov.ph/system/files/phcd/1_Press%20Release%20on%20Religious%20Affiliation_RML_01272023_FJRA_PMMJ_CRD-signed_0.pdf">2020 census</a>, Filipinos who reported “none” as their religious affiliation were counted as “0.0%”. Were I still living in the Philippines, I’d be a rounding error.</p><p>I clearly remember my English teacher driving me to an after-school competition, when he remarked disapprovingly, “People come to Australia but leave their faith behind.” I didn’t think he knew that about me, but his words left an immense heaviness in my heart, one that I still feel whenever I step foot in a church and nowhere else. I always look up after taking my first step to see if I’m about to be smote by God.</p><p>I had thought that, after the hard-fought win for marriage equality, I wouldn’t have to deal with this conflict. There would still be some flare-ups, though.</p><p>In 2019, a NSW rugby union player, after hearing about Tasmania making gender optional on birth certificates, had a meltdown online. He made several unsolicited statements on multiple social media accounts, culminating in an Instagram story quoting a 1 Corinthians verse with <a href="https://www.reddit.com/r/OpenChristian/comments/1cbw4xp/1_corinthians_6910_does_not_condemn_homosexuality/">questionable translations</a>: “WARNING Drunks, Homosexuals, Adulterers, Liars, Fornicators, Thieves, Atheists, Idolators HELL AWAITS YOU. REPENT! [capitalisation his, lol]” I wonder if he’d think I’d get multiple tickets to Hell. His contract was subsequently <a href="https://www.abc.net.au/news/2019-05-17/israel-folau-sacked-over-social-media-posts/11090938">terminated by Rugby Australia</a>. GoFundMe terminated a fundraiser that raised over $750,000 for his legal challenge, so <a href="https://www.theguardian.com/sport/2019/jun/25/israel-folau-australian-christian-lobby-hosts-new-fundraising-effort">the Australian Christian Lobby donated $100,000</a>.</p><p>Until, one Friday night, a group of about 30 men wearing all black, <a href="https://www.theguardian.com/australia-news/2023/mar/04/christian-prayer-march-along-newtown-street-was-unauthorised-protest-activity-police-say">marched down King Street</a>, unprompted, chanting prayers and holding rosaries <em>above</em> their heads. They posted footage on a Facebook page called “Christian Lives Matter”, proclaiming their “huge turnout with the boys”, who clearly didn’t know the area as they marched straight to the police station, “praying powerful rosary”. It goes without saying that they have plenty of tax-exempt churches throughout the city where they could already pray, and that this was clearly an anti-queer protest fronted by men who partially concealed their identities and sought to intimidate. While I stayed at home with no plans that night, this was the first time I felt unsafe in my own neighbourhood.</p><p>But <a href="https://www.instagram.com/p/DbO8qWqPnoN/">these groups continued</a> to go out of their way to harass queer people: directing their social media followings to <a href="https://www.instagram.com/p/DbFsFiFlPoM/">target queer people online</a> with doxxing and death threats, <a href="https://www.abc.net.au/news/2024-05-15/western-sydney-council-vote-same-sex-book-ban/103851924">protest in support of a book ban</a> on same-sex parenting books, and <a href="https://www.abc.net.au/news/2023-03-22/two-charged-after-protest-outside-mark-latham-speech/102127830">organise a mob of 250 men</a> to surround and violently attack 15 queer protesters.</p><p>This erupted again this year with an organised campaign to take down Divine Playhouse. Another group organised to harass and intimidate queer people-travelling all the way to the CBD on a Wednesday night-brandishing rosaries and prayers. A week later, I was part of a group of <a href="https://www.starobserver.com.au/news/thousands-gather-for-divine-playhouse-sing-in-protest-rally/242881">over 2000</a> (that’s 28 times the size of the anti-Playhouse protest!) in Hyde Park, brandishing songs of joy, like <em>Pink Pony Club</em> and <em>Like a Prayer</em>.</p><p>What strikes me the most is how <em>performative</em> this all is.</p><p>These are groups of men who find community in gathering in ill-fitting all-black uniforms and donning names like “The Prodigal Sons” and “Christian Lives Matter” — as if the world’s hegemonic religion for the past 1500 years is currently persecuted by systemic injustice. They participate in their self-imposed righteousness olympics for their own self-promotion.</p><p>But the community they ought to seek is in Sunday school, where they could re-read <a href="https://www.biblegateway.com/passage/?search=Matthew+6%3A5-15&amp;version=NIV">Matthew 6:5–15</a>, in which Jesus prefaces the <em>literal Lord’s Prayer</em> with: “And when you pray, do not be like the hypocrites, for they love to pray standing in the synagogues and on the street corners to be seen by others.”</p><p>Because they’re just <em>content creators</em>.</p><p>Before they record their next selfie camera monologue, they should check that their cars haven’t been leaking carbon monoxide this whole time.</p><p>If they truly <em>do</em> seek for more people to turn to God, they need look no further than to Jesus Christ himself for how to do so. If there’s only one part of the story of Jesus’ crucifixion that remains with me after 17 years of Holy Weeks, it’s him washing the feet of his disciples to demonstrate humility and servanthood as the most effective form of leadership, a ritual <a href="https://www.nytimes.com/2026/04/02/world/europe/pope-leo-wash-feet-holy-thursday.html">continued by the Pope himself</a>.</p><blockquote><em>Why did these protesters, who probably walked past dozens of people in need of food and shelter that they could have spent their time helping, choose instead to intimidate people trying to have a good time?</em></blockquote><p>— <a href="https://www.instagram.com/p/Da1lKqvk-_5/?img_index=6">Zann Maxwell</a>, City of Sydney councillor</p><p>Almost every week, I walk past a community mutual aid group, <a href="https://www.instagram.com/fnbsyd">Food Not Bombs</a>, serving free meals for those in need at Newtown Station. In these few hours, there is infinitely more service done for the community than what these men spending hours recording videos for social media do. If they truly want to grow towards God, they <a href="https://catholicoutlook.org/hillbilly-eulogy/#:~:text=preferential%20option%20for%20the%20poor">must remember that</a> “the Church has a preferential option for the poor. That isn’t a bumper sticker. It’s a formal doctrinal position, centuries old, inconvenient as gout, demanding as a landlord.” So many of the community food services around the area <a href="https://www.newtowncentre.org/uploads/5/1/5/0/51502997/community_meals_and_food_services__2025_.pdf">are run by Christian groups</a>.</p><p>Instead, they use queer people as literal punching bags for content fodder. To gain clout and admiration from within their own group. They’re of the same ilk as mass-produced far-right grifters whose brains have been so rotten that all they can do is search for how to monetise the culture war du jour. And their actions are antithetical to the examples of Jesus — the one who challenged power and converted people by <a href="https://www.christiantoday.com.au/news/how-jesus-loved-the-adulteress-and-the-prostitute.html">embracing the outcast and the marginalised in society</a>, not by intimidating them.</p><blockquote><em>We tend to think that when the church is talking about morality, that the only issue of morality is sexual. And in reality, I believe there are much greater, more important issues, such as justice, equality, freedom of men and women, freedom of religion, that would all take priority before that particular issue.</em></blockquote><p>— <a href="https://archive.md/eQajB#selection-795.186-795.501">Pope Leo XIV</a></p><p>What surprises me most in writing this is not just how angry I am as part of the queer community, but how I’m also angry for Christians, as these men join a long line of posers throughout history who have used the Christian faith for their own self-interest and destroy the reputation of Christianity as a whole.</p><p>Ostracising parts of the community that don’t align with their lifestyle surely isn’t a winning strategy to reverse the over-50-year trend of Australians turning away from Christianity towards being non-religious. In the 2026 census, the “no religion” category is set to overtake Christianity after centuries of dominance.</p><figure><img alt="Graph depicting religious affiliation in Australia based on census data, showing a steady decline in Christianity, from 86.2% in 1971 to 43.9% in 2021. No religion has risen from 6.7% to 38.9% in the same timeframe." src="https://cdn-images-1.medium.com/max/1024/0*zyd74CCHaEtvBFKl.png" /><figcaption><em>Source: </em><a href="https://www.abs.gov.au/articles/religious-affiliation-australia"><em>Australian Bureau of Statistics</em></a></figcaption></figure><p>It seems the name they’ve chosen for themselves is quite fitting: these prodigal sons are working themselves up, busying themselves with troublemaking and culture wars, when they need to return to Jesus and start using their able bodies and plump wallets to help those in need.</p><blockquote><em>For all those who exalt themselves will be humbled, and those who humble themselves will be exalted.</em></blockquote><p>— <a href="https://www.biblegateway.com/passage/?search=Luke+18%3A9-14&amp;version=NIV">Luke 18:14</a></p><p><strong>Recommended:</strong></p><ul><li><a href="https://www.theatlantic.com/international/archive/2017/03/new-atheists-philippines/518175/"><em>The New Atheists of the Philippines</em></a> from The Atlantic tells the story of a handful of atheists living in the Philippines. There are dozens of us!</li></ul><p><em>Originally published at </em><a href="https://sidneynotsydney.substack.com/p/the-targeting-of-divine-playhouse"><em>sidneynotsydney.substack.com</em></a><em> on 30 July 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d1c8cf4f548" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Wasian discourse is weird (as an Asian Australian)]]></title>
            <link>https://notsidney.medium.com/the-wasian-discourse-is-weird-as-an-asian-australian-0928663d6109?source=rss-4eb0515be764------2</link>
            <guid isPermaLink="false">https://medium.com/p/0928663d6109</guid>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[asian-american]]></category>
            <category><![CDATA[culture]]></category>
            <category><![CDATA[race]]></category>
            <category><![CDATA[pop-culture]]></category>
            <dc:creator><![CDATA[Sidney Alcantara]]></dc:creator>
            <pubDate>Tue, 19 May 2026 00:00:04 GMT</pubDate>
            <atom:updated>2026-05-23T13:11:38.472Z</atom:updated>
            <content:encoded><![CDATA[<h4>Asian Americans can find shared identity in more than just infighting and their inherent privilege</h4><figure><img alt="A painting of red and orange colors on a white background" src="https://cdn-images-1.medium.com/max/1024/0*vrF5JiiY6nmfkJyf.jpg" /><figcaption>By <a href="https://unsplash.com/photos/a-painting-of-red-and-orange-colors-on-a-white-background-3QG-wZJ_xXE">Fons Heijnsbroek</a> on <a href="https://unsplash.com/">Unsplash</a></figcaption></figure><p>As an Asian Australian, I’ve always looked at discourse from Asian Americans with a sense of incredulity. There’s a strange foreignness to the discussions that travel online from across the Pacific, with seemingly innocent ideas being blown out of proportion, and quickly descending into rhythms where the term “problematic” is used at alarming rates.</p><p>This year has seen the peak of online interest in “Wasians”, including the surge of the term “Wasian” and hilarious derivatives like the fictional country of “Wasia”. (We used to call them “halfies” in Australia, <a href="https://beyondboba.substack.com/p/wasian-and-exhausted#:~:text=But%20as%20a%20Brit%2C%20I%E2%80%99d%20never%20heard%20the%20term%20%E2%80%9Cwasian%E2%80%9D%20before.%20We%20instead%20called%20ourselves%20%E2%80%9Chalfies%E2%80%9D.">like the Brits</a>.)</p><p>Of course, this stems from a long-simmering fetishisation of Wasians (and non-White mixed Asians, and people of mixed heritage, generally), brought to the fore with the recent virality of Hudson Williams (first, from <em>Heated Rivalry</em> (its own can of worms) to his embrace of the spotlight with his bratty personality), Alysa Liu and Eileen Gu’s gold medal wins at the Olympics, and musicians like Laufey (who isn’t American, by the way) and Megan Skiendiel (one-sixth of Katseye). Their successes, combined with them all being conventionally attractive, really lit this Wasian powder keg on fire.</p><p>From what I’ve gathered through the Instagram Reels that keep hitting my algorithm:</p><ol><li>People of White and Asian descent organised “Wasian meetups” in New York and San Francisco. A Wasian-centred Discord server was created.</li><li>They were receiving increasing calls from people of non-White mixed Asian descent making a very fair point that their meetups didn’t include them, since the names of the events and promotional materials exclusively used the term “Wasian”.</li><li>The organisers made half-hearted attempts to pivot them to being mixed Asian meetups, like changing the event name and social media handles, but continued to use promo material that only used the term “Wasian”.</li><li>At the events, the organisers were continuing to hand out materials that only used the term “Wasian”, like “Wasian bingo cards”. According to comments, some people of non-White mixed Asian descent were told to leave when they turned up at their local Wasian meetups. Various other comments allege discrimination based on appearance or attractiveness and even neurodivergence.</li><li>After the weekend events, over the past week, people started criticising the meetups for being exclusionary, most notably <a href="https://www.instagram.com/madsteaparty/p/DYOhCu6i4vT/">Mad Tsai in a Reel</a> and Aki Lee Camargo’s <a href="https://arigatoaki.substack.com/p/start-wasian-hate"><em>Start Wasian Hate?</em></a>. This discourse devolved to <a href="https://www.instagram.com/p/DYc8-67yQzV/">threats and slurs</a>.</li></ol><figure><img alt="Screenshot of the Partiful invite for the NYC meetup, now titled “a mass convening of the half asians”. The promotional image still says “wasian gathering: let’s make this the largest convening of asians in NYC ❤”" src="https://cdn-images-1.medium.com/max/1024/0*GKs2PTwf-u-kLG_4.jpg" /></figure><p>These “Wasian meetups” themselves are distinctly American phenomena. What started as an online meme, focused on the stereotypical “good look” of Wasians, escaped containment into IRL events designed for social media attention. They’re the product of a post-Covid youth clamouring for in-person connection, who now have a blueprint thanks to Partiful and 2024’s Timothée Chalamet lookalike contest in Washington Square Park that spawned <a href="https://en.wikipedia.org/wiki/2024_look-alike_contests">many, many copycats</a>. (Also, why does it seem that <a href="https://www.reddit.com/r/lorde/comments/1k5pmht/tonight_with_lorde_in_washington_square_park_was/">everything interesting</a> happens in that one park?)</p><p>These teetered on the line between being a mildly funny development and being taken seriously. Unfortunately, these tripped onto the side of The Discourse. The events exposed the hollowness of developing “Wasian” from a meme term to an “identity”. As Camargo visited the NYC meetup and <a href="https://arigatoaki.substack.com/p/start-wasian-hate#:~:text=nobody%20there%20could%20tell%20me%20what%20Wasian%20culture%20actually%20is">asked attendees</a> what actually defines “Wasian culture”, they all struggled to come up with a cohesive answer. Of course, no one expected Wasians to be able to have a clear answer to what makes them unique to people of other mixed ancestry beyond aesthetics and having a White parent. Because we all knew it’s an “<a href="https://www.instagram.com/p/DYVZ7VjNyK4/">Internet identity</a>”. One of the organisers betrayed this by offering the answer, “We take pride in our beauty.”</p><p>The combination of a very online youth, the cultural dominance of America in global media, that same media increasingly centring Wasians, and that internationally famous American bravado all resulted in these Wasian meetups being organised in the first place.</p><p>And this all culminated during “Asian American, Native Hawaiian, and Pacific Islander Heritage Month” in the US-which is the only country that has a specific <em>month</em> clumping Asian cultures (which is already a dubious classification, given the continent of Asia is <a href="https://en.wikipedia.org/wiki/Asia#:~:text=60%25%20of%20the%20world&#39;s%20population">home to 60% of the world’s population</a>) with the very distinct Native Hawaiian and Pacific Islander cultures, who deserve to have their own dedicated celebrations. The concept of heritage months doesn’t really exist outside the US. Asians in Australia don’t feel a need to hold one (despite having similar experiences of discrimination like the White Australia Policy), and if cultural groups in Australia do, we’d need more than twelve months. (Though we do have <a href="https://www.naidoc.org.au/">NAIDOC Week</a>, which focuses on Aboriginal and Torres Strait Islander peoples, who continue to face the ongoing violence of colonisation in Australia.)</p><p>The discussion around the exclusion of non-White mixed Asians from these meetups then expanded into the term itself being labelled exclusionary and “centring Whiteness”. But “Wasian” is simply a term that (very efficiently) refers to people of <em>both</em> White and Asian ancestry, and it started as a meme because of how ridiculous it sounds. It is a term that, referring to a specific group of people, can be used to be exclusionary, like hosting a Wasian-only meetup. But to suggest that the term itself intentionally centres Whiteness or is a “symbol of White supremacy” quashes this distinction, and, in fact, <a href="https://www.instagram.com/p/DYXpTFIP53R/c/17989441370988839/">erases the Asian identity</a> it refers to. It only makes sense if the letters ‘asian’ were replaced with ‘hite supremacy’. There’s a reason that no one has made the argument that “Blasian” centres Blackness or “bisexual” centres straightness. Because it’s nonsensical. If words like “Wasian” truly do centre Whiteness and shouldn’t be used, then what of the term “White”? What should we call them?</p><figure><img alt="Screenshot of an Instagram comment thread. “putting white in front of an identity doesn’t make the other identity disappear” Reply: “The number of people arguing the term “wasian” upholds white supremacy because it starts with “white”. What’s the alternative? “Ashite”?" src="https://cdn-images-1.medium.com/max/1024/0*Bqu8A08G-fNsZb3k.jpeg" /><figcaption>Source: <a href="https://www.instagram.com/p/DYXpTFIP53R/c/17989441370988839/">Instagram</a></figcaption></figure><p>The escalation didn’t stop there: <a href="https://arigatoaki.substack.com/i/197045204/what-is-wasian-pride-anyway">Camargo’s post</a> made the incendiary statement, “if Wasian identity begins and ends with aesthetics, that’s eugenics.” This was a direct response to Laufey exclusively featuring Wasians in her ‘Madwoman’ music video, since she “felt a general lack of representation for people who looked like [her] in music and media.” Instead of looking at it with a charitable lens (or even Occam’s razor)-where she could have been thinking of mixed Asians generally, but has a cultural blind spot for non-White mixed Asians (especially since <a href="https://en.wikipedia.org/wiki/Demographics_of_Iceland#Immigration">migration to Iceland is minuscule</a>), or her singular focus on Wasians being a result of the recency of their fame-Camargo chose to dunk. Using this as an example to fill in the blank left by the nebulous concept of “Wasianness” as eugenics, an incredibly loaded term that ought to be treated seriously, in a post titled “Start Wasian Hate?”, is acting in bad faith.</p><p>People defending the events haven’t always spoken in good faith either, with one of the organisers <a href="https://www.instagram.com/p/DYSmONGPt7x/">claiming</a> their Wasian meet up <em>was</em> inclusive because it included… “gaysians”.</p><figure><img alt="Screenshot of an Instagram comment thread. “Hmm interesting its all east asian and white. No other half Asians besides white. No half south asians…” Reply: “there were folks there that were south asian too. We had Blasian, gaysian, etc. it was a cool half Asian mix”" src="https://cdn-images-1.medium.com/max/1024/0*DxSqRSslDpXx-eVm.jpg" /><figcaption>Source: <a href="https://www.instagram.com/p/DYSmONGPt7x/">Instagram</a></figcaption></figure><p>There have also been people using phrases like “Wasian supremacy”, a descendant of “edgy” Internet humour like the “PC master race” (which has always treaded the line). The difference here is that “Wasian supremacy” is only five letters away from white supremacy.</p><p>These discussions have rightfully foregrounded the privilege Wasians have due to their proximity to Whiteness, privilege that can easily be invisible to them. But the incessant stream of hyperbolic, inflammatory statements (“this whole Wasian construct is building community […] <a href="https://www.instagram.com/p/DYQxAmkMoSj/">but it is also hinged on division</a>”, “<a href="https://www.instagram.com/p/DX-mQA6TlhE/">don’t just centre yourself and call it a day because that’s White supremacy</a>”) has left Wasians feeling like they have to <a href="https://mixedexperienceexaminer.substack.com/p/why-is-everyone-hating-wasians-right">hide their identity</a> -the exact opposite of the goals of the Asian American movement.</p><p>This continues a trend of didacticism and moralising in American discourse, especially on race. I distinctly remember the confusion I experienced when Filipino Americans started saying Filipinos are Pacific Islanders… it was news to me and other Filipinos living in Rest Of World that we were closer to the cultures of the Pacific Islands than our neighbours in South-East Asia. Or when the term “Filipinx” was attempted to be imposed on us, <a href="https://www.reddit.com/r/Tagalog/comments/in0o52/please_do_not_refer_to_any_filipino_as_filipinx/#:~:text=Its%20like%20these%20people%20have%20never%20even%20heard%20anything%20filipino">despite Filipino languages already being gender-neutral</a> and <a href="https://en.wikipedia.org/wiki/Filipino_alphabet#:~:text=s%E2%9F%A9.-,Exclusively%20written%20for%20words%20of%20foreign%20origin%20that%20have%20not%20been%20assimilated%20into%20the%20language.,-Y">the letter X being exclusively used for foreign loanwords</a>. If everything’s bigger in America, it definitely includes their high horses.</p><p>These discussions almost exclusively come from the US, and lend to the perception that, like UV being more intense under the Australian sun, the lens of race is much more intense in America than anywhere else. Which is odd, given they’re not the only Western country with a highly multicultural population.</p><p>What is bizarre about this whole situation was eloquently <a href="https://www.instagram.com/p/DYVDWhIRsFs/">captured by Chris Zou</a>: there’s a lot more time and energy spent in taking down the Wasian meetups than there is in actually organising a more inclusive and diverse mixed Asian one. The problem was quickly diagnosed, but there was still a wave of people staring at their front cameras to dunk on people with their Notes app statements, all delivered with smirks.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.instagram.com%2Fp%2FDYVDWhIRsFs%2F&amp;type=text%2Fhtml&amp;schema=instagram&amp;display_name=Instagram&amp;src=https%3A%2F%2Fwww.instagram.com%2Fp%2FDYVDWhIRsFs%2Fembed%2F%3Fcr%3D1%26v%3D14" width="400" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/927c433fdeb61f12755849c6e95ae103/href">https://medium.com/media/927c433fdeb61f12755849c6e95ae103/href</a></iframe><p>And what’s even more bizarre? The sense of helplessness from this reaction. America mythologised itself as being the land of opportunity. And yet the prevailing action seems to be calling out Wasians for not providing the platform or the attention to other mixed Asian groups.</p><p>If the struggle is representation for non-White mixed Asians, unfortunately, the reality is that this will still need to be fought for. This is all built on the struggle for Asian representation generally in America-and that wasn’t just handed to Asians on a silver platter. Recent heights of cultural recognition, like <em>Everything Everywhere All at Once</em> and <em>Parasite</em> winning Best Picture at the Oscars, were the result of <em>persistent hard work</em> from Asians. The repeal of racist, anti-Asian laws was the result of persistent campaigning and activism.</p><p>What this episode makes clear is that the same thing is happening to non-White mixed Asians because Wasians have that cultural blind spot (as all people with privilege do), so this will take <em>both</em> Wasians using their privilege to uplift non-White mixed Asians <em>and</em>, unfortunately, non-White mixed Asians having to put in an imbalanced amount of work to achieve this.</p><p>We can’t expect everyone to be aware of all their privileges all the time and be perfect all the time. Wasians were rightfully called out, but the overheated reaction only caused infighting amongst Asian Americans.</p><p>This all feels like the persistent infighting on the left side of politics, which created a vacuum for centre-right politicians to fill the void and squander opportunities (see also: how the 2010s became Australia’s lost decade as a result of ineffective conservative governments) and far-right populist movements to simmer and rise (see also: open any news site). And yet, there are clear historical examples of how solidarity can be used to effect change: from the Asian American movement that rose in the ’60s and the banding together of queer people to push the needle on queer rights. And this feels like another “culture war” trap that has now divided the Asian American community. There’s a very clear modern example of how to overcome this-and he’s even Asian American: when Zohran Mamdani was campaigning for the mayoralty of New York City, he was laser focused on improving the material condition of New Yorkers to achieve social justice, rather than just talking about social justice and trying to score points to achieve some vague ideal on representation.</p><p>Asian diasporas in Western countries are built on the labour of generations of migrants who worked hard to make a living and create roots in the cultures where we live now, in a culture entirely foreign to them. They had a clear goal of building a life with a stable financial situation and providing their children, and their children’s children, the best possible opportunities. They stopped at nothing to achieve that. If there’s anything that underpins our identity as Asian diasporas, it’s this hard work that seized opportunity. We’re talking about organising social gatherings here, not moving to another country. If Wasians could organise multiple meetups across America, why can’t other Asian Americans?</p><p>And if you’re an Asian American reading this, don’t forget: you are still American. Your voice and vote have an unfair, outsized influence on the world. Why are your gas prices so high? Are they also high in Rest Of World? Are they <em>unaffordably</em> high in your home countries that people are going hungry? ( <a href="https://www.theguardian.com/world/2026/mar/31/manilas-transport-workers-struggle-to-make-ends-meet-as-philippines-feels-force-of-oil-crisis">Hint: Philippines</a>) Once you’re done overcoming the insurmountable challenge of … organising a mixed Asian meetup … maybe you could organise around using your privilege as Americans to improve the lives of people around the world, especially the Asians whose culture you claim deep roots to. Because right now, all of you <a href="https://www.instagram.com/p/DYabgFORsrN/">sound like this</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.instagram.com%2Fp%2FDYabgFORsrN%2F&amp;type=text%2Fhtml&amp;schema=instagram&amp;display_name=Instagram&amp;src=https%3A%2F%2Fwww.instagram.com%2Fp%2FDYabgFORsrN%2Fembed%2F%3Fcr%3D1%26v%3D14" width="400" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/19fa799374c766c791785fdb21c57aa6/href">https://medium.com/media/19fa799374c766c791785fdb21c57aa6/href</a></iframe><h4><strong>Recommended</strong></h4><ul><li><a href="https://beyondboba.substack.com/p/wasian-and-exhausted"><em>wasian and exhausted.</em></a> by Millie Hughes</li></ul><p><em>Originally published at </em><a href="https://sidneynotsydney.substack.com/p/the-wasian-discourse-is-weird-as"><em>https://sidneynotsydney.substack.com</em></a><em> on May 19, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0928663d6109" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Arc, the first browser by The Browser Company of New York, dies at three]]></title>
            <link>https://notsidney.medium.com/arc-the-first-browser-by-the-browser-company-of-new-york-dies-at-three-0a8712a2fb6c?source=rss-4eb0515be764------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a8712a2fb6c</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[browsers]]></category>
            <category><![CDATA[internet]]></category>
            <dc:creator><![CDATA[Sidney Alcantara]]></dc:creator>
            <pubDate>Sun, 22 Jun 2025 00:00:41 GMT</pubDate>
            <atom:updated>2025-06-22T13:41:36.152Z</atom:updated>
            <content:encoded><![CDATA[<h4>An obituary for the Arc browser from a current user</h4><figure><img alt="Screenshot of a dialog that appears when quitting the Arc browser with a cursor hovering over the ‘Cancel’ button" src="https://cdn-images-1.medium.com/max/1024/0*zIlO7OlsaDrKwdto.png" /><figcaption>I wish I knew how to quit you</figcaption></figure><p>Arc, a novel Web browser created by The Browser Company of New York, which enjoyed a devoted following for its thoughtful features and philosophy on computing, was declared dead on the 27th of May, 2025, just over three years after it was first released via an invitation system.</p><p>The announcement was made by The Browser Company’s CEO, Josh Miller, in a Substack post, <a href="https://browsercompany.substack.com/p/letter-to-arc-members-2025"><em>Letter to Arc members 2025</em></a>. Its demise was attributed to poor user retention, the lack of a clear pathway to become a mass-market product, and a shift in its vision on the next wave of computing: from the “<a href="https://www.youtube.com/watch?v=v0160IirdL4&amp;t=336s">Internet Computer</a>” to artificial intelligence.</p><p>Teased in a series of <a href="https://web.archive.org/web/20220315143737/https://twitter.com/joshm/status/1503741922837413899">cryptic</a> <a href="https://web.archive.org/web/20220419150310/https://twitter.com/browsercompany/status/1516432026668257294">tweets</a> (as they were then known), Arc was first released by invitation only—the vogue of the pandemic era, popularised by Clubhouse, a live audio events app (also touted as “the future” of online social events before fading from relevance)—relying on word of mouth to grow its userbase, initially comprising Twitter-based technologists.</p><h3>Dreaming of the “Internet Computer”</h3><p>Arc was <a href="https://web.archive.org/web/20250527221312/https://thebrowser.company/">described as</a> a browser to “keep us focused, organised, and in control”, promising a way to navigate the overwhelming modern Web.</p><p>It sought to organise the messiness of browsing through its tab management features. <a href="https://resources.arc.net/hc/en-us/articles/19335302900887-Peek-Preview-Sites-From-Pinned-Tabs">Peek</a>, which overlays a webpage over the current tab, and <a href="https://resources.arc.net/hc/en-us/articles/19235387524503-Little-Arc-Quick-Lookups-Instant-Triaging">Little Arc</a>, which displays a webpage in a new, smaller window, were made for ephemeral tasks to return focus to the main one. For more complex tasks, <a href="https://resources.arc.net/hc/en-us/articles/19335393146775-Split-View-View-Multiple-Tabs-at-Once">Split View</a> displays multiple tabs side-by-side, allowing for easy cross-referencing without wrangling with window management. Longer-lived tasks belonged in <a href="https://resources.arc.net/hc/en-us/articles/19231060187159-Pinned-Tabs-Tabs-you-want-to-stick-around">Pinned Tabs</a>, a cross between a bookmark and an active tab. And <a href="https://resources.arc.net/hc/en-us/articles/19230755904151-Favorites-Top-Tabs-Across-Every-Space">Favorites</a> are persistent tabs for the most-used websites that function more like apps, such as calendar and email.</p><p>It then provided ways to organise these tabs. <a href="https://resources.arc.net/hc/en-us/articles/19228064149143-Spaces-Distinct-Browsing-Areas">Spaces</a> functioned like entirely separate windows, but are accessible within the same window, similar to how tabs revolutionised Web browsing in the 2000s. <a href="https://resources.arc.net/hc/en-us/articles/19227964556183-Profiles-Separate-Work-Personal-Browsing">Profiles</a> created separate browsing contexts, allowing users to sign in to different accounts on the same website and isolate work from personal browsing. These are all listed vertically in a sidebar, a stark departure from conventional horizontal tabs.</p><p>In The Browser Company’s first YouTube video, <a href="https://www.youtube.com/watch?v=v0160IirdL4&amp;t=336s"><em>videofile_ : the internet computer</em></a>, Miller outlines their vision for computing, making the observation:</p><blockquote><em>The thing people want from their computers is their stuff … and the stuff that matters to people are not on their computer anymore … everything is a URL now.</em></blockquote><blockquote><em>If I accidentally dropped this computer down the mountain, I would be sad that I lost the resale value of the device, but I wouldn’t lose anything, and that’s because it’s all on the Internet … all of our applications are now on the Internet, too.</em></blockquote><p>Thrust into remote-only work as a result of the pandemic, knowledge work found its home on Web-native, cloud-based apps. Notion followed Google Docs’ footsteps in one-upping Microsoft Office, Slack became the primary method of communication, and Figma brought UI design—previously the domain of desktop apps by Adobe or newcomers like Sketch—to the collaborative Web. Work could now be accessed by sharing and navigating to a URL, and opened on any modern browser after logging into a service, untethered to physical devices or installing specific applications.</p><p>Arc sought to improve the experience of using these Web apps. It comprised numerous user experience tweaks centred on feeling like “your home on the Internet” through granting users more control. It capitalised on the freedom of working on a lower-level layer: the browser itself. It built <a href="https://arc.net/integrations">integrations</a> with specific websites to directly read tabs’ contents <a href="https://arc.net/privacy#:~:text=If%20you%20allow%20access%2C%20Arc%20will%20read%20and%20display%20this%20information%20in%20the%20Preview.%20We%20do%20not%20store%20any%20of%20this%20information%20on%20our%20servers%20or%20use%20it%20for%20any%20other%20purpose.">on device</a> to display information without having to open the tab itself. This included a preview and countdown timer of today’s events on <a href="https://resources.arc.net/hc/en-us/articles/24158102740631-Live-Calendars">Google Calendar</a>, and <a href="https://resources.arc.net/hc/en-us/articles/22731612065815-Automatic-GitHub-Live-Folders">automatically opening tabs</a> for GitHub pull requests when they’re created. Even more niche features include <a href="https://resources.arc.net/hc/en-us/articles/19212718608151-Boosts-Customize-Any-Website">Boosts</a> to modify how webpages appear without installing an extension like <a href="https://add0n.com/stylus.html">Stylus</a> and <a href="https://resources.arc.net/hc/en-us/articles/22932014625431-Air-Traffic-Control-Automate-Your-Link-Routing">Air Traffic Control</a> to open webpages in specific Spaces or Profiles.</p><p>Despite this myriad of features, the beauty of Arc was how its features felt intuitive. After adjusting to tabs being in a sidebar, it felt just like using any other browser. Features were progressively disclosed and had small learning curves: as they were adopted, the browsing experience grew richer, more natural, and more powerful. But this also meant the value of Arc depended on users discovering and embracing these features.</p><p>In <em>videofile</em>, Miller also said, “our aspiration is for Arc to be the first popular Internet Computer”—<em>popular</em> being the key word. He dreamed that Arc would make true a prediction about Netscape: reducing Windows (or desktop operating systems in general) to “<a href="https://en.wikiquote.org/wiki/Marc_Andreessen#:~:text=a%20poorly%20debugged%20set%20of%20device%20drivers">a poorly debugged set of device drivers</a>”.</p><h3>The curse of venture capital</h3><p>Signs of an illness had dogged Arc throughout 2024, with <a href="https://archive.md/DubWi">its CEO calling parts of the browser</a> “unnecessarily complex to understand relative to traditional browsers”. He asked his followers which feature they should cut from Arc in a poll with three of its most famous features: vertical tabs, Favorites, and Spaces, and a fourth option, “Nothing, it’s perf (cmon)”. The fourth option won a plurality of 40%.</p><p>In September, a security researcher discovered a “catastrophic” vulnerability allowing for remote code execution on users’ browsers, leading to <a href="https://arc.net/blog/CVE-2024-45489-incident-response">a CVE</a>. It was caused by a misconfiguration of its cloud storage, which contained user-written JavaScript code for its niche Boosts feature. The complexity of Arc’s features was catching up to them.</p><p>By October, the company confirmed Arc had been diagnosed with a terminal illness in a YouTube video, <a href="https://www.youtube.com/watch?v=E9yZ0JusME4"><em>What have we been up to? (CEO Update)</em></a>. Miller said “the Arc you know and love is not going anywhere” three separate times in the video, but admitted they were building a “brand new product” because they’re “not going to get to a billion people using” Arc, despite having “quadrupled the number of people that used Arc every day this year”. When it was alleged that Arc was dead, he dismissed it as “<a href="https://archive.md/QRteN">fear mongering</a>”.</p><p>Now, The Browser Company has confirmed Arc has been on life support, with no active product development continuing. The company has pledged to continue supporting it, and it has received regular Chromium and security updates since.</p><p>Perhaps it was ridiculous to think that a venture-capital-funded browser for power users would survive with no clear plan for monetisation bar its “Arc Max” AI experiment, or to hold out hope for rumours that The Browser Company would eventually launch subscriptions for managing teams and enterprises—it called its users “Arc members”, after all. The company’s aspiration for its browser to supplant Chrome by reaching the billion-user mark appears less nonsensical when considering the millions it received from investors.</p><p>At least the core experience of Arc remains usable and without a paywall, and it never succumbed to “enshittification” like many other Internet-age products. It continues to provide value to users, despite the knowledge it will remain frozen in time with a Windows browser that never achieved feature parity and having never been publicly released on Android (beyond early access) or Linux.</p><p>It’s clear that The Browser Company no longer sees Arc as becoming the “Internet Computer”. But what is an “Internet Computer”? Miller never really detailed what the vision entails—when he introduced it in <em>videofile</em>, he <a href="https://youtube.com/watch?v=v0160IirdL4&amp;t=360">qualified the statement</a> with: “I’ll let your mind wander a little bit about what that means, I don’t want to fill in too many of the blanks, and quite frankly, we’re still figuring it out ourselves.”</p><p>Though perhaps the “Internet Computer” already exists—it’s any functional browser. How many more UX tweaks are needed to say this vision has been achieved? We can already do so much with Web apps linked by URL and instantly access our data through the cloud. What more is an “Internet Computer” than opening a browser full screen?</p><h3>Brand new Dia</h3><p>Arc has been survived by—or rather, supplanted by—Dia, the company’s upcoming browser. In <em>Letter to Arc members</em>, Miller teased it as an “AI browser” with a new vision of what’s next for computing. He outlined how Dia builds towards this vision a few weeks later in a YouTube video, <a href="https://www.youtube.com/watch?v=_OWls0nwXOo"><em>Our vision for Dia browser (CEO Update)</em></a>.</p><p>Dia aims to become the primary way to interact with LLMs, automatically plugging in personal context based on browsing history and other data it automatically collects. It published an ad, <a href="https://www.youtube.com/watch?v=YVOw0TAO9ok"><em>Never Explain Yourself Again</em></a>, that shows how the browser could send context like a guest’s dietary requirements when searching for recipes that use zucchini. The description reads, “Dia is the AI browser that’s always up to speed. No more attaching or copy pasting—if it’s in your tabs, Dia already knows.”</p><p>The “AI browser” continues a trajectory that The Browser Company started exploring in February 2024 with <a href="https://www.youtube.com/watch?v=WIeJF3kL5ng"><em>Meet Act II of Arc Browser | A browser that browses for you</em></a> through its revamped iOS browser, Arc Search. Its foremost feature was replacing Google searches with an LLM-generated summary of a handful of webpages to answer the user’s search query. It sought to save users’ time by removing the need to navigate to various webpages and filter out low-quality SEO bait, a side effect of Google’s dominance in both search and advertising.</p><p>This naturally lends itself to criticism. Ben Goodger, one of the lead engineers for both Firefox and Chrome, <a href="https://archive.md/OK8jF">criticised</a> the lack of mention in <em>A browser that browses for you</em> about how Arc Search impacts creators on the Web—whose creations AI search relies upon. In response, <a href="https://archive.md/2OtgR">Miller admitted</a>: “The reason we didn’t talk about our ideas related to Webpages and creator monetization of the future (in the video) is because we don’t have all the answers yet! Nobody does. It’s all too new … But promise I’m thinking deeply about this conundrum. It’s so important for everything from our Web to our democracy.”</p><p>Arc Search was released anyway. “We gotta shake the status quo a bit. It’s just time”, Miller said.</p><p>Fifteen months later, <em>Letter to Arc members</em> doesn’t show further development of these ideas. Miller offers more detail on how an “AI browser” would be different to a Web browser, predicting that “Webpages won’t be the primary interface anymore” and “will become tool calls within AI chat interfaces.” But somehow, “We’ll still need to edit documents, watch videos, read weekend articles from our favorite publishers … webpages don’t need to be replaced—they’ll remain essential.”</p><p>Again, there is no mention of how Web creators would be compensated for AI search using the content they create. Dia is set to be widely released later in 2025.</p><p>What Casey Newton wrote about Arc Search in <a href="https://www.platformer.news/arc-search-quora-poe-perpexity-journalism-web-future/#:~:text=the%20web%20is-,abstracted%20away,-into%20an%20input"><em>Scenes from a dying web</em></a> holds true for Dia:</p><blockquote><em>The point of apps like Arc Search is that you should never have to visit the links at all. In Arc’s vision of the internet, all the labor that makes up the web is abstracted away into an input.</em></blockquote><p>Arc’s faithful may find comfort in knowing its most unique features may yet live on through Dia, with Miller <a href="https://archive.md/vTNvj">announcing plans</a> for the new browser to gain an “AI-native take” on Arc’s Spaces, Folders, and Air Traffic Control. And the company’s focus on craft remains, with Charlie Deets, formerly a lead designer for Safari, penning <a href="https://browsercompany.substack.com/p/the-strategy-behind-dias-design"><em>The strategy behind Dia’s design</em></a>.</p><p>However, it’s difficult to be optimistic about Dia as The Browser Company has now entered even fiercer competition: one with AI labs commanding arsenals of VC cash. The theory was that Google couldn’t build Arc features in Chrome because they’re too radical a departure for its over three billion users. Microsoft could add them to Edge, but it’s already struggling with users installing Chrome instead. And Google would likely face the same issue if it created a second browser.</p><p>But in the AI arms race, Google is in a unique position—it’s one of the leaders in generative AI, capitalising on its decade-long investment in machine learning, and it commands the Web through search and Chrome. At Google I/O 2025, it announced <a href="https://techcrunch.com/2025/05/20/google-is-launching-a-gemini-integration-in-chrome/">Gemini integration in Chrome</a>, with the promise of using context from multiple tabs at once in a future update. It doesn’t take much imagination to think Google could leapfrog whatever is built in Dia, cutting out the middleman-users won’t even have to install a new browser. However, The Browser Company may be going by Windsurf’s playbook, eyeing up its <a href="https://www.bloomberg.com/news/articles/2025-05-06/openai-reaches-agreement-to-buy-startup-windsurf-for-3-billion?embedded-checkout=true">$3 billion acquisition by OpenAI</a>.</p><p>The Browser Company’s <a href="https://www.youtube.com/watch?v=E9yZ0JusME4">announcement</a> that it’s building a new browser began with a snippet of Lorde’s <em>The Love Club</em>. The <a href="https://genius.com/Lorde-the-love-club-lyrics">community annotation on Genius</a> describes it as “about joining a tight clique to become free, and ironically losing freedom because of that.” It would be a prescient choice if the company’s wholehearted embrace of AI leads to its undoing.</p><h4>Recommended</h4><ul><li>In <a href="https://www.figma.com/blog/meet-us-in-the-browser/"><em>Meet us in the browser</em></a> from <a href="https://www.figma.com/blog/">Figma’s blog</a>, Figma’s CEO reflects on how its Web-based app allows for seamless collaboration and instant access to your work through the simple act of sharing a URL.</li><li><a href="https://www.engadget.com/who-makes-money-when-ai-reads-the-internet-for-us-200246690.html"><em>Who makes money when AI reads the internet for us?</em></a> from <a href="https://www.engadget.com/">Engadget</a> includes insights from Glitch CEO Anil Dash, warning about the longer-term impact of AI on the open Web.</li></ul><p>‘AI’ counter: 12</p><p><em>Originally published on my website, </em><a href="https://sidney.me/writing/arc-obituary"><em>sidney.me</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a8712a2fb6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Does AI herald an industrial revolution for art?]]></title>
            <link>https://notsidney.medium.com/does-ai-herald-an-industrial-revolution-for-art-3c0081cbae7f?source=rss-4eb0515be764------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c0081cbae7f</guid>
            <category><![CDATA[art]]></category>
            <category><![CDATA[culture]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[society]]></category>
            <dc:creator><![CDATA[Sidney Alcantara]]></dc:creator>
            <pubDate>Tue, 20 May 2025 13:27:25 GMT</pubDate>
            <atom:updated>2025-06-06T00:52:56.201Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Stainless steel liquid washing equipment" src="https://cdn-images-1.medium.com/max/1024/1*RyiE96xdMiR7o4KkFGyDcQ.jpeg" /><figcaption><a href="https://unsplash.com/photos/gray-industrial-machine-xD5SWy7hMbw">Photo by Crystal Kwok</a> on <a href="https://unsplash.com/">Unsplash</a></figcaption></figure><p>I recently came across a comment thread discussing a blog post, <a href="https://alexeystar.com/blog/slopify/"><em>Goodbye, Slopify</em></a>. It’s a short post that exposes Spotify inserting AI-generated music with AI-generated album art in its <em>Discover Weekly</em> playlist: an algorithmic playlist that’s meant to help its users discover new music based on their listening history. It’s one of Spotify’s discoverability features, which is meant to be a cornerstone of its value proposition to artists: in exchange for significantly reduced earnings from the music itself, artists reach more people to grow their fanbase faster. It’s so important they even made <a href="https://fanstudy.byspotify.com/edition/spotify-playlists">a landing page</a> that declared “Spotify playlists are hotbeds for discovery.”</p><p>Spotify’s hypocrisy aside, what bothered me was the first comment, which asked if they’d react the same way if they <em>didn’t</em> know the track was AI-generated. They continued with a prediction that Spotify’s actions herald a new industrial revolution — making direct comparison to the relegation of the craftspeople who produced furniture to a small, premium market amid the rise and dominance of mass manufacturing — and that Spotify is “simply” betting on the same transformation to happen to music.</p><h3>Art is not furniture</h3><p>My gut instinct was that comparing music (and, by extension, all art forms) to furniture is a wild false equivalence.</p><p>Furniture, while also a medium of artistry for millennia, primarily serves as a utility that we interact with daily and largely consider a need. This is why we’ve welcomed the mass production of furniture: it’s allowed us to satisfy a need with less time and money, at the expense of not knowing <em>who</em>made or designed it. It’s how Ikea has been able to open stores all around the world, or why governments still allocate their diminishing budgets to installing public furniture.</p><p>The same can’t be said for music. We can’t “live without” music in the same way we can’t live without food or water. But, as humans, we can’t <em>thrive</em>without music — or any other form of art. What differentiates humans from other forms of life (as we have told ourselves) is our intelligence: our ability to think about abstract concepts and experience deep, complex emotions. Art is how we express that. Art is how we communicate the indescribable to each other. Art doesn’t have a functional utility like furniture.</p><p>Sure, one could argue that AI-generated content could be emotionally moving, aesthetic enough to display in a home, or pleasant enough to interact with every day. But to meaningfully engage with a work of art, you must scratch beneath the surface, understand its context, and form your own interpretation of what its author is trying to express. Without human intention or artistic expression — art’s <em>raison d’être</em> — AI-generated content can’t elevate itself beyond mimicry.</p><p>It’s why Maurizio Cattelan’s <em>Comedian</em> (the banana duct-taped to a wall) triggered such impassioned responses and lively discourse, with casual observers noting they too could duct-tape a banana to their wall. Today, one could use AI to generate an image depicting that. But would that have sparked the same level of discussion and analysis? Would it have been reproduced on a Sotheby’s wall? Or would it just have been an appendix on the capabilities of the latest AI model?</p><p>It was Cattelan’s expression and originality that made a banana duct-taped to a wall <em>art</em>.</p><p>Art is fundamentally how we contend with the human condition, a product of deeply personal processes, painstaking at times, to capture what we experience. Now why would we want to <em>generate</em> that?</p><h3>The commoditisation of art</h3><p>After giving the thought some space, I don’t think the commenter was trying to say that AI-generated content is equivalent to human art. Their point was that Spotify doesn’t care about art — only “content”. (This is made painfully clear by all the decisions they’ve made over the last decade.) AI-generated music is just the latest tool it can use to further its ambitions as a for-profit corporation in the business of “content”.</p><blockquote>All integrity, purity, and truth of art will be replaced by financial interests only.</blockquote><p>— Nicolas Cage, <a href="https://variety.com/2025/film/news/nicolas-cage-slams-ai-robots-cannot-reflect-human-condition-1236294371/">while accepting an award</a>, warning of the growing use of AI in Hollywood</p><p>Spotify’s behaviour is caused by the fact that art has already been commodified. We see this through the existence of huge markets for stock images and music, which we unknowingly interact with on a daily basis. The artists who sell on these markets are primarily concerned with producing work that sells, with pure artistic expression becoming secondary.</p><p>So what difference would it make if we could now generate this with AI instead?</p><p>By their nature, stock art remains heavily influenced by the artists who created them. They’re the product of the years a human spent working on their craft and honing it to regularly produce works of a sellable standard. Behind every stock artwork is a thousand drafts that will never see the light of day, but each has subconsciously influenced the final product. Reputable stock art stores all list the artists that produced the piece. Even <a href="https://www.evernote.design/categories/illustrations/">illustration sets geared towards tech products</a> emphasise their “handcrafted” nature or include a short blurb from the artist.</p><p>In a more practical sense, human-made stock artwork means <em>the artist gets paid</em>. Producing stock or commissioned artwork is how artists today can afford to pursue art as their vocation, since our economic system doesn’t assign art any inherent value. And this monetisation of art to fund creative endeavours isn’t a modern concept — the centuries-old artworks we revere and hang in our museums were funded (directly or indirectly) by wealthy patrons. The stock photo has replaced the noble’s portrait.</p><p>What generative AI signals is the <em>commoditisation</em> of art. (Not to be confused with <a href="https://en.wikipedia.org/wiki/Commodification">commodification</a> — learnt that today, thanks Wikipedia!) <a href="https://en.wikipedia.org/wiki/Commoditization">Wikipedia describes it</a> as “the process by which goods that have economic value and are distinguishable … end up becoming simple commodities in the eyes of the market or consumers.”</p><p>By training AI models on existing artwork without permission, flattening the human experiences of artists of past and present into “tokens” and “parameters”, AI can now generate content that mimics human art, blending in without closer inspection. Big Tech has developed a way to generate an equivalent product in seconds through sentences-long “prompts”, eliminating the hassle of dealing with, and paying for the labour of, the artists of present and future.</p><p>Now, corporations can automate filling the gaps in their content libraries. Spotify is doing it with its discovery playlists, equating its in-house AI-generated content to music from real artists. YouTube feeds are becoming increasingly filled with AI voiceovers on informational videos with questionable accuracy and rife with accusations of plagiarism, displayed alongside thoroughly researched ones, with the <em>same</em> monetisation features enabled. Even Facebook — “building the future of human connection” Facebook — is encouraging users to upload and share AI content to farm the omnipotent “engagement”: just look at that <a href="https://www.404media.co/facebooks-algorithm-is-boosting-ai-spam-that-links-to-ai-generated-ad-laden-click-farms/">“shrimp Jesus”</a> mindlessly replicated and transmitted on Facebook by real-or-maybe-not users.</p><p>If the services that we pay (or indirectly pay through advertising spyware) to discover, consume, or engage with art are now incentivised to feed us its AI-generated commodity equivalent, then where does that leave the humans who developed these art forms? Will we have to seek out the humans and pay a premium <em>not</em> to see mass-produced AI content? Will the ranks of human artists dwindle?</p><p>Oh shit, maybe this really is no different from the industrial revolution.</p><h3>Supply and demand</h3><p>If we look at this situation from a sterile economic standpoint, the market is being flooded with new supply. But all of this has no value if there is no demand for it.</p><p>In early 2025, OpenAI started allowing users to generate images in the venerated style of Studio Ghibli. After the initial wave of memes generated and shared, the hype dissipated. Ryan Broderick, in his (excellent) newsletter <em>Garbage Day</em>, <a href="https://www.garbageday.email/p/new-elon-musk-crime-dropped#the-speed-of-an-ai-meme">notes</a>: “the most likely explanation is that when memes can be immediately and infinitely generated, they have no real value beyond novelty. And even that is shrinking every time.”</p><p>Demand is the power that we wield as consumers.</p><p>This is how we can fight against AI-generated slop: we possess and can withhold today’s paramount currency, attention. Because why would corporations continue to generate AI content if it drives its customers away?</p><p>All this is not to say that I think AI tools should be categorically banned in the process of creating art — they can be used mindfully to augment the creative process through ideation, brainstorming, iteration (<a href="https://theconversation.com/i-was-a-music-ai-sceptic-until-i-actually-used-it-252499">even with music!</a>), or editing. Artists that use AI tools as assistance don’t automatically invalidate their art, as long as the one thing they don’t use AI as a replacement for is artistic expression — that can only come from a human.</p><p>It’s up to us to intentionally seek out human-made art and engage with it meaningfully. We need to exhibit a greater appreciation for the artist’s intention and passion for the craft. It also means directly supporting artists, <em>purchasing</em> their art as traditional sources of income dry up.</p><p>This isn’t any different to how it was before AI disrupted this part of our society. We just have a lot more noise to deal with. Don’t let it waste your time or energy. Don’t feed the troll.</p><p>Together, we must protect art as human first. Because if we’re hurtling towards a <em>Wall-E</em> future where all our needs and wants are provided by robots and artificial intelligence, what else is left for us but art?</p><h4>Recommended</h4><ul><li><a href="https://congeecosmicbinchicken.wordpress.com/2025/04/18/creativity-and-culture-in-the-age-of-ai/"><em>thinking about thinking (about writing an essay on creativity and AI)</em></a> from <a href="https://congeecosmicbinchicken.wordpress.com/">congee for the cosmic bin chicken</a> explores how they use AI tools in academic writing and concert photography.</li><li><a href="https://www.youtube.com/watch?v=dPZunsMKTjg"><em>Meditation on ChatGPT 4o image generation</em></a> from <a href="https://uncoverage.co/">uncoverage</a> posits that while AI won’t “end” art, artists who use AI tools must use them mindfully to prevent losing their artistic voice in their works.</li><li><a href="https://pluralistic.net/2025/03/25/communicative-intent/#diluted"><em>Why I don’t like AI art</em></a> by <a href="https://pluralistic.net/">Cory Doctorow</a> argues that AI “art” generated from short prompts lack the communicative intent that makes art art.</li></ul><p>‘AI’ counter: 34</p><p><em>Originally published on my website, </em><a href="https://sidney.me/writing/ai-art-industrial-revolution"><em>sidney.me</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c0081cbae7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Samsung’s ViewFinity S9 27″ 5K could be a great monitor — if it had reliable software]]></title>
            <link>https://notsidney.medium.com/samsungs-viewfinity-s9-27-5k-could-be-a-great-monitor-if-it-had-reliable-software-2fed3667cc8d?source=rss-4eb0515be764------2</link>
            <guid isPermaLink="false">https://medium.com/p/2fed3667cc8d</guid>
            <category><![CDATA[display]]></category>
            <category><![CDATA[monitor]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[samsung]]></category>
            <dc:creator><![CDATA[Sidney Alcantara]]></dc:creator>
            <pubDate>Mon, 18 Sep 2023 14:32:21 GMT</pubDate>
            <atom:updated>2025-12-04T12:37:47.108Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="The Samsung monitor on the left, with a 16″ M1 MacBook Pro connected to its right." src="https://cdn-images-1.medium.com/max/1024/1*n1b2ARKTUEldvc1rW5fBWg.jpeg" /></figure><h3>Samsung’s ViewFinity S9 27″ 5K could be a great monitor — if it had reliable software (Update 3: Fixed!)</h3><h4>2,500 words for those as pedantic about high-density displays as I am</h4><p><strong>Update 2025-12-04:</strong> I haven’t experienced the issue for a while now! I’m currently on software version 2048.</p><p><strong>Update 2024-11-11:</strong> I now only occasionally (maybe once every month?) get the issue when I switch inputs from my MacBook to my PC. <strong>Toggling HDR off</strong> (and optionally back on) in macOS display settings resolves it.</p><p><strong>Update 2024-01-29:</strong> The issue just happened to me again on software version 1310 (the latest version). <strong>Toggling HDR</strong> in macOS display settings resolves it.</p><p><strong>Update 2023-12-24:</strong> I’ve been running software <strong>version 1310 </strong>for a month or two now, and the issue described in this article hasn’t reappeared. I’ve left my Mac on the ‘DCI-P3’ picture mode with HDR off and my PC on ‘sRGB’. I have, however, noticed the quick settings menu opened by pressing and holding the home button on the remote is noticeably slower to open.</p><p>I’ve been waiting for a 27″ 5K monitor for a long time. Ever since I got a MacBook with a Retina display, I’ve wanted a monitor with the same display quality and, crucially, the same pixel density (roughly 220 PPI). Based on <a href="https://www.caseyliss.com/2017/5/17/retina-monitors">Casey Liss’s recommendation</a>, I found a used <a href="https://www.displayspecifications.com/en/model/be0153a">Dell 24″ 4K monitor</a> that came pretty close (185 PPI) for 350 AUD — much cheaper than the LG UltraFine 5K (1,800 AUD). It served me quite well until I wanted more screen real estate and set it to ~1.75× scaling, resulting in slightly fuzzy text. This was fine, as the generation of MacBook Pro I was using also had <a href="https://apple.stackexchange.com/questions/395411/13-inch-2020-macbook-pro-has-incorrect-default-scaling-value-compared-to-2012">similar fractional scaling</a>.</p><p>When I got an M1 MacBook Pro (which has 2× scaling at 254 PPI, by the way), I also wanted to upgrade my monitor to 27″, but I was pretty disappointed by Apple’s Studio Display costing a whopping 2,500 AUD. And if you wish to have the seemingly basic function of adjusting its height, that brings the price up to 3,100 AUD. I’m sure many of us don’t have that kind of cash to drop on a single monitor.</p><p>So when Samsung announced its 27″ 5K monitor <a href="https://www.theverge.com/2023/1/2/23531390/samsung-viewfinity-s9-5k-monitor-announced-features">back in January</a>, I was very excited and waited patiently for its release (by setting up a Google search filter to show the past week’s results and obsessively checking it). I received mine a week ago and nearly returned it to get a Studio Display until I fixed my issue.</p><h3>Text sharpness woes</h3><p>As I work from home, I look at text all day. I adore how text is rendered on Apple’s Retina displays — incredibly sharp and print-like. That’s precisely why I want a comparable high-density display. So I was pretty disheartened upon connecting my Mac to see text being this sharpened mess:</p><figure><img alt="Poor text rendering of the Samsung web page for this monitor." src="https://cdn-images-1.medium.com/max/1024/1*LhP3q9GfJv3mTcdjAVMuTg.jpeg" /><figcaption>Photo of the Samsung display taken with my iPhone. I’m not a professional monitor reviewer.</figcaption></figure><p>The sharpening on the display garbles text — look at how the lowercase ‘u’, ‘m’, and ‘h’ have entirely different vertical stroke widths.</p><p>This may be difficult to see at normal viewing distances (I had to take a close-up photo with my phone for this post), and you may very well not notice this yourself if you get this monitor. But as someone who looks at text all day, I <em>absolutely</em> do.</p><p>I’m using the ‘DCI P3’ option in ‘Picture Mode’, and by default, it has ‘Sharpness’ set to 10. Computer monitors (and TVs, for that matter) don’t need additional sharpening, so I put it to 0, and it ended up even worse:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z2UonsoHbu0pcgqfFXDrEg.jpeg" /><figcaption>Even worse text rendering of the Samsung web page for this monitor, with text appearing blurry horizontally.</figcaption></figure><p>I bought this display precisely <em>not</em> to have fuzzy text — and ended up in fuzz city!</p><p>And I don’t seem to be the only one having this issue. Looking at <a href="https://www.youtube.com/watch?v=w4SW14gVCxg">Teoh Yi Chie’s review</a> of this monitor, I can see the same imperfect text rendering. I can see it at <a href="https://youtu.be/w4SW14gVCxg?si=Xgx30lF0NEYBa_Gw&amp;t=42">0:42</a>, <a href="https://youtu.be/w4SW14gVCxg?si=Bw1W09QQRJRivMCc&amp;t=828">13:48</a>, and <a href="https://youtu.be/w4SW14gVCxg?si=mJD0osuiB4RMFdLJ&amp;t=1163">19:23</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WUjkXdfLqOplsjAfwPjahw.jpeg" /></figure><p>I suspect there’s something wrong (or at least different enough not to match Apple’s) factory gamma calibration, as the text rendering is noticeably bad on the horizontal axis, matching <a href="https://youtu.be/JhJp4r-jddU&amp;t=79">the layout of the display’s subpixels</a>. There is a 32-point ‘White Balance’ option in settings, but I’m not enough of an expert to figure this out.</p><p>Thankfully, as I looked at the store’s return policy and got ready to spend an extra 1,300 AUD on the Studio Display, I figured out how to use the monitor’s ‘Smart Calibration’ feature. Ten minutes later, the text rendering matches what’s on my MacBook display. 🎉</p><figure><img alt="Improved text rendering on the Samsung monitor with phone calibration, matching the MacBook’s." src="https://cdn-images-1.medium.com/max/1024/1*W-sIBJZiMOEEl-sJlQQykg.jpeg" /></figure><figure><img alt="MacBook display’s text rendering, which I’m comparing against." src="https://cdn-images-1.medium.com/max/1024/1*V0V-QntzTiVlTuMkvX-3nA.jpeg" /><figcaption>Left: Samsung ViewFinity S9 (with phone calibration). Right: MacBook Pro 16″ (2021)</figcaption></figure><p>But figuring out how to use Smart Calibration was a ridiculous challenge in itself.</p><h3>Update 2023-09-24: An easier fix</h3><p>I just discovered an easier way to fix this issue without doing a ten-minute Smart Calibration. I’ve kept the following section on how to use Smart Calibration, as there’s no online resource explaining how to use it.</p><p><strong>You can either:</strong></p><ul><li>Toggle ‘High Dynamic Range’ in macOS display settings off (and on again, if you want HDR), or</li><li>Change the ‘Picture Mode’ monitor setting to ‘Eco’, then back to your preferred mode.</li></ul><p>Other observations:</p><ul><li>Curiously, ‘Sharpness’ is set to 10, and it appears correct. Setting it to 0 makes it appear blurry, but not like above, where it’s only blurry in the horizontal direction. It appears blurry like a Gaussian blur filter was applied to the picture.</li><li>If the monitor is powered off (not just standby) or the input is changed, this may reset.</li><li>You also don’t need to run a Smart Calibration before setting the monitor to ‘Eco’ or HDR off, as I tested this after doing a factory reset. Note you also don’t need to connect the monitor to Wi-Fi while setting up. On the network connection screen, press the ‘right’ button on the remote to skip setting up the connection.</li><li>I also hired a Datacolor Spyder5, but using the colour-calibrated profiles it created did not solve this issue.</li><li>Additionally, if you have two inputs connected (in USB-C/Thunderbolt and Mini DisplayPort) at the same time, switching from the Mini DisplayPort to the USB-C/Thunderbolt input may cause it to have a gamma of 1.8. Setting ‘Gamma’ in ‘Expert Settings’ to <strong>−</strong>5 fixes this.</li></ul><h3>How to use Smart Calibration and get around Samsung’s infuriating TV software</h3><p>Smart Calibration, the ability to use your phone to calibrate the monitor, has featured heavily in Samsung’s advertising for the ViewFinity S9, so I was left puzzled to see the option disabled in settings:</p><figure><img alt="Samsung monitor’s on-screen display with the ‘Smart Calibration’ option disabled while displaying the MacBook’s video output." src="https://cdn-images-1.medium.com/max/1024/1*fN5dL48lQ2FjlHMHdTpCEg.jpeg" /></figure><p>It took me hours of playing around with settings to figure out that it’s <em>only</em> available when in the monitor’s smart TV-like ‘Home’ screen. This isn’t a feature I expected to use often since I bought this to use exclusively as a display, not a smart TV. There is zero mention of this requirement in the monitor’s manual or any help articles at the time of writing. You’ll also need to connect your monitor to Wi-Fi and the SmartThings app on your phone with a Samsung account signed in to continue with calibration.</p><figure><img alt="Samsung monitor’s on-screen display with the ‘Smart Calibration’ option enabled while displaying the smart TV Home screen." src="https://cdn-images-1.medium.com/max/1024/1*6LG_c5dWnBC_zz6YCKfBAg.jpeg" /></figure><p>The calibration process was simple enough, but it needed more documentation. I’ve used the settings below in my phone calibration in ‘Professional Mode’. ‘Basic Mode’ only made minor adjustments to the white balance and did not fix my issues with text sharpness. Note: the ‘Manual’ option seems to require you to use a colour meter and asks you to input the readings from it (I’m unfamiliar with this process).</p><p>The process took just over ten minutes and involves the monitor displaying a pure white image at full brightness, so it’s best to look away during this time. Here are the settings I chose and the calibration report I received.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e9vMVQg4n4UJMNWHAA0G7g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*801eqWerxKp9Jd8gsuGRmg.jpeg" /></figure><p>But the problems didn’t end there. The SmartThings app has a peculiar bug with scrolling where you can’t scroll down. You have to scroll up a bit for it to be able to scroll down. I have never encountered this at any point of using any smartphone. It is utterly bizarre.</p><p>Then, it shows you a preview of the original and calibrated images with a looping video of Rome. If you back out of that screen or spend too long without interacting with the SmartThings app, <strong>you will lose your progress</strong> and have to start the ten-minute calibration again. So make sure you are in the room once calibration finishes.</p><p>You’ll know the calibration is successful when the ‘Picture Mode’ is set to ‘Standard (Calibrated)’ and the option is disabled. And, of course, you’ll see the gorgeous text rendering. For some reason, if you do the ‘Basic Mode’ calibration instead, the setting remains enabled and will add a new ‘Custom 1 (Calibrated)’ option.</p><figure><img alt="Samsung monitor’s on-screen display after calibration. The ‘Picture Mode’ option is set to ‘Standard (Calibrated)’ and disabled." src="https://cdn-images-1.medium.com/max/1024/1*bC5fAqnvvewewrjQAvWNRQ.jpeg" /></figure><p>But the drama doesn’t end here. Once you’ve completed a ‘Professional Mode’ calibration, <strong>do NOT go to the Home screen</strong> under any circumstances. This will <strong>delete your calibrated profile,</strong> and you’ll have to repeat the ten-minute calibration. If you turn the monitor off by unplugging it from power, it will do the same thing.</p><p><strong>Update 2023-09-24:</strong> You do not need to avoid the Home screen if you use the HDR off + ‘Eco’ mode solution above.</p><p>You can press and hold the Home button to pull up the settings panel, but make sure not to press the Back button when nothing is on screen, as this will go to the Home screen.</p><p>I sincerely hope these are early adopter bugs that Samsung will fix in a future firmware upgrade. I don’t plan to use the smart TV streaming features, so I can work around this.</p><p>This has been an extremely frustrating user experience and makes me question why Samsung felt the need to include their Tizen OS-based smart TV software, which is demonstrably buggy. Perhaps Samsung could have priced this monitor a few hundred dollars less without this unnecessary and unreliable software. Like the <a href="https://www.youtube.com/watch?v=7QphMaa4wxI">classic Australian milk ad</a>, I just want display that tastes like real display.</p><h3>Why not the Apple Studio Display?</h3><p>As many Apple-focused reviewers have said, I 100% agree that Apple’s Studio Display is the superior external display for Mac. It has a superior build quality and doesn’t suffer from the same software issues as this display. It just works. <em>For Mac.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WMby1Xk0ryvx57amXZ5xKg.jpeg" /></figure><ol><li>If you’re like me and want to connect it to a Windows device like a gaming PC, it doesn’t “just work”. If you have a Windows laptop with Thunderbolt, you can plug it directly into the Studio Display’s Thunderbolt input. But you’ll have to physically switch which cable is plugged in since it only has one information.</li><li>If your PC doesn’t have a Thunderbolt port — like most gaming PCs, especially those with AMD CPUs — you’ll have to use a DisplayPort to USB-C cable. And you won’t be able to access the USB ports, camera, or microphone. You’ll have to use a special DisplayPort + USB-A to USB-C cable to do so, as Jaime Marrero <a href="https://www.youtube.com/watch?v=eHqpQFDsoCs">found out in their video</a>.</li><li>If you want to control the brightness from Windows (and of course you do — you don’t want to plug your Mac in to change display brightness), you’ll need to install Apple’s Boot Camp drivers — while they’re still supported. This is quite hacky, and the latest guides I’ve read involve downloading additional scripts from GitHub. And Apple never made a Mac with an AMD CPU, so good luck installing those drivers on an AMD-based PC.</li></ol><p>These reasons are why I did not — and still don’t — consider the Studio Display a viable option for me. I <em>want</em> to like the Studio Display. I <em>want</em> to have a Studio Display. But Apple seems so hell-bent on not making a standard display that a Windows PC can use. Damn this walled garden I willingly put myself into!</p><p>So if you’re choosing between the Samsung display and the Studio Display for a monitor exclusively for your Mac, and they’re the same price, you’re simply better off with the Studio Display. But if you also want to use it with a Windows PC or find the Samsung display at a discount, you should consider it.</p><h3>Why not a 27″ 4K display?</h3><p>There are countless posts online saying you don’t <em>need</em> a 5K display and a 4K one will be more than enough — and that’s true for most people, who wouldn’t notice the difference. And you may be one of those people. If you are, I’m kinda jealous of you since I <em>absolutely</em> notice the difference (and spent the extra money on a 5K display).</p><p>The crux of the matter is that, unlike Windows, macOS’s display scaling sucks unless it’s exactly 2×. If you use a monitor less than 2 × 110 PPI, the UI looks too big when scaled at 2×. And if you set the scaling to something below that, like 1.75×, everything becomes just a bit fuzzy. You can see how this looks in Marc Edwards’ <a href="https://bjango.com/articles/macexternaldisplays2/">excellent explanation</a> on Mac external displays and pixel density, where he simulates the difference between pixel density and fractional scaling on Mac.</p><p>And because seeing is believing, you can head to an Apple Store (or your local electronics store) and compare the text rendering on a MacBook Air (any generation with Retina displays), which uses fractional scaling to get more screen real estate, to a 14″ or 16″ MacBook Pro, which uses crisp 2× scaling. If you don’t notice the difference (or don’t care), you don’t need a 5K display! Save yourself the money and the trouble.</p><h3>Other observations while using this monitor</h3><ul><li>The reviewers are correct: this display’s speakers are basic compared to the Studio Display. The 16″ M1 MacBook Pro’s excellent speakers serve me well for this not to be an issue. And I use headphones on my gaming PC anyway.</li><li>The matte display coating is more noticeable than the <a href="https://www.displayspecifications.com/en/model/be0153a">Dell P2415Q</a> I used before and other Dell monitors in general. It seems to be quite similar to the Studio Display’s, where the grain is noticeable when you’re really close up, but at a normal viewing distance, it’s not noticeable.</li><li>Changing the brightness takes too many steps. To find the Brightness slider, go to Settings &gt; Picture &gt; Expert Settings. Alternatively, you can go to the ‘Picture Setup’ option in the quick settings panel. It seems Samsung is pushing you to use its auto-brightness feature, even though it’s off by default.</li><li>To turn auto brightness on, go to Settings &gt; General &amp; Privacy &gt; Power and Energy Saving &gt; Brightness Optimisation. Make sure to set ‘Minimum Brightness’ to 0. I do not understand why this feature is off by default and buried in this menu.</li><li>To switch inputs <em>without</em> going to the dreaded Home screen, you can press and hold the button on the back of the monitor. There is no quick setting for this. At the time of writing, a press-and-hold of the button no longer brought up the input switcher, so I switched the monitor off. That’s how I found out you also lose your calibration by turning it off. I will now spend the next ten minutes calibrating it again. <strong>Update 2023-09-24:</strong> Powering the monitor off completely (not just standby) fixes this, letting you change input using the monitor’s button.</li><li>Alternatively, you can go to Settings &gt; Connection &gt; External Device Manager &gt; Auto Source Switch+ and set that on so the monitor switches inputs when you turn your PC on or plug your MacBook in. I’ll be using that since the button on the back of my monitor no longer seems to work.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ankeufGCAcb8VfDV-n0W0A.png" /></figure><ul><li>There is a microphone on the bottom used for voice assistant commands (either Bixby or Alexa) with a physical mute switch. But you can’t use it on your connected computer. The removable camera has its own microphone that appears as an audio device.</li><li>The removable camera attaches magnetically and connects to the monitor through a special input with a provided USB-C adapter, so I think it’s possible to connect an additional USB-C device, but I haven’t tested it yet. I appreciate that this is removable and potentially upgradeable.</li><li>You can’t use a monitor light with the camera attached to the back. I got the <a href="https://www.benq.com/en-au/lighting/monitor-light/screenbar-halo.html">BenQ ScreenBar Halo</a> a few months ago, and the backlight makes using my PC at night much more comfortable for the eyes.</li><li>The monitor light seems to affect the display’s light sensor, making auto brightness make the monitor too bright. I can use this as an indirect brightness control for the monitor by changing my monitor light’s brightness.</li></ul><h3>I really hope Samsung fixes the software</h3><p>I seriously don’t understand why Samsung’s Smart Calibration is so broken. They came so close to making a Studio Display competitor that could be recommended. While drafting this post, I wrote, “So far, I don’t regret purchasing this monitor.” I may be starting to experience buyer’s remorse after this experience.</p><p>I think I can put up with the calibration quirk by avoiding the Home screen and using ‘Auto Source Switch+’ to switch inputs. (<strong>Update 2023-09-24:</strong> I can put up with this much easier by keeping the ‘Picture Mode’ on ‘Eco’ and toggling HDR on macOS when I need to.) However, I got this at a 20% discount on the retail price, or a whopping 40% cheaper than the Studio Display with the height-adjustable stand. And I don’t have to figure out how to install Boot Camp drivers for the Studio Display.</p><p>Hopefully, Samsung can issue a firmware upgrade that fixes the text sharpness, Smart Calibration, and general software issues I outlined here to make using this monitor not painful.</p><p>If you get this monitor yourself, feel free to have a chat with me! I’m <a href="https://indieweb.social/@notsidney">@notsidney@indieweb.social</a> on Mastodon or <a href="https://sidney.me/?utm_source=Medium&amp;utm_campaign=Samsung%E2%80%99s%20ViewFinity%20S9%2027%E2%80%B3%205K%20could%20be%20a%20great%20monitor%E2%80%94if%20it%20had%20reliable%20software&amp;utm_medium=Blog#contact">shoot me an email</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2fed3667cc8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Add Hotlink Protection to Your Web Fonts With Netlify Edge Functions and Deno]]></title>
            <link>https://medium.com/better-programming/how-to-add-hotlink-protection-to-your-web-fonts-with-netlify-edge-functions-and-deno-2fd97f348743?source=rss-4eb0515be764------2</link>
            <guid isPermaLink="false">https://medium.com/p/2fd97f348743</guid>
            <category><![CDATA[deno]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[netlify]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Sidney Alcantara]]></dc:creator>
            <pubDate>Thu, 04 May 2023 15:49:12 GMT</pubDate>
            <atom:updated>2023-05-04T15:49:12.296Z</atom:updated>
            <content:encoded><![CDATA[<h4>Because the people crafting quality typefaces deserve to be paid</h4><figure><img alt="WOFF2 file with a lock icon superimposed on the top-right" src="https://cdn-images-1.medium.com/max/1024/1*JKXkLHah4yLJbQxctkIGZw.jpeg" /></figure><p>While working on my redesigned personal website <a href="https://sidney.me/?utm_source=Medium&amp;utm_medium=Blog&amp;utm_campaign=How+to+add+hotlink+protection+to+your+web+fonts+with+Netlify+Edge+Functions+and%C2%A0Deno">sidney.me</a>, I chose to use a paid font, <a href="https://klim.co.nz/">Klim Type Foundry</a>’s <a href="https://klim.co.nz/retail-fonts/the-future-mono/"><em>The Future Mono</em></a>. It was my first time using a paid web font for a project, so I read (skimmed) the <a href="https://klim.co.nz/licences/web-fonts/">web font licence agreement</a>. Curiously, it included this clause (emphasis mine):</p><blockquote><strong><em>3d. Web Fonts File Protection<br></em></strong><em>You agree to use reasonable measures to ensure the Web Fonts are available only for the process of styling text on Your Website. At a minimum, and by way of illustration not limitation, reasonable measures include a.) preventing unlicensed third-party access, i.e. </em><strong><em>hotlinking</em></strong><em> and b.) </em><strong><em>not allowing direct download</em></strong><em> of the Fonts unrelated to the process of styling text for Your Website.</em></blockquote><p>In simpler terms, you must make sure you deploy the web font files so that no one can paste the URL in their browser to download it and that other sites can’t use the web font by linking to that URL.</p><p>I’ve been using Netlify for years to host my websites, so I searched for a way to do it natively. I came across this <a href="https://answers.netlify.com/t/hotlink-protection-for-web-fonts/2025">Netlify support forum thread</a> that unfortunately concluded with, “We don’t really have a solution for this particular problem yet, but it’s one that might be covered in the future. Stay tuned!” In March 2020.</p><p>The replies did have some suggestions, like:</p><ul><li>using Netlify Functions (overkill for this use case and potentially slow) to check the <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer">Referer header</a> in the HTTP request,</li><li>using a more performant Cloudflare Worker to <a href="https://developers.cloudflare.com/workers/examples/hot-link-protection">do that check</a> (but I don’t want to sign up for another service), or</li><li>serving the fonts from an S3 bucket or separate Apache server (breaking the whole point of the serverless stack) and using .htaccess.</li></ul><p>Since the last reply on that thread, Netlify has released <a href="https://www.netlify.com/blog/announcing-serverless-compute-with-edge-functions/">Edge Functions</a>. They run JavaScript or TypeScript code using <a href="https://deno.land/">Deno</a>, the hot new JS runtime meant to succeed Node, on CDN servers that are much closer to users than where typical serverless functions run. In other words: fast, fast, fast.</p><h3>The code</h3><p>Setting up Edge Functions on your Netlify project is incredibly simple. Start by creating a netlify/edge-functions directory and making a JS or TS file in that. Then, export a default function for Netlify to run. Let’s call it hotlink-protection.ts and return “Hello world” as a basic response:</p><pre>// netlify/edge-functions/hotlink-protection.ts<br><br>export default () =&gt; new Response(&quot;Hello world&quot;);</pre><p>Then, we need to specify which routes this function should run on. In this case, we can limit it to font files. I only serve fonts in the WOFF2 format, as <a href="https://docs.netlify.com/edge-functions/get-started/">browser support is excellent</a>. In the root of your project, create a file called netlify.toml, and set the path and the function name to be the same as the file name you chose.</p><pre># netlify.toml<br><br>[[edge_functions]]<br>  path = &quot;/*.woff2&quot;<br>  function = &quot;hotlink-protection&quot;</pre><p>While we’re here, let’s add a cache header for our fonts. They’re immutable, static assets that won’t change: we need to specify that to the browser.</p><pre># netlify.toml<br><br>[[headers]]<br>  for = &quot;/*.woff2&quot;<br>  [headers.values]<br>    Cache-Control = &quot;public, max-age=31536000, immutable&quot;</pre><p>Now let’s get it working. We’re effectively creating middleware that modifies and returns the response — either the font file itself or a 403 Forbidden HTTP error. Edge Functions receive two arguments, request and context. We’ll need to await the response (the font data) using context, so let’s change it to an async function. Here’s the definition in TypeScript:</p><pre>import type { Context } from &quot;&lt;https://edge.netlify.com&gt;&quot;;<br><br>export default async (<br>  request: Request,<br>  context: Context<br>): Promise&lt;Response&gt; =&gt; {<br>  // ...<br>};</pre><p>Then, let’s get the Referer header from request and use a regular expression to test that it’s coming from our website. If there’s no Referer or it doesn’t match, return a 403.</p><pre>import type { Context } from &quot;&lt;https://edge.netlify.com&gt;&quot;;<br><br>export default async (<br>  request: Request,<br>  context: Context<br>): Promise&lt;Response&gt; =&gt; {<br>  const referer = request.headers.get(&quot;referer&quot;);<br>  <br>  const regex = /^https?:\/\/(.*\.)?sidney\.me(\/.*)?$/;<br>  <br>  if (!referer || !regex.test(referer)) {<br>    return new Response(&quot;Forbidden&quot;, { status: 403 });<br>  }<br>  <br>  // ...<br>};</pre><p>That regex looks gnarly, but most of its special characters are used to escape the special characters / and ., which are also part of URLs. It matches sidney.me and any subdomains and directories, so make sure to change those characters (excluding the \. in between) when copy-pasting this snippet. For an explanation of the regex, check it out on <a href="https://regex101.com/r/Vs3fbH/1">regex101.com</a>. The top-right panel highlights what each character does.</p><p>Then to return the font file as-is, we can use await context.next() to get the next HTTP response. Here’s the <strong>final code</strong>:</p><pre>// netlify/edge-functions/hotlink-protection.ts<br><br>import type { Context } from &quot;&lt;https://edge.netlify.com&gt;&quot;;<br><br>export default async (<br>  request: Request,<br>  context: Context<br>): Promise&lt;Response&gt; =&gt; {<br>  const referer = request.headers.get(&quot;referer&quot;);<br>  <br>  const regex = /^https?:\/\/(.*\.)?sidney\.me(\/.*)?$/;<br>  <br>  if (!referer || !regex.test(referer)) {<br>    return new Response(&quot;Forbidden&quot;, { status: 403 });<br>  }<br>  <br>  const response = await context.next();<br>  return response;<br>};</pre><p>Now you can commit your changes and deploy your project to Netlify as usual. Once deployed, navigating to the font URL should display “Forbidden”.</p><p>Note: if you want your fonts to work in <strong>branch deploys</strong>, you’ll need a separate check for your Netlify domain name. In my case, it’s sidney-me.netlify.app and the branch name and -- is prefixed: branch-name--sidney-me.netlify.app. Here’s my regex:</p><pre>const prodRegex = /^https?:\/\/(.*\.)?sidney\.me(\/.*)?$/;<br>const devRegex = /^https?:\/\/(.*\--)?sidney-me\.netlify\.app(\/.*)?$/;<br><br>if (<br>  !referer ||<br>  !(prodRegex.test(referer) || devRegex.test(referer))<br>) {<br>  return new Response(&quot;Forbidden&quot;, { status: 403 });<br>}</pre><h3>Subset your font files for additional protection and a performance boost</h3><p>Of course, this protection itself isn’t bulletproof. Someone can easily spoof the Referer header or use DevTools to download the font files. The font data must be sent to users for their browsers to display the font. Once it’s on the user’s machine, there will always be a way for them to extract the font file.</p><p>One way to mitigate this is to subset the font files only to include the characters you use on your site, excluding characters for other languages or writing systems. Also, fonts typically have <a href="https://www.adobe.com/products/type/opentype.html">OpenType features</a> like <a href="https://fonts.google.com/knowledge/introducing_type/introducing_alternate_glyphs">alternate characters</a>, primarily for stylistic purposes, and we can follow <a href="https://github.com/google/fonts/issues/1582#issuecomment-394168818">Google Fonts’ example</a> in removing them from the files we serve.</p><p>For my site, I used pyftsubset from FontTools to subset. Follow <a href="https://github.com/fonttools/fonttools#installation">these instructions</a> to install (note that you’ll need Python installed too). Here’s an example:</p><pre>pyftsubset the-future-mono-regular.woff2 \<br>--output-file=&quot;the-future-mono-regular--subset.woff2&quot; \<br>--flavor=woff2 \<br>--unicodes=&quot;U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD&quot;</pre><p>This command subsets to the Latin character set and some punctuation symbols for a total of 385 characters. It also removes discretionary OpenType features as described in the <a href="https://fonttools.readthedocs.io/en/latest/subset/index.html#glyph-set-expansion">subset docs</a>. In my case, this more than halved the size of the font file, from 30.1 kB to 14.7 kB. This can add up and improve your Lighthouse performance scores.</p><p>Then specify the Unicode range in your CSS to help the browser use an appropriate fallback font if necessary.</p><pre>@font-face {<br>	font-family: &quot;The Future Mono&quot;;<br>	src: url(https://medium.com/&quot;the-future-mono-regular--subset.woff2&quot;) format(&quot;woff2&quot;);<br>	font-display: swap;<br>	font-weight: 400;<br>	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,<br>		U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,<br>		U+FEFF, U+FFFD;<br>}</pre><h3>Serve fonts from a different project</h3><p>If you’re publishing your site’s code as open-source, make sure <em>not</em> to include your font files in that repo. You don’t want to be part of the problem of GitHub becoming the <a href="https://pixelambacht.nl/2017/github-font-piracy/">web’s largest font piracy site</a>.</p><ol><li>Add your font files to your .gitignore file with *.woff2.</li><li>If you have already publicly published the repo, permanently remove the files from history (<a href="https://pixelambacht.nl/2017/github-font-piracy/#fixing-the-problem">instructions</a>).</li><li>Then, deploy your font files in a new <strong>private repository</strong> as a separate Netlify project.</li><li>You can keep the files in your <strong>local repository</strong> for testing and leave your CSS unchanged, pointing to files in the same domain name. Then use a <a href="https://docs.netlify.com/routing/redirects/rewrites-proxies/">rewrite</a> to point to the other project’s domain name like so:</li></ol><pre># netlify.toml<br><br>[[redirects]]<br>  from = &quot;/fonts/the-future-mono-*&quot;<br>  to = &quot;https://your-project.netlify.app/the-future-mono/the-future-mono-:splat&quot;<br>  status = 200<br>  force = true</pre><p><strong>Important:</strong> you must have the hotlink protection Edge Function on both projects for the matching URLs. If someone goes to your primary URL to get the font, the Edge Function on the private project will get the correct Referer header and let anyone download or hotlink it.</p><p>You can copy the same function into your primary repository and set it to the appropriate paths in netlify.toml:</p><pre># netlify.toml<br><br>[[edge_functions]]<br>  path = &quot;/fonts/the-future-mono-*&quot;<br>  function = &quot;hotlink-protection&quot;</pre><p>Now you have the best of both worlds: the font is available for local development while protected when deployed.</p><h3>Additional resources</h3><ul><li>Here are some <a href="https://blog.typekit.com/2009/07/21/serving-and-protecting-fonts-on-the-web/">suggestions from TypeKit</a> on additional protections for web fonts.</li><li>Alternatively, you can use <a href="https://github.com/zachleat/glyphhanger">glyphhanger</a> to subset web fonts based on what characters are used on your website.</li><li>You can see which characters are in a Unicode range and do maths on ranges using <a href="https://www.zachleat.com/unicode-range-interchange/">Unicode Range Interchange</a>.</li><li>You can see which OpenType features and all the characters are included in your font file using <a href="https://wakamaifondue.com/">Wakamai Fondue</a>.</li><li>If you’re curious about web font performance, Zach Leatherman wrote an <a href="https://www.zachleat.com/web/css-tricks-web-fonts/">excellent guide</a> on its implementation on CSS-Tricks.</li></ul><p>And, of course, check out my personal site, <a href="https://sidney.me/?utm_source=Medium&amp;utm_medium=Blog&amp;utm_campaign=How+to+add+hotlink+protection+to+your+web+fonts+with+Netlify+Edge+Functions+and%C2%A0Deno">sidney.me</a>, and let me know what you think on Mastodon, <a href="https://indieweb.social/@notsidney">@notsidney@indieweb.social</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2fd97f348743" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/how-to-add-hotlink-protection-to-your-web-fonts-with-netlify-edge-functions-and-deno-2fd97f348743">How to Add Hotlink Protection to Your Web Fonts With Netlify Edge Functions and Deno</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How and Why You Should Store React UI State in the URL]]></title>
            <link>https://medium.com/better-programming/how-and-why-you-should-store-react-ui-state-in-the-url-f2013a204cb2?source=rss-4eb0515be764------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2013a204cb2</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Sidney Alcantara]]></dc:creator>
            <pubDate>Thu, 09 Dec 2021 17:22:19 GMT</pubDate>
            <atom:updated>2023-03-23T01:47:33.538Z</atom:updated>
            <content:encoded><![CDATA[<h4>Deep linking in React, as simple as useState</h4><figure><img alt="Diagram showing React state being reflected in the rendered UI as a modal opens, and in the URL as a hash parameter" src="https://cdn-images-1.medium.com/max/802/1*sziKHspzSQXVx5U4DQm2rQ@2x.png" /><figcaption>Photo by the author.</figcaption></figure><p>Have you ever used a complex web app with many features, modal windows, or side panels? Where you get to the perfect state with just the right information on the screen after a few clicks through different screens, but then you accidentally close the tab? (Or Windows decides to update?)</p><p>It would be great if there were a way to return to this state without going through the same tedious process. Or be able to share that state so a teammate can work on the same thing you are.</p><p>This problem could be solved with deep linking, which is used today in mobile apps to open the app to a specific page or UI state. But why does this not exist in many web apps?</p><p><a href="#694f">Click here to skip to the solution and code snippets.</a></p><h3>Bring back deep linking on the web</h3><p>The emergence of single-page applications (SPAs) has allowed us to craft new user experiences that are instantly interactive on the web. By doing more on the client side using JavaScript, we can respond to user events immediately, from opening custom dialog windows to live text editors like Google Docs.</p><p>Traditional server-rendered websites send a request to get a new HTML page every single time. An excellent example is Google, which sends a request to its servers with the user’s search query in the URL: <a href="https://www.google.com/search?q=your+query+here">https://www.google.com/search?</a><a href="https://www.google.com/search?q=your+query+here"><strong>q=your+query+here</strong></a>. What’s great about this model is that if I filter by results from the past week, I can share the same search query by simply sharing the URL: <a href="https://www.google.com/search?q=react+js&amp;tbs=qdr:w">https://www.google.com/search?q=react+js&amp;</a><a href="https://www.google.com/search?q=react+js&amp;tbs=qdr:w"><strong>tbs=qdr:w</strong></a>. And this paradigm is entirely natural for web users — sharing links has been part of the worldwide web ever since it was invented!</p><figure><img alt="Annotated screenshot of a Google search page. The search term input is highlighted and an arrow points to the corresponding part in the URL that stores the search term. The results are filtered to only show those from the past week, and another arrow points to the corresponding part in the URL that stores this data." src="https://cdn-images-1.medium.com/max/680/1*BQq9yGZ_9RxrNsM4Youg3g@2x.png" /></figure><p>When SPAs came along, we didn’t need to store this data in the URL since we no longer need to make a server request to change what is displayed on the screen (hence <em>single-page</em>). But this made it easy to lose a unique experience of the web, the shareable link.</p><p>Desktop and mobile apps never really had a standardized way to link to specific parts of the app, and modern implementations of deep linking rely on URLs on the web. So when we build web apps that function more like native apps, why would we throw away the deep linking functionality of URLs that we’ve had for decades?</p><h3>Dead-Simple Deep Linking</h3><p>When building a web app that has multiple pages, the minimum you should do is change the URL when a different page is displayed, such as /login and /home. In the React ecosystem, <a href="https://reactrouter.com/">React Router</a> is perfect for client-side routing like this, and <a href="https://nextjs.org/">Next.js</a> is an excellent fully-featured React framework that also supports server-side rendering.</p><p>But I’m talking about deep linking, right down to the UI state after a few clicks and keyboard inputs. This is a killer feature for productivity-focused web apps, as it allows users to return right to the exact spot they were at even after closing the app or sharing it with someone else so they can start work without any friction.</p><figure><img alt="Screen recording of a modal window being opened, causing the URL to update to add `#modal=”webhooks”`, which is the internal state that triggers the modal to open." src="https://cdn-images-1.medium.com/max/800/1*trWHeF3QtAypmyogD7lgLQ@2x.gif" /><figcaption>Notice how the URL updates to add #modal=”webhooks” as the modal opens.</figcaption></figure><p>You could use npm packages like <a href="https://www.npmjs.com/package/query-string">query-string</a> and write a basic React Hook to sync URL query parameters to your state, and there are <a href="https://medium.com/swlh/using-react-hooks-to-sync-your-component-state-with-the-url-query-string-81ccdfcb174f">plenty</a> of <a href="https://www.npmjs.com/package/use-query-params">tutorials</a> for <a href="https://dev.to/gaels/an-alternative-to-handle-global-state-in-react-the-url--3753">this</a>, but there’s a more straightforward solution.</p><p>While exploring modern state management libraries for React for an architecture rewrite of our React app <a href="https://rowy.io/?utm_source=medium.com&amp;utm_medium=blog&amp;utm_campaign=How%20and%20why%20you%20should%20store%20React%20UI%20state%20in%20the%20URL">Rowy</a>, I came across <a href="https://jotai.org/">Jotai</a>, a tiny atom-based state library inspired by the React team’s <a href="https://recoiljs.org/">Recoil</a> library.</p><p>The main benefit of this model is that state atoms are declared independent from the component hierarchy and can be manipulated from anywhere in the app. This solves the issue with React Context causing unnecessary re-renders, which I <a href="https://betterprogramming.pub/how-to-useref-to-fix-react-performance-issues-4d92a8120c09">previously worked around with </a><a href="https://betterprogramming.pub/how-to-useref-to-fix-react-performance-issues-4d92a8120c09">useRef</a>. You can read more about the atomic state concept in <a href="https://jotai.org/docs/basics/concepts">Jotai’s docs</a> and a more technical version in <a href="https://recoiljs.org/docs/introduction/motivation">Recoil’s</a>.</p><h3>The Code</h3><p>Jotai has a type of atom called <a href="https://jotai.org/docs/api/utils#atom-with-hash">atomWithHash</a>, which syncs the state atom to the URL hash.</p><p>Suppose we want a modal’s open state stored in the URL. Let’s start by creating an atom:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8007a37626b0d38338c93a0ce3389477/href">https://medium.com/media/8007a37626b0d38338c93a0ce3389477/href</a></iframe><p>Then in the modal component itself, we can use this atom just like useState:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c3af1de7868c483a9a229e230c709baa/href">https://medium.com/media/c3af1de7868c483a9a229e230c709baa/href</a></iframe><p>And here’s how it looks:</p><figure><img alt="Screen recording of a modal being opened, causing the URL to update to reflect the UI state, with `#modalOpen=true` being appeneded. When the modal is closed, it is replaced with `modalOpen=false`." src="https://cdn-images-1.medium.com/max/800/1*eDQ6gdfnKnk4JmuMKdLKNg@2x.gif" /></figure><p>And that’s it! It’s that simple.</p><p>What’s fantastic about Jotai’s atomWithHash is that it can store any data that useState can, and it automatically stringifies objects to be stored in the URL. So I can store a more complex state in the URL, making it sharable.</p><p>In <a href="https://rowy.io/?utm_source=medium.com&amp;utm_medium=blog&amp;utm_campaign=How%20and%20why%20you%20should%20store%20React%20UI%20state%20in%20the%20URL">Rowy</a>, we used this technique to implement a UI for cloud logs. We’re building an open-source platform that makes backend development easier and eliminates friction for common workflows. So, reducing friction for sharing logs was perfect for us. You can see this in action on our demo, where I can link you to a specific deploy log:</p><pre><a href="https://demo.rowy.io/table/roadmap#modal=%22cloudLogs%22&amp;cloudLogFilters=%7B%22type%22%3A%22build%22%2C%22timeRange%22%3A%7B%22type%22%3A%22days%22%2C%22value%22%3A7%7D%2C%22buildLogExpanded%22%3A1">https://demo.rowy.io/table/roadmap#modal=&quot;cloudLogs&quot;&amp;cloudLogFilters={&quot;type&quot;%3A&quot;build&quot;%2C&quot;timeRange&quot;%3A{&quot;type&quot;%3A&quot;days&quot;%2C&quot;value&quot;%3A7}%2C&quot;buildLogExpanded&quot;%3A1</a>}</pre><figure><img alt="Screen recording of the deep link opening the Rowy demo web app to the cloud logs modal being open." src="https://cdn-images-1.medium.com/max/1024/1*ojst8ZL97umsmUpD2dbILQ@2x.gif" /></figure><p>Decoding the URL component reveals the exact state used in React:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f68d8b14b4578ab8bc33a6decc380fc8/href">https://medium.com/media/f68d8b14b4578ab8bc33a6decc380fc8/href</a></iframe><p>A side effect of atomWithHash is that it pushes the state to the browser history by default, so the user can click the back and forward buttons to go between UI states.</p><figure><img alt="Screen recording of the user clicking the back button in the browser repeatedly, causing the UI state to change with modals being opened and closed." src="https://cdn-images-1.medium.com/max/1024/1*8m0sxOyuwQcjztYxlR3Nmw@2x.gif" /></figure><p>This behavior is optional and can be disabled using the <a href="https://jotai.org/docs/api/utils#atom-with-hash">replaceState option</a>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dbec445a242074dbba13eb744ed36e61/href">https://medium.com/media/dbec445a242074dbba13eb744ed36e61/href</a></iframe><p>Thanks for reading! I hope this has convinced you to expose more of your UI state in the URL, making it easily shareable and reducing friction for your users — especially since it’s effortless to implement.</p><pre><strong>Want to Connect With the Author?</strong></pre><pre>You can follow me on Mastodon <a href="https://indieweb.social/@notsidney">@notsidney@indieweb.social</a> for more articles and threads about front-end engineering.</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2013a204cb2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/how-and-why-you-should-store-react-ui-state-in-the-url-f2013a204cb2">How and Why You Should Store React UI State in the URL</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UI design trends of today and how to apply them in your apps]]></title>
            <link>https://medium.com/design-bootcamp/ui-design-trends-of-today-and-how-to-apply-them-in-your-apps-aa6cd66f9ccf?source=rss-4eb0515be764------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa6cd66f9ccf</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ui]]></category>
            <dc:creator><![CDATA[Sidney Alcantara]]></dc:creator>
            <pubDate>Tue, 23 Nov 2021 03:23:25 GMT</pubDate>
            <atom:updated>2021-12-07T13:38:06.131Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Preview of article content: Windows 11 right-click menu, toggle button, design, Windows 11 dialog, outline icons, toggle designs in iOS and Android, Segoe UI Variable optical sizes, and Material You wallpaper-based personalization." src="https://cdn-images-1.medium.com/max/802/1*m3Fp0NIBSiWm_ea0P7Xq6A@2x.png" /></figure><h4>From outline icons to switch designs, the UIs of major OSes are all starting to look similar.</h4><p>If you’re like me, you get excited by major new software releases and enjoy reading roundups of <a href="https://www.macstories.net/stories/ios-and-ipados-15-the-macstories-review/">every new feature</a> and <a href="https://www.androidpolice.com/tag/series_android_12_feature_spotlights/">UI tweak</a>, comparing them to the previous version. With the release of Windows 11, Android 12, and iOS 15 this year (and last year’s macOS Big Sur), I’ve noticed quite a few similarities in the designs of the major operating systems. And in some cases, what appears to be convergence. These range from the use of outline icons to variable UI fonts and inset elements.</p><p>These similarities show that designers are coming up with new standards for digital user interfaces and offer hints as to where UIs are headed over the next decade and how the thinking behind UI design is shifting.</p><p>I’m a front-end engineer at <a href="https://rowy.io/?utm_source=medium.com&amp;utm_medium=blog&amp;utm_campaign=UI%20design%20trends%20of%20today%20and%20how%20to%20apply%20them%20in%20your%20apps">Rowy</a>, and I recently redesigned its UI with the primary goal of improving the information-dense desktop experience. I also wanted to move away from the 2015-era, mobile-first Material Design we were following to something more modern and better complements the UIs we see today. The trends I noticed helped inform this redesign and will hopefully assist you when designing your apps.</p><ul><li><a href="#5e30">Outline icons by default, complementing text</a></li><li><a href="#a9c5">Personalization based on the wallpaper</a></li><li><a href="#a9cf">Rounded corners are harmonious</a></li><li><a href="#545d">Variable UI fonts with optical sizes</a></li><li><a href="#7864">Focus on content</a></li><li><a href="#9e4b">Inset everything</a></li><li><a href="#e19e">Differentiation beyond color</a></li><li><a href="#679d">And a standard switch design</a></li></ul><h3>Outline icons by default, complementing text</h3><p>Icons play a significant part in UIs and have proven to be emblematic of the trends in UI design over the past few decades. When graphical user interfaces were novel, icons mimicked real-world objects to as great detail as possible within the limitations of display technology; they were made to bridge the user experience from the physical to the digital. This can be seen from Susan Kare’s icons for the original Macintosh to Microsoft’s photorealistic set in Windows Vista and 7.</p><p>When UIs moved from this skeuomorphic style to a “flat” style with Windows 8 and iOS 7, icon design also shifted to a monochromatic, outline style. And with the release of Android 12 and Google’s new version of Material Design called Material You (or Material Design 3), all major OSes now use this style.</p><figure><img alt="Icon designs of Segoe Fluent Icons, SF Symbols, and Material Icons. Icons are: account, heart, share, edit, reload, and search." src="https://cdn-images-1.medium.com/max/1024/1*2Acv8C2oKco-YdrJnvC3pg.png" /></figure><p>But why does everyone use this style for icons? Designers aren’t just investing more into creating cohesive and complementary icon sets for design systems — designers are making icons just like typographers make type. This style recognizes how integral icons have become to the user experience, as important as text itself.</p><blockquote>Icons are designed with similar considerations to typefaces, and often appear alongside text.<br><em>— </em><a href="https://m3.material.io/styles/typography/applying-scaling-type#d00fccbc-719a-4aa6-b663-e0e1a9904e76"><em>Material Design 3 guidelines</em></a></blockquote><blockquote>Iconography [is] designed to integrate seamlessly with San Francisco, the system font.<br><em>— </em><a href="https://developer.apple.com/sf-symbols/"><em>Apple Human Interface Guidelines</em></a></blockquote><p>Apple’s SF Symbols is the prime example of this: it’s designed in the <a href="https://developer.apple.com/design/human-interface-guidelines/sf-symbols/overview/#weights-and-scales">same nine weights</a> as their system font and aligns with the text’s cap height. This also means icons can respect the user’s accessibility settings for bolder UI text.</p><figure><img alt="From Apple: A diagram showing the square and arrow up symbol in all 27 weights and scales." src="https://cdn-images-1.medium.com/max/1024/1*9QNmq2e-DI0OT5FjhGtMtQ.png" /><figcaption>Apple’s SF Symbols icon set is designed with the same nine weights as their system font. Source: <a href="https://developer.apple.com/design/human-interface-guidelines/sf-symbols/overview/#weights-and-scales">Apple</a></figcaption></figure><figure><img alt="From Apple: 3 images of the plus circle symbol followed by the capitalized word add. In each, the word is the same size, but the symbol is a different size: small, medium, and large. 2 parallel horizontal lines appear across all three images. The top line shows the height of the capital letter A and the bottom line is the baseline under the word. Small: circle touches both lines. Medium: circle extends slightly above and below the lines. Large: vertical line of the plus sign almost touches both." src="https://cdn-images-1.medium.com/max/1024/1*w40S3sL6WONSzvNn2tNi0A.png" /><figcaption>They also align to the system font’s cap height to better complement text. Source: <a href="https://developer.apple.com/design/human-interface-guidelines/sf-symbols/overview/#weights-and-scales">Apple</a></figcaption></figure><p>Uber’s design team <a href="https://medium.com/uber-design/where-to-the-journey-to-ubers-iconography-bf8efd2be446">similarly made icons</a> to complement their UI font Uber Move, set in three weights for different degrees of emphasis.</p><figure><img alt="Uber Move icon set in light, medium, and bold weights." src="https://cdn-images-1.medium.com/max/1024/1*n_-LaM0_V_oUpln4sAxR1g.png" /><figcaption>Source: <a href="https://medium.com/uber-design/where-to-the-journey-to-ubers-iconography-bf8efd2be446">Uber</a></figcaption></figure><h4>Icons are designed to mimic our writing systems</h4><p>So it becomes clear why system icons are monochromatic and drawn with outlines: instead of mimicking physical objects, they mimic our writing systems. Modern alphabets, Latin in particular, are fundamentally composed of lines instead of filled shapes. They made a similar transition from pictographs that resemble physical objects (like Egyptian hieroglyphs) to more abstract representations of physical objects. For example, you don’t need to draw a bird to talk about a bird; you just write a set of letters or symbols that mean ‘bird’.</p><p>By designing icons that resemble text, designers recognize that icons are a vital medium to communicate information to users. Icons can break language barriers, while text remains essential for those unfamiliar with icons. And designing both to appear similar can reduce cognitive load when reading icons alongside text.</p><p>Another benefit of defaulting to outline icons is that filled icons can now be used to represent state or emphasis, like bold text. For instance, “active states are represented with filled icons” in <a href="https://m3.material.io/components/navigation-bar/overview#5eebed09-2454-4630-ab41-3515acccbba9">Material Design 3</a> and Apple suggests to “use the fill variant to indicate selection” or “to give a symbol more visual emphasis” in their <a href="https://developer.apple.com/design/human-interface-guidelines/sf-symbols/overview/#variants">Human Interface Guidelines</a>. Twitter’s 2021 redesign takes this a step further, with the active page being differentiated only by a filled icon and bold text, without any color change.</p><figure><img alt="Twitter navigation UI, with the Home page active. The home icon is filled and the text is bold, while other icons are outlined and in regular font weight." src="https://cdn-images-1.medium.com/max/680/1*R-4H_blvzSy7qulD4rRenA@2x.png" /><figcaption>Twitter only uses filled icons and bold text to differentiate the current page. The jury is still out on whether this is accessible enough.</figcaption></figure><p>Predicting the future is a fool’s errand, but looking at the history of writing systems, they’ve seen convergence on what symbols represent what sounds and ideas: the symbol ‘a’ always means ‘a’ and the letters ‘ant’ mean the insect named ant. There remain variations in how these symbols are drawn (the capital A can have serifs or not) but they all fundamentally look the same across different typefaces.</p><p>Iconography seems to be heading this way too — the “add folder” icon above has the same basic design across Apple’s, Google’s, and Microsoft’s icon sets: an outline of a closed Manila folder with a ‘+’ symbol. As icons become more commonplace in GUIs, people tend to agree on what symbols represent what ideas and differences become purely stylistic, just like text.</p><figure><img alt="Add folder icon in Segoe Fluent Icons, SF Symbols, and Material Icons." src="https://cdn-images-1.medium.com/max/680/1*BZuy2W9WqQiXD26P4S11NQ@2x.png" /></figure><p><strong>How can I achieve this?</strong> When using icons in your apps, you should use the icon set designed with the font you’re using: this is trivial if you’re using system fonts, which now all have system icon fonts. But if you’re using another UI font, there probably isn’t an icon set designed specifically for that font. Using an outline icon set is sufficient, such as the open-source <a href="https://feathericons.com/">Feather icons</a> or <a href="https://iconic.app/">Iconic.app</a>. And if you were using filled Material Icons like us, you can easily switch to the <a href="http://fonts.google.com/icons">outline style</a>. (It seems Google has now made this style the default as part of Material Design 3.)</p><h3>Personalization based on the wallpaper</h3><p>Personalization is becoming an increasingly important element of UI design. While customization has been present since the ’90s with custom wallpapers and themes, designers are now finding more ways to personalize UIs throughout the system, primarily from the user-selected wallpaper. Google’s <a href="https://material.io/blog/announcing-material-you">Material Design blog</a> says it best: “Users customize their desktops in the physical and digital worlds with images that are personal and provide comfort and joy.” The wallpaper is the first thing a user sees and serves as a backdrop for the UI. So it’s a no-brainer to adapt the rest of the UI to this element.</p><figure><img alt="From the left: Windows 11 menu with translucent background that blurs the wallpaper, macOS app sidebar with similar translucent background, iOS control center with similar translucent background, and Material You app design with color palette generated from wallpaper colors." src="https://cdn-images-1.medium.com/max/680/1*esVn4Z6JVFzGJzoWE__vlQ@2x.png" /></figure><p>The technique of blending the wallpaper into the UI has been around for a while, from the semi-transparent dock and menus in Mac OS X’s Aqua interface to the translucent window title bars in Windows Vista and 7’s Aero Glass theme. iOS 7 famously brought blurred backgrounds to many parts of its UI, with entire screens like the Notification Center and Control Center using a blurred version of the user’s wallpaper.</p><p>More recently, the wallpaper has started to influence almost the entirety of the UI. When Apple introduced dark mode in macOS Mojave, they incorporated a tint in window backgrounds based on the wallpaper, called Desktop Tinting. According to the <a href="https://developer.apple.com/design/human-interface-guidelines/macos/visual-design/dark-mode/#darkmode-colors">Human Interface Guidelines</a>, it “helps windows blend more harmoniously with their surrounding content.”</p><figure><img alt="Two screenshots, split vertically, of the System Preferences window in dark mode in macOS Mojave, with different wallpapers behind. The left half uses a wallpaper with dark blue tones. The right half uses a wallpaper with lighter orange tones. The window has a different background color that’s slightly tinted to match the colors of the wallpapers." src="https://cdn-images-1.medium.com/max/680/1*TcbYqkPxkhU-iBCbaQ1t7w@2x.jpeg" /><figcaption>Source: <a href="https://developer.apple.com/design/human-interface-guidelines/macos/visual-design/dark-mode/#darkmode-colors">Apple</a></figcaption></figure><p>They later expanded on this in their major redesign in Big Sur by applying Desktop Tinting to light mode as well:</p><figure><img alt="Two screenshots, split vertically, of the System Preferences window in light mode in macOS Monterey. The left half has Desktop Tinting enabled and the right has it disabled." src="https://cdn-images-1.medium.com/max/680/1*O236rrhddMjcUtwjdd0bXg@2x.jpeg" /><figcaption>On the left, the window background is tinted purple to match the wallpaper. On the right, tinting is disabled, and the window background is pure gray.</figcaption></figure><p>Windows 11 introduces a similar element with its Mica material, which their <a href="https://docs.microsoft.com/en-us/windows/apps/design/style/mica">design guidelines</a> describe as “an opaque material that incorporates the user’s theme and desktop wallpaper to create its highly personalized appearance.” It also uses this tint as a signifier for the currently active window.</p><p>Taking it to the next level is Material You in Android 12, which tints the app’s background, the bright accent colors for buttons and other controls, and down to the more neutral text colors. An entire color palette is generated from each user’s unique wallpaper.</p><p>It’s a critical element of their new design philosophy, <a href="https://www.youtube.com/watch?v=Mlk888FiI8A&amp;t=4410s">“Instead of form following function, what if form followed feeling?”</a> It’s a radical rejection of the status quo in UI design, which seeks a “universal” design with the most technically superior interface to fulfill user needs. It will be interesting to see if others follow suit in this philosophy.</p><figure><img alt="Multiple phones arranged in a grid with different wallpapers and different UI color palettes derived from the wallpapers." src="https://cdn-images-1.medium.com/max/640/1*HmbuHfJAZ0CmHVzuJQ4n3g@2x.jpeg" /><figcaption>Source: <a href="https://material.io/blog/announcing-material-you">Google</a></figcaption></figure><h4>Material Design built a color system</h4><p>What the Material Design team left out of their announcements is <em>how</em> they achieved this, especially since <a href="https://youtu.be/rLKtIGY2Mgc?t=319">they say</a> they “had to find a way for any color combination to also have accessible contrast […] without testing each one.” Diving into the recently-published <a href="https://github.com/material-foundation/material-color-utilities">Material color utilities repo on GitHub</a> unveils all the mystery:</p><ol><li>The Material team built their own <a href="https://github.com/material-foundation/material-color-utilities/blob/main/typescript/hct/hct.ts">color system</a>: ‘hue, chroma, tone’, or ‘HCT’, based on the <a href="https://en.wikipedia.org/wiki/Color_appearance_model#CAM16">CAM16</a> and <a href="https://en.wikipedia.org/wiki/CIELAB_color_space">CIELAB</a>(or LAB) color appearance models. CAM16 is a successor of LAB, designed to <a href="https://programmingdesignsystems.com/color/perceptually-uniform-color-spaces/index.html">match how humans perceive color</a>.</li><li>Key to these models is the ‘tone’ or L* value, which describes a color’s perceived luminance or lightness, with an L* value of 0 being black and 100 being white. This is very useful when creating accessible color palettes, ensuring colors have enough contrast based on perceived luminance.</li><li>On the web, the <a href="https://webaim.org/articles/contrast/">WCAG 2 guidelines</a> prescribe a minimum contrast of 4.5:1 for body text. Directly using perceived luminance as a value to describe a color makes this much more straightforward, as the Material team <a href="https://github.com/material-foundation/material-color-utilities/blob/main/typescript/hct/hct.ts#L28-L30">explains</a>: “Unlike contrast ratio, measuring contrast in L* is linear, and simple to calculate […] a difference of 50 guarantees a contrast ratio &gt;= 4.5.”</li><li>With this knowledge, all that’s left is to generate a palette of colors with different tones or L* values and apply any hue to it. Then use sufficiently contrasting pairs for UI elements. For example, a button can have a background color with L* = 40 and white text (L* = 100), and it would easily pass the minimum contrast requirement (L* difference &gt; 50).</li></ol><figure><img alt="Light color palette generated from a user-supplied red floral wallpaper. All the colors have warm, red tones, with different levels of lightness." src="https://cdn-images-1.medium.com/max/1024/1*8W5TizAw1mZtHaIHQACTlQ.png" /><figcaption>Source: <a href="https://m3.material.io/styles/color/dynamic-color/user-generated-color">Google</a></figcaption></figure><h4>LCH for the rest of us</h4><p>This is a powerful technique to effortlessly generate accessible colors, but it doesn’t require Material color utilities. LAB can be represented as LCH (luminosity, chroma, hue), similar to Material’s HCT, where the L value can be used to calculate contrast. (This is a better representation than existing ones like HSL, which can vary in <em>perceived</em> lightness even if the lightness <em>value</em> is the same.) You can learn more about LCH in <a href="https://lea.verou.me/2020/04/lch-colors-in-css-what-why-and-how/">this article</a>.</p><p>(Also, LCH is making its way into web standards as part of <a href="https://drafts.csswg.org/css-color/#lab-colors">CSS Color Level 4</a>! So you can write lch(40% 44 49) in CSS without needing to convert it to HSL or RGB, but this is currently <a href="https://colord.omgovich.ru/">only supported in Safari</a>. Lea Verou, who wrote the article linked above, is part of the W3C CSS Working Group developing this very standard.)</p><p>So, all you need is a starting color, convert it to LCH, and modify the L value to make a palette. Then use a pair of colors that have a difference of 50 or more in luminosity to ensure accessible contrast.</p><p>We can see how this technique is used in the Material color system below: the tones in the palette match the LCH luminosity value. (They also modify the chroma (similar to saturation) and hue slightly across tones.) I made a <a href="http://notsidney.github.io/material-you-palette-visual">small web app</a> that displays the palettes generated by the Material color utilities to get the LCH values below.</p><figure><img alt="13 tones derived from a key color. Tones are: 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 95, 99, 100. Underneath each tone is the associated LCH value. The L value matches the tone number." src="https://cdn-images-1.medium.com/max/680/1*rd0ZkSGEXRau0z9DAJd8Fw@2x.png" /><figcaption>Source: <a href="https://m3.material.io/styles/color/the-color-system/key-colors-tones">Google</a></figcaption></figure><p>Before Material’s HCT, the design teams of <a href="https://design.lyft.com/re-approaching-color-9e604ba22c88">Lyft</a> and <a href="https://stripe.com/blog/accessible-color-systems">Stripe</a> explored the same issue, and Stripe also ended up using LCH. I’ve linked both of their explorations, which are excellent reads.</p><p><strong>How can I achieve this?</strong> There are a few tools to convert to and from LCH:</p><ul><li>Lea Verou made an <a href="https://css.land/lch/">LCH color picker</a>,</li><li>the <a href="https://colord.omgovich.ru/">Colord website</a> lets you convert from LCH to hex or RGB,</li><li>if you have a Mac, Sindre Sorhus’ <a href="https://sindresorhus.com/system-color-picker">System Color Picker</a> is excellent, and</li><li><a href="https://accessiblepalette.com/">Accessible Palette</a> generates a palette using LAB/LCH.</li></ul><p>I used this technique to add theming to <a href="https://rowy.io/?utm_source=medium.com&amp;utm_medium=blog&amp;utm_campaign=UI%20design%20trends%20of%20today%20and%20how%20to%20apply%20them%20in%20your%20apps">Rowy</a>, allowing users to choose their own accent color while maintaining accessibility and tinting key UI elements. <a href="https://github.com/rowyio/rowy/blob/92630a52351bffdb1d085a41dc46e515bee8faf3/src/theme/colors.ts#L20-L30">The source code</a> has the exact LCH values I used.</p><figure><img alt="Two UI themes based on a different primary color. On the left, the primary color is purple and on the right, it’s red. The UI colors for backgrounds and shadows are displayed as LCH. The L and C values are the same across the two themes, but the H value matches the hue of the primary color." src="https://cdn-images-1.medium.com/max/680/1*TfFX_sVFO6caxX2uY6DoDQ@2x.png" /></figure><h3>Rounded corners are harmonious</h3><p>When you have a box with rounded corners in a design and want to nest an inner box with a small gap, the inner element should have a smaller corner radius, with the difference being the gap size. If you make the corner radii equal for both, the inner box <a href="https://css-tricks.com/public-service-announcement-careful-with-your-nested-border-radii/">looks out of place</a>. This technique has been <a href="https://graphicdesign.stackexchange.com/questions/8919/how-to-compute-the-radii-radiuses-of-corners-for-concentric-rounded-rects">known for a while</a> in digital design and is even part of <a href="https://www.w3.org/TR/css-backgrounds-3/#corner-shaping">the CSS3 spec</a>.</p><h3>Josh W. Comeau on Twitter: &quot;🌠 PSA: if you nest elements with rounded edges, you need to tweak the radius! Otherwise you get chunky corners.✨ The formula I use:outerRadius = innerRadius + (outerSize - innerSize) / 2Live demo: https://t.co/YdDGwZZXnN pic.twitter.com/koGwSjrQRl / Twitter&quot;</h3><p>🌠 PSA: if you nest elements with rounded edges, you need to tweak the radius! Otherwise you get chunky corners.✨ The formula I use:outerRadius = innerRadius + (outerSize - innerSize) / 2Live demo: https://t.co/YdDGwZZXnN pic.twitter.com/koGwSjrQRl</p><p>This is also present in hardware design: the screen’s rounded corners match the device frame on the <a href="https://twitter.com/Mumblefluff/status/1061247788611190785">iPad Pro</a> and iPhone X designs. On iPhones with rounded screens, the dock matches the screen’s curvature — Apple even provides the exact point size in <a href="https://kylebashour.com/posts/finding-the-real-iphone-x-corner-radius">the software</a>. You can also see other elements in the <a href="https://blog.maxrudberg.com/post/166045445103/ui-design-for-iphone-x-top-elements-and-the-notch">video player</a> matching the screen curvature.</p><figure><img alt="Annotated screenshot of iPhone dock. The display corner radius is 47.33pt, the gap between the display and dock is 12pt, and the dock corner radius is 35.33pt." src="https://cdn-images-1.medium.com/max/680/1*5WKimWIm8Fvn_PYIWUoy8A@2x.png" /><figcaption>These values were measured using the image provided in Sketch’s <a href="https://www.sketch.com/docs/designing/templates/">built-in iOS App Icon template</a> and the display corner radius for the iPhone 12 from Kyle Bashour’s <a href="https://github.com/kylebshr/ScreenCorners">ScreenCorners library</a>. The app icon radius remains consistent across the system, so it does not match the screen’s curvature.</figcaption></figure><p>Oddly, this principle was not applied to UI elements, which used a single corner radius. In Material Design 2, both dialogs and inner buttons have a <a href="https://material.io/design/shape/applying-shape-to-ui.html#baseline-shape-values">corner radius of 4dp</a>, despite having a <a href="https://material.io/components/dialogs#specs">gap of 8dp</a> in between. macOS was similar in the Yosemite-era design, and Windows 10 used square corners for almost all UI elements.</p><p>However, with Big Sur and Windows 11, this effect is approximated by increasing the corner radii of larger UI elements. In macOS, buttons now have a corner radius of 5pt and dialog windows 10pt, plus they all use <a href="https://www.sketch.com/blog/2017/10/10/introducing-libraries-and-smooth-corners-in-sketch-47/#smooth-corners">‘smooth corners’</a> to match the corners of Apple’s hardware. Meanwhile, Windows 11 famously rounds previously sharp corners, with buttons at 4px and windows 8px.</p><figure><img alt="Annotated side-by-side screenshots of Windows 11 and macOS 12 dialog windows. The Windows 11 design uses 8px for the window corner radius and 4px for the button. The macOS design uses 10pt for the window and 5pt for the button." src="https://cdn-images-1.medium.com/max/680/1*GRGYy_2kgX5pFEcvrvPZAQ@2x.png" /></figure><p>It also seems that UIs are becoming more rounded in general:</p><ul><li>Big Sur increases corner radii and uses smooth corners, which look more rounded;</li><li>iOS 15 introduces <a href="https://developer.apple.com/design/human-interface-guidelines/ios/controls/buttons/">button styles</a> with fully-rounded corners;</li><li>Windows 11 removed sharp corners on most UI elements; and</li><li>Android 12 increased the radii for <a href="https://m3.material.io/components/dialogs/overview">dialogs</a>, <a href="https://m3.material.io/components/navigation-drawer/overview">navigation drawers</a>, and fully round the corners of <a href="https://m3.material.io/components/buttons/overview">buttons</a>, in stark contrast to all previous versions of Material Design.</li></ul><p><strong>How can I achieve this?</strong> Set the smallest UI elements to some base corner radius, then set the larger containing elements like dialogs to a larger corner radius. Try to make them proportional to the distance between the smaller element, or double the smaller corner radius to simplify. Here’s how it looks in <a href="https://rowy.io/?utm_source=medium.com&amp;utm_medium=blog&amp;utm_campaign=UI%20design%20trends%20of%20today%20and%20how%20to%20apply%20them%20in%20your%20apps">our app</a>, with the corner radii doubled:</p><figure><img alt="Annotated screenshot of a dialog window in Rowy. The window’s corner radius is 8px and and the button’s is 4px." src="https://cdn-images-1.medium.com/max/680/1*4DvdqgFmSijcddSinrSDPQ@2x.png" /></figure><h3>Variable UI fonts with optical sizes</h3><p>When typefaces were first developed, they were physical designs etched in metal, with fixed font sizes. When a typographer designed the same typeface for a different size, they modified the design to be optimal by altering facets like spacing and proportion: this is known as optical size. You can learn more about optical size in <a href="https://pixelambacht.nl/2021/optical-size-hidden-superpower/">this article</a>.</p><p>Variable fonts are a new font format based on OpenType that allows the designer to customize specific ‘variation axes’ (or variables) of a type design, such as a non-fixed weight, slant, and optical size. You can learn more about variable fonts in this excellent <a href="https://variablefonts.io/">Variable Fonts Primer</a>, which uses <a href="https://github.com/TypeNetwork/Roboto-Flex">Roboto Flex</a>, a variable font extension of Google’s Roboto typeface.</p><figure><img alt="Text samples of Segoe UI Variable, SF Pro, and Google Sans at different optical sizes that highlight the differences in designs at different optical sizes." src="https://cdn-images-1.medium.com/max/680/1*o3T1Iu61Jf4c9eq5HfX_2g@2x.png" /></figure><p>In 2021, all major OSes now use this variable font technology to implement optical sizes in UI typography:</p><ul><li>Apple’s system font San Francisco was released <a href="https://developer.apple.com/videos/play/wwdc2015/804/">in 2015</a> with two optical sizes: ‘Display’ for sizes 20 points and larger, and ‘Text’ for everything smaller. <a href="https://developer.apple.com/videos/play/wwdc2020/10175/?time=153">In 2020</a>, Apple released these fonts as a single variable font, SF Pro, with optical size as a variation axis. Apple’s system icons, SF Symbols, <a href="https://developer.apple.com/videos/play/wwdc2021/10250/?time=411">also use variable font techniques</a>.</li><li>For Windows 11, Microsoft redesigned its system font Segoe UI as <a href="https://docs.microsoft.com/en-us/windows/apps/design/signature-experiences/typography">Segoe UI Variable</a> with its own optical size axis.</li><li>And as part of Material Design 3, Google introduces <a href="https://youtu.be/rLKtIGY2Mgc?t=414">GS Text and GS Variable</a>, an evolution of its corporate font Google Sans.</li></ul><p>Also of note: these typefaces are all different styles of sans-serif. <a href="https://en.wikipedia.org/wiki/San_Francisco_(sans-serif_typeface)">San Francisco</a> is neo-grotesque, <a href="https://en.wikipedia.org/wiki/Segoe">Segoe</a> is humanist, and <a href="https://en.wikipedia.org/wiki/Product_Sans">Google Sans</a> is geometric.</p><p><strong>How can I achieve this?</strong> Variable fonts are a relatively new technology, and producing them is expensive, so there aren’t as many of them around, especially in the free and open source space. So far, the only open source variable font with optical sizes that I’ve found is <a href="https://codepen.io/RoelN/pen/PoPvdeV">Roboto Flex</a>, but it doesn’t seem to be finished yet. Rasmus Andersson’s increasingly ubiquitous Inter typeface has a <a href="https://twitter.com/rsms/status/1248657377877839872">display size in beta</a>. In the meantime, using a more expressive typeface for prominent titles can elevate your design. For <a href="https://rowy.io/?utm_source=medium.com&amp;utm_medium=blog&amp;utm_campaign=UI%20design%20trends%20of%20today%20and%20how%20to%20apply%20them%20in%20your%20apps">Rowy</a>, I used Inter as the typeface in small text and Space Grotesk in headings for brand expression.</p><figure><img alt="Typography scale used in Rowy. Headings use the font Space Grotesk and smaller UI text use Inter." src="https://cdn-images-1.medium.com/max/680/1*rzfbzAATIaXLyVVcNLBCsQ@2x.png" /></figure><h3>Focus on content</h3><p>Flat design has been with us for over a decade, and its primary goal is to focus on the content by stripping away the clutter and ornamentation of UI elements. The <a href="https://developer.apple.com/design/human-interface-guidelines/ios/overview/themes/">iOS 15 design guidelines</a> state, “a crisp, beautiful interface help[s] people understand and interact with content while never competing with it.”</p><p>The most recent OS releases iterate on this concept by having even less “chrome”. Navigation bars are transparent in <a href="https://developer.apple.com/videos/play/wwdc2021-10059/?time=335">iOS 15</a> and <a href="https://m3.material.io/components/top-app-bar/overview">Android 12</a> and blend into the background until you scroll.</p><figure><img alt="A 2×2 grid of screenshots of navigation bars in iOS 15 (left column) and Android 12 (right column). The top row shows the navigation bars before scrolling, with a transparent background. The bottom row shows the bars with backgrounds after the user has scrolled." src="https://cdn-images-1.medium.com/max/680/1*XDghpfijxJgYrI5AeNSLLQ@2x.png" /></figure><p>On the desktop, macOS Big Sur blends the title bar and toolbar until you scroll or hover over the bar for a few seconds. And some apps in Windows 11 don’t distinguish the title bar at all but house the content in a distinct card-like layer.</p><figure><img alt="On the top, two screenshots of the macOS toolbar design. On the left, the toolbar blends into the background by default. On the right, the toolbar has a shadow underneath as the user hovers over the toolbar. Below is a screenshot of the Windows 11 settings app, which always has a transparent background for the toolbar. The content below is housed in a card-like layer with a lighter background and shadow." src="https://cdn-images-1.medium.com/max/680/1*i0Er0BhrulC92KO3PwG_6w@2x.png" /></figure><p>These elements all achieve the same goal: to reduce the amount of visual clutter around and elevate the visual prominence of the content.</p><p><strong>How can I achieve this?</strong> If you have a navigation bar docked to an edge, blend it into the background when it doesn’t need to be distinguished, such as when the user hasn’t scrolled. And if you have primary content, house it in a subtle layer distinct from the background. We use a React UI library, MUI, which makes it easy for us to <a href="https://mui.com/components/app-bar/#elevate-app-bar">achieve this effect</a> where the navigation bar is only distinguished on scroll:</p><figure><img alt="Two screenshots side-by-side of navigation bars in Rowy. On the left, the navigation bar blends into the background in the initial state. On the right, the navigation bar has a white background and shadow after the user has scrolled." src="https://cdn-images-1.medium.com/max/680/1*zd7v8JBG1w-iMd6hJM0Duw@2x.png" /></figure><h3>Inset everything</h3><p>In a similar vein, more UI elements are inset, no longer taking the entire width of their containers. When the iPhone X introduced an on-screen home indicator in place of the home button, Apple changed <a href="https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/adaptivity-and-layout/#designing-a-full-screen-experience">their guidelines</a> to prescribe inset buttons with rounded corners, eschewing the <a href="https://blog.maxrudberg.com/post/165590234593/ui-design-for-iphone-x-bottom-elements">full-width buttons</a> introduced in iOS 7. Best practices changed for <a href="https://blog.maxrudberg.com/post/165590234593/ui-design-for-iphone-x-bottom-elements">many other elements</a> fixed to the bottom of the screen to adapt to the new iPhone design.</p><figure><img alt="Screenshot of the Windows 11 Settings app, macOS 12 Mail app, iOS 15 Settings app, and Android 12 notification panel. In all screenshots, none of the UI elements touch the edge of the windows or screens and are contained in elements with rounded corners." src="https://cdn-images-1.medium.com/max/680/1*bkqaO50TfIRCuCmwXFV-eA@2x.png" /></figure><p>With iOS 15, Apple is insetting ‘table views’ in more apps like Settings and Mail. It seems to be in response to the growing size of iPhone screens, with <a href="https://developer.apple.com/design/human-interface-guidelines/ios/views/tables/">the guidelines</a> noting, “in a compact environment, an inset grouped table can cause text wrapping, especially when content is localized.”</p><p>In macOS Big Sur, they extend this design to the lists in Mail, consistent with the <a href="https://developer.apple.com/design/human-interface-guidelines/ios/views/split-views/">iPadOS design</a>. It’s also present in menus throughout the system, including the menu bar. Note the click targets extend to the edge of the menus, like the previous full-width design. Windows 11 shares the same style in its menus and navigation items. Android 12’s system UI and apps generally follow this style too.</p><p>This style could improve accessibility as the separation between elements and their containers now extends to all four sides, but I haven’t found any research supporting this. When paired with harmoniously rounded corners, it can make menus look more modern.</p><figure><img alt="Two screenshots of menus in Rowy. In both, the menu items do not touch the edge of the menu container and items have rounded corners." src="https://cdn-images-1.medium.com/max/680/1*pkX11S2lpn74i2c841bZtg@2x.png" /></figure><h3>Differentiation beyond color</h3><p>Designers are adding more ways to display states without relying on color, which is <a href="https://www.smashingmagazine.com/2016/06/improving-color-accessibility-for-color-blind-users/">inaccessible</a> for people with color blindness. Here are some examples I noticed:</p><ul><li>Spotify added dots below the shuffle and repeat buttons instead of relying solely on changing their color <a href="https://community.spotify.com/t5/Implemented-Ideas/All-Platforms-Make-Shuffle-Icons-Discernible-for-Color-Blind/idi-p/1556225">in 2017</a>.</li><li>Material Design 3 displays a pill-shaped indicator and uses filled icons for active pages in the <a href="https://m3.material.io/components/navigation-bar/overview">navigation bar</a>.</li><li>Windows 11 adds a consistent, distinct line to selected items in <a href="https://docs.microsoft.com/en-us/windows/apps/design/signature-experiences/geometry">lists and navigation panes</a>.</li></ul><figure><img alt="Three screenshots. From the left: a Windows 11 navigation pane with a line on the left of the active page, the Spotify playback controls with repeat enabled and a dot below the repeat icon to signify state, and an Android 12 navigation bar with the current page signified by a pill shape behind the page icon." src="https://cdn-images-1.medium.com/max/680/1*2TQPvg0ydAeVPMteSW0bzw@2x.png" /></figure><p>This informed the decision to redesign toggle buttons for <a href="https://rowy.io/?utm_source=medium.com&amp;utm_medium=blog&amp;utm_campaign=UI%20design%20trends%20of%20today%20and%20how%20to%20apply%20them%20in%20your%20apps">Rowy</a>:</p><figure><img alt="Two screenshots of toggle button designs. On the left: Material Design 2, which uses a different background to signify the active button. On the right: Rowy, which uses a line on the bottom of the button to signify the active button." src="https://cdn-images-1.medium.com/max/680/1*tGJ3jaOLcEG2lsWv2SwNrQ@2x.png" /></figure><h3>And a standard switch design</h3><figure><img alt="Screenshots of toggle switch designs in Windows 11, macOS 12, iOS 15, and Android 12." src="https://cdn-images-1.medium.com/max/680/1*sfVfsFFg_mBBTl0YhIDPGw@2x.png" /></figure><p>With Android 12, switches now have the same fundamental design across the major OSes. This makes it easier for a user to switch between these platforms and reduces cognitive load.</p><h3>Where is UI design headed?</h3><p>The overarching theme I notice in all these design decisions is that designers put user interface design into perspective. They’re acutely aware of where digital interfaces fit in the human experience and interact with the physical world.</p><ul><li>The convergence on outline icons to mimic text recognizes the importance of icons in communication.</li><li>Increasingly personalized interface elements — especially the direction Material You is taking — acknowledge how people like to make the things they use their own, including the tech they use every day.</li><li>Harmoniously rounded corners and inset elements are inspired by physical objects and industrial design, so our software matches the hardware more closely.</li><li>The use of variable fonts with optical sizes hearkens back to typography’s origins, and along with differentiating elements beyond color, they improve usability for all, especially those with disabilities.</li><li>The more minor things help, too: reducing visual clutter to elevate content allows users to focus on what they want to do. And using a standard switch design eliminates any cognitive load required to figure out what a UI element does.</li></ul><figure><img alt="Woman with VR headset on and controllers in hands at sunset." src="https://cdn-images-1.medium.com/max/1024/0*ihT16OwvleFkK48-" /><figcaption>Photo by <a href="https://unsplash.com/@viniciusamano?utm_source=medium&amp;utm_medium=referral">Vinicius &quot;amnx&quot; Amano</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This kind of thinking behind UI design sets us up nicely for the next generation of computing centered on AR/VR the <a href="https://en.wikipedia.org/wiki/Metaverse">metaverse</a>, where metaverse-first experiences will have to answer how they improve the human experience and interact with the physical world. Designers are already looking at how to adapt design systems for this change. Looking at the decisions above, applying color science (Material’s HCT takes viewing conditions into account) and inset elements that elevate content help these UI elements transition from the 2D world to the 3D metaverse.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa6cd66f9ccf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/design-bootcamp/ui-design-trends-of-today-and-how-to-apply-them-in-your-apps-aa6cd66f9ccf">UI design trends of today and how to apply them in your apps</a> was originally published in <a href="https://medium.com/design-bootcamp">Bootcamp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[We Refactored 10K Lines of Code in Our Open Source React Project]]></title>
            <link>https://medium.com/better-programming/we-refactored-10k-lines-of-code-in-our-open-source-react-project-5eb844cccf28?source=rss-4eb0515be764------2</link>
            <guid isPermaLink="false">https://medium.com/p/5eb844cccf28</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Sidney Alcantara]]></dc:creator>
            <pubDate>Mon, 08 Feb 2021 16:04:20 GMT</pubDate>
            <atom:updated>2021-10-05T08:17:18.576Z</atom:updated>
            <content:encoded><![CDATA[<h4>Know the how, the when, and the why behind our refactoring</h4><figure><img alt="Diagram of the article’s main point: Restructured code led to better code reuse and fewer lines." src="https://cdn-images-1.medium.com/max/802/1*YbmzuKOJoq-to747SMRzxA@2x.png" /><figcaption>Photo by the author.</figcaption></figure><p>When working on any project, especially in the MVP stage, we as developers often prioritise one thing above all else when writing code: making sure it <em>works</em>. Unfortunately, this can mean writing code hyper-focused on the MVP’s requirements, so we end up with code that is hard to maintain or cumbersome to expand. Of course, this isn’t a problem one can easily avoid since we don’t live in an ideal world. The forces of time are always against us — sometimes we just need to push something out.</p><p>I’m a software engineer building <a href="https://rowy.io/?utm_source=Medium&amp;utm_medium=blog&amp;utm_content=MediumArticle&amp;utm_campaign=We%20Refactored%2010%2C000%2B%20Lines%20of%20Code%20in%20Our%20Open-Source%20React%C2%A0Project">Rowy</a>, an open source React app that combines a spreadsheet UI with Firestore and Firebase’s full power. We ran into this exact issue with some fundamental code: the code for all the different <a href="https://docs.rowy.io/field-types/supported-fields">field types</a>, from the simple ShortText to the complex ConnectTable field.</p><p>After refactoring, we now have a more solid foundation to build more features, we squashed a few hard-to-find bugs, and we now even have a <a href="https://docs.rowy.io/field-types/add">guide on how our contributors can write new field types</a>.</p><h3>When Code Smells and Tech Debt Became Big Problems</h3><p>When we first started building Rowy, the idea was to build a spreadsheet interface. Naturally, the resulting product closely matched that. Looking at old screenshots, it’s remarkable how closely it resembles spreadsheet programs like Excel and Google Sheets:</p><figure><img alt="An old screenshot of Firetable with a UI very similar to that of a spreadsheet program" src="https://cdn-images-1.medium.com/max/1024/1*AErT3puN8KMYoq2STuA6YA@2x.jpeg" /><figcaption>A screenshot of an old build from February 2020</figcaption></figure><p>We used <a href="https://adazzle.github.io/react-data-grid/">React Data Grid</a> to implement this. It accepts “formatter” components used to render cells and “editor” components used to edit cells when a user double-clicks the cell. We structured our code around this, with formatters and editors becoming folders alongside the code for Table.</p><p>A few months later, we added the SideDrawer, a form-like UI that slides over the main table. It was designed to make it easier to edit all the fields of a single row at a time, which we found was an everyday workflow for our users. At the time, it seemed like the most logical way to structure this new code was similar to how we structured the Table, so we created a Fields folder in the SideDrawer folder.</p><figure><img alt="Screen recording of a user selecting a cell and opening the side drawer" src="https://cdn-images-1.medium.com/max/1024/1*1h6w52_v9rflIGJ9WlDPGw.gif" /></figure><p>But as we maintained this code, cracks began to show.</p><p>One of our distinctive field types is Action, which displays a button on the table that lets the user run code based on the row’s data using Firebase Cloud Functions and show the results in the very same cell. We’ve used it for novel applications such as setting our database’s access controls from right within Rowy using <a href="https://firebase.google.com/docs/auth/admin/custom-claims">Firebase Auth custom roles</a>.</p><p>We had a bug where the Cloud Function wasn’t receiving the right parameters when called by Action cells. But to update the code, we had to do it in <em>two separate locations</em> — the Table formatter and the SideDrawer field. Not only that, it turns out we had <em>duplicated</em> the code calling the Cloud Function due to time constraints. There was simply no clear location for that shared code and the bug was too high-priority for us to have time to answer that question correctly.</p><p>The final straw was when we noticed we had inconsistently implemented the column lock feature. Some fields remained editable in the SideDrawer but not the Table or vice versa, or we didn’t implement it at all for that field. This was a result of adding this feature <em>after</em> we had implemented the minimum requirements for each field type, so we had to go through each Table formatter and each SideDrawer field — double the number of field types we had. This tedious manual process was clearly prone to error.</p><p>At this point, we knew it was time to refactor.</p><h3>Refactoring for Success</h3><p>We identified the main problem: We<strong> </strong>didn’t have a single place to store code for each field type. It was scattered throughout the code base — Table formatters and editors, SideDrawer fields, column settings, and more. This scattering rapidly inflated the cost of adding new features for field types and weeding out bugs.</p><p>The first thing we did was entirely invert our approach to the code structure. Instead of grouping code by each feature that would <em>use</em> the field types, we grouped the code by the field types themselves.</p><figure><img alt="Diagram visualising the new code structure" src="https://cdn-images-1.medium.com/max/736/1*WWYzKwqxCegAGdUCGrK9ig@2x.png" /></figure><p>The new approach translates to a new top-level component folder called fields comprising subfolders for each field type. Within each one, we have files such as TableCell.tsx and SideDrawerField.tsx. Then we could export these features in a config object, so all this code would only need to be imported once by the consumer. This is similar to a problem solved by React Hooks: <a href="https://reactjs.org/docs/hooks-intro.html#complex-components-become-hard-to-understand">grouping related code</a> and not having to think about lifecycle methods.</p><p>This approach also simplifies how we import a field’s code throughout the code base. Previously in the Table and SideDrawer, we would rely on switch statements that looped through each field type until we could fetch the correct component <em>and</em> import each field one by one. So whenever we added a new field type, we would also have to add a new entry to these switch blocks — again ballooning the cost of development. Instead, we could create a single array with every field config, then share it across the code base. So we only need to define a new field type <em>once.</em></p><p>Additionally, the config object lets us quickly implement new features and ensure <em>all</em> fields do so correctly. Now we could simply check if a field’s config has a property. And since we’re using TypeScript, each config object must implement <a href="https://github.com/rowyio/rowy/blob/6e81191fc26714c4c212bae19cfc4c16440c322f/src/components/fields/types.ts#L9">our interface</a>, which can enforce certain features (properties of the interface) to be of a particular type, such as a React component accepting specific props. This new functionality allowed us to fix column-locking implementation and made it much easier to develop a new feature, default values for columns. All we had to do was add a new property to the interface.</p><figure><img alt="Example of the significant amount of code we were able to reduce with the new code structure" src="https://cdn-images-1.medium.com/max/838/1*hZOSFJh_EeAxy-NyVpXjXw@2x.png" /></figure><p>With this in mind, our refactor not only made our code easier to maintain and fixed bugs, but it also provided a much more solid foundation on which we can build advanced features for fields and remove extra development costs.</p><h3>Lessons for the Future</h3><p>Of course, we could have avoided all this pain and extra work had we initially gone with this approach. But we don’t live in an ideal world. All of the non-ideal solutions I mentioned above were the result of time constraints on our end — especially when we were working on other projects simultaneously, which directly impacted day-to-day work.</p><p>Many of us work for a business that doesn’t have excellent code quality as its primary goal. As developers, we are hired to build tech solutions that meet business requirements, and the “how” is abstracted away. In this case, however, our poorly structured code and the amount of accrued tech debt were directly impacting our ability to work.</p><p>And whilst writing this article, I came across <a href="https://refactoring.guru/">Refactoring.Guru</a>, an excellent guide on refactoring. We clearly satisfied their first recommendation on when to refactor: “When you’re doing something for the third time, start refactoring.”</p><p>This experience has taught us many valuable lessons on code structure and when a refactor is necessary. I hope you’ve gained some insights by reading about our journey.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5eb844cccf28" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/we-refactored-10k-lines-of-code-in-our-open-source-react-project-5eb844cccf28">We Refactored 10K Lines of Code in Our Open Source React Project</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to useRef to Fix React Performance Issues]]></title>
            <link>https://medium.com/better-programming/how-to-useref-to-fix-react-performance-issues-4d92a8120c09?source=rss-4eb0515be764------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d92a8120c09</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Sidney Alcantara]]></dc:creator>
            <pubDate>Mon, 23 Nov 2020 18:03:55 GMT</pubDate>
            <atom:updated>2021-10-05T04:34:48.721Z</atom:updated>
            <content:encoded><![CDATA[<h4>And how we stopped our React context from re-rendering everything</h4><figure><img alt="Diagram of the article’s main idea: update a sibling component’s state via a ref" src="https://cdn-images-1.medium.com/max/802/1*ychn1nsfNdNxt4fRIz2qkw@2x.png" /><figcaption>Photo by the author.</figcaption></figure><p>Refs are a seldom-used feature in React. If you’ve read the <a href="https://reactjs.org/docs/refs-and-the-dom.html">official React guide</a>, they’re introduced as an “escape hatch” out of the typical React data flow with a warning to use them sparingly. They’re primarily billed as the correct way to access a component’s underlying DOM element.</p><p>But alongside the concept of Hooks, the React team introduced the <a href="https://reactjs.org/docs/hooks-reference.html#useref">useRef</a> Hook, which extends this functionality:</p><blockquote>“useRef() is useful for more than the ref attribute. It’s <a href="https://reactjs.org/docs/hooks-faq.html#is-there-something-like-instance-variables">handy for keeping any mutable value around</a> similar to how you’d use instance fields in classes.” — <a href="https://reactjs.org/docs/hooks-reference.html">React’s documentation</a></blockquote><p>While I overlooked this point when the new Hook APIs launched, it proved to be surprisingly useful.</p><p>👉 <a href="#f356">Click here to skip to the solution and code snippets</a>.</p><h3>The Problem</h3><p>I’m a software engineer working on <a href="https://rowy.io/?utm_source=Medium&amp;utm_medium=blog&amp;utm_campaign=How%20to%20useRef%20to%20Fix%20React%20Performance%20Issues&amp;utm_content=MediumArticle">Rowy</a>, an open-source React app that combines a spreadsheet UI with the full power of Firestore and Firebase. One of its key features is the side drawer, a form-like UI to edit a single row that slides over the main table.</p><figure><img alt="Screen recording of a user selecting a cell and opening the side drawer" src="https://cdn-images-1.medium.com/max/1024/1*1h6w52_v9rflIGJ9WlDPGw.gif" /></figure><p>When the user clicks on a cell in the table, the side drawer can be opened to edit that cell’s corresponding row. In other words, what we render in the side drawer is dependent on the currently selected row — this should be stored in state.</p><p>The most logical place to put this state is within the side drawer component itself because when the user selects a different cell, it should <em>only</em> affect the side drawer. However:</p><ul><li>We need to <em>set</em> this state from the table component. We’re using <a href="https://github.com/adazzle/react-data-grid">react-data-grid</a> to render the table itself, and it accepts a callback prop that’s called whenever the user selects a cell. Currently, it’s the only way to respond to that event.</li><li>But the side drawer and table components are siblings, so they can’t directly access each other’s state.</li></ul><p>React’s recommendation is to <a href="https://reactjs.org/docs/lifting-state-up.html">lift this state</a> to the components’ closest common ancestor (in this case, TablePage). But we decided against moving the state here because:</p><ol><li>TablePage didn’t contain any state and was primarily a container for the table and side drawer components, neither of which received any props. We preferred to keep it this way.</li><li>We were already sharing a lot of “global” data via a <a href="https://reactjs.org/docs/context.html">context</a> located close to the root of the component tree, and we felt it made sense to add this state to that central data store.</li></ol><p><em>Note: Even if we put the state in </em><em>TablePage, we would have run into the same problem below anyway.</em></p><p>The problem was whenever the user selected a cell or opened the side drawer, the update to this global context would cause the entire app to re-render. This included the main table component, which could have dozens of cells displayed at a time, each with its own editor component. This would result in a render time of around 650 ms, which is long enough to see a visible delay in the side drawer’s open animation.</p><figure><img alt="Screen recording of delay in side drawer open animation" src="https://cdn-images-1.medium.com/max/1024/1*DPrtPDYRTq3IBR9_Hsh6dQ.gif" /><figcaption>Notice the delay between clicking the open button and when the side drawer animates to open.</figcaption></figure><p>The reason behind this is a key feature of context — the very reason why it’s better to use in React as opposed to global JavaScript variables:</p><blockquote>“All consumers that are descendants of a Provider will re-render whenever the Provider’s value prop changes.” — <a href="https://reactjs.org/docs/context.html">React’s documentation</a></blockquote><p>While this Hook into React’s state and lifecycle had served us well so far, it seems we had now shot ourselves in the foot.</p><h3>The Aha Moment</h3><p>We first explored a few different solutions (from <a href="https://github.com/facebook/react/issues/15156#issuecomment-474590693">Dan Abramov’s post</a> on the issue) before settling on useRef:</p><ol><li>Split the context (i.e. create a new SideDrawerContext) — The table would still need to consume the new context, which still updates when the side drawer opens, <a href="https://reactjs.org/docs/hooks-reference.html#usecontext">causing the table to re-render</a> unnecessarily.</li><li>Wrap the table component in React.memo or useMemo — The table would still need to call useContext to access the side drawer’s state and <a href="https://reactjs.org/docs/react-api.html#reactmemo">neither API prevents it from causing re-renders</a>.</li><li>Memoize the react-data-grid component used to render the table — This would have introduced more verbosity to our code. We also found it prevented <em>necessary</em> re-renders, requiring us to spend more time fixing or restructuring our code entirely just to implement the side drawer.</li></ol><p>While reading through the Hook APIs and useMemo a few more times, I finally came across that point about useRef:</p><blockquote>“useRef() is useful for more than the ref attribute. It’s <a href="https://reactjs.org/docs/hooks-faq.html#is-there-something-like-instance-variables">handy for keeping any mutable value around</a> similar to how you’d use instance fields in classes.” — <a href="https://reactjs.org/docs/hooks-reference.html">React’s documentation</a></blockquote><p>And more importantly:</p><blockquote>“useRef <em>doesn’t</em> notify you when its content changes. Mutating the .current property <strong>doesn’t cause a re-render</strong>.” — <a href="https://reactjs.org/docs/hooks-reference.html">React’s documentation</a></blockquote><p>And that’s when it hit me: We didn’t need to store the side drawer’s state. We only needed a reference to the function that sets that state.</p><h3>The Solution</h3><ol><li>Keep the open and cell states in the side drawer.</li><li>Create a ref to those states and store it in the context.</li><li>Call the set state functions (inside the side drawer) using the ref from the table when the user clicks on a cell.</li></ol><figure><img alt="Diagram representing the preceding list" src="https://cdn-images-1.medium.com/max/736/1*c-pLVaF283NbO5MlFqmzjw@2x.png" /></figure><p>The code below is an abbreviated version of the code used on Rowy and includes the TypeScript types for the ref:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/930366da1ac999588e2a8979e12a7902/href">https://medium.com/media/930366da1ac999588e2a8979e12a7902/href</a></iframe><p><em>Note: Since function components run the entire function body on re-render, whenever the </em><em>cell or </em><em>open state updates (and causes a re-render), </em><em>sideDrawerRef always has the latest value in </em><em>.current.</em></p><p>This solution proved to be the best since:</p><ol><li>The current cell and open states are stored inside the side drawer component itself — the most logical place to put it.</li><li>The table component has access to its sibling’s state <em>when</em> it needs it.</li><li>When either the current cell or open states are updated, it only triggers a re-render for the side drawer component and not any other component throughout the app.</li></ol><p>You can see how this is used in Rowy <a href="https://github.com/rowyio/rowy/blob/6e81191fc26714c4c212bae19cfc4c16440c322f/src/components/SideDrawer/index.tsx#L37">on GitHub</a>.</p><h3>When to useRef</h3><p>This doesn’t mean you should go ahead and use this pattern for everything you build, though. It’s best used when you need to access or update another component’s state at specific times, but your component doesn’t depend or render based on that state. React’s core concepts of lifting state up and one-way data flow are enough to cover most app architectures anyway.</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d92a8120c09" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/how-to-useref-to-fix-react-performance-issues-4d92a8120c09">How to useRef to Fix React Performance Issues</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>