@flensrocker@troet.cafe avatar

flensrocker

@flensrocker@troet.cafe

.NET & Angular Developer
Rockguitarist for fun

This profile is from a federated server and may be incomplete. Browse more on the original instance.

develwithoutacause, to javascript
@develwithoutacause@techhub.social avatar

: Always use === over ==.

=== applies much more reasonable behavior for operands of different types, mainly by not coercing them together like == does.

A lot of developers will tell you to learn the rules of coercion and use it when appropriate, however I disagree for one key reason. Consider this example:

if (foo == bar) {  
 doSomething();  
}  

Question: Did the developer mean to use ==? Is the coercion intended or a typo?

It's incredibly difficult to know with any amount of certainty as this depends on the types and semantics of foo and bar.

If I was writing this intentionally, I would feel compelled to write a several line comment about how coercion behavior applies here in a desirable way. And if you need to write that much explanation, it would be much less confusing to actually codify the desired behavior with === and explicit type checks so devs don't have to understand that coercion.

flensrocker,
@flensrocker@troet.cafe avatar

@develwithoutacause Agree. The only exception for me: == null
(I saw your other post about null | undefined first and mentioned this over there).

jeremydmiller, to random
@jeremydmiller@hachyderm.io avatar

Do people still commonly use Server Sent Events? I used them quite a bit for a couple things about a decade ago, but hadn't stumbled into that since. Just curious.

flensrocker,
@flensrocker@troet.cafe avatar

@khalidabuhakmeh @jeremydmiller I use SignalR, so whatever it decides I use it...

anderseknert, to random
@anderseknert@hachyderm.io avatar

“Ananas” in English 🤔 Is that a thing or a German doing some improv English?

flensrocker,
@flensrocker@troet.cafe avatar

@anderseknert That language is called "Denglisch" and is a mixture of English and German (called "Deutsch" in German).
You won't believe what simple words get subtitled in various movies/series. Even the first english lessons start in primary school, we are not very confident that everyone understands anything.🤷‍♂️

flensrocker,
@flensrocker@troet.cafe avatar

@anderseknert You will hear often sentences like "Ich habe die Datei gedownloaded" for "I downloaded that file" which should be translated to "Ich habe die Datei heruntergeladen".
Yes, we suck.😎🍻

jwildeboer, to random German
@jwildeboer@social.wildeboer.net avatar

Zuhause bleiben. Gelomyrtol Forte, Vick Vaporub, Algovir Nasenspray, viele Tempos und Wärmflasche zum Schlafen. Das Erkältungspaket das mir hilft indem es friedliche Ruhe schafft.

flensrocker,
@flensrocker@troet.cafe avatar

@jwildeboer Und Suppe.

thunderbird, to productivity
@thunderbird@mastodon.online avatar

I had to pause my music to write this post, because anything with lyrics pulls me into the song and out of what I'm working on!

And that's something I've wanted to ask you: when you're trying to focus on work, do you put on music WITH lyrics or WITHOUT lyrics?

BONUS: Post your favorite "focus" tracks or albums here and tag us. We're making playlists 🎧

~Jason

A classic scene from the film Pulp Fiction, with Jules saying "Oh I'm sorry, did I break your concentration?"

flensrocker,
@flensrocker@troet.cafe avatar

@thunderbird I listen only rarely to music while I work. But when then something I know by heart and don't have to follow along. AC/DC works always.

czottmann, to random German
@czottmann@norden.social avatar

Liebe 'er, ich habe Bock, neue Leute kennenzulernen!

Hat jemand Interesse auf einen Kaffee irgendwann unter der Woche mal? Ich wohne seit 2 Jahren hier, bin Software-Entwickler und Berater, selbständig, kein Axtmörder, und will nix verkaufen. 😉 Aber ich hab mir vorgenommen, 2024 neue Kontakte zu knüpfen, und ein Schnack im Lieblingscafé ist immer eine gute Idee.

Anyone?

flensrocker,
@flensrocker@troet.cafe avatar

@czottmann Jeden ersten Mittwoch treffen sich Musikbegeisterte beim Musikerstammtisch in der Gasstraße. Wäre ja evtl. auch ein Anfang.

https://musikerstammtisch-flensburg.de/ms/

bradwilson, to dotnet
@bradwilson@mastodon.social avatar

Had a discussion today about what it would take to make @xunit NativeAOT compatible, and it was very interesting and thought provoking.

