21,524 karma · joined Oct 27, 2025 (1y ago) · 7,589 submissions
https://emsh.cat
embedding-shapes@proton.me
comment 11mo ago · link · parent
I'm not saying it's hard to change types in TypeScript, I understand that your IDE is connected with the language and they're used together, but again my argument was that having types leads to having to change things in more places. Which is true too, and it's a good thing, it's on purpose, and the tools you use help with that, so yay for that! But it's still more changes, and at least for me it's important to be honest about the tradeoffs our choices leads us to.
As I mentioned earlier, I'm fan of static typing in many situations, just not all of them. And I'm not blind to the negatives they can bring too, I guess I just see more nuance in the static typing vs dynamic debate.
comment 11mo ago · link · parent
comment 11mo ago · link · parent
What do you mean that the countries are poorer? Are you just thinking about the gross salary people get per month, or is there something else in this calculation?
The fact that people get health care, parental leave, can freely move between countries, able to afford having a child, have emergency services that arrive relatively quick and all those things mean that a country is not poor, and the countries that don't have those, are "poorer", at least in my mind. When I think "poor country" I don't think about the GDP, but how well the citizens and residents are protected by ills.
comment 11mo ago · link · parent
It's actually pretty fun and interesting the different bubbles we all live in, for better or worse.
comment 11mo ago · link · parent
comment 11mo ago · link · parent
Or something one might want to say if they want to still have plausible deniability about not having been there, yet still want to say something. Who knows.
comment 11mo ago · link · parent
> The initial roster of private sector partners includes Adobe, Amazon Web Services, AMD, Anduril, Apple, Box, C3.ai, Coinbase, Databricks, Dell Technologies, Docusign, Google Public Sector, IBM, Meta, Microsoft, Nvidia, OpenAI, Oracle, Palantir, Salesforce, SAP, ServiceNow, Snowflake, Robinhood, Uber, Workday, xAI, and Zoom. This list will expand over time.
Ever wanted to get involved in government-sanctioned espionage technology? This seems like an recruitment effort for that. Applicants beware. Remember that in just 3 years this will stop helping you to get hired, and will probably look like a blemish on your CV when you eventually need to get a new job.
comment 11mo ago · link · parent
It seems like Americans forget how young their country is, it's barely a blimp in history so far, although recent written history makes it seem a lot older than it is.
comment 11mo ago · link · parent
Christ, we really need reading comprehension classes and ideally poetry classes or something similar, since people are unable to read more than the actual characters today it seems... Seems extra problematic in software/programming circles, maybe we need to add arts classes to science programs too?
comment 11mo ago · link · parent
Yeah, sure, and with LLMs you can do this, and you can do that. But if we're talking about languages and their features, relying on IDE features feels slightly off-topic.
But regardless, changes is changes, no matter if you, your IDE or your LLM made them. So even if your IDE makes the changes, it seems at least you can now agree that there are more changes needed, it's just that with TypeScript you have a editor who can help you refactor, and with JavaScript you haven't yet found an editor that can do so.
> So I don't need to bother writing tests for "what if this parameter isn't set" or "what if this function returns something unexpected".
Yeah, those unit tests does nothing, and people who write in dynamic languages don't write tests like that either. You test actual logic, in unit tests, and you rely on the signals that gives you.
In fact, I could bet you that if you and me both sat down and wrote the exact same application, one in JS and one in TS, we'd end up with more or less the same amount of unit tests, yet the JS codebase will be a lot more flexible once product requirements start to change.
But again, YMMV and all that, it's a highly personal preference. I don't think there is a ground truth here, different minds seem to prefer different things. I mostly work in environments where the requirements can change from day to day, and being able to adopt to those without introducing new issues is the most important thing for me, so with JS I stay.
comment 11mo ago · link · parent
People are generally not super closed nor open about it, although some individuals were more closed about it. Most seemed honest when asked about it, but again, YMMV.
comment 11mo ago · link · parent
comment 11mo ago · link · parent
JavaScript:
// rename host -> hostname, update ONE place
function connect(opts) {
const host = opts.hostname ?? opts.host; // compat shim
return `tcp://${host}:${opts.port}`;
}
// old call sites keep working
connect({ host: "db", port: 5432 });
connect({ host: "cache", port: 6379 });
// new call sites also work
connect({ hostname: "db", port: 5432 });
TypeScript: // same compat goal, but types force propagation unless you widen them
type Opts = { port: number } & ({ host: string } | { hostname: string });
function connect(opts: Opts) {
const host = "hostname" in opts ? opts.hostname : opts.host;
return `tcp://${host}:${opts.port}`;
}
// If instead you "just rename" the type to {hostname; port},
// EVERY call site using {host; port} becomes a compile error.
Again, this is just a simple example. But multiply 100x + way messier codebases where everything are static types and intrinsically linked with each other, and every change becomes "change -> compile and see next spot to change -> change" until you've worked through 10s of files, instead of just changing it in one place.Personally, I prefer to spend the extra time I get from dynamic languages to write proper unit tests that can actually ensure the absence of specific logic bugs, rather than further ossifying the architecture with static types while changes are still ongoing.
comment 11mo ago · link · parent
comment 11mo ago · link · parent
> We provide some non-personal data to our advertisers and strategic partners that work with Apple to provide our products and services, help Apple market to customers, and sell ads on Apple’s behalf to display on the App Store and Apple News and Stocks. For example, we may share non-personal data about your transactions, viewing activity, and region, as well as aggregated user demographics such as age group and gender (which may be inferred from information such as your name and salutation in your Apple Account), to Apple TV strategic partners, such as content owners, so that they can measure the performance of their creative work, meet royalty and accounting requirements, and improve their associated products and services.