👾

3.5K posts

👾

👾

@ashmind

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

New Zealand Joined Aralık 2007
493 Following1.2K Followers
👾
👾@ashmind·
@ereliuer_eteer I would say, don't focus your best skills on the goal of breaking it (just in case). But also don't be cautious with anything you try as part of normal usage, SL is expected to handle it.
English
0
0
2
0
♦ ereliuer eteer ♦
♦ ereliuer eteer ♦@ereliuer_eteer·
@ashmind Am I encouraged to experiment? 😉 Or should I be cautious but report issues if something breaks down inadvertently?
English
1
0
1
0
♦ ereliuer eteer ♦
♦ ereliuer eteer ♦@ereliuer_eteer·
@ashmind I carelessly pasted a small fragment of C# code with explosively recursive generic types to sharplab.io and I think the service is down now. I am really sorry. 😞
English
1
0
1
0
👾
👾@ashmind·
@ereliuer_eteer There are some built-in protections against type explosions btw: github.com/ashmind/SharpL… If you find something that still causes a problem, please let me know and I'll extend those further, the system is designed to be resilient against user input.
English
1
0
2
0
👾
👾@ashmind·
@ereliuer_eteer Thanks for reporting! However I don't think it's caused by your code — there is a nightly build and it seems latest main didn't build correctly, so likely just a timing coincidence.
English
1
0
2
0
👾
👾@ashmind·
@terrajobst I wonder where the tech people will go — keen to follow MS .NET ppl on whatever is the new service (hopefully not LinkedIn though).
English
1
0
1
0
👾
👾@ashmind·
@davidfowl Fair point. Even if it is an explicit opt-in, I would still pick global opt-in over per-endpoint config. But the question of opt-in vs opt-out and the startup cost is very interesting design problem, I'll think about it.
English
0
0
0
0
David Fowler
David Fowler@davidfowl·
@ashmind The cost needs to be zero if you’re not using it. This filter does a pretty good job of that but there’s a startup cost. Source generators might be a solution but still needs to be opted into.
English
2
0
2
0
👾
👾@ashmind·
@davidfowl Yep looks like the best option, tbh could be a sensible framework default, without any call? (though could be a breaking change, not up to date on latest ASP .NET). Allowing individual endpoint to process its validation errors in a custom way feels like an edge case.
English
1
0
2
0
👾
👾@ashmind·
@PeledZohar @jaredpar @terrajobst We used it historically before LINQ expression trees existed. E.g. Where(Client.Age > 30) where > generated some kind of BooleanQueryExpression which was then converted into SQL. Not sure if there is much value in modern uses though.
English
0
0
1
0
👾
👾@ashmind·
@KirillOsenkov No need for Roslyn fork, can just use IgnoresAccessChecksToGenerator: #L16-L18" target="_blank" rel="nofollow noopener">github.com/ashmind/mirror…
English
0
0
2
0
Kirill Osenkov 🇺🇦
Kirill Osenkov 🇺🇦@KirillOsenkov·
or you can have a fork of Roslyn that supports IgnoresAccessChecksTo so you can avoid having a fork of Roslyn with InternalsVisibleTo your project
English
1
0
2
0
👾
👾@ashmind·
@chriscoyier I might be a bit biased, being originally from Russia. But people do not choose what country to be born to. If the author of a library or technology personally chooses to promote heinous views, that can be a reason to drop the tech. Their birth country, not so much.
English
1
0
16
0
Chris Coyier
Chris Coyier@chriscoyier·
What is the fallout of Russia and web tech? Are there good reads on this? For instance BEM is a CSS methodology that came from Russia right? If you’re pro-Ukraine are you anti BEM or is that entirely unfair?
English
31
2
32
0
👾
👾@ashmind·
@davidfowl Great question, I had to think about it. I think still not OK, due to encapsulation. public IX Dependency { get; init; } — get breaks encapsulation public IX Dependency { private get; init; } — technically doesn't, but very weird/awkward pattern
English
1
0
7
0
David Fowler
David Fowler@davidfowl·
Do C# 11 required properties change the game for dependency injection? Is property injection OK now? #dotnet #csharp
English
28
6
102
0
👾
👾@ashmind·
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
English
0
0
5
0
👾
👾@ashmind·
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.
GIF
English
2
2
24
0
👾
👾@ashmind·
@sonergonul Thanks for raising! This is now resolved in newer branches (including main).
English
0
0
0
0
Soner Gönül💻⚡️
Soner Gönül💻⚡️@sonergonul·
@ashmind Hi. Most of branches in sharplab.io I get this error. Do you know why? I just try to test it for UTF-8 string literals and unsigned right shift operator but no luck..
Soner Gönül💻⚡️ tweet media
English
1
0
0
0
👾
👾@ashmind·
@davidfowl Makes sense — e.g. we have an app where migrating WebForms part is multiple years with no customer value. I've considered same, so we could reap immediate tech benefits (C# 10, Mac dev, Linux host), and leave fig rewrite (also simpler, no YARP) to future UX-oriented initiatives.
English
0
0
2
0
👾
👾@ashmind·
@davidfowl Yep hoping it evolves, last proposal I saw were sizes only: #heading=h.jhslnvomzqt1" target="_blank" rel="nofollow noopener">docs.google.com/document/d/1ck…
👾 tweet media
English
0
0
0
0
David Fowler
David Fowler@davidfowl·
@ashmind For now. I remember the same when websockets first came out
English
1
0
1
0
👾
👾@ashmind·
@benblo42 Thanks! It is definitely on my mind, but at the moment — not yet (and likely not this year, but we'll see). Though I would be open to people contributing it.
English
0
0
0
0
Benoit Fouletier
Benoit Fouletier@benblo42·
@ashmind kia ora! So, SharpLab is kinda awesome 😍. Any way to choose framework version, eg .NET 7.0? With System.Runtime.Experimental on top?
English
1
0
0
0
👾
👾@ashmind·
@OneWholesomeDev Yes, eventually, however it's not in my immediate backlog (need to do some maintenance and fixes first).
English
0
0
0
0