Jesse Wei
banner
mrjwei.bsky.social
Jesse Wei
@mrjwei.bsky.social
Product Designer & Software Engineer | Bridging creativity and technology to drive innovations.

My blog and works:
https://www.jessewei.net/
Landed in #Brisbane and ready to start a new academic journey! I'm going do a master's in IT to further explore the intersection of #design and #technology.
February 21, 2025 at 10:08 PM
The #TestingLibrary offers various query methods like findBy~ and queryBy~, each with distinct behaviors depending on whether elements are found or not.

Here’s a quick reference table to compare their return values and error-throwing behaviors (image source: testing-library.com/docs/queries... ):
January 24, 2025 at 11:38 AM
A better approach is to keep secrets on the server and never send them to the client. This is where Next.js Server Components come in handy. #ServerComponents #Security
January 12, 2025 at 1:42 AM
To make env vars accessible in the browser, we can prefix them with NEXT_PUBLIC_, but that completely defeats the purpose of keeping them secret.
January 12, 2025 at 1:42 AM
At first, I didn’t fully get this, thinking I could manage sensitive data using environment variables in client components to keep them hidden. But that doesn’t work, because env vars are only available on the server by default.
January 12, 2025 at 1:42 AM
It's #ChristmasEve in #Japan, so no work or studying tonight—just enjoying a traditional Japanese dinner with family!
December 24, 2024 at 12:38 PM
✅ To improve, I leveraged the `Intl.DateTimeFormat` object which allowed me to set the timezone explicitly. This way, I managed to get rid of the dependency on the timezone of the machine that runs my code, which is basically out of my control. #Javascript #Typescript #BestPractice
December 9, 2024 at 1:15 PM
❌ The initial function's returned value was dependent on the timezones of d1 and d2—if they do not match, the result may be unexpected (in this case, even if two dates are of the same day, a falsy value may be returned due to timezone difference).
December 9, 2024 at 1:15 PM
Started the #Fastai DL course and built my first image recognizer model. It was fun to test it in a simple web app. Super excited to dive deeper!
December 8, 2024 at 2:14 AM
✅We can do this to make the test cleaner and more maintainable:
December 7, 2024 at 12:20 AM
#ParameterizedTests are super handy and flexible. ❌Instead of doing:
December 7, 2024 at 12:20 AM
For example, in this case, I’d love the ability to adjust my layout conditionally based on whether the icon is visible when creating the component:
December 5, 2024 at 8:33 AM
Just wonder what PREVENTS them from unifying the behaviour across all view types??
December 3, 2024 at 6:28 AM
One behavior of #Notion that annoys me is how clicking the title cell in a table view doesn’t open the page—it just puts the cell into edit mode. What’s most confusing is that clicking the title does open the page in other views.
Any thoughts on why Notion designed it this way?
December 3, 2024 at 6:28 AM
With some hints found online, I managed to prove it myself with some basic #Calculus concepts:
December 3, 2024 at 5:50 AM
In #Calculus, the nth-term test states that:
December 3, 2024 at 5:48 AM
By treating the blue areas in the graph as triangles, I worked out an approximation for the #HarmonicSeries: Hn ≈ ln(x) + 1/2 (x ≥ 1). With the exact constant (~0.577, the #EulerMascheroniConstant), I wasn’t far off!
December 1, 2024 at 2:23 AM
The fact that the #HarmonicSeries, ∑(1/n) from n=1 to ∞ diverges to ∞ felt so counterintuitive at first—but it was surprisingly easy to prove with this magic graph! Truly one of the most beautiful things I’ve ever seen. #Math #KhanAcademy #Calculus
December 1, 2024 at 1:50 AM
Didn't know that #VSCode comes with a #Refactor feature that is so handy! Just select the code to refactor and hit shift + ctrl + r, and then you can choose to extract the code to functions, to move it to files or to wrap it with for loop, try/catch and so on. #Productivity #Programming
November 30, 2024 at 8:08 AM
The #IntermediateValueTheorem feels so intuitive yet tricky to prove logically. I couldn’t wrap my head around the standard proof at first, so I broke it down step by step in a super verbose manner lol. That’s the beauty of math—intuition isn’t always easy to prove! #Math #Calculus #LifelongLearning
November 29, 2024 at 7:42 AM
11-week streak on Khan Academy learning Calculus!
Feeling quite happy about it. The topic's been much more complex than I expected, but the experience's been super engaging! Excited to finish it up and dive into linear algebra next. #Calculus #MathLearning #KhanAcademy #LifelongLearning
November 29, 2024 at 7:17 AM