1,107 karma · joined Mar 22, 2019 (7y ago) · 450 submissions
comment 2y ago · link · parent
I don't know, but I would bet that the sum of all corner cases and exceptions in the world would make it pretty hard to confidently eliminate any "obvious" characters.
From a technical standpoint, unicode emojis are probably safe to exclude, but on the other hand, some scripts like Chinese characters are fundamentally pictograms, which is semantically not so different than an emoji.
Maybe after centuries of evolution we will end up with a legit universal language based on emojis, and people named with it.
comment 2y ago · link · parent
Latin characters are NOT allowed in official names for Japanese citizens. It must be written in Japanese characters only.
For foreigners living in Japan it's quite frequent to end up in a situation where their official name in Latin does not pass the validation rules of many forms online. Issues like forbidden characters, or because it's too long since Japanese names (family name + first name) are typically only 4 characters long.
Also, when you get a visa to Japan, you have to bend and disform the pronunciation of your name to make it fit into the (limited) Japanese syllabary.
Funnily, they even had to register a whole new unicode range at some point, because old administrative documents sometimes contains characters that have been deprecated more than a century ago.
comment 2y ago · link · parent
But honestly, I am not sure about how I feel anymore. Internet has become a jungle where scams, lies, all sort of crimes, propaganda and manipulations from hostile foreign countries are now common and expected things of our daily life.
This is clearly destabilizing our democraties by creating distrust toward our institutions, and thus threatening peace and freedoms. And I absolutely blame social networks.
From a technical perspective I understand very well that there is no realistic solution to those problems, short of forbidding anonymity and requiring people to use their official identity.
There is of course the risk of this being abused by our own governements to attack freedoms, but lately I feel like this option would by far have more benefits than drawbacks.
comment 2y ago · link · parent
However I would say that IMO it's another case of foreigners buzzing by depicting boring and common stuff under a "weird Japan" light.
Shitty companies manipulating employees to stop them from resigning is something that exists in any country. And this escalating to the labor authorities or going through a lawyer is not a rare thing anywhere either.
It happens more frequently in Japan because the culture of not being confrontational is strong. The fact that lawyers can afford to specialize in this matter alone is just a logical result of the larger number of customers.
EDIT: I also want to add this: if you have been in a company for a while, you are eventually going to see or hear about how resignation is handled for other employees. If you want to quit and already know that the company is going to harrass you and make your life hell, is it so weird to save your time and mental health to delegate all of that to a dedicated professional?
96.
AWS BuilderCards(aws.amazon.com ↗)
22 points · by Seb-C · 2y ago · 11 comments
comment 2y ago · link · parent
98.
The history of the path separator in Japanese and Korean Windows(devblogs.microsoft.com ↗)
1 points · by Seb-C · 2y ago · discuss
comment 2y ago · link · parent
Until this week, I had a fancy tree visualization similar to the article's content (except that the location of the nodes was hardcoded). I spent quite some time to implement it and get it right, and it was difficult to maintain and update when adding new content.
Also, one feedback that I got from early testers is that this is confusing, and they didn't know how to read it.
I think that the main problem is that in such a graph, it is difficult to know if a branch means "A is an ingredient to make B" or "A is a machine that you can use to make B".
I spent time this week replacing it with a dumb list showing individual recipes in the form of an equation like "A = B + C", and I find it not only easier to understand, but also way cheaper to maintain.
You can see the previous version in one of the screenshots (fifth thumbnail): https://store.steampowered.com/app/2597060/Astral_Divide/
And the first draft of the new version: https://mastodon.gamedev.place/@sebc/113327870376150885
100.
Prep: Golang Comptime(github.com ↗)
106 points · by Seb-C · 2y ago · 25 comments
103.
Custom Linting Rules in Go(github.com ↗)
3 points · by Seb-C · 2y ago · discuss
comment 2y ago · link · parent
Now I decided to myself live in Japan and I hear the very same speech as yours again and again about my host country. Yet my experience is very positive, I have integrated well and made my life here, and I never felt like I wasn't accepted.
But of course it took a lot of work to get there. Learning a new language, getting familiar with the local culture and embracing it is far from easy. The problem I see with some foreigners here is that they simply don't do this work and keep living in their own (often unhappy) bubble. Or even refuse to embrace some local customs because they are convinced that their own culture's way of doing things is superior to that.
comment 2y ago · link · parent
Also there are many cases where you might need to have some special logic after the last iteration, so simply killing the underlying function is not an option.
comment 2y ago · link · parent
Go is far from perfect and certainly has a lot of flaws, but IMO the iterators design fits well into the language and does not deserve the criticism.
The range only needs a function, so what is the point of calling a function that returns a function?
This is enough to make a range iterator, you don't have to call `All` manually:
func (slice Slice) All(yield func(string) bool) {
for _, s := range slice {
if !yield(s) {
break
}
}
}
https://go.dev/play/p/7AYOXzlHU4t?v=gotipIn Go, the expression `object.method` already returns the method as a function, with `object` being already bound in the scope of the function. The syntax is so that if you have this definition:
type T string
func (t T) f(a int) int {
return a
}
Then:- `T.f` returns `func(t T, a int) int`
- `T("whatever").f` returns `func(a int) int` where `t` is already set to `"whatever"`
- `T("whatever").f(42)` calls the function and returns `42`
108.
Go 1.23 Release Candidate 1 is released(groups.google.com ↗)
1 points · by Seb-C · 2y ago · discuss
comment 2y ago · link · parent
Knowing what to write and how to organize the code is the really difficult part of our job, and I am unable to do this correctly when reviewing stuff written by others (or by an AI).
I have been wondering if people are actually using those to save time writing boilerplate code, in which case it would make sense.
Vim has greatly increased my productivity by allowing me to save time for all repetitive tasks, and it's consistent and reliable (but also super hard to learn).
Maybe it's just a completely different approach in resolving the same problems?
comment 2y ago · link · parent
When I review code, I am completely unable to get this mental picture, and I usually miss a lot of issues that I would otherwise have avoided.
Which is why I don't see the point of Copilot.
comment 2y ago · link · parent
It's nice to try to create awareness however, but the heap/stack is not the first thing that would come to my mind tbh.
comment 2y ago · link · parent
There is no way that those numbers are right.
EDIT: Yeah, Steam has 120 million active users per month. And the 6+ million users for Quest is from 2022, during the pandemic and metaverse bubble. Would be curious to know the trends for 2023 and 2024 thought.
comment 2y ago · link · parent
Even for something as simple as deciding to "go shopping" tomorrow, there is some probability that it does not happen. But it is still my decision to do so.
The only way to never fail is to never try. But it means you will never win either.
comment 2y ago · link · parent
The worst places for me are precisely those where you can get by with 1~2h of work a day because no one cares and the company's culture does not value the time and skills of his workers.
comment 2y ago · link · parent
This is a more efficient way to waste time, it might actually succeed in many companies (until Google kills it anyway).