@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.

jasonbock, to random
@jasonbock@mstdn.social avatar

Just saw a very weird issue with C# source generators in Rider.

  • Reference a NuGet package that does source generation
  • Write code that will trigger the generation of source.

What happens is that Rider doesn't "see" the new generated type, BUT, a build works, and the test runs as well.

The only way my co-worker got around this was to use EmitCompilerGeneratedFiles. (I don't use Rider, I use VS, and everything works fine there).

Tagging @khalidabuhakmeh for visibility.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@jasonbock are the packages by any chance targeting a newer or release version of .NET? A reproduction would be helpful.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@jasonbock I'll have a look tomorrow and report back. If I can repro I'll enter a ticket.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@jasonbock Works on my machine. Make sure your friend is using the latest version of JetBrains Rider.

I’m using JetBrains Rider 2024.1.2.

Rocks Mocking library working in JetBrains Rider.

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

Following tech news outlets makes me realize how much of their content is just “flash sale happening ZOMG!” or “You won’t believe these low prices!”

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

I think the game industry needs to put War-based Games like Call of Duty to rest.

Seeing that the next Call of Duty is based on a war I lived through (Gulf War) is a little too exploitative for my taste.

I remember seeing kids with missing limbs and kids burned by fire from head to toe. Not something I want to quick-time event through any time soon.

mistersql, to python
@mistersql@mastodon.social avatar

Gotta catch up on mocking with at
When I ask the bots to write unit tests, they use ALL the mocking libraries,

The theme at the talk is mocking using unittest the built in way.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar
aer, to random
@aer@freeradical.zone avatar

I'm really glad console makers seem to be done with exclusivity

It made sense back when one console ran fukn MIPS and the other ran a deranged PowerPC config and another has an arcane DSP GPU with a Gameboy strapped to it

But now everything is literally just an x86 box made by AMD, except the Switch which is just an Nvidia Shield.

If they needed exclusives to sell their identical boxes the real answer isn't that exclusives are a valid choice, it's that consoles are kind of dumb now

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@aer Let me preface this statement by saying I love indie games and they are my go-to games.

Exclusives have arguably given us some of the best spectacle games, and without the support of the parent companies, they probably wouldn’t exist (they’re just too expensive to make).

Spider-man, Uncharted, God of War, Final Fantasy 7.

I think we’ll probably never see games like these again for a long time.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@aer Yeah, I’m not sure what’s going to happen to the industry.

I swear I saw that 80% of the gaming industries profits come from mobile games and “whales” (folks who have a mental disposition to addiction). So it’s not going to be good.

I want more creators to have control and to have smaller experiences myself. I only have a few hours to play anything because… I’m old.

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

Xbox hardware is starting to look like the worst investment in a decade.

https://kotaku.com/xbox-microsoft-ceo-halo-ps5-more-multiplatform-games-1851482805

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@range_marten I love my PlayStation if only for the indie titles.

khalidabuhakmeh, to Java
@khalidabuhakmeh@mastodon.social avatar

The performance profiling tools for developers in latest EAP is pretty awesome.

https://blog.jetbrains.com/idea/2024/05/intellij-idea-2024-2-eap-is-open/?

alexzeitler, to random
@alexzeitler@mastodon.social avatar

Somehow #webstorm doesn't seem to know about C# when writing Markdown

image/png

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@alexzeitler No C# plugin, no C# syntax. :(

I’ve actually brought it up, and we’re looking at ways to bring more Textmate bundles across all of our IDEs so folks get some basic syntax highlighting across IDEs. As of right now it means you get different markdown experiences across tools.

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

👋 Hello benevolent @eleventy overlord @zachleat. Is it possible to ask for a template format hook that would make @pauleveritt happy and open up a few more opportunities for 11ty? Currently all page render methods are expected to return a string value, but this leads to a lot of redundant processing in each page, for pages that return objects (cough JSX cough).

It would be nice if we could have a preprocess method that turns results into string.

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

I got a guided tour of the #NuGet server room today. Cutting edge! I was told not to touch the bulbs. #dotnet

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar
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
  1. “Will RP be discontinued?” MS support might dwindle, but it’s in a good spot today and won’t be ripped out anytime soon. Maybe Blazor will get there someday, but right now, Blazor still lacks features that I think make it frustrating to use.

In general, I think the UI story in .NET is its weakest case, and the adoption of SPA libraries like Vue, React, and Angular in the space signals a big marketing/user problem in general. (2/3)

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@jonstj Woah, a lot of questions. I’ll answer them one at a time. 1. “Do you consider Razor Page with HTMX the best production-ready tech stack for HTMX-powered SSR web?” I think Razor Pages and MVC are great options, and they give you the most control over the HTTP response (which is essential to get the most out of HTMX). My HTMX.NET library is designed to work with in helpful ways that I haven't seen in other ecosystems. (1/3)

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar
  1. “Razor components and Minimal API a better choice?”

No, I don’t think so, because Minimal APIs were designed for JSON responses first and foremost. While they can support HTML responses, they lack the view resolution and reuse that makes MVC and Razor Pages “better” imho. Also Razor Pages and MVC have link generation which Blazor does not. You’ll end up hardcoding a lot of URLs in Razor components which will lead to a big headache when refactoring. (3/3)

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@jonstj I’ve seen this sample before. It’s neat, but you soon start filling in all the gaps yourself, and that to me is no fun. Adding Endpoint names, injecting dependencies, and messing with conventions gets tiring (imho).

That said, it’s your app and you have to maintain and be happy with it.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@jonstj
@egil is also trying something with Htmxor if you want to see how he does it.

I like where he’s going with it, and he’s trying to address some of the issues I outlined.

https://github.com/egil/Htmxor

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@egil @brtkdotse I’ll give it a shot next week :)

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@egil @jonstj It would be really neat if there was a way that Razor allowed you to create your own “@“ declarations.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@egil @jonstj Actually, one of my biggest gripes with Razor as a whole is its lack of pre and post-processing hooks.

It would be great if there was a way to process the HTML produced by views to enhance it, or to pre-process the Razor to inject things. Right now you have to have something in the views themselves to do anything, which is not always good.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@egil @brtkdotse I got it running, but I think I am probably doing a few things wrong. 😅

Blazor Todo App with Htmxor

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@egil @brtkdotse I started with a “Blazor Web App” template from the dotnet templates and tried to create a working sample app. I probably got a few things wrong, so there’s room for improvement.

If you want to review on a stream, we can do that.

It still feels like Blazor and Htmx are on different sides of the spectrum to me, but that’s just my opinion.

https://github.com/khalidabuhakmeh/HtmxorTodoApp

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