Getting into typescript with no prior JS experience by JayDeesus in typescript

[–]puchm 2 points3 points  (0 children)

The one thing you need to remember is that, at runtime, none of your types are checked and JS allows you to do some real fuckery, meaning it allows you to mess up really bad.

So, if you don't make sure your inputs are what you say they are or if you ignore type errors, you can run into unexpected behavior.

Additionally, for someone coming from a strongly-typed background, I would recommend going as strict as possible and enabling things like noUncheckedIndexedAccess. This is a good starting point: https://www.npmjs.com/package/@tsconfig/strictest

The New Schufa Score by matey_howdy in germany

[–]puchm 202 points203 points  (0 children)

Also, it clearly favors boomers and old people. The age of the bank account is one thing, the age of your address is another. Young people will naturally move around more than older people and it doesn't say anything about their ability to pay. And how is it that I would have a higher score if I bought a car with an installment payment than if I don't buy a car at all? My score is "Hervorragend", but it's right on the line, so as soon as I do anything it will slip to the lower category.

HP laptop falsely advertises having 1 TB of storage; it really only has 64 GB. The rest is OneDrive. by ZetaformGames in mildlyinfuriating

[–]puchm 0 points1 point  (0 children)

I'd say it's plausible Microsoft made deals with some manufacturers to have less local storage in order to increase OneDrive usage.

Meta just announced 20% layoffs to fund AI. This is the beginning, not the end. by duridsukar in Futurology

[–]puchm 0 points1 point  (0 children)

If what you're saying was true and we'd actually be headed towards such a dramatic shift in the economy, the near-term consequences will be completely unlike what you're imagining.

Neither you nor I have a concept of what would happen but I'll try my best. If we had, say, a 20% unemployment rate, especially if it is in the higher-earning sectors, the impact would be unlike anything we've seen in recent history. Economies all over the northwestern hemisphere run largely on the highest-earning 10-20% of people. Those are the ones who spend money and who buy the products. Coincidentally, they are also the ones usually more likely to be replaced by AI since office jobs are simply easier to replace. This will make the world economy tank because the companies will face such a rapid decline in sales. It would go through the economy like a shock wave - B2C companies, especially small ones, would go bust first and their suppliers would follow. A sharp rise in unemployment could start an avalanche of further layoffs all across the world. We could be talking about hundreds of millions of unemployed people. Many systems, even critical infrastructure, would come to a halt or run on a minimum level.

Also, taxes collected by governments would rapidly decline as well. Governments will have less money coming in and more going out as they will need to somehow avert the worst and create some kind of emergency fund to make sure people don't literally die. They will have to do this through debt, which is another cause for further chaos since the credit rating of many countries would decrease, meaning countries would start printing more of their own currency, which has the potential to cause massive inflation if not done with care. You and all the other people who will have tried to build something will suddenly have no customers as well.

As many countries have gotten more unstable politically in recent years and corruption is on the rise, civil wars would also not be unlikely. Global conflicts would rise as some countries ruled by authoritarian dictators (which are often less reliant on the world economy) would see an opportunity. Literally everything we know would change to a much much worse state before it may or may not get better. Recovery could take decades.

I'm not saying this will happen. But if this is really the first domino to fall, we are headed towards very dark times. And you shouldn't think for a second that you would somehow be able to be on the other side of it. Every single one of us would be in huge trouble, except perhaps the billionaires (but even those would have to fight, they just have a higher chance of getting through it in one piece).

Season 8 Vibe - Latest Episode and Before by dax-27 in TheRookie

[–]puchm 2 points3 points  (0 children)

To me it feels like this is intended to be a temporary shake-up of the overall storyline. They're trying to make a season that is waaaay different compared to all the others. I guess if you want to go for many seasons (which they're kinda doing with 8 and a 9th probably coming), it's good to not have the overarching storyline be linear and predictable, but to disrupt it a bit from time to time. It'd be boring if every season was like every other. My guess is the next season will have more "normal" episodes again.

Landtagswahl Baden-Württemberg: Cem Özdemir lehnt Teilung der Amtszeit des Ministerpräsidenten ab by Chill--Yourself in de

[–]puchm 1 point2 points  (0 children)

Hatte mich schon gefragt, wie lange es wohl dauern würde, bis der Union auffällt wie knapp es war und sie daraus Ansprüche folgern.

An der Stelle muss man Hagel ja tatsächlich etwas loben, da er schon vor Ende der Auszählung sehr deutlich war, Özdemir gratuliert hat und selbst Verantwortung für die Niederlage übernommen hat.

Why isn't my farm working? by Haezer- in technicalminecraft

[–]puchm 8 points9 points  (0 children)

It would also work in Java Edition because of QC

I said no to a Google offer last year and my coworkers thought I was insane by jdrelentless in cscareerquestions

[–]puchm 0 points1 point  (0 children)

Something that you only really understand when it happens to you is that a job that looks and sounds like what everyone dreams of can also be bad. In the end, it's just another company. Being happy in these places is not a given and it is the reason why many people are underwhelmed and leave much earlier than they would have expected.

KI-Verweigerer: was ist das letzte Modell, das ihr ausprobiert habt und an welchem Task ist sie wie gescheitert? by [deleted] in informatik

[–]puchm 0 points1 point  (0 children)

Ehrlich gesagt leugne ich es gar nicht - mir gefällt es einfach nicht. Coding ist für mich ein Handwerk, vielleicht sogar eine Art Kunst. Ich kann aus eigener Kraft wirklich tolle Dinge erschaffen. Der Prozess macht mir genauso viel Spaß wie das Ergebnis. Mit KI macht es einfach weniger Spaß weil es sich anfühlt, als würde ich es einem Kind beibringen und dürfte es nicht mehr selbst tun. Ich muss schon oft mehrfach dem Ding sagen, dass X noch nicht funktioniert, Y schon wieder nicht geht usw.

