I know Jerry Map (I hope that someday will be a exposition in Spain) because I love it, I love the https://en.wikipedia.org/wiki/Outsider_art. The people who maybe mad and they built a world with own rules.
What has always bothered me about TypeScript are union types. If you have a function that receives a parameter such as ‘Dog | Cat’, you cannot separate it. For example:
type Dog = { bark: () => void }
type Cat = { meow: () => void }
function speak(animal: Dog | Cat) {
if (‘bark’ in animal) {
animal.bark();
} else {
animal.meow();
}
}
Okay, okay, I know you can filter using ‘in’ to see if it has methods, but in real life, in a company where you have a colleague (who is a golden boy) who writes over-engineered code with hundreds of interfaces of interfaces, you don’t want to spend time searching through the files to find every element that is in the union type.
Whereas in Rust it does:
struct Dog {
name: String,
}
struct Cat {
name: String,
}
enum Animal {
Dog(Dog),
Cat(Cat),
}
fn process_animal(animal: Animal) {
match animal {
Animal::Dog(dog) => {
println!(‘It is a dog named {}’, dog.name);
}
Animal::Cat(cat) => {
println!(‘It is a cat named {}’, cat.name);
}
}
}
I think TypeScript should add a couple of lines of code to the generated JavaScript to do something like:
type Dog = { bark: () => void }
type Cat = { meow: () => void }
function speak(animal: Dog | Cat) {
if (animal is Dog) {
animal.bark();
} else {
animal.meow();
}
}
Some years ago a chinese company released a phone with 2 screens, one typical mobile screen and other side a e-paper screen.
But I don't remember what happened, but unfortunately this idea didn't succeed.
There is not a old socket from the toilets in the old trains (maybe trains are 60 years old...more or less 1970) in Spain. This sockets are near the mirror and I think that this sockets were for old electic shavers.
I remember that years ago when the android phones started there was a app for flash games....I don't remember the name the app (and maybe this app does not run in current android phones)
Because Nint€ndo or $ony (and others game companies) have a big problem, their old games are awesome and if the people can play these games, then the people will be happy and will not need new games or new sagas.
Because the problem is not the people playing old games, the real problem is the people will not pay for new games
And we know that these companies have army of lawyers (and "envelopes" to distribute among politicians) to change the laws and make illegal something that is not illegal.
Here's the tutorial
https://docs.godotengine.org/en/4.4/tutorials/editor/command...
History is cyclical. Because I remember same situations m$ windows released features years after the same feature in GNU/Linux, or Iphon€ vs android.