Brutkey

Kotes
@kotaro@kotaro.me

He’s just an ordinary office worker living in Tokyo, Japan.


Notes
30215
Following
0
Followers
0
Location
Tokyo
Blog
blog.kotaro.me/

Kotes
@kotaro@kotaro.me

I'm not very familiar with the political situation in the US, but dressing like ICE is not something a respectable adult would do. This isn't Counter-Strike cosplay.

Kotes
@kotaro@kotaro.me

I'm Japanese, so I don't know much about the political situation in the US, but aren't ICE agents technically civil servants?

Even though they're public officials, isn't it lame how they dress like some kind of gang or terrorist group and act all tough?

Kotes
@kotaro@kotaro.me

The powers that be of the night are always drawn to new things and to youth, wanting to assimilate with them.

Just like Epstein.

But for some reason, I've recently started to feel revulsion towards it.

Kotes
@kotaro@kotaro.me

My junior colleague, the woman who leads my team, is reading self-help books and earnestly trying to figure out how to act to gain influence in the male-dominated business world.

She keeps recommending the book to us.

Kotes
@kotaro@kotaro.me

In Japan, women's advancement in society has only just begun.

Although, the Prime Minister, the most powerful person in the country, is now a woman.

It's because the business community feels like it's dotted with groups of women who seem to have unconsciously internalized toxic masculinity.

Kotes
@kotaro@kotaro.me

Today, I finally learned what asynchronous processing is all about through the firsthand experience of failure.

Now I have a story to tell. I was lucky.

I can't thank that back-end engineer enough.

Kotes
@kotaro@kotaro.me

I learned on MDN that event listeners themselves are asynchronous, so I didn't expect the callback to be synchronous.

However, that's something I would have realized if I had just stopped to think about it for a moment.

The reason I can usually treat an event listener's callback as if it were synchronous without giving it a second thought is that by default, it's a synchronous function.

I was under the misconception that anything with an arrow syntax like
=> was an asynchronous process.

Kotes
@kotaro@kotaro.me

I was so foolish today. It all happened in just a few hours, but it’s already become an embarrassing memory.

In JavaScript, when you’re inside an async function and want to store JSON received from a server, you assign it like this:
const data = await response.json(). You do this because response.json() returns a Promise, and you can’t get the actual data without using await.

I didn’t forget that part. In fact, I was so careful that I even kept using
await on the data after storing it in a variable, like selectedMonsterData = await data. I thought I had a solid grasp of JavaScript fundamentals.

But when I called the async function that contains
fetch from a different button’s click event listener, I forgot to use await. To be precise, I forgot how to declare an event listener as async. So I never even thought to add await before calling the function that runs fetch.

Because of that, the front end didn’t wait for the necessary data after I clicked the button to send a POST request to the server, and that caused a null error.

Overconfidence can delay projects. My mistake today only cost me a day, but it made me reflect deeply.

Kotes
@kotaro@kotaro.me

AI can be easily manipulated by messages posted on the web.

That's why this time, I thought about the dangers of prompt injection and decided against installing Firefox AI Window.

Kotes
@kotaro@kotaro.me

I'm so lazy and have a habit of using my smartphone while lying in bed, and it feels like it's putting strain on my arm.

So, maybe I'm on the fediverse too much.

WHAT IS CELL PHONE ELBOW?
https://osrphysicaltherapy.com/what-is-cell-phone-elbow/