Chris Jarling

I think I’ve mentioned it here and there already, but never explicitly, and it feels like a thing I’d want to explicitly mention: We’re relocating to Denmark. While we’re not completely finished with the process, we’ve got a good chunk of it done already and I’m currently writing this from my desk in Denmark.I’ll likely write more about this move and how I’m settling into this new life in the future, but the whole process of physically moving has been very eventful and exciting already, which justifies writing about it....

Continue reading

Jest is a great JavaScript testing framework and I love to work with it. On a daily basis, I mostly work with it and describe blocks and it's matchers. I've recently come across one of it's lesser known features. Or, at least it was lesser known for me personally: Loops.For both it and describe blocks, Jest offers Looping functionality. Loops allow you to write a test case once and pass different data into it for each run. Here's the example from the Jest documentation at the time of writing:it....

Continue reading
1st Aug, 2024

Desk - August 2024

I enjoy seeing pictures of other peoples' desks, but I rarely upload pictures of my desk myself. It's probably nice to look back over the years on where I worked with which setup (which I can do, because I have pictures, but I don't have any written documentation on it). Time to change that.The first one is a little messy (sorry for the cables), because it's a temproary one. I'm only in this room for a month. We're staying with my mother-in-law because we're moving countries....

Continue reading

If you’re a web developer, you have probably used the JSON.stringify() method in JavaScript. And if you’re anything like me, you will most likely have used it with just an object value that you want to stringify, either to store values in localStorage or to return a JSON response in an api route.But did you know that JSON.stringify() method actually accepts three parameters?JSON.stringify(value, replacer, space) Let’s talk about the other two a little.SpaceWe’ll start with the last one, space, since it’s less complex....

Continue reading

It's important to make a distinction between a side project and a side hustle for this article to make sense. When I talk about side project in the following, I exclusively mean programming side projects.Almost every programmer I know has some sort of side project going on[^1]. If you ask a programmer what they are currently working on, there is a good chance they will tell you about their side project instead of their day job.[^2]I think there is two reasons for that. First, when you start out people tell you to build things that you can show around to land a job....

Continue reading

Say we have the following form using zod and react-hook-form:const schema = z.object({ duration: z.number().optional(), }) export const Form = () => { const { handleSubmit, control, register } = useForm<FormData>({ resolver: zodResolver(schema), }) return ( <form onSubmit={handleSubmit(onSubmit)}> <input {...register('duration', { valueAsNumber: true })} /> </form> ) } Submitting the from will not work....

Continue reading

There's a bunch of different conditions that can cause distress in a baby. Here's an incomplete list:Too coldToo hotHungryTiredFull DiaperTummy hurts because there's air in itTummy hurts because a fart isn't coming outTummy hurts because poop isn't coming outTummy hurts, in generalJoints hurt because they're growingSensory overloadProgressing what happened during the dayHowever, they only have one way to communicate: They cry.It's a little bit like trying to debug a program that's not working, but the only output you get is Uncaught Error: Error with no stack trace at all. It's... interesting....

Continue reading
4th Jan, 2024

The world is small

Growing up, I thought the world is huge. There are 7.8 billion people on this planet and I only knew a few of them. But really, the world is kind of small. Reaching out to people you think of as unreachable becomes easier once you know a few people. An example: Paul Graham.Pretty well known in business, seems unreachable. However, Gigs was part of Y Combinator, so chances are our founders know Graham. So this would make him a 2nd level connection for me:me -> our founders -> Paul Graham(not sure if they actually know him, but if not, they definitely know someone who does....

Continue reading

"You can't steer a parked car". I came across this in a video the other day and it resonated a lot with me. [^1]It's easy to sit around and think about doing something and trying to plan every eventuality. This is a fool's errand, though.First, your plans will never just work in life. It just doesn't happen.Second, you cannot possibly know what problems and issues could arise on the way, until they do.The logical thing is to just start moving and figure things out on the way. It's scary to do that at times, so thinking about something is the easy way out for the brain....

Continue reading

In the light of the third point in this list, I'll keep what I want to do this year simple. I have three topics I want to focus on:Have funBe healthySimplifyThey're also vague and not quantifiable. This is against what every productivity expert will tell you. I learned for myself that hard numbers on goals will create too much pressure on me and I will just let it slide. Those are more like loose guidelines, or themes for the year.Have funI tend to forget about having fun. My life is pretty good right now, I get to do a lot of things I enjoy....

Continue reading
© 2026 Chris Jarling - fc8d137