Better HN
topnewbestaskshowjobs
Log inSign up

olidb

22 karma · joined Mar 20, 2025 (1y ago) · 7 submissions

Submissions

comment 5mo ago · link · parent

I would really love to see the state of the fn key on the screen, preferably in the task bar. Maybe that would reduce the times I accidently change the volume and brightness.

comment 5mo ago · link · parent

I still see myself as a developer. A developer creates things, writing code is just one part of that. Yes, AI is now part of it, but it’s still just a useful skill. And yes, some poor developers can easily be replaced by AI, but that's not the norm.

3.

A Look Behind the for Loop(debastiani.net ↗)

3 points · by olidb · 5mo ago · discuss

comment 11mo ago · link · parent

Add "<LangVersion>latest</LangVersion>" to the csproj to get more useful features like pattern matching and raw string literals.

comment 11mo ago · link · parent

You can add dependencies, it's just important, that you also add the dependencies to the project where the source generator is used:

SourceGenerator.csproj:

  <ProjectReference Include="..\Dependency.csproj" />
FinalProject.csproj:

  <ProjectReference Include="..\Dependency.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
  <ProjectReference Include="..\SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
And I also recommend to add "<LangVersion>latest</LangVersion>" to SourceGenerator.csproj to use new features like raw string literals.

comment 1y ago · link · parent

Maoni Stephens is indeed on the .net team and is, as far as I know, the lead architect of the .net garbabe collector for many years: https://github.com/Maoni0 https://devblogs.microsoft.com/dotnet/author/maoni/

Therefore she's probably the person with the most knowledge about the .net GC but maybe not the best writer (I haven't read the article yet).

7.

How to Validate Email Addresses in C#?(debastiani.net ↗)

2 points · by olidb · 1y ago · discuss