To start: how would you design a unit testing framework if you had little to no access to reflection? What xUnit.net does relies heavily on just randomly peeking at things at runtime and making decisions about what to do as a result.

flensrocker,
@flensrocker@troet.cafe avatar

@bradwilson @xunit Source generators?

bitbonk, to VisualStudio
@bitbonk@mastodon.social avatar

I honestly can’t think of a reason why anyone who tried both and would prefer VS.
Except maybe: „VS is what I‘m used to, don’t move my cheese“.

Can you? (honest question)

flensrocker,
@flensrocker@troet.cafe avatar

@SmartmanApps @bitbonk That would help to get used to it on small project at home before switching for large projects at the company.

ralphruthe, to random German
@ralphruthe@troet.cafe avatar

- Happy Veganuary!
Jedes Jahr nutzen Millionen Menschen den Januar, um den Einstieg zu finden ins Kochen ohne Knochen. Manche bleiben nach den vier Wochen vegan, manche reduzieren einfach den Verzehr tierischer Produkte. Aber es überhaupt zu probieren ist auf jeden Fall ein cooler Schritt. Grade bei Leuten, die es sich eigentlich gar nicht zutrauen, braucht es oft nur dieses EINE Produkt, das ihnen zeigt - vegan kann sehr lecker sein!

flensrocker,
@flensrocker@troet.cafe avatar

@ralphruthe Für eine TK-Pizza gar nicht mal so schlecht, ich habe sie auch schon mehrmals gekauft/gegessen. Aber es ist halt immer noch eine TK-Pizza. Die kommen über ein gewisses Maß an Geschmacklichkeit nicht hinaus. Ist quasi technisch bedingt... 😎

ErikUden, (edited ) to random
@ErikUden@mastodon.de avatar

Eine E-Mail. 40.000 Accounts gerettet. Was ein Tag. ✉️ #SaveTroetCafe

flensrocker,
@flensrocker@troet.cafe avatar

@ErikUden Jo, nützt ja nichts.
Meinetwegen kann's losgehen!
Danke für euren Einsatz!

flensrocker,
@flensrocker@troet.cafe avatar

@ErikUden Ich hätte auch kein Problem mit einer längeren Downtime (backup, reinstall, restore), falls das eine Option ist. Ich kenne mich speziell mit Mastodon nicht aus, bin aber der Admin in unserer kleinen Firma und verstehe den Schmerz.

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

users, how do you feel about using 8 C# language features instead of DataAnnotation attributes?

On the one hand, I like that it reduces noise. On the other hand, you will likely have a mix of attributes and C# language features, which can lead to mental context switching.

Thoughts?

flensrocker,
@flensrocker@troet.cafe avatar

@khalidabuhakmeh +1 for IEntityTypeConfiguration from me.

johnstorey, to dotnet

In my continual descent into the world of I am looking to create a web app with . Is Razor really my best choice in this ecosystem? I was hoping to leverage my Jinja knowldege, but can't seem to find a good Jinja solution for .NET.

flensrocker,
@flensrocker@troet.cafe avatar
ralphruthe, to random German
@ralphruthe@troet.cafe avatar

Einer meiner persönlichen Lieblinge.

flensrocker,
@flensrocker@troet.cafe avatar

@ralphruthe @forthy42 Ich möchte Oberst-Wisser sein!😎🍻

Mein Lieblingscartoon ist der mit den zwei Fliegen am Klo, wo man nur die Kerze rausragen sieht und die eine dann "Alles für mich?", die andere dann "Ist von mehreren zusammen". Irgendwie muss ich dann immer an Festivals denken...

scarcraft, to javascript Spanish

@angular I beg for help 😥️.

Someone can explain how can I replicate RouterModule.forChild(routes) in standalone components? I want my feature folders declare his routing but without using routing modules and I'm not be capable.

The only information I have found in internet is always referring a unique route config file. Also, in stackoverflow I have found this unanswered question https://stackoverflow.com/questions/77231371 about that.

Thank you in advance

flensrocker,
@flensrocker@troet.cafe avatar

@magbeat @scarcraft @angular This is the way.

Wortex17, to CSharp German
@Wortex17@mastodon.gamedev.place avatar

Hey @dotnet , regarding core 7 uhm..wtf?
(Found this while figuring out why SignalR fails any complex payload)

flensrocker,
@flensrocker@troet.cafe avatar
bradwilson, to dotnet
@bradwilson@mastodon.social avatar

I'm shipping binaries compiled against netstandard1.1 and the NuGet reference I bring along is NETStandard.Library version 1.6.1.

