# Monica Dinculescu

Monica Dinculescu's blog

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Testing Claude for Swift and JavaScript Coding Questions

DevFeed: [Testing Claude for Swift and JavaScript Coding Questions](<https://devfeed.tech/articles/a-swim-with-a-chat-bot-35508.md>)

Original publisher: [Read original article](<https://meowni.ca/posts/chatty-mcchatface/>)

Author: Monica Dinculescu

Published: 2024-09-29T00:00:00Z

Content type: opinion

Language: en

Sources: [Monica Dinculescu](<https://devfeed.tech/sources/monica-dinculescu.md>)

Topics: [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Claude](<https://devfeed.tech/topics/claude.md>), [Swift](<https://devfeed.tech/topics/swift.md>), [Stack Overflow](<https://devfeed.tech/topics/stackoverflow.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [CSS](<https://devfeed.tech/topics/css.md>), [HTML](<https://devfeed.tech/topics/html.md>), [WebView](<https://devfeed.tech/topics/webview.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [claude](<https://devfeed.tech/tags/claude.md>), [css](<https://devfeed.tech/tags/css.md>), [html](<https://devfeed.tech/tags/html.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [prompt-engineering](<https://devfeed.tech/tags/prompt-engineering.md>), [stack-overflow](<https://devfeed.tech/tags/stack-overflow.md>), [swift](<https://devfeed.tech/tags/swift.md>), [webview](<https://devfeed.tech/tags/webview.md>)

### AI overview

The author describes mixed experiences using AI chatbots, especially Claude.ai, for coding help. Claude was useful for Swift syntax and JavaScript tasks, but unreliable answers in unfamiliar areas could take longer to verify than using Stack Overflow.

### Source excerpt

I have 4 (rounded up) beefs with language-y AI bots that have resulted in me sort of avoiding them altogether: They have the personality of a middle manager who writes Google Docs all day that nobody wants to read They're reallllly good at guessing but not actually that smart, which leads to very convincing lies (see: the "how many Rs in strawberry?" saga). If I had the inclination to double check all the bot's work, I would've just done it myself Absolutely no thank you to the scam that is "prompt engineering". I'm not wasting 17 demon invocations to convince Chat GPT to do a thing. That's not the future I was promised. (not their fault) I have unresolved trauma about generated code from the Microsoft FrontPage era Testing the waters Unrelated to bots, I've been recently faffing about on a Swift app, with exactly zero prior knowledge of Swift. I basically have to Google everything (what's up with the mad ForEach syntax????) to get to a Stack Overflow page that isn't the one I actually need because search results have gotten sloppy, and it takes a minute. None of the things I'm copy pasting are "hard"; they're tedious code I can write in other languages but not in this one. And not to be a jerk, but 1-1 code translation isn't what I want to spend my spare time on. A friend told me to try Claude.ai, and it worked reasonably well for what I asked of it, which was mostly syntax (how do I add internal padding to a TextField?). I tried it for some harder questions with mixed results: how do I make links inside a WebView not open a native app? was a mess, but why do you think a page of just inputs is really slow gave me the right idea for where to start spelunking. The problem with trying it on a language I'm not an expert in goes back to Beef #2 above - I can't spot the very convincing lies as easily, and then I spend extra time trying to figure out if I copied it wrong or the answer is wrong (which is what happened with the WebView question), and it takes longer than if

## A HashiConf art collab

DevFeed: [A HashiConf art collab](<https://devfeed.tech/articles/a-hashiconf-art-collab-35522.md>)

Original publisher: [Read original article](<https://meowni.ca/posts/hashicollab/>)

Author: Monica Dinculescu

Published: 2021-10-15T00:00:00Z

Content type: opinion

Language: en

Sources: [Monica Dinculescu](<https://devfeed.tech/sources/monica-dinculescu.md>)

Topics: [color](<https://devfeed.tech/topics/color.md>), [Requirements](<https://devfeed.tech/topics/requirements.md>), [iteration](<https://devfeed.tech/topics/iteration.md>)

Tags: [art](<https://devfeed.tech/tags/art.md>), [conference](<https://devfeed.tech/tags/conference.md>), [custom](<https://devfeed.tech/tags/custom.md>), [design](<https://devfeed.tech/tags/design.md>), [generative](<https://devfeed.tech/tags/generative.md>), [hashicorp](<https://devfeed.tech/tags/hashicorp.md>), [iteration](<https://devfeed.tech/tags/iteration.md>), [printer](<https://devfeed.tech/tags/printer.md>), [printing](<https://devfeed.tech/tags/printing.md>), [requirements](<https://devfeed.tech/tags/requirements.md>), [things](<https://devfeed.tech/tags/things.md>)

### AI overview

The article describes creating custom generative-art prints for HashiConf Europe speakers. Each print combines the speaker's name, talk title, and the relevant HashiCorp product color in a randomly generated geometric grid, following conference design guidelines.

### Source excerpt

A couple of months ago my friend Jana helped organize HashiConf Europe, and asked me to work on generating custom artwork for each of their speakers. This was my first experience with creating art for someone else, and especially art that had to match someone else's artistic guidelines. I've said this before, but I live and nap by the idea that rules (and editing) are at the core of the artistic process and not having to do that myself was brilliant. I wanted to write a bit about it because a) I did a bunch of work that I'm really proud of and I never got to talk about it and b) I am vain and I want to talk about it. This was the final poster: And this is what we wrote about it on the card that accompanied it: Enclosed you will find an art print made for you by generative artist and engineer Monica Dinculescu. This individual print is unique to you and you alone, as Monica has incorporated your name, the title of your talk, and the color of the HashiCorp product that you are talking about at this year's conference. Each cell in the grid has been randomly generated to contain either a letter from your name, or a pattern in the product color. Cells located towards the middle of the grid are more likely to contain a letter rather than a pattern, and this likelihood decreases in the cells towards the edges. This print is the only iteration of its kind. Were it to be generated again, it would look slightly different each time. I print everything in my art store myself, because I sell very limited editions and third-party printing companies only make sense financially when you're printing in the several dozen. This does mean that sometimes I'll fight with my printer thinking that its colour profile is whack, only to discover that it was Doing Just Fine™ and my MacBook oversaturates things like it's an Instagram filter in 2011. Every day is a school day. Here are all the prints drying on their totes profesh drying rack that is definitely not just a string I hung around in

## Week 25: I redid my website

DevFeed: [Week 25: I redid my website](<https://devfeed.tech/articles/week-25-i-redid-my-website-35569.md>)

Original publisher: [Read original article](<https://meowni.ca/posts/week-25>)

Author: Monica Dinculescu

Published: 2021-06-21T00:00:00Z

Content type: opinion

Language: en

Sources: [Monica Dinculescu](<https://devfeed.tech/sources/monica-dinculescu.md>)

Topics: [Website](<https://devfeed.tech/topics/website.md>), [Image](<https://devfeed.tech/topics/image.md>)

Tags: [blog-post](<https://devfeed.tech/tags/blog-post.md>), [camera](<https://devfeed.tech/tags/camera.md>), [instax](<https://devfeed.tech/tags/instax.md>), [photography](<https://devfeed.tech/tags/photography.md>), [website](<https://devfeed.tech/tags/website.md>)

### AI overview

A personal Week 25 blog entry whose title announces a website redesign, followed by reflections on a Nam June Paik exhibition at the MOMA and enthusiasm about buying a Diana Instant camera that uses Instax film.

### Source excerpt

It's true, I did. I also wrote a blog post about it because tbh I did a good job on it, and it's a good read. As two ladies of leisure, Frances and I went to the MOMA on a weekday to see the new Nam June Paik exhibition. I didn't love all of it, but the bits I really enjoyed were all about putting TVs in unexpected situations. Which makes sense, since I really enjoy when surrealism is executed well. I loved the TV garden which was a dark room of real life plants with a bunch of old school CRTs showing ... weird ass videos; the TV cello and TV bra which are exactly what they say they are, and a bunch of TV sculptures, like this TV robot. The museum still requires indoor masks, which I have nothing against but thought it was an interesting choice since most of SF has given up on indoor masks for the vaccinated and the whole point of museums is to like... not touch anything, people or art. Anyway, I bought a dope book from the gift shop about architectural form that (as I am writing this entry 3 weeks later) I have yet to open. Speaking of architectural form, the MOMA has a bonkers layout and I can never find the stairway that goes in the direction I need. I always end up wandering aimlessly around like a chicken. I have nothing against wandering aimlessly through a museum, I just don't like it to be in a quest for stairs. I bought a Diana Instant camera!!! Suz was the one who bought one first and tweeted about it, and it reminded me about how when I was poor in uni and "into photography" I was all about plastic leaky cameras (like Holgas and Dianas) but they were mad expensive and I needed to spend my money on predominantly food and wine. But now they're an afforable price for adult Monica AND they've made an instant version that works with the Instax film so you don't have to wait for 3 weeks to see you took a tragically exposed photo. Suz and I are now having this paired adventure where we text each other bad photos and compare notes. It's fun.

## From JavaScript to paper: a linocut adventure

DevFeed: [From JavaScript to paper: a linocut adventure](<https://devfeed.tech/articles/from-javascript-to-paper-a-linocut-adventure-35549.md>)

Original publisher: [Read original article](<https://meowni.ca/posts/tree-rings/>)

Author: Monica Dinculescu

Published: 2021-04-28T00:00:00Z

Content type: article

Language: en

Sources: [Monica Dinculescu](<https://devfeed.tech/sources/monica-dinculescu.md>)

Topics: [generative art](<https://devfeed.tech/topics/generative-art.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [art](<https://devfeed.tech/tags/art.md>), [generative-art](<https://devfeed.tech/tags/generative-art.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [paper](<https://devfeed.tech/tags/paper.md>)

### AI overview

The author describes creating generative art inspired by tree rings and translating the result into a paper linocut. The process combines observations about how tree rings record a tree's history with JavaScript-generated patterns and physical carving.

### Source excerpt

One of my favourite kinds of art to make involves taking nature and seeing it as simple shapes. Buildings are cubes, flowers are circles, hills are curves. Shells are spirals. Tree rings are weird circle bois, and they are some of the best. I've wanted to make a generative art of a tree ring for a long time, but everything I made kept sucking (scroll to the bottom if you don't believe me. Shit was bad bad). I finally made something I like, I thought it might be neat to write a little bit about The Process™, since it involves both JavaScript and murderous little knives. Let's talk trees My friend Kyle has a ranch, and in the summer he lets his friends fulfill the burned out millenial dream of having no cell signal and sleeping in a tent. He has infinitely many trees, and sometimes he lets me do a craft with some of the trees he chops down. I'm "currently" (read: I started last year and I'll probably finish in 2026) making a side table. I also made these coasters: Trees are rad, yo. Young trees have very regular and evenly spaced rings because much like human children, they haven't had a lot of life to live. However, as trees get older, they get jobs they don't like, have to start making dinner every night, start having back pains from literally just being trees and their rings get wonkier. Here is what I'm making my table from: Trees can grow unevenly because of droughts or insects or capitalism building shit where it shouldn't. They get visible scars from forest fires. You can map the entire life of a tree (and tbh, of everything that was happening around the tree) by looking at its cross section. There's something called a ghost forest that indicates at some point, something happened (like an earthquake), which caused salt water to rise, killing all the trees that lived there. Here's a photo (ref) of a knotty tree (heh heh) that has fire scars: So you know, if you want a tree ring, you can't just draw some concentric circles and call it a day. Generate some tree r

## Week 14: Leaving Google and Taking Time Off

DevFeed: [Week 14: Leaving Google and Taking Time Off](<https://devfeed.tech/articles/week-14-35560.md>)

Original publisher: [Read original article](<https://meowni.ca/posts/week-14>)

Author: Monica Dinculescu

Published: 2021-04-05T00:00:00Z

Content type: opinion

Language: en

Sources: [Monica Dinculescu](<https://devfeed.tech/sources/monica-dinculescu.md>)

Topics: [Google](<https://devfeed.tech/topics/google.md>), [Job](<https://devfeed.tech/topics/job.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [google](<https://devfeed.tech/tags/google.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [job](<https://devfeed.tech/tags/job.md>), [work](<https://devfeed.tech/tags/work.md>)

### AI overview

A personal update about leaving Google after eight years, taking six months before starting something new, a cancelled Johnson & Johnson vaccine appointment, difficulty telling stories during the pandemic, police violence, and ongoing linocut and generative JavaScript projects.

### Source excerpt

Let's not bury the lede: I quit my job. After 8 years of working there, Google feels like a very different company than the one I joined, one that aligns less and less with my values, and it was time to move on. It sucks, because my immediate team was a group of wonderful people who do great work; I will miss them, and the work I did, greatly. I haven't had a vacation longer than 2 weeks since I was 18-ish, because I worked every summer and was too much of a naive workaholic to think I should take more than 1 week between jobs, so I am giving myself 6 months before I start something new this time around. It's stressful to not have a plan, and I am bad at relaxing, but I have full confidence I can learn to overachieve at this as well. Didn't I tell y'all I was worried SOMETHING was going to happen and I wasn't going to get my vaccine? Here I am, 3 hours before my J+J stabbie stabby, reading about how my appointment is cancelled because it has an incredibly rare clotting side effect. One that is 10000 more rare than the usual clots women get threatened with for taking birth control and that absolutely nobody blinks an eye at anymore. This feels a lot like fabricated concern; we already don't care about women getting blood clots. 1 in over 6 million? Fam, that's better odds than getting in a car or not getting e-coli from Chipotle. Stop this. I've become very bad at telling stories, which is 100% a result of the panini and not being forced to socialize with people. I've noticed several times in recent weeks where I'm telling a story and can see the life leaving from people's eyes. I am bored of what I am saying as I am saying it. I am not ready to move to the midwest yet; I must fix this. This is a very good tweet. Abolish the police already. Stop giving guns to insecure people who think a uniform gives them the right to kill others because of the colour of their skin. Stop giving guns to incompetent people who apparently aren't trained enough to tell the difference be

## Week 8: Selling Generative Art Prints and Running an Online Store

DevFeed: [Week 8: Selling Generative Art Prints and Running an Online Store](<https://devfeed.tech/articles/week-8-35578.md>)

Original publisher: [Read original article](<https://meowni.ca/posts/week-8>)

Author: Monica Dinculescu

Published: 2021-02-27T00:00:00Z

Content type: opinion

Language: en

Sources: [Monica Dinculescu](<https://devfeed.tech/sources/monica-dinculescu.md>)

Topics: [generative art](<https://devfeed.tech/topics/generative-art.md>), [Software](<https://devfeed.tech/topics/software.md>), [stripe](<https://devfeed.tech/topics/stripe.md>), [OAuth](<https://devfeed.tech/topics/oauth.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [generative-art](<https://devfeed.tech/tags/generative-art.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [oauth](<https://devfeed.tech/tags/oauth.md>), [software](<https://devfeed.tech/tags/software.md>), [stripe](<https://devfeed.tech/tags/stripe.md>)

### AI overview

A personal weekly reflection about opening an online store for generative art prints, selling out of two kinds of prints, and using BigCartel, Stripe, and PirateShip for ecommerce and shipping. It also briefly covers fitness challenges and painting on an iPad.

### Source excerpt

This week was entirely consumed by the fact that I opened an online store to sell generative "art" prints. Art is in quotations here because I have a deeply unhealthy relationship with calling anything I do art, or myself an artist, but we don't have time to for a therapy session right now. It went really great. I sold out of 2 kinds of prints! People who weren't just my friends put it orders! My first customer ever was Mariko, which is absurd because she should've gotten a free print without even asking based on the kilograms of gacha she's brought me from Japan, but of course she was also the first one to see the tweet about the store because that's just the kind of friend she is. (this paragraph is really niche and boring, skip it). Every once in a while I use a software that blows my fucking mind. E-commerce is generally NOT this experience btw, because it's all integrations that are 90% magic and 10% wonky af. Like, my store is a BigCartel store (big fan!), but the site itself is a bit flaky so sometimes Things Will Happen™ (like pages won't redirect, the theme editor will just panic, javascript is a prison). Stripe was like 95% magic and 5% "the oauth flow didn't redirect well For Reasons™ so I had to do it twice". I don't even know who was at fault there. Anyway, PirateShip is a thing that prints USPS labels and it was 120% magic. People wrote their addresses in their orders in my store; I clicked a single button on the PirateShip site, which imported those addresses, made shipping labels, made customs forms for the international orders, formatted all the labels for my label printer to print AND emailed all the customers their tracking numbers. And charged me 0 extra dollars. PirateShip, I don't know how you make your money but you are an absolute gem and I love you. The post office gentleman even commented on how together my shit was. Frances and I had a FitBit active minutes challenge and I WON by like 32 minutes (aka extremely close). Zach was also in some

## Week 1: A personal update on returning to Magenta and rebuilding a Jekyll site

DevFeed: [Week 1: A personal update on returning to Magenta and rebuilding a Jekyll site](<https://devfeed.tech/articles/week-1-35555.md>)

Original publisher: [Read original article](<https://meowni.ca/posts/week-1>)

Author: Monica Dinculescu

Published: 2021-01-04T00:00:00Z

Content type: opinion

Language: en

Sources: [Monica Dinculescu](<https://devfeed.tech/sources/monica-dinculescu.md>)

Topics: [software-development](<https://devfeed.tech/topics/software-development.md>), [Jekyll](<https://devfeed.tech/topics/jekyll.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [development](<https://devfeed.tech/tags/development.md>), [github](<https://devfeed.tech/tags/github.md>), [jekyll](<https://devfeed.tech/tags/jekyll.md>)

### AI overview

A personal weekly update about rebuilding a Jekyll site with roughly 40 GitHub commits, returning to Magenta after a fellowship with the Trevor Project, and leading a team that classified suicidal ideation. The author also discusses broth, television, Animal Crossing, and returning to piano.

### Source excerpt

I've been thinking for a while about setting this up, and this week seems as good as any. Both Alice and Frances have weekly updates that are a joy to read. Jenn has a live laugh blog. Maybe this is the year of long form tweets? I haven't touched my site in like 6+ months so when I tried to run jekyll locally it obviously didn't work, so what you're reading took like 40 commits on GitHub. In work news, I'm coming back to Magenta after 6 months of being a fellow with the Trevor project. I lead a team that worked on classifying suicidal ideation for one of their projects. The work was super interesting (though often sad), and in a shocking development i really enjoyed being a team lead. I think that even though I'm really good at writing actual code, I'm also good at herding cats and holding a lot of statuses and details in my head. I was worried at the beginning of the fellowship that TLs don't write any code and I would suddenly become a meeting chair, and even though I did have a ton of meetings, I also wrote a ton of code. I know it's weird to hear a woman assert things she's good at it. This is also a new thing I'm trying out. My notes, my rules! In personal news, I've gotten really into broth-as-a-savoury-afternoon tea. I used to make a lot of miso (and drink it out of a cup; this part is key), but to add some variety in my life, this week I started boiling a bunch of vegetables during meetings and making my own broth. Anything for variety in the apocalypse, amirite. Goldie moved in to my Animal Crossing island. I am exclusively watching serial killer shows right now (Des, I'll be gone in the dark, Ripper) which isn't exactly off brand but might be a little TOO on brand, you know? That's what I get for finishing Bridgerton in 2 days. For my birthday in November my mum got me some new books of piano sheet music, so I've started playing some piano again. Before I moved to America, I used to play every day and be actually good at it, but much like with everything e

## Fixing typedoc's generated TOC if your code is using ES6 modules

DevFeed: [Fixing typedoc's generated TOC if your code is using ES6 modules](<https://devfeed.tech/articles/fixing-typedoc-s-generated-toc-if-your-code-is-using-es6-modules-35551.md>)

Original publisher: [Read original article](<https://meowni.ca/posts/typedoc-toc/>)

Author: Monica Dinculescu

Published: 2020-02-21T00:00:00Z

Content type: tutorial

Language: en

Sources: [Monica Dinculescu](<https://devfeed.tech/sources/monica-dinculescu.md>)

Topics: [Documentation](<https://devfeed.tech/topics/documentation.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [ECMAScript](<https://devfeed.tech/topics/ecmascript.md>), [modules](<https://devfeed.tech/topics/modules.md>)

Tags: [es6](<https://devfeed.tech/tags/es6.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [modules](<https://devfeed.tech/tags/modules.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

### AI overview

A tutorial describing a workaround for TypeDoc navigation when a TypeScript JavaScript library exports only selected files from its top-level index.ts. The author reports that several TypeDoc flags did not prevent private files from appearing in the main table of contents, and uses injected JavaScript to hide files that are not top-level exports.

### Source excerpt

My one policy about blogging is "write the blog post you wanted to find in the search results". I spent an inordinate amount of time yesterday trying to get typedoc to only show the docs for the files I'm actually exporting in my library, and didn't find anything on the internet to help me, so here is the blog post I wanted to read. The problem You are working on a JS library. You author your source in TypeScript. You have an index.ts file that exports only some of your source files. You would like your generated docs from typedoc to only have docs for those files (Why? So that people don't open issues along the lines of "I see the docs for function foo, but I can't see how to call it, pls export it". Sweet child, if that function was meant to be public it probably would've been. That function is actually 3 spiders in a trench coat). That is, you would like your Table of Contents to show this: and not this: Things that aren't solutions In the order that I've tried them: the --mode modules flag: the word "modules" is a lie here and really just means "under a namespace" not like... ES6 modules (tracking issue) the --excludeNotExported flag: it helps to generate docs for only the exported functions, but not files the -excludePrivate flag: same as above the --exclude flag: this is nice in theory, but I have like 30+ private files that shouldn't be documented and only like 5 top level exports, so that regex will suck. Also, my experience is that next time someone adds a file they want or don't want documented they won't know to add it to this list and we're back to having a problem the --toc flag. I honestly don't know what it does, but for me, it did nothing 100% of the time thinking this should presently work in typedoc. Here is the tracking issue and the open PR that might fix it. My "solution" I'm less bothered that the docs for the private files get generated at all, and more bothered that they're linked in the main page TOC and thus discoverable. So my "solution" tha

## An intro to Reinforcement Learning (with otters)

DevFeed: [An intro to Reinforcement Learning (with otters)](<https://devfeed.tech/articles/an-intro-to-reinforcement-learning-with-otters-35541.md>)

Original publisher: [Read original article](<https://meowni.ca/posts/rl-with-otters/>)

Author: Monica Dinculescu

Published: 2018-02-26T00:00:00Z

Content type: tutorial

Language: en

Sources: [Monica Dinculescu](<https://devfeed.tech/sources/monica-dinculescu.md>)

Topics: [Reinforcement learning](<https://devfeed.tech/topics/reinforcement-learning.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Learning](<https://devfeed.tech/topics/learning.md>)

Tags: [learning](<https://devfeed.tech/tags/learning.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [reinforcement-learning](<https://devfeed.tech/tags/reinforcement-learning.md>)

### AI overview

A beginner-friendly introduction to reinforcement learning explains how agents learn to choose sequences of actions to maximize long-term rewards. It contrasts reinforcement learning with supervised and unsupervised learning and uses accessible examples, including a Roomba and otter image classification.

### Source excerpt

Before I wrote the JavaScripts, I got a master's in AI (almost a decade ago 🙀), and wrote a thesis on a weird and new area in Reinforcement Learning. Or at least it was new then. It's definitely still weird now. Anyway, I loved it. With all the hype around Machine Learning and Deep Learning, I thought it would be neat if I wrote a little primer on what Reinforcement Learning really means, and why it's different than just another neural net. Richard Sutton and Andrew Barto wrote an amazing book called "Reinforcement Learning: an introduction"; it's my favourite non-fiction book I have ever read in my life, and it's why I fell in love with RL. The complete draft is available for free here, and if you're into math, and want to explore this topic further, I can't recommend it enough. If you're not into math, I have otters. What is it? Reinforcement learning (or RL) solves a very specific problem: figuring out how to act over time, so that you get the most long term reward. Both these sequences of actions and the reward bit are important components that make RL a "good" approach to solve a problem. For example, this is perfect if you're a Roomba who is trying to get home (the only reward you get is if you actually get home, so while you're roaming around aimlessly and get no 💰, you have a feeeeeeeling you're not doing it right). On the other hand, this is terrible if you're trying to figure out if a photo has an otter in it; there are no sequences of actions that matter here, other than doing the decision of saying "yes iz otter". You're just trapped in a room where people slip Polaroids of animals under the door and you have to tell them what it is. Nightmares aren't really a good area for RL. What isn't it? There are many things with the word "learning" in them that aren't Reinforcement Learning. supervised learning. This is a kind of Machine Learning where someone gave you a training set that has everything labelled correctly, you learn from it, and hope that at exam

## Lazy-load web fonts to improve first paint performance

DevFeed: [Lazy-load web fonts to improve first paint performance](<https://devfeed.tech/articles/web-fonts-boy-i-don-t-know-35554.md>)

Original publisher: [Read original article](<https://meowni.ca/posts/web-fonts/>)

Author: Monica Dinculescu

Published: 2016-11-01T00:00:00Z

Content type: tutorial

Language: en

Sources: [Monica Dinculescu](<https://devfeed.tech/sources/monica-dinculescu.md>)

Topics: [Web Development](<https://devfeed.tech/topics/web-development.md>), [Web](<https://devfeed.tech/topics/web.md>), [browser](<https://devfeed.tech/topics/browser.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [fonts](<https://devfeed.tech/tags/fonts.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [loading](<https://devfeed.tech/tags/loading.md>), [performance](<https://devfeed.tech/tags/performance.md>), [web-fonts](<https://devfeed.tech/tags/web-fonts.md>)

### AI overview

This article argues that web fonts should not block initial text rendering. It explains FOIC and FOUC and recommends lazy-loading fonts so content can appear before font styling finishes.

### Source excerpt

phantom underlines. isn't this amaaaaaazing. i love waiting for 8 seconds and seeing this. look at it. srsly. looooookat it. I spent a week traveling around Taiwan, on my awesome free roaming 2G data plan, and friends, we need to talk about your web fonts. Also cats. They really love cats there. Anyway, the thing about 2G is that I fully understand that it will take me 10 seconds to load a page. What sucks is the fresh rage of the following 4 seconds where instead of content I get phantom underlines, waiting for a slightly-different-sans-serif to download. Listen: it doesn't have to be this way. You can lazy load your font. It's 4 lines of JavaScript. 7 if you're being ambitious. Why should you care I've been brainwashed to really care about first paint performance (thanks Chrome Dev Rel 😘), and I've become a big fan of the "do less & be lazy" approach to building things. What this means is that if something is not on your critical path, it probably doesn't need to be the first thing you paint on a page. Now think about fonts: is the critical path showing text, or styling it? I'd argue that unless your app is in the 1% it's-all-a-magical-visual-experience bucket (in which case this post is not for you), or we're just talking about the fancy title on your site (which fine, can be slow to paint or whatever), it's probably trying to communicate some content, and ugly content (that you prettify after) is better than no content. (Real talk: if you don't think rendering text is a critical path, you're whack and we need to have a chat.) There are two things you can run into when loading a web font: FOIC ("flash of invisible content") - when your browser sees that you're trying to use a font it doesn't have it paints all the text in invisible ink, waits, and when it finally gets the font, it re-paints and re-layouts the text correctly. [see a gif of this] I hate this with the fire of a thousand suns, because instead of looking at actual content, I'm looking at bullets and u

## I made a 2001-era emoji font! That you can use!

DevFeed: [I made a 2001-era emoji font! That you can use!](<https://devfeed.tech/articles/i-made-a-2001-era-emoji-font-that-you-can-use-35531.md>)

Original publisher: [Read original article](<https://meowni.ca/posts/og-emoji-font/>)

Author: Monica Dinculescu

Published: 2016-10-04T00:00:00Z

Content type: article

Language: en

Sources: [Monica Dinculescu](<https://devfeed.tech/sources/monica-dinculescu.md>)

Topics: [Emoji](<https://devfeed.tech/topics/emoji.md>), [Font](<https://devfeed.tech/topics/font.md>), [Web](<https://devfeed.tech/topics/web.md>)

Tags: [fonts](<https://devfeed.tech/tags/fonts.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

The author recreated 166 emoji from a 2001-era DoCoMo phone as 12x12-pixel sprites, converted them to SVGs, and used Fontastic to create a black-and-white emoji font mapped to current emoji code points.

### Source excerpt

You know the scenes in Friends when Ross starts talking about dinosaurs and he's SUPER excited but everyone else is losing the will to live? This is basically that, only instead of dinosaurs, it's emoji, and unlike Ross, I have never successfully befriended a monkey. Last month, my coworker casually told me he still has a 2001 era DoCoMo phone, which is one of the first phones to have emoji (🤓🤓🤓: emoji first appeared in 1999, on DoCoMo phones, and DoCoMo phones alone). So I got ahold of this phone. Which charged, turned on and most importantly, TOTALLY had OG emoji: I spent the whole day being unproductive and sending emoji messages to people: SVGs I then took a 10 hour flight to Europe and, for lack of better things to do while watching every movie that came out this year, I drew every one of those emoji as a sprite. 166 emoji in total, 12x12px each, in one of six colors. This was my first time doing pixels sprites, so I obviously fucked it up: I ended up with a bunch of random sprite sheets, each with a random number of sprites in it, which was a bit of a mess. Thankfully, Amanda Glosson, reigning queen of pixels, wrote me a script to transmogrify my mess into individual svgs. These individual SVGs, to be exact: LOOK HOW PRETTY THEY ARE! 💓 A wild font appears The reason why I made those SVGs was partly because Captain America: Civil War is unbearably boring, but partly because I wanted to make a font and use it everywhere like an emoji hipster. So then I did. I used Fontastic to make the font - it's black and white, because at the time of writing this, colour fonts weren't supported on the web (tbh, even a year later, when colour fonts are supported, I still couldn't tell you how to make on). I also mapped the original emoji glyph to one of the current existing emoji code points, based on this list, because let's be honest, some of them were mysterious. Do you know what 💥 means? It's 💥. And 💦 is 💦. 12 pixels ain't a lot of pixels, friends. Here the 166 emoji as th

## Styling the Shadow DOM: Encapsulation, Host Styling, and Style Boundaries

DevFeed: [Styling the Shadow DOM: Encapsulation, Host Styling, and Style Boundaries](<https://devfeed.tech/articles/styling-the-shadow-dom-or-a-metaphor-gone-too-far-35546.md>)

Original publisher: [Read original article](<https://meowni.ca/posts/styling-the-dome/>)

Author: Monica Dinculescu

Published: 2015-09-29T00:00:00Z

Content type: opinion

Language: en

Sources: [Monica Dinculescu](<https://devfeed.tech/sources/monica-dinculescu.md>)

Topics: [Document Object Model (DOM)](<https://devfeed.tech/topics/dom.md>), [CSS](<https://devfeed.tech/topics/css.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [background](<https://devfeed.tech/tags/background.md>), [change](<https://devfeed.tech/tags/change.md>), [color](<https://devfeed.tech/tags/color.md>), [css](<https://devfeed.tech/tags/css.md>), [input](<https://devfeed.tech/tags/input.md>)

### AI overview

This article explains how the Shadow DOM encapsulates the implementation and styles of custom elements, preventing styles from leaking in or out. It also describes styling the host element while keeping the element's internal implementation isolated.

### Source excerpt

One of the beefs (and there aren't many) that I have with CSS is that it has a very weak opinion about style encapsulation. That opinion is basically "well, name your classes well" or else bad things happen. Know this: I come from C++, land of rules and disappointed compilers; this hand waviness drives me crazy. This matters because now you have to trust the people that write your css libraries to have common sense. If my website needs two kinds of fancy buttons, which live in shiny-button.css and bouncy-button.css, which are both libraries written by silly people who want me to use the .button class to get their style, I'm hosed. Enter the Shadow DOM The Shadow DOM fixes this problem by building a little castle (a dome, get it?) around each custom element, locking in its implementation and styles. This is a proper castle, with a proper moat, so now styles can't get in and out of it. This means that if <shiny-button> was a custom element instead of a pile of CSS, its .button class was scoped to the element itself, and wouldn't stomp over <bouncy-button>'s similarly creatively named .button class. This shouldn't surprise you too much, as native elements have been doing this in secret for yeaaaaars. <input type=date> styles the date picker somehow, but you've never worried what class names it might use to do so. You know why? Because you can't get to its castle, that's why. The struggle is real So what happens if you do want to style <shiny-button>? What if it's a perfectly respectable button, but it uses Helvetica as its font and you really need it to be Comic Sans because Helvetica is so 2014? You can always style the host of the element. Think of the host as the castle walls; it's the thing that holds all the actual contents of the custom element. It still plays by CSS rules, so some of the styles you set on the host could actually trickle down to some child elements. For example: shiny-button { color: white; background-color: tomato; border-radius: 3px; width: 400

## How Code Reviews Support Chromium's Code Quality and Team Resilience

DevFeed: [How Code Reviews Support Chromium's Code Quality and Team Resilience](<https://devfeed.tech/articles/code-reviews-for-fun-and-profit-35513.md>)

Original publisher: [Read original article](<https://meowni.ca/posts/code-reviews/>)

Author: Monica Dinculescu

Published: 2014-03-31T00:00:00Z

Content type: opinion

Language: en

Sources: [Monica Dinculescu](<https://devfeed.tech/sources/monica-dinculescu.md>)

Topics: [Code](<https://devfeed.tech/topics/code.md>), [Chromium](<https://devfeed.tech/topics/chromium.md>), [code style](<https://devfeed.tech/topics/code-style.md>), [bus factor](<https://devfeed.tech/topics/bus-factor.md>)

Tags: [bus-factor](<https://devfeed.tech/tags/bus-factor.md>), [chromium](<https://devfeed.tech/tags/chromium.md>), [code](<https://devfeed.tech/tags/code.md>), [code-reviews](<https://devfeed.tech/tags/code-reviews.md>), [code-style](<https://devfeed.tech/tags/code-style.md>)

### AI overview

The article explains how Chromium uses code reviews and style guides to manage a large, actively changing codebase. It argues that review helps catch broken or poor-quality code, maintain consistency, and reduce reliance on a small number of contributors.

### Source excerpt

Stats: a preamble I've been reading too much about March Madness brackets, so I thought I had to run some numbers around here like the cool kids do. Get your umbrella out, it's about to rain cold facts. In the history of time, Chromium has had 205,095 commits made by 1,943 contributors representing 7,431,088 lines of code. In the last 30 days, there have been 5021 commits, by 637 contributors, including 53 new hoomans. I did some advanced Nate Silver analysis here for you, and that's at least 167 commits and 1+ new committers a day. On average, that's at least 7 commits an hour. Every hour. All of the hours. That's an imperial ton of new code being added, by what it seems like new people. Imagine if everyone could commit code willy-nilly. Are you imagining a minefield? You should. Code reviews ftw Good news for our browser using audience! Chromium isn't a minefield, and on top of it, has pretty awesome looking code. This comes from the fact that any code changes need to be reviewed and blessed before they can land on the master branch. More eyes means less bugs means you're less likely to commit broken code and break the internet. And you really don't want to break the internet. Even if you have tests, and everything is going your way, you can write correct, but genuinely shitty code. 7 million lines of kinda-shitty code is not something anyone wants to work with, and are worth investing a little time in fixing. Code reviews also bring up the bus factor, which is my favourite sinister nerd metaphor. You know, the buuuuuus factor. The number of people that can get run over by a bus on a team before that team is royally and epically screwed. If all the code that you write has been closely read by a different person, then you're probably ok getting run over by a bus every once in a while. But still, you probably shouldn't. Who would feed your cat? Consistent code is the best code Code style guides are sooper neat, and are a huge part of code reviews, because ain't nobo

## Building a DNS Server That Resolves Requests to Cats

DevFeed: [Building a DNS Server That Resolves Requests to Cats](<https://devfeed.tech/articles/oops-i-accidentally-the-whole-dns-35533.md>)

Original publisher: [Read original article](<https://meowni.ca/posts/oops-cat-dns/>)

Author: Monica Dinculescu

Published: 2014-02-06T00:00:00Z

Content type: opinion

Language: en

Sources: [Monica Dinculescu](<https://devfeed.tech/sources/monica-dinculescu.md>)

Topics: [Domain Name System (DNS)](<https://devfeed.tech/topics/dns-resolution-process.md>), [Server](<https://devfeed.tech/topics/server.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [authoritative name server](<https://devfeed.tech/topics/authoritative-name-server.md>), [Internet](<https://devfeed.tech/topics/internet.md>)

Tags: [authoritative-name-server](<https://devfeed.tech/tags/authoritative-name-server.md>), [caching](<https://devfeed.tech/tags/caching.md>), [dns](<https://devfeed.tech/tags/dns.md>), [how-dns-works](<https://devfeed.tech/tags/how-dns-works.md>), [server](<https://devfeed.tech/tags/server.md>)

### AI overview

A work-in-progress account of building a DNS server that resolves every request to cats. The article also explains the DNS resolution process, including recursive caching, root, top-level-domain, and authoritative name servers, and describes the challenges of parsing and testing DNS.

### Source excerpt

Here is my confession, internet: I am writing a cat DNS. That is, a DNS server that resolves everything to cats. You want your email? Cat! You want to check the weather? Cat! It's always cat. Wait why? We were talking at work about DNSes, and it turns out I only hand wavingly know how they work. I also like things that troll you. The reason why this post is about what I'm doing and not about what I've done, is because my server isn't done yet. Let me try to explain. The DNS spec is ridiculous. I genuinely don't want to parse it; It's got a billion fields, it's written in Courier New, and it is really boring. Pros: I have found a nodejs project on github that I'm working from. Cons: it doesn't work for me. Testing the DNS server is ridiculous. You take your DNS server for granted, dear reader. I know this, because the moment I set my crappy, barely-running, returning-nothing service as my DNS, a hundred thousand requests started coming in. You see, every service in the universe (gmail, hangouts, apple notifications, twitter) polls their mothership every second to check for updates. All these polls come to your server. All you want is to try to go to www.google.com in a tab and see what happens. It meeps, that's what happens. MEEP. DNS: How do it do it? You know how DNS works. You give a server a human readable hostname, like www.google.com, and it gives you back the IP address (like 74.125.226.113) where the thing you are looking for actually lives. Here's pretty much how it goes. You type in www.google.com. We're off to the races! This goes to a recursive caching name server, which, after doing some work, will give you the IP you need. This name server has a list of hints, such as addresses of root name serves, and most likely a cache of popular requests. Let's say it doesn't have an answer cached, which means it will go ask a root nameserver. A root nameserver might not know the IP of your service, but knows the IP of the top level domain you need to speak to (in t