Stanislav (@heystanislav) header
Stanislav (@heystanislav) profile picture
Ukraine
Joined August 2020
Photo by Stanislav (@heystanislav)Photo by Stanislav (@heystanislav)Photo by Stanislav (@heystanislav)Photo by Stanislav (@heystanislav)Photo by Stanislav (@heystanislav)Photo by Stanislav (@heystanislav)Photo by Stanislav (@heystanislav)Photo by Stanislav (@heystanislav)Photo by Stanislav (@heystanislav)Photo by Stanislav (@heystanislav)
Quick and handy #aspnet tip 🌟 Let's say you want to rename an endpoint, but at the same time don't want to break existing clients and make it silent. Copy-pasting controller actions? Nah. Use Rewrite and redirects rules instead 👇 #dotnet
3
35
145
11,310
Say the compliment out loud. I have coworkers I really dig working with. I think that every time we do projects. So SAY it. “I really enjoy working with you! We always get it done and it’s super collaborative!” Don’t just THINK the compliment. Say it. Then tell their boss.
21
98
10
584
54,902
The most productive developers are those who find ways to avoid writing code. #softwareengineering #programming #coding
3
1
12
2,058
When looking at source #dotnet code, I often see an optimization tip here and there. Just one attribute - MethodImpl, Aggressive inlining. But whatever I tried, it never worked in my cases. Can somebody share an example of when it's beneficial and not a shot in the leg?
1
4
30
6,762
Do you know that when you create an index in #efcore you can specify the order? If you want to squeeze the maximum performance of the indexes, you you've gotta store the data in the order by which it's being usually retrieved. A tiny detail can make a huge difference. #dotnet
5
11
64
4,274
Curious to see how C# 12 is gonna look like? Check out the blog post from Microsoft 👇 Primary constructors, alias any type (really handy one), and more devblogs.microsoft.com/dotne…
2
9
50
4,393
One of the most awaited features in #efcore has finally come to 7.0. Whenever you have to update and remove a bunch of elements based on one criterion, meet the BulkUpdates and BulkDeletes 🌟. Forget about the foreach loop and N queries 👇 #dotnet
3
21
2
139
8,006
One of the most awaited features in #efcore has finally come to 7.0. Whenever you have to update and remove a bunch of elements based on one criterion, meet the BulkUpdates and BulkDeletes 🌟. Forget about the foreach loop and N queries 👇 #dotnet
3
21
2
139
8,006
Changes coming in auth and #dotnet. Starting from #aspnet core 8, the Duende dependency will be removed from the default SPA Visual Studio template, which in fact is a commercial solution. What do you use for OAuth in your web applications?
5
8
39
10,112
#aspnet core is evolving, and now there are plenty of options for how to build APIs in #dotnet. If you start building the new REST API app from scratch, what approach will you use, and more importantly - why? Share your thoughts 😀
36%Minimal API
54%Controllers
7%FastEndpoints
3%Other (leave a reply)
2,538 votes • Final results
27
13
1
57
38,496
Spans in #dotnet can be a real performance booster when used right. They provide a way to work with a block of memory in a type-safe and efficient manner. And hear me out, it can greatly reduce allocations. Check out the benchmarks for email parsing and see the difference 👇
3
21
1
142
10,938
- How do you do pagination in #efcore? - I use Skip/Take, and it works perfectly fine! Fair enough. But there's an even better solution. And it's called Keyset pagination. Instead of putting an offset, try adding the "where filter" of the "point you stopped" 👇 #dotnet
11
35
2
211
20,766
So why it's even a deal? What's the difference? Assuming that the indexes are in place, DB can efficiently jump to a needed point when offset pagination requires DB to go through and skip the records. Suitable for back and forward navigation, random access isn't possible.
2
5
1,720
I've been using Hangfire for CRON jobs for a long, but on the latest project with a clean .NET 6, Hangfire, and Autofac we were getting memory leaks out of nothing. So now I looking for your advice, what do you use in #dotnet to schedule CRON jobs? Any answer is appreciated 😀
54
14
1
121
36,379
Quick and handy #aspnet tip 🌟 Let's say you want to rename an endpoint, but at the same time don't want to break existing clients and make it silent. Copy-pasting controller actions? Nah. Use Rewrite and redirects rules instead 👇 #dotnet
3
35
145
11,310
I didn't expect that coming
I had to break my silence: 3 Features Java Got First And C# Later Copied youtu.be/IrlBW2Oa_8Y
1
975
In #dotnet, two types represent date & time: DateTime and DateTimeOffset. Microsoft recommends the latest one to use, although I often see it as highly overlooked. Let's recall the memory, take a look at the code below. What's going to be the output?
3
15
1
78
12,403
Discriminated unions are fantastic. It's perhaps the cleanest way to express "this thing OR that" in programming. Besides 'OneOf', I found another incredible package that uses Source generators under the hood. Meet the Dunet: github.com/domn1995/dunet Check that out 👇 #dotnet
3
16
1
39
5,688