Does anybody know any reason I can't just bump that up to version 2.0.3? It seems like it's just a more complete collection of dependencies for runtime.

flensrocker,
@flensrocker@troet.cafe avatar

@bradwilson In my opinion everything before .NET Framework 4.6.1 should only supported if you really have to. .NET Standard 2.0 is what we use in our libraries because we have some .NET Framework 4.8 projects we have to maintain.

https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-0#select-net-standard-version

ralphruthe, to random German
@ralphruthe@troet.cafe avatar

Zeit für einen Klassiker.

flensrocker,
@flensrocker@troet.cafe avatar

@ralphruthe Bin auch seit der "jetzt mit neuer Rezeptur" davon runter...

khalidabuhakmeh, to CSharp
@khalidabuhakmeh@mastodon.social avatar

I wonder why you can’t “nameof” private fields in . Anyone know?

flensrocker,
@flensrocker@troet.cafe avatar

@khalidabuhakmeh @LGUG2Z Can you define a "public const string CountName = namof(count);" inside Counter?
After all "count" is private and that must not leak outside the class.

flensrocker,
@flensrocker@troet.cafe avatar

@khalidabuhakmeh @LGUG2Z And when you depend on private things you should break unconditionally out of nowhere...😎

kuketzblog, to fediverse German
@kuketzblog@social.tchncs.de avatar

Heute ist »Ask me a question!«. Stellt mir eure Frage aus dem Themenbereich IT-Sicherheit oder Datenschutz. Ich antworte mit Ja/Nein oder enthalte mich. Regeln:

  • Jeder darf eine Frage stellen
  • Die Frage muss aus dem Themenbereich IT-Sicherheit oder Datenschutz stammen
  • Formuliert die Frage so, dass diese mit einem Ja/Nein beantwortet werden kann
  • Nur am 01.10.2023
  • Nur im

and ! ❤

flensrocker,
@flensrocker@troet.cafe avatar

@kuketzblog Unabhängig von den eigenen Problemen rund um einen Google-/Microsoft-/Apple-Account: wenn ich dort meine Passkeys speichere, gibt es überhaupt eine vernünftige Methode, um dann diesen Hauptaccount ausreichend zu schützen (z.B. Handyverlust)? Infos dazu vermisse ich immer bei Artikeln, die Passkeys erklären.

ploeh, to random
@ploeh@mastodon.social avatar

New article: Do ORMs reduce the need for mapping? https://blog.ploeh.dk/2023/09/18/do-orms-reduce-the-need-for-mapping

flensrocker,
@flensrocker@troet.cafe avatar

@khalidabuhakmeh @ploeh Just for your information: You can nest objects into Entity-types, they are called "Owned Entity Types" [1]. But that has nothing to do with your mapping to your domain model. I haven't tried it with your code.
And yes, scaffolding is not perfect, I use the "EF Core Power Tools" [2] by Erik EJ for such things.

[1] https://learn.microsoft.com/en-us/ef/core/modeling/owned-entities
[2] https://github.com/ErikEJ/EFCorePowerTools

Migueldeicaza, to random
@Migueldeicaza@mastodon.social avatar

I have a potent urge to rename "La Terminal" to "Das Terminal" in the German market.

Someone talk me out of it.

flensrocker,
@flensrocker@troet.cafe avatar

@Migueldeicaza "Das Endgerät" would do it, too.
Some kind of "cool/leet" would be "Der Endgerät" ("das" is right). Sometimes, when a device ("das Gerät") is superior to/cooler than others it is called "Der Gerät" to emphasize it.

anderseknert, to random
@anderseknert@hachyderm.io avatar

Day spent mostly dealing with dependabot notifications asking to upgrade actions/checkout from version 3 to 4. 60 or so repos to cover 😫

How's your day going?

flensrocker,
@flensrocker@troet.cafe avatar

@anderseknert I had to deal with binding redirects including some C++/CLR projects...

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • thenastyranch
  • magazineikmin
  • ethstaker
  • khanakhh
  • rosin
  • Youngstown
  • everett
  • slotface
  • ngwrru68w68
  • mdbf
  • GTA5RPClips
  • kavyap
  • DreamBathrooms
  • provamag3
  • cisconetworking
  • cubers
  • Leos
  • InstantRegret
  • Durango
  • tacticalgear
  • tester
  • osvaldo12
  • normalnudes
  • anitta
  • modclub
  • megavids
  • lostlight
  • All magazines