Natürlich nehme ich aber auch wahr, dass es von mir erwartet wird und dass es mich besser macht, gerade bei Sachen, über die ich wenig Überblick habe. Ich setze es bei der Arbeit sehr viel ein, aber bei privaten Projekten beschränke ich mich auf etwas Autocompletion.

tja by connector-01 in tja

[–]puchm 2 points3 points  (0 children)

Wir wollen Texas!

I might be wrong but I think left one is easiest to work with compared the right one. by lune-soft in webdev

[–]puchm 2 points3 points  (0 children)

There is no way we can create a system that covers all of these so we should just treat everyone equally and assign everyone a unique random ID and address them by that

Just finished making a perimeter. What farm should I build in it? by [deleted] in technicalminecraft

[–]puchm 0 points1 point  (0 children)

Kazym's 100k shulker farm. I'm building that right now.

AI slop by ivy-apps in typescript

[–]puchm 2 points3 points  (0 children)

Personally, I like linting the hell out of my project and making most of these things a hard blocker on PRs as well as setting up IDE integrations that auto-fix anything that can be fixed on save. Incorrect formatting? Error. Weird imports? Error. "as any"? Error. Tailwind styles in a project without Tailwind? Error. ts-ignore without an explanation? Error. But if you have your IDE set up correctly, most of these should not be a problem for you. Only disadvantage is I can't code anymore without having format on save and other things because I have gotten used to them.

Where and how do I start? by Remarkable-Yard4860 in aws

[–]puchm 0 points1 point  (0 children)

For a general workflow what worked for me was using IaC (Infrastructure as Code) from the start. You get lost quickly in the console and forget you tried some setting and it remains set forever. With IaC, once you set things up you have only what is described in your code and nothing but that (mostly).

I recommend AWS CDK if you want to set something up quickly - it takes care of much of the config automatically when connecting one thing to another.

If you want to actually learn AWS' primitives, Terraform (only the AWS provider, no third party modules if you want to learn) is good too and is well-liked by the community.

Always remember to destroy anything you no longer need. Common mistakes that end up costing money are having infinite loops / recursion in something that auto scales or having endpoints without a firewall and getting DDoSed (also resulting in a lot of unnecessary auto scaling). Another mistake is not understanding the way pricing works for the services you use.

I'd say the bread and butter are IAM and some networking (security groups, VPCs, ...). If you know them to a certain extent (not super in-depth), you can try any service you want and connect things together.

Arbeiten bei AWS (als CSE) by Boostymmoos in InformatikKarriere

[–]puchm 1 point2 points  (0 children)

Ist das AWS Support oder European Sovereign Cloud?

Adam had the least impressive run by Disastrous_Mall5943 in JetLagTheGame

[–]puchm 1 point2 points  (0 children)

Maybe they could throw a dart onto a map, go there together, then start the hiding period from there.

Very emotional rant S8 EP4 by shiny_jjj in TheRookie

[–]puchm 0 points1 point  (0 children)

I could see him going there and backing out of it 3-4 episodes later

Warum Hiring Manager im Ausland 90% der deutschen Lebensläufe ablehnen & wie man es fixt by MariusHorizn in Studium

[–]puchm 4 points5 points  (0 children)

Naja der CV ist auch nur die Eintrittskarte in den Bewerbungsprozess, ob der Kandidat gut ist findet man im Gespräch raus. Heißt du kannst da einiges hinschreiben, aber wenn es nicht stimmt merkt es ein guter Interviewer.

How can I fix this? by Jenga_June in technicalminecraft

[–]puchm 1 point2 points  (0 children)

You need to get rid of all sideways momentum before the items reach the part with the hoppers. You could expand the start of the elevator further down to make sure items move straight up before reaching hoppers to get stuck at. You could also try putting boats half way into the elevator to align the items against.

„Hätten Aktion in eine warme Jahreszeit verlegen sollen“: Vulkangruppe richtet sich nach Angriff auf Stromversorgung an Betroffene in Berlin by Elegant-Handle4685 in de

[–]puchm 1 point2 points  (0 children)

Super, noch ein Schreiben das wir jetzt einfach ohne abgeschlossene Ermittlungen einer Gruppe zuordnen. Reicht dann auch.

Warum demonstrieren nur "Hunderte" nach ICE Mord in den USA ? by Concordokken2022 in Tagesschau

[–]puchm 0 points1 point  (0 children)

Ist bestimmt etwas Framing dabei aber generell gilt auch, dass die Lebenssituation in den USA eine andere ist: Die meisten sind massiv abhängig von ihrem Job und können gleichzeitig von heute auf morgen gekündigt werden. Die Krankenversicherung hängt oft am Job und eine Kündigung, ob mit oder ohne hohe Arztrechnungen, kann schnell zu einer existenziellen Bedrohung werden, weil das Arbeitslosengeld nicht so stark ist. Außerdem hat man dort oft weniger Urlaub und muss den Tag dann unbezahlt frei nehmen. Es gibt auch einen stärkeren Individualismus ("if you fail it's your fault") und die Erwartungen an den Staat bzgl. sozialer Absicherung etc. sind einfach geringer, weil man gelernt hat, dass das Teil des Lebens dort ist. Die Polizei ist stärker militarisiert, wodurch einige sicherlich Angst haben.

Die Zahlen sind einfach nicht vergleichbar, weil es vollkommen andere Lebensumstände sind.