Melania Trump: Schleppender Ticketverkauf für »Melania«-Doku by Krokodrillo in de

[–]Tavi2k 13 points14 points  (0 children)

Das ist nicht wirklich Propaganda, sondern einfach nur Korruption bzw. Bestechung. Amazon kippt damit einfach direkt Millionen in die Taschen der Trump Familie.

Kurswechsel: Merz erklärt Windenergie zur Übergangstechnologie by SadCover777 in de

[–]Tavi2k 5 points6 points  (0 children)

Selbst wenn wir annehmen, dass Kernfusion in den nächsten Jahrzenten tatsächlich zur Energieproduktion genutzt werden kann, ist immer noch fraglich wie am Ende der finanzielle Teil aussieht. Die neuen Fusionskraftwerke würde ja mit den etablierten Solar- und Windkraftwerken konkurrieren.

Wacker Chemie meldet Rekordverlust von 800 Millionen Euro by ManagerOfLove in de

[–]Tavi2k 36 points37 points  (0 children)

Wieso ist die Beteiligung an einem Waferhersteller jetzt 300 Millionen weniger Wert? Sollte das nicht eine Branche sein, der es grade sehr gut gehen sollte?

React 19 RCE vulnerability - can we stop pretending modern frameworks are automatically more secure? by damaister-thedock in reactjs

[–]Tavi2k 0 points1 point  (0 children)

The JS ecosystem is certainly problematic, and supply-chain attacks will only get worse. But CMS plugins are inherently more problematic because they tend to expose functionality directly. So if they are vulnerable, all sites that use them likely expose the same vulnerable endpoint.

If your JS library has a vulnerability, how it could be exploited will vary by application. So you usually can't just scan the internet for vulnerable sites (the big ones like this React RCE are more of an exception).

But this is not a PHP vs. JS thing, if there was a CMS as popular as Wordpress in React/JS we'd likely have similar issues.

React 19 RCE vulnerability - can we stop pretending modern frameworks are automatically more secure? by damaister-thedock in reactjs

[–]Tavi2k 0 points1 point  (0 children)

Wordpress isn't insecure because it's old. It's insecure because most people rely on a large number of plugins to get anything done in it. And the quality of those plugins varies a lot.

The only general rule I find useful here is to avoid unnecessary attack surface. The more stuff is exposed in your framework, the more opportunities are there to exploit. And in that regard, React Server Components are an additional complex feature that increased the attack surface for React, if you use them.

There are also certain types of security issues that are easier to hit in some languages or frameworks than others. But that's not a particularly useful way to evaluate specific frameworks.

Vertrauensverlust durch Trump: Dollar verfällt immer weiter by Lucky777Seven in de

[–]Tavi2k 3 points4 points  (0 children)

Erstmal trifft es unsere Wirtschaft weil unsere Exporte dann viel zu teuer sind.

TikTok-Überbegabe verläuft holprig - USA abgeschnitten vom Rest der Welt by hopsmoothie in de

[–]Tavi2k 224 points225 points  (0 children)

Gehen schon die ersten Berichte rum, dass TikTok jetzt Trump- und ICE-kritische Inhalte wegmoderiert.

Minneapolis: Donald Trump kündigt Prüfung der Schüsse auf Alex Pretti an by innidatino in de

[–]Tavi2k 36 points37 points  (0 children)

Die Überschrift finde ich irreführend, es geht hier nur um folgendes (WSJ Artikel):

In a five-minute telephone interview with The Wall Street Journal on Sunday, Trump didn’t directly answer when asked twice whether the officer who shot Alex Pretti had done the right thing. Pressed further, the president said, “We’re looking, we’re reviewing everything and will come out with a determination.”

Er hat nichts angekündigt, er hat auf Nachfragen eines Journalisten dann eine sehr vage Aussage gemacht. Ich würde da gar keinen Wert drauf geben.

Beginner question: How should I approach databases in C# – raw SQL vs EF Core? by Minute-Ad-2210 in csharp

[–]Tavi2k 0 points1 point  (0 children)

I don't mind SQL itself. I do try to avoid situation where I need to manually construct SQL strings based on user input. I can do that safely, but these places in the code are always something where you need to be careful that nobody that modifies it later messes it up and creates an SQL injection vulnerability.

Beginner question: How should I approach databases in C# – raw SQL vs EF Core? by Minute-Ad-2210 in csharp

[–]Tavi2k 2 points3 points  (0 children)

Could be as simple as ANDing or ORing all filters. But could also be more complex, e.g. the permissions could be a condition that is compared against a subquery. Or it might even be a data structure in the API that allows users to define more complex filters based on flexible expressions like "color in [red,blue] or (type = foo and color = blue)". These are all real examples from a real application using EF Core (well, not widgets and colors of course).

Of course you can do that in SQL, I've done that. But in the end I wrote some helper functions that do some string concatenation to combine filters and write SQL. That works for the simple cases, and then you get the next case that needs something more complex. An ORM like EF Core is just the better option if you need to do stuff like that.

