It’s nearly lunchtime, and I’ve been coding for a few hours. I took a 20-minute break and found myself procrastinating by tidying up in front of the closet in the bedroom. I enjoyed it, and it looks much cleaner now. I also vacuumed the space. There’s this box of crochet supplies that I need to start using, as I really want to learn how to crochet. So why do I have such a feeling of anxiety to start?
Kel and Karissa are heading down to the city now. Karissa has a Gradfest event at the college, which is a nice change for her to get out of the house since she’s usually at home. Tomorrow, she has a virtual open house for the university, which I assume will take up most of the day.
I feel inclined to clean today, but I need to focus on my coding. I’m tasked with writing a function that emulates the behavior of Promise.all(). I’m not entirely sure how that works yet, but I did some research. Promise.all() is a method in JavaScript that takes an iterable of promises as input and returns a single promise. This returned promise resolves when all the input promises have resolved, or it rejects if any of the input promises fail. If all promises are resolved, the resolved value of the returned promise is an array containing the resolved values of the input promises, in the same order.
I’m still a bit confused on how this works. Mdn web docs has this example, which I understand a little:
const promise1 = Promise.resolve(3); const promise2 = 42; const promise3 = new Promise((resolve, reject) => { setTimeout(resolve, 100, "foo"); }); Promise.all([promise1, promise2, promise3]).then((values) => { console.log(values); }); // Expected output: Array [3, 42, "foo"]
I’ve spent several hours reading about `Promise.all()`. After examining numerous examples, I believe I have a decent grasp of the concept. I find it somewhat amusing that many of the examples are quite similar, yet I continue to search for variations. It makes me think that perhaps this is what insanity feels like.
I’m considering getting my hair cut, and Tommy has been joking about giving it a try himself. However, I believe it’s wiser to have a professional hairdresser do it to minimize the risk of any mistakes. I can easily picture my hair getting shorter and shorter as he attempts to make it even! Haha!
I still need to read “The Paris Apartment,” but first, I want to finish “The Third Gilmore Girl.” It’s really interesting! If you’re a fan of Gilmore Girls, you’ll definitely enjoy this memoir. I’m about 67% through it and I’m currently at the part where she discusses Gilmore Girls. I should be able to wrap it up in the next few days. I don’t plan to read tonight, but I might find some time on Saturday to continue. Once I finish that book, I’ll dive into “The Paris Apartment.”
I brought Merlin inside and he is now sleeping in the office. At first my squeaky desk freaked him out but he is used to it now.
The day is winding down and I think I will make a cup of tea and read for a bit.





