@khalidabuhakmeh@mastodon.social
@khalidabuhakmeh@mastodon.social avatar

khalidabuhakmeh

@khalidabuhakmeh@mastodon.social

Loves https://mastodon.social/@NicoleAbuhakmeh. 🚀🧠 🥑 : #jetbrains #jetbrainsRider #Resharper devrel. #OSS supporter. #software developer. He/Him. Living the simulation lifestyle. #dotnet #java #javascript #html

searchable

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

bradwilson, (edited ) to dotnet
@bradwilson@mastodon.social avatar

This is super duper extra important.

C# Nullable Reference Types are a compile-time thing, not a runtime thing. "string?" and "string" are both just "string" at runtime.

This means:

  • Always guard against your users passing null even for types that shouldn't allow it, because it's not a runtime guarantee.

  • You can't create overloads that differ only on nullability (i.e., Method(string) vs. Method(string?)) because they're the same type at runtime.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar
khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@bradwilson It would be interesting if future versions of C# compilation converted these nullability checks into runtime guards.

andrewlock, to dotnet
@andrewlock@hachyderm.io avatar

Blogged: Blocking primary constructor member capture using a Roslyn Analyzer

https://andrewlock.net/blocking-primary-constructor-member-capture-using-an-analyzer/

In this post I describe a Rosyln analyzer you can use to enforce that primary constructors are only used for initialization and never to capture as fields

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@andrewlock The other day, I was staring at a bug in code, wondering where my auto-properties were on a record….. It turned out I was using primary constructors on a class. 🤣

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@andrewlock In retrospect, I wonder if having similar syntax to records but different semantics is a landmine waiting for folks to step on. 🤔

Guess it's too late now. C'est La Vie.

paul, to random
@paul@tapbots.social avatar

I've reached peak laziness, it's all downhill from here.
https://www.scoopsoldiers.com

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@paul If you can make a living doing this, I’m all in.

One of my neighbors is an older lady with bum knees, so she can’t walk into her yard or walk her dog. I typically walk her dog for her because I get sad about the idea of a dog sitting inside all day.

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

It’s nice to know I live rent-free in the minds of #dotnet folks, so much so that they felt the need to come by the BUILD booth to tell our JetBrains folks about me. 😅

Anyways, xoxo

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@egil I measure my KPI in “asshole” count. 😅 Right @maartenballiauw ?

khalidabuhakmeh, to CSS
@khalidabuhakmeh@mastodon.social avatar

I hard-coded in a style attribute, and I’m not even sorry about it.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar
khalidabuhakmeh, to reddit
@khalidabuhakmeh@mastodon.social avatar

A colleague just published a post about using for game development. If you're into , you may want to check it out.

https://www.reddit.com/r/Kotlin/comments/1d1w2w5/postcat_kodee_a_kotlinconf24_game_made_with/

tmcw, to random
@tmcw@mastodon.social avatar

microsoft's lack of support for a typescript + lsp and 'great support' for vs code + typescript is anti-competitive behavior imho, just saying

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@tmcw @markmalstrom I mean, yes. They’re also doing it with Python.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar
khalidabuhakmeh, to Xbox
@khalidabuhakmeh@mastodon.social avatar

If this is true, this might be #XBox's #Sega moment. #PlayStation has won, and there's no sugarcoating it.

https://wccftech.com/xbox-next-reference-design/

supernovafiles, to godot
@supernovafiles@mastodon.gamedev.place avatar
khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@supernovafiles I like them both. Maybe alternatives or upgraded enemy?

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

I’m currently playing Slave Zero X, and the last boss is a boss rush. FML.

Very cool game by an indie studio. It’s got a Sega Saturn aesthetic that really works.

https://www.youtube.com/watch?v=xa58gUr8Mm8

welshdave, to random
@welshdave@toot.wales avatar

@khalidabuhakmeh Are you aware of any docker compose/multi container rust examples? Wondering whether debugging multiple containers is possible with RustRover?

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@welshdave I'm not sure, I'd ask @bravit, he might know.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@welshdave @bravit I got a reply from the team and it's not currently possible to debug in docker containers unless it's a devcontainer, but that's not different than debugging locally.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@welshdave @bravit please enter an issue and describe your use case. The devs are very good at listening to users.

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

So my colleague wrote a step-by-step post called "Generate a UML Diagram".

People have been posting their UML in the comments thinking the page ACTUALLY generated diagrams. 🤣

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar
Lobrien, to random

Why are they spreading “unpasteurized milk is fine, actually!” misinformation? Is it just they never met a gov’t health conspiracy they didn’t like? These idiots are going to facilitate human-human transmission of bird flu; who wants that? Seriously?

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar
bradwilson, to dotnet
@bradwilson@mastodon.social avatar

Anybody know when we get the #Roslyn 4.10 NuGet packages (like Microsoft.CodeAnalysis)?

I'm assuming they're going to follow the "even" pattern and declare 17.10 as LTSC, which means I will want to officially support Roslyn 4.10. Both of these pages are currently out of date:

https://learn.microsoft.com/en-us/visualstudio/productinfo/vs-servicing

https://learn.microsoft.com/en-us/visualstudio/extensibility/roslyn-version-support?view=vs-2022

#dotnet

khalidabuhakmeh, (edited )
@khalidabuhakmeh@mastodon.social avatar

@bradwilson They are available in prerelease right now. I just added them to a local language server.

rockylhotka, to blazor
@rockylhotka@fosstodon.org avatar

Is there any way to create/maintain a unique user id value for #blazor that goes across server-static and server-interactive pages? Other than a cookie, because that's too broad - I want something that is more per-tab than per-browser.

#aspnetcore #dotnet

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@rockylhotka @TimPurdum cookies are going to be your best option.

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

I turned off Google Ads on my blog. If Google cannot support me, then I can stop supporting them. It’s not personal, it’s just business.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@rockylhotka It was a little bit of that too. I was getting like $20/mo if that. Not worth the noise imho.

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

Every few months, I come back to rewriting a app in , sometimes it's with Blazor, sometimes it's Razor Pages, and this time with (although I may have already done HTMX 😅)

I got some quality-of-life improvement issues entered to help make better, too. So that's a win!

Htmx-powered todo app.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@egil @brtkdotse yeah hx-include is ok, but it can't fall back. The form also allows for easier styling in complex scenarios, like tables.

Also, maybe it's a asp.net core habit, but forms automatically get antiforgery tokens as hidden inputs.

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