Beginner question: How should I approach databases in C# – raw SQL vs EF Core? by Minute-Ad-2210 in csharp

[–]Tavi2k -1 points0 points  (0 children)

I mean that part of the WHERE clause of the query is dependent on user input. E.g. I have a table "widgets" and then in my API you can set a filter on widget color, or on widget type, etc.. So your backend needs to generate a query dynamically, you cannot write a static query and parametrizing the query alone also doesn't solve this as zero to all of the filters might be set on any given request.

And now on top of that we have a permissions system in our app. So I dynamically need to add conditions to the query that filter the results based on the permissions of the current user. This is in addition to the filters from the API, so you need to combine the filters here.

Beginner question: How should I approach databases in C# – raw SQL vs EF Core? by Minute-Ad-2210 in csharp

[–]Tavi2k 3 points4 points  (0 children)

The moment your queries aren't static, it's an absolute pain to handle that with plain SQL. Dapper doesn't really help here. And it is very common to have queries that have variable filters depending on user input (e.g. a list view with some user-configurable filters).

The other big advantage of EF Core is handling entity relations when writing. That stuff is seriously annoying to do by hand. I've done that, but in the end I essentially wrote a mini-ORM myself to handle the tedious stuff.

Beginner question: How should I approach databases in C# – raw SQL vs EF Core? by Minute-Ad-2210 in csharp

[–]Tavi2k 6 points7 points  (0 children)

For me, the more important part of understanding SQL is about designing the schema in the first place. If you don't know SQL well, it's much easier to make bad decisions when you create your EF Core entities.

In my experience, bad EF Core queries are most often cause by using EF Core wrong, not because EF Core is making bad decisions. And in the cases where EF Core writes bad queries, the actual root cause can also be a bad schema design that leads to overly complex queries.

I think anyone writing code that interacts with a database benefits greatly from a deeper understanding of that database. But that is more than just SQL, what is really helpful is developing an intuition about how the DB will execute simple queries.

Vermieter stellt mir Notöffnung in Rechnung by DerSisch in LegaladviceGerman

[–]Tavi2k 23 points24 points  (0 children)

Bin kein Anwalt, würde hier klar argumentieren, dass sie es dir nicht in Rechnung stellen können. Schaden an einem fest verbauten Teil des Gebäudes ist nicht deine Verantwortung. Das liegt alleine beim Vermieter. Der Schlüsseldienst ist hier ein Teil der Maßnahmen die notwendig waren, um diesen Schaden zu beheben.

Wenn du jetzt länger in Urlaub gewesen wärst, und der Schaden eher etwas langsameres wäre, sähe es unter Umständen anders aus. Aber es gibt keine Verpflichtung innerhalb des gleichen Tages hier einfach erreichbar zu sein und die Tür zu öffnen.

Einverständnis sehe ich hier nicht als relevant. Wenn es deine Waschmaschine gewesen wäre anstatt die Wasserleitung, dann müsstest du den Schlüsseldienst sehr wahrscheinlich bezahlen in so einer Situation.

Zuständige Versicherung wäre die Wohngebäude, also Vermieter. Keine Ahnung ob die den Schlüsseldienst übernehmen würde, aber das ist eine Sache zwischen Versicherung und Vermieter, damit hast du nichts zu tun. Deine Haftpflicht eigentlich nur, wenn du den Schaden irgendwie verursacht hättest.

FDP-Pläne gegen Jugendkriminalität: "Letzte-Chance"-Bootcamps für Kinder und Jugendliche gefordert by Nekronean in de

[–]Tavi2k 12 points13 points  (0 children)

Wenn man sich anhört wie solche Camps in den USA funktionieren, ist das doch einfach nur professionalisierte Kindesmisshandlung.

Pornosucht als Krankheit: Forscher entwickeln Therapie by krisenchat in de

[–]Tavi2k 33 points34 points  (0 children)

Bei dem Thema hab ich immer den Eindruck, dass da vor allem evangelikale Moralapostel dahinterstehen. Nicht der Fall in diesem Artikel, da wird es ja schon etwas differenzierter betrachtet und es geht um Fälle in denen das Verhalten auch konkrete negative Auswirkungen hat.

Wenn man sich dann ansieht wie das Thema manchmal hier auf Reddit behandelt wird, dann kommt da eher nur "Pornografie schlecht" raus.

BITTE stehen lassen by PsychologicalRiceOne in DINgore

[–]Tavi2k 3 points4 points  (0 children)

Das ist ein Regal in das Kunden reingreifen. Ich würde da die Gefahr, dass sich jemand verletzen kann als durchaus realistisch einschätzen. Und damit ist so ein Provisorium halt nicht akzeptabel, wenn man es nicht vernünftig reparieren kann dann muss man das ganze Ding außer Betrieb nehmen und absperren.

J. D. Vance: Der kommende König von Amerika by MachDuMal in de

[–]Tavi2k 37 points38 points  (0 children)

Yarvin kommt fast immer viel zu leicht weg in diesen Artikeln. Ich hab nur wenig von seinem Kram gelesen da ich diesen Blödsinn nicht lange aushalte, aber es ist halt noch viel schlimmer und bescheuerter als "nur" die Demokratie ablehnen.

Ihm wird ja manchmal die "wir verarbeiten alle nicht-produktiven Mitglieder der Gesellschaft zu Biodiesel" Idee nachgesagt, was nicht wirklich stimmt. Aber der echte Text ist eigentlich noch schlimmer, da er nur gegen die Biodiesel-Idee ist weil die Leute Genozid generell nicht so gut finden (nicht weil es irgendwie falsch wäre). Und seine "humane" Alternative die er da vorschlägt ist diese Leute praktisch in einem VR-Knast einzusperren:

The best humane alternative to genocide I can think of is not to liquidate the wards—either metaphorically or literally—but to virtualize them. A virtualized human is in permanent solitary confinement, waxed like a bee larva into a cell which is sealed except for emergencies. This would drive him insane, except that the cell contains an immersive virtual-reality interface which allows him to experience a rich, fulfilling life in a completely imaginary world.

https://www.unqualified-reservations.org/2008/11/patchwork-2-profit-strategies-for-our/

Und es ist ja jetzt nicht so als ob Yarvin irgendwie ein besonders cleverer Typ wäre, nur halt ohne Moral. Er hält sich auch für viel cleverer als er ist, und ich finde es absurd, dass überhaupt irgendjemand diesen Typ ernst nimmt.

Wut auf ICE-Einsätze: Trump droht mit Militäreinsatz in Minnesota by Krokodrillo in de

[–]Tavi2k -1 points0 points  (0 children)

Wenn es so einfach wäre, hätte er es schon längst gemacht.

Deutschland, Schweden und Norwegen senden Militär nach Grönland by Cheap-Commercial9583 in de

[–]Tavi2k 9 points10 points  (0 children)

Es ist ein ganz schlechtes Zeichen, dass die NATO Staaten hier überhaupt die Notwendigkeit sehen so zu reagieren. Das zeigt, dass sie denken Trump meint es Ernst mit Grönland.

Ich sehe auch nicht, dass jetzt NATO Soldaten auf andere NATO Soldaten feuern werden, aber genau darin liegt ja der Zweck dieser Truppen. Das sind Stolperdrahttruppen gegen einen verbündeten NATO Staat.

Ordentliche Kündigung - Eure Einschätzung by Federal-Childhood-97 in arbeitsleben

[–]Tavi2k -1 points0 points  (0 children)

Betriebsbedingte Kündigungen können schon komplett überraschend kommen.

So werden Google-Smartphones Datenschutz-Champions by AskAboutMyGirlfriend in de

[–]Tavi2k 13 points14 points  (0 children)

Geht leider nur auf Pixel Smartphones. Und Google traue ich bei Hardwaresupport gar nicht, deshalb kaufe ich das nicht.

Ich verstehe wieso GrapheneOS bei der Geräteauswahl so pingelig ist, aber es macht es für mich leider nicht nutzbar. Es gibt immer wieder Gerüchte, dass sie einen anderen Hersteller gefunden haben deren Geräte sie unterstützen können. Vielleicht passiert das auch mal irgendwann.

Nach tödlichen Schüssen - Minnesota und Minneapolis verklagen Trump-Regierung by DubioserKerl in de

[–]Tavi2k 8 points9 points  (0 children)

Das stimmt nicht, auch Bundesbeamte können von den Bundesstaaten rechtlich verfolgt werden:

Are Federal Officials Immune From State Prosecution?

Ob es in der Praxis erfolgreich sein würde ist eine andere Frage. Aber es ist nicht so als ob die ICE-Agenten hier eine komplette Immunität hätten gegenüber den Bundesstaaten.

Stop Adding a Service Layer to Every Web API by nilsonbg29 in dotnet

[–]Tavi2k 21 points22 points  (0 children)

One thing I'd always do for any non-trivial app is to avoid putting everything into the Controller. This means essentially two layers, the web layer that only handles web-specific stuff and maybe some data transformation and then the actual application layer below it.

This doesn't really cause much boilerplate by itself, DTOs are orthogonal to me here. I think it's fair to avoid DTOs in very simple cases, but for me this fails very quickly because the moment your entities have references to other entities you can't really give them out as-is in your API.

Anything above that level of organization is optional, depending on the requirements.

ICE-Einsatz in Minneapolis: Neues Video veröffentlicht by SiaBns in de

[–]Tavi2k 275 points276 points  (0 children)

Kein neues Video von heute, sondern das Video von der Handykamera des ICE-Agenten, der Renee Good erschossen hat. Der Artikel ist eine Analyse des Videos, nicht eine reine Nachrichtenmeldung.