Better HN
topnewbestaskshowjobs
Log inSign up

dgpy

10 karma · joined Oct 27, 2016 (10y ago) · 12 submissions

Submissions

comment 1y ago · link · parent

"Priorities" quote: Mark Zuckerberg said that he wouldn’t say that child safety was his top concern “when I have a number of other areas I’m more focused on like building the metaverse.”

comment 1y ago · link · parent

I watched it week ago. Mrs Applebaum explains political situation very clearly. Recommended

comment 2y ago · link · parent

Black Mirror reenactment? https://en.m.wikipedia.org/wiki/Be_Right_Back

comment 2y ago · link · parent

It's Kremlin, I wouldn't be surprised if actual goal was to produce semiconductors for military purposes (while trying to convince everyone that entertainment/education/fostering local IT is official goal).

comment 2y ago · link · parent

General usage is as in this short video: https://streamable.com/3oqxhf

`QueryGeneratorTestUtil.GenerateCompileAndAssert` internally uses `Microsoft.CodeAnalysis.CSharp.CSharpCompilation.Create()` and `Microsoft.CodeAnalysis.MSBuild.MSBuildWorkspace.Create()`. I get an interactive, debuggable source generator development environment this way. Same as you, initially I used "comments as debugging" hacks but above way is way more efficient.

comment 2y ago · link · parent

Thanks. Personally, I found that most efficient way to develop source generators was by utilizing in memory compilation in unit tests. That way, I was able to use debugger to understand AST provided by Roslyn and quickly iterate. Not sure how it works within VSCode but in Rider it was really fine. Also, sometimes Visual Studio and Rider doesn't regenerate code (likely because internally msbuild decides that dlls are up-to-date). Unit test + in memory compilation way described above assured that latest code was really used in test.

7.

Show HN: I've built ORM-ish library using dotnet source generator(github.com ↗)

5 points · by dgpy · 2y ago · 5 comments

comment 3y ago · link · parent

Kremlin's information warfare is a real thing. I highly recommend Jessikka Aro book "Putin's Trolls: On the Frontlines of Russia's Information War Against the World". Kremlin does it on multiple fronts and had significant negative influence.

9.

Philadelphia Toolkit: integrated client-server web dev in C#(github.com ↗)

2 points · by dgpy · 6y ago · discuss

comment 7y ago · link · parent

Hi, I'm d-p-y, one of the authors. Hope you find it interesting. If you have any questions please ask.

11.

Show HN: Philadelphia Toolkit – integrated aspnet core and Bridge.NET(github.com ↗)

2 points · by dgpy · 7y ago · 1 comment

comment 7y ago · link · parent

Hello fellow hackers, This is my first comment since I started reading HN around 4y ago. This comment thread mostly summarizes why I'm a lurker: most of the time when I read an article someone already made a point that I would like to make. Most of the time it would be superfluous ( objectively speaking this comment can be treated as such...). To make it slightly worthwhile let me share why I keep on consuming HN and lurking here: What I really like about HN in comparison to reddit is that HN is way less negative/aggressive. Many years ago I once tried there to discuss something - wanted to share my joy about some feature in some library on proggit. Instead of arguments I've received bunch of profanities and name calling. That effectively 'cured' me from participating in comments there. I really really enjoy that such negativity is missing here. That trait plus curated links makes my time spent here much better spent in comparison to alternatives. Thank you guys!