๐Ÿ‘พ Profile
๐Ÿ‘พ

@ashmind

Followers
1K
Following
2K
Media
83
Statuses
3K

I develop. He/him. https://t.co/B6aUFMxdSu

New Zealand
Joined December 2007
Don't wanna be here? Send us removal request.
@ashmind
๐Ÿ‘พ
3 years
New places (no content yet):.โ€ข โ€ข
0
0
2
@ashmind
๐Ÿ‘พ
3 years
This works for method visits as well, e.g. here is a method that gets called two times. You can see what called it that time, and what return value was produced for that specific call.
Tweet media one
0
0
5
@ashmind
๐Ÿ‘พ
3 years
Recently I was thinking about "time-travel" alternatives to traditional debugging for SharpLab's continuous Run. Here's one outcome. SharpLab used to dump all loop values at once, but that wasn't too useful. Now you can select a specific iteration and see values and flow within.
2
3
24
@ashmind
๐Ÿ‘พ
3 years
Happy to see !! feedback considered and !! excluded for now. As someone said in previous comments, !! would make "string x" obsolete โ€” we would always use either "string? x" or "string x!!". Personally I am still keen for <Nullable>enforce</Nulable> but I do get the concerns.
@KathleenDollard
Kathleen Dollard
3 years
The blog post for C# 11 preview updates in Visual Studio 17.2 Preview 3/.NET 7 Preview 3 is up:
0
0
6
@ashmind
๐Ÿ‘พ
3 years
As a Russian, I want to say: please listen to Ukrainians and try to help if you can. This pointless, idiotic invasion war is a (yet one more) black mark on Russia's history.
@STeplyakov
Sergiy Teplyakov ๐Ÿ‡บ๐Ÿ‡ฆ ๐Ÿ‡บ๐Ÿ‡ธ
3 years
Here are a few steps you personally can do:.1. Support the Ukrainian army.2. Ban everyone who thinks that the invasion is justified! Are you kidding me! Itโ€™s fucking not! .3. Share this and express your support for our country!. #UkrainiansAbroad.
0
0
28
@ashmind
๐Ÿ‘พ
3 years
"Giving up" is an underrated developer skill. 16 hours into a nice refactoring, branch has 300 files changed, 100 will need new tests?.Give up. Couldn't convince team your code style is best?.Give up. Love personally reviewing every single PR, but the team is growing?.Give up.
0
2
13
@ashmind
๐Ÿ‘พ
4 years
Just FYI, as of now SharpLab has been migrated to .NET 6 (except some older branches).
3
0
85
@ashmind
๐Ÿ‘พ
4 years
Going to enable a very aggressive (and very overengineered) cache on SharpLab, please report any issues.
1
0
8
@ashmind
๐Ÿ‘พ
4 years
Regular, 1x dev: Decides to add a cache. Adds a cache. Me, 0.01x dev: Persistent cache? What if someone puts PII into SharpLab, must encrypt at rest. Browser is untrusted, must write from server. Can ask branch API, what if URL is faked?. Days later, lots of learnings, no cache.
1
4
68
@ashmind
๐Ÿ‘พ
4 years
Just to add -- this is a concept for commands at solution level, at project level you probably want to run the project itself.
0
0
0
@ashmind
๐Ÿ‘พ
4 years
And yep I know I can do a custom tool and call it e.g. run2, but I liked the symmetry between npm run and dotnet run here, and it was an interesting challenge.
1
0
0
@ashmind
๐Ÿ‘พ
4 years
I was curious if you can achieve something like npm scripts (arbitrary commands) with dotnet run -- and you can!. Only thing needed is this small csproj in top solution folder:. (This is a proof-of-concept, not fully cross-platform, not polished at all)
Tweet media one
1
0
8
@ashmind
๐Ÿ‘พ
4 years
I did consider it, I wish I could actually do it though๐Ÿ˜‚
Tweet media one
Tweet media two
2
1
4
@ashmind
๐Ÿ‘พ
4 years
* Some limitations apply.
0
0
2
@ashmind
๐Ÿ‘พ
4 years
Tired of using SharpLab to decompile C# to IL?.No problem!. Thanks to great work by @konradkokosa and @vivekmapara you can now decompile IL to to C# instead.
Tweet media one
1
15
106
@ashmind
๐Ÿ‘พ
4 years
A tech pattern to avoid: automatically using latest version. jQuery CDN's -latest got fixed at v1.11, PowerShell's StrictMode -Latest might break your scripts in the future, Azure/arm-deploy GitHub Action picks GH VM's /latest az cli โ€” which just broke it for everyone.
0
1
6
@ashmind
๐Ÿ‘พ
4 years
Writing low-allocation code in new .NET (Memory/Spans/Pools) is quite fun. (Side-projects only, too complex for work). It builds a mindset: looked to replace ArrayPool with MemoryPool, but MP Rent() returns a disposable ref type โ€” suspicious. Checked code, yep, always allocates.
0
0
9
@ashmind
๐Ÿ‘พ
4 years
Thanks to everyone who voted for this!๐Ÿ’Ž.I very much appreciate both the outcome and the message that SharpLab is useful to all of you.
4
1
59
@ashmind
๐Ÿ‘พ
4 years
6. But overall generators are quite fun to use, and I love to see this progress -- on the other hand I did feel that something like mapped types (TypeScript) could have solved a lot of my work without source generation.
1
0
0
@ashmind
๐Ÿ‘พ
4 years
5. Using attributes to setup generators is a bit awkward. I would love to have Get<I> giving you MockOfI, or Query("select id, name from client") giving you (id, name) without any extra setup. But that requires C# to overload by specific generic type or specific string literal.
2
0
0