danclarke, to dotnet
@danclarke@mstdn.social avatar

Just been banging my head against a wall trying to work out why an injected dependency was coming through as null in a WebApplicationFactory test.
Turned out it was because I was doing the injection via a primary constructor, and switching to a normal constructor fix it! I assumed primary constructors were just syntax sugar - so this is surprisingly unexpected.
Anyone know why primary constructors would behave differently for DI?

vekzdran, to dotnet
@vekzdran@hachyderm.io avatar

Hear me out folks.

If I could ask for one wish from the C# team, it would be naming generic parameters of types eg.

Dictionary<int userId, string username>

List<string username>

How would that make the world much easier...

I don't want to use own types*, yes I know I can do that.

Also, I do not like DDD and I enjoy primitive obsession.

khalidabuhakmeh, to rust
@khalidabuhakmeh@mastodon.social avatar

I learned you can use the break inside a loop to return a value. It feels strange coming to #Rust from #csharp. I would have expected to use the return keyword, but I guess it makes sense.

By the way, I'm taking the #JetBrains Academy course, so if you want to follow along, check it out.

https://www.jetbrains.com/academy/

sos, to programming
@sos@mastodon.gamedev.place avatar

Out of 6 languages recommended by the NSA, 4 are patended bvy multibillion comanies who can pull the plug on them at any time (and Oracle already tried that).

C# - PATENTED by Microsoft,
Go - PATENTED by Google
Java - PATENTED by Oracle, NOT FREE
Python - not too shabby
Rust - not too shabby
Swift - PATENTED by Apple

#programming #nsa #cprogramming #csharp #golang #java #rust #rustlang #python #swift #patents #foss #eff

khalidabuhakmeh, to CSharp
@khalidabuhakmeh@mastodon.social avatar

In , the "YOLO" operator is the “!" symbol, but in , it's the "?" symbol. Oh this is going to mess with my brain isn't it?

soltes, to dotnet Polish
@soltes@mastodon.social avatar

@avaloniaui custom built virtualised wrap panel with 2 million items scrolling is a feature

video/mp4

techynerd, to gamedev

A game without Immersive audio, intelligent camera movements, dynamic sound, background music and captivating visual effects, from smoke and explosions to customizable particle systems, is like a tasteless dish & nobody loves that.
Check this book out (book link) to learn from 160 Unity Recipes and elevate your game development skills.

https://packt.link/j8lHU

#unity3d #unity #gamedev #technology #technews #tech #csharp #computer

TimPurdum, to hiring
@TimPurdum@dotnet.social avatar
darkcisum, to VisualStudio
@darkcisum@swiss.social avatar

TIL VS2019 doesn't support .NET 6 and if you mix .NET SDK 8 or so with VS2019 it will horribly fail, as it expects that directory structure to be different...

https://github.com/dotnet/core/issues/5567#issuecomment-1105996161

TimPurdum, to maps
@TimPurdum@dotnet.social avatar

New release!

With the latest updates, you’ll see minor improvements and bug fixes in GeoBlazor, and new features in GeoBlazor Pro, including Custom GraphicLayer Legend and Routes API. Interested in trying GeoBlazor Pro? Sign up at our website.

https://licensing.dymaptic.com

Support our continued work to develop and expand GeoBlazor by becoming a sponsor on GitHub Sponsors.
https://github.com/sponsors/dymaptic

alvinashcraft, to dotnet
@alvinashcraft@hachyderm.io avatar
khalidabuhakmeh, (edited ) to rust
@khalidabuhakmeh@mastodon.social avatar

It turns out that has something similar to extension methods in . You can create additional implementations outside of type definitions to include more functionality at the call site.

Update: not traits 😅

khalidabuhakmeh, to rust
@khalidabuhakmeh@mastodon.social avatar

Can someone explain lifetimes to me? Coming from my brain sees generics.

maartenballiauw,
@maartenballiauw@mastodon.online avatar

@khalidabuhakmeh Looks similar to scopes in at first sight?

antaoalmada, to CSharp
@antaoalmada@dotnet.social avatar

I've been impacted by the recent at Farfetch. Are you in need of an experienced developer? I'm ready to start right away. With extensive expertise in developing libraries for , I'm based in Lisbon, Portugal. Feel free to review my abilities on my blog. https://aalmada.github.io/

darkcisum, to CSharp
@darkcisum@swiss.social avatar

Note to self, if Visual Studio or Rider can't find your tests, maybe check whether you're in an abstract class or have a non-public constructor... 🙄

lloydjatkinson, to CSharp
@lloydjatkinson@mastodon.social avatar

Anyone hiring software engineers? I'm a senior engineer with a passion for software quality and working on interesting problems. I'm mainly experienced with C#/.NET, Node, TypeScript, React.

I am unfortunately at the ends of my patience with my current role (hired for XYZ, three months in, moved to team working on ABC and I'm sat waiting for work).

ikenndac, to swift
@ikenndac@mastodon.social avatar

IT IS DONE.

I have finally “finished" and written up the "it'll just be a couple of weeks!” project that I started in December, exploring the idea of writing a Windows app in C# that calls into a cross-platform Swift codebase.

It's been quite the journey 😅, and if you find this sort of thing interesting I'd appreciate it if you'd check it out and give it a boost.

Blog post: https://ikennd.ac/blog/2024/02/swift-on-windows-with-swifttoclr/

GitHub: https://github.com/cascable/swift-on-windows-poc

glairedaggers, to gamedev
@glairedaggers@peoplemaking.games avatar

Working on text input widget. Happy with the state of it, still need to implement some stuff (like password input, clipboard, deciding if I want to support multi-line later, etc) but works pretty alright for now!

video/mp4

soltes, to dotnet Polish
@soltes@mastodon.social avatar
b4ux1t3, to dotnet
@b4ux1t3@hachyderm.io avatar

Aaaaaand my server supports arbitrary files (within reason)!

I think I may actually put this online before the weekend is up.

(Can I really call it that when the protocol is as simple as this?)

ramsey, to php
@ramsey@phpc.social avatar

This article is all about how things are looking great for hiring Laravel devs in 2024, and I’m not seeing it.

I’ve been job-searching for 3 months, and very, very, very few of those jobs are decent-paying / jobs. Sure, PHP/Laravel jobs exist, but most (anecdotally) pay far less than the rate others are willing to pay for , , , , , , and developers.

The industry does not value the output of PHP developers.

https://laradir.com/blog/why-laravel-could-see-a-huge-rise-in-adoption-in-2024

ziks, to CSharp
ziks,
kkukshtel, to CSharp
@kkukshtel@mastodon.gamedev.place avatar

commiting #csharp crimes. not sure it's worth it but it feels like maybe there is something here?

this makes a site that polls a url for data

  • 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