Dave Callan | dotnet Profile Banner
Dave Callan | dotnet Profile
Dave Callan | dotnet

@Dave_DotNet

12,832
Followers
219
Following
848
Media
6,033
Statuses

Microsoft MVP | .NET Developer & tech lead from Ireland! Talks about Azure, #csharp , Entity Framework, #dotnet and Visual Studio.

Dublin, Ireland
Joined September 2021
Don't wanna be here? Send us removal request.
@Dave_DotNet
Dave Callan | dotnet
2 years
Visual Studio 2022 17.5 has just been released and one of my favourite new features is the INTEGRATED HTTP CLIENT. It's not a Postman killer yet but it so awesome to be able to both send and debug REST requests directly from within #visualstudio โค ... #dotnet
Tweet media one
42
206
1K
@Dave_DotNet
Dave Callan | dotnet
1 year
Primary Constructors in .NET 8 โฌ‡ A lot less boilerplate. What do you think? Thanks to Steven Giesel on LinkedIn for the original image -> #dotnet #csharp
Tweet media one
36
117
738
@Dave_DotNet
Dave Callan | dotnet
4 months
๐Ÿคฃ #devlife
Tweet media one
3
68
634
@Dave_DotNet
Dave Callan | dotnet
2 months
There's a huge abstraction fetish in #dotnet I've found. In a system I worked on in the not too distant past, I estimated I could remove 60-70% of the code AND the system would do the exact same thing. Full of abstractions, indirection, pass through layers, 'just in case'
@kellabyte
Kelly Sommers
3 months
Premature abstraction is WAY more prevalent and worse than premature optimization and really handcuffs code bases for years and years.
73
278
2K
88
91
611
@Dave_DotNet
Dave Callan | dotnet
10 months
Entity Framework is not slow ๐Ÿคฃ #dotnet #devlife
Tweet media one
27
69
571
@Dave_DotNet
Dave Callan | dotnet
2 months
#dotnet ๐Ÿคฃ
Tweet media one
14
57
535
@Dave_DotNet
Dave Callan | dotnet
13 days
.NET Async guidance from David Fowler โฌ‡ Lots of great guidance on how to use Async properly using bad and good examples. Bookmark it. #dotnet
6
105
546
@Dave_DotNet
Dave Callan | dotnet
11 months
How to find slow queries in Entity Framework โฌ‡ By using Entity Frameworks interceptor system and hooking into the ReaderExecuted event we can see exactly how long queries are taking to execute. Bookmark it! #dotnet #efcore
Tweet media one
11
98
495
@Dave_DotNet
Dave Callan | dotnet
2 months
.NET 9 will natively support UUID v7 ๐Ÿ‘ These GUIDs have a timestamp embedded so are sortable and thus are a better fit for DBs #dotnet
Tweet media one
18
64
481
@Dave_DotNet
Dave Callan | dotnet
2 years
LINQ performance improvements in .NET 7๐Ÿ’ช๐Ÿป #dotnet #dotnet7 #csharp
Tweet media one
12
87
446
@Dave_DotNet
Dave Callan | dotnet
1 year
C# LINQ Mind Map โฌ‡ What a great infographic. Bookmark it for future reference. Thanks to Steven Giesel on LinkedIn for the original image -> #dotnet #csharp
Tweet media one
2
83
410
@Dave_DotNet
Dave Callan | dotnet
1 year
Paste JSON As Classes in Visual Studio โฌ‡ Not a lot of devs are aware of this feature in VS but it's super useful. It's available from the Edit menu. Have you used this functionality before? #dotnet #csharp
Tweet media one
21
76
401
@Dave_DotNet
Dave Callan | dotnet
2 months
C# Explicit Operator simple example In .NET we have plenty of ways to map objects to one another. Below is an example of using the Explicit operator to do this. #dotnet
Tweet media one
34
50
398
@Dave_DotNet
Dave Callan | dotnet
1 year
#dotnet Performance Improvements ๐Ÿš€ .NET 8 .NET 7 .NET 6 .NET 5 .NET 3.0 .NET 2.1 .NET 2.0 Bookmark it!
Tweet media one
2
97
383
@Dave_DotNet
Dave Callan | dotnet
8 months
Entity Framework Query Plan Visualizer โฌ‡ This new Visual Studio extension by @GioDalakishvili looks like it could be a game changer. It enables us to view the query plan of our queries directly inside VS. #dotnet
Tweet media one
10
55
375
@Dave_DotNet
Dave Callan | dotnet
1 year
Any v Exists benchmark in .NET โฌ‡ Anyone know why? ๐Ÿ˜‰ ... Thanks to Nabi Karampoor on LinkedIn for the original image -> #csharp #dotnet
Tweet media one
14
48
367
@Dave_DotNet
Dave Callan | dotnet
2 months
ASP .NET Core Best Practices ๐Ÿ’ก Nice article providing guidelines from Microsoft for maximizing performance and reliability of ASP .NET Core apps. Which of these techniques are you using in your apps right now? Link in 2nd tweet below. #dotnet
Tweet media one
9
51
355
@Dave_DotNet
Dave Callan | dotnet
3 months
#dotnet website down This is what happens when @davidfowl goes on holidays ๐Ÿคฃ
Tweet media one
22
20
348
@Dave_DotNet
Dave Callan | dotnet
9 months
LINQ Mind Map โฌ‡ What a great infographic. Perfect for beginners trying to get a handle on all of the amazing possibilities that LINQ offers in .NET. Bookmark it for future reference. Thanks to Steven Giesel on LinkedIn for the image -> #dotnet
Tweet media one
5
60
335
@Dave_DotNet
Dave Callan | dotnet
6 months
#dotnet devs, which one are you? ๐Ÿคฃ
Tweet media one
75
26
334
@Dave_DotNet
Dave Callan | dotnet
7 months
Swashbuckle.AspNetCore is being removed in .NET 9 #dotnet
Tweet media one
19
67
323
@Dave_DotNet
Dave Callan | dotnet
4 months
Visual Studio Endpoints Explorer ๐Ÿ’ก The Endpoints Explorer window allows us to see an overview of all endpoints in a solution. We can also navigate directly to the code for an endpoint and generate a .http file request stub for it. To open it select View > Other Windows >
Tweet media one
9
52
325
@Dave_DotNet
Dave Callan | dotnet
1 year
.NET LINQ Skip and Take visualized โฌ‡ ... Includes range and indices syntax new since C# 8. Thanks to Steven Giesel for the original post -> . #dotnet #csharp
Tweet media one
8
77
316
@Dave_DotNet
Dave Callan | dotnet
1 year
How to find slow queries in Entity Framework โฌ‡ By using Entity Frameworks interceptor system and hooking into the ReaderExecuted event we can see exactly how long queries are taking to execute. Bookmark it! #dotnet #efcore
5
77
315
@Dave_DotNet
Dave Callan | dotnet
2 years
LINQ performance improvements in .NET 7๐Ÿ’ช๐Ÿป #dotnet #dotnet7 #csharp
Tweet media one
8
35
311
@Dave_DotNet
Dave Callan | dotnet
5 months
Deep .NET with Scott Hanselman and Stephen Toub YouTube playlist featuring all five awesome deep dive sessions on various .NET topics with Scott Hanselman and Stephen Toub. Devs asked for some more 'advanced' level content and this series is really delivering so far, thank you
Tweet media one
9
56
309
@Dave_DotNet
Dave Callan | dotnet
6 months
.NET 8 v .NET 9 Exception Handling benchmarks Have just ran these on preview 3, wow โค. 76% faster handling in .NET 9 for the benchmark code I ran (in the 2nd tweet below). #dotnet
Tweet media one
14
63
310
@Dave_DotNet
Dave Callan | dotnet
11 months
New Data annotations attributes in .NET 8 โฌ‡ Thanks to Nabi Karampoor on LinkedIn for the image -> #dotnet
Tweet media one
13
65
307
@Dave_DotNet
Dave Callan | dotnet
2 months
Entity Framework SQL Query Plan Visualizer ๐Ÿ‘๐Ÿป The EFCore.Visualizer Visual Studio extension looks like it could be a game changer. It allows us to view the query plan of our SQL queries directly inside VS. Will you try it? #dotnet
Tweet media one
13
50
302
@Dave_DotNet
Dave Callan | dotnet
1 year
LINQ methods in C# cheatsheet โฌ‡ ... Bookmark this post and revisit it anytime you need a quick refresher of LINQ methods! Thanks to Georgios Petas for the original post -> #dotnet #csharp
7
66
283
@Dave_DotNet
Dave Callan | dotnet
1 month
.NET 8 v .NET 9 exception handling benchmarks 76% faster handling in .NET 9 for the benchmark code I ran (in the 1st comment below). Should we use exceptions for control flow now? Still no ๐Ÿ˜‰ #dotnet
Tweet media one
16
35
299
@Dave_DotNet
Dave Callan | dotnet
25 days
.NET 9 LINQ Mind Map ๐Ÿ”ฅ Includes the three new LINQ methods coming in .NET 9: "Index," "CountBy," and "AggregateBy". Thanks to Steven Giesel on LinkedIn for the image -> #dotnet
Tweet media one
8
62
294
@Dave_DotNet
Dave Callan | dotnet
18 days
C# unit test with Builder Pattern example Who is using the builder pattern to help setup their test data? In what situations is the extra maintenance overhead justified? When is it not justified? #dotnet
Tweet media one
39
42
290
@Dave_DotNet
Dave Callan | dotnet
5 months
Entity Framework is not slow! You're probably just using it wrong ... Efficient Querying โฌ‡ Efficient Updating โฌ‡๏ธ #dotnet
Tweet media one
13
57
290
@Dave_DotNet
Dave Callan | dotnet
8 months
List<T> Any v Exists benchmark in .NET โฌ‡ Anyone know why this is? ๐Ÿ˜‰ ... Thanks to Nabi Karampoor on LinkedIn for the image -> #csharp #dotnet
Tweet media one
14
37
288
@Dave_DotNet
Dave Callan | dotnet
2 years
I'm hearing a lot about reduced build times in Visual Studio due to the new BUILD ACCELERATION feature in VS 2022 17.5. The example below goes from 26 to 1.5 seconds ๐Ÿš€... Remember it's opt-in. Set AccelerateBuildsInVisualStudio to use it. #visualstudio #dotnet #csharp
Tweet media one
@rothdave
David Roth
2 years
Just tested the new build acceleration in latest @VisualStudio and holy crap the impact is gigantic. ๐Ÿš€ 30 project solution with millions LOC. Previously: -Build Solution: ~ 26 seconds -Change something in a low-level project -Build: ~ 26 seconds With build acceleration๐Ÿ‘‡
5
25
109
17
56
285
@Dave_DotNet
Dave Callan | dotnet
8 months
.NET devs, top-level statements, on or off? I turn them off, I just can't accept a console app a without a Main method. What about you? #dotnet
Tweet media one
105
22
282
@Dave_DotNet
Dave Callan | dotnet
6 months
Amend default debugging view for a class โฌ‡ Did you know we can change the standard debugging view for a C# class by using the DebuggerDisplay attribute? Thanks to Adem Sahin on LinkedIn for the image -> #dotnet
Tweet media one
15
39
282
@Dave_DotNet
Dave Callan | dotnet
1 year
๐ˆ๐๐ž๐ง๐ญ๐ข๐ญ๐ฒ ๐ข๐ง ๐€๐’๐ .๐๐„๐“ ๐‚๐จ๐ซ๐ž ๐Ÿด ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ Have you looked at the new Identity API in .NET 8 yet? Thanks to Nabi Karampoor on LinkedIn for the original image -> #csharp #dotnet
Tweet media one
8
49
280
@Dave_DotNet
Dave Callan | dotnet
5 months
Built-in OpenAPI doc generation in .NET 9 โค ASP .NET Preview 4 will have OpenAPI doc generation capabilities. Swashbuckle is awesome but it's nice to have this built in now. What do you think? #dotnet
Tweet media one
21
40
283
@Dave_DotNet
Dave Callan | dotnet
1 year
Awesome playlist for #dotnet devs who are new to #azure โฌ‡ ๐—•๐—ผ๐—ผ๐—ธ๐—บ๐—ฎ๐—ฟ๐—ธ ๐—ถ๐˜!
Tweet media one
5
70
277
@Dave_DotNet
Dave Callan | dotnet
10 months
Consider using variables in Entity Framework queries rather than constants โฌ‡ ... to ensure the DB can reuse the same query plan. #dotnet #csharp
Tweet media one
19
37
272
@Dave_DotNet
Dave Callan | dotnet
2 months
.NET devs, for those that are not using tooling, how are you doing manual object - object mapping? and why this approach? ๐Ÿค” I've put five examples of common approaches in this thread, starting with extension methods below. #dotnet
Tweet media one
47
35
275
@Dave_DotNet
Dave Callan | dotnet
6 months
Find slow queries in Entity Framework ๐Ÿ’ก #dotnet
Tweet media one
9
37
271
@Dave_DotNet
Dave Callan | dotnet
6 months
Accepted into Microsoft MVP Program ๐ŸŽ‰ I'm so happy and proud to say that this week I was presented with the Microsoft Most Valuable Professional (MVP) award in recognition of my 'outstanding contributions to the technical community' in these areas ... .NET Developer Tools It
Tweet media one
40
13
271
@Dave_DotNet
Dave Callan | dotnet
2 months
How to enable inline hints in Visual Studio ๐Ÿ’ก #dotnet
Tweet media one
7
35
271
@Dave_DotNet
Dave Callan | dotnet
1 year
Which .NET mocking library syntax do you prefer from the below test examples? Moq? NSubstitute? FakeItEasy? ... and which library do you use and why? #dotnet #csharp
Tweet media one
61
39
266
@Dave_DotNet
Dave Callan | dotnet
30 days
C# Access Modifiers summary table I got this summary table from MS learn. It's definitely worth a bookmark. Note the file access modifier is new from C# 11. #dotnet
Tweet media one
8
41
270
@Dave_DotNet
Dave Callan | dotnet
1 year
Newtownsoft v System.Text.Json benchmark โฌ‡ What are you using for JSON serialization? Thanks to Nabi Karampoor on LinkedIn for the image -> #dotnet
Tweet media one
12
39
265
@Dave_DotNet
Dave Callan | dotnet
2 years
In .NET how do you like to convert objects from one type to another? AutoMapper? Mapster? Plain left-right assignment perhaps using the Explicit Operator or Extension methods? Example of explicit operator below ๐Ÿ‘‡๐Ÿป ... #dotnet #csharp #chatgpt #visualstudio #automapper
Tweet media one
37
42
259
@Dave_DotNet
Dave Callan | dotnet
2 months
#dotnet devs, query or method syntax for LINQ? Why?
Tweet media one
160
17
254
@Dave_DotNet
Dave Callan | dotnet
2 years
Why use collections in the new System.Collections.Frozen namespace in .NET 8 versus the existing ones in System.Collections.Immutable? Good clarity on the differences from Stephen Toub on the MS blog the other day ๐Ÿ‘‡ ... #dotnet #csharp
Tweet media one
8
57
249
@Dave_DotNet
Dave Callan | dotnet
6 months
Build asych from scratch in C# with Stephen Toub To explain how asych/await works in .NET in this video Stephen builds his own async/await implementation completely from scratch and explains throughout the way. Such an insightful video. #dotnet
Tweet media one
7
33
248
@Dave_DotNet
Dave Callan | dotnet
4 months
Dev Tunnels in Visual Studio ๐Ÿ’ก Devs tunnels allow us to expose (and debug) our localhost APIs via remote URLs. Previously when integrating into a third party service provider which had webhooks or callbacks to notify our apps that some event has happened we needed a
Tweet media one
10
49
251
@Dave_DotNet
Dave Callan | dotnet
1 year
In .NET we have plenty of ways to map objects to one another ... Below is an example (courtesy of ChatGPT) of using the EXPLICIT OPERATOR ๐Ÿ‘‡๐Ÿป ... How do you like to map objects? #dotnet #csharp
Tweet media one
22
41
247
@Dave_DotNet
Dave Callan | dotnet
7 months
LINQ changed to use is null consistently โฌ‡ Looks like I'm not the only one who prefers is null instead of == null. This 75 file PR was merged yesterday. For me I just think is null reads more like English so is more natural. Which approach do you prefer? #dotnet
Tweet media one
50
30
244
@Dave_DotNet
Dave Callan | dotnet
1 year
New Guard Clauses coming in .NET 8 ๐Ÿ‘‡๐Ÿป .... These can really help clean up our code โค ... What do you think? Will you use these new clauses? #dotnet #csharp
Tweet media one
9
37
236
@Dave_DotNet
Dave Callan | dotnet
9 months
Paste JSON As Classes in Visual Studio โฌ‡ Not a lot of devs are aware of this feature in VS but it's super useful. It's available from the Edit menu. Have you used this functionality before? #dotnet #csharp
Tweet media one
17
38
241
@Dave_DotNet
Dave Callan | dotnet
11 months
๐—˜๐˜ƒ๐—ผ๐—น๐˜‚๐˜๐—ถ๐—ผ๐—ป ๐—ผ๐—ณ ๐—–# โฌ‡ C# 12 will be officially launched today ๐Ÿ‘๐Ÿป ... Here's a nice recap of the major items included in each version. Thanks to Aram Tchekrekjian on LinkedIn for the image -> #dotnet
Tweet media one
6
66
242
@Dave_DotNet
Dave Callan | dotnet
1 year
Entity Framework isn't slow !!! You're probably just using it wrong ... Efficient Querying โฌ‡ Efficient Updating โฌ‡ #dotnet #efcore
6
62
238
@Dave_DotNet
Dave Callan | dotnet
10 months
Amend default debugging view for a class โฌ‡ I learnt something new today, we can change the standard debugging view for a C# class by using the DebuggerDisplay attribute. Thanks to Adem Sahin on LinkedIn for the image -> #dotnet
Tweet media one
7
34
236
@Dave_DotNet
Dave Callan | dotnet
7 months
.NET 9 will have a new Lock() type ๐Ÿ”’ Great to have a dedicated lock type as it gives us a way to express the intent of our code more clearly. Thanks to Steven Giesel on LinkedIn for the image -> #dotnet
Tweet media one
15
47
235
@Dave_DotNet
Dave Callan | dotnet
2 years
.NET 8 (Preview 2) has lots of new validation attribute extensions coming including ... RequiredAttribute.DisallowAllDefaultValues RangeAttribute bounds LengthAttribute AllowedValuesAttribute / DeniedValuesAttribute Base64StringAttribute 2 examples below ๐Ÿ‘‡ ... #dotnet #csharp
Tweet media one
12
40
230
@Dave_DotNet
Dave Callan | dotnet
2 months
#dotnet ๐Ÿคฃ
Tweet media one
10
19
229
@Dave_DotNet
Dave Callan | dotnet
1 year
The SOLID PRINCIPLES are great but I cringe every time I hear a dev say something is a 'violation' of one of them as if they are laws that MUST be abided by all the time ... What do you think? Are we too eager to apply SOLID to everything? #dotnet #devlife #SoftwareEngineering
Tweet media one
65
13
222
@Dave_DotNet
Dave Callan | dotnet
2 months
#dotnet life ๐Ÿคฃ
Tweet media one
14
36
228
@Dave_DotNet
Dave Callan | dotnet
6 months
Paste JSON As Classes in Visual Studio โฌ‡ Not a lot of devs are aware of this feature in VS but it's super useful. It's available from the Edit menu. Have you used this functionality before? #dotnet
Tweet media one
16
31
223
@Dave_DotNet
Dave Callan | dotnet
10 months
Full text searching in Entity Framework โฌ‡ #dotnet #efcore
Tweet media one
8
22
213
@Dave_DotNet
Dave Callan | dotnet
5 months
Full text searching in Entity Framework โฌ‡ #dotnet
Tweet media one
7
23
216
@Dave_DotNet
Dave Callan | dotnet
1 year
Returning multiple values from a method in C# ? โฌ‡ Consider ValueTuples (C# 7) as a lightweight alternative to strongly typed classes when you only need to return a small number of values from a method. What do you think? Do you use ValueTuples often? #dotnet #csharp
Tweet media one
37
25
217
@Dave_DotNet
Dave Callan | dotnet
6 months
C# client side GUIDs sortable in SQL Server โฌ‡ When we need a GUID generated on the client side using Entity Frameworks SequentialGuidValueGenerator method creates GUIDs which are sortable on SQL Server. Note that GUIDs created with the built in C# Guid.NewGuid() method are
Tweet media one
7
22
213
@Dave_DotNet
Dave Callan | dotnet
5 months
Entity Framework 8 v Dapper benchmark #dotnet
Tweet media one
8
26
213
@Dave_DotNet
Dave Callan | dotnet
1 year
Awesome playlist for #dotnet devs who are new to #azure ๐Ÿ‘‡๐Ÿป ...
Tweet media one
1
55
208
@Dave_DotNet
Dave Callan | dotnet
1 month
Four awesome Visual Studio features ... you might not be aware of! + HTTP files + Endpoints Explorer + Dev Tunnels + Paste Json as Classes Scroll the thread for details ... #dotnet @VisualStudio
Tweet media one
7
48
210
@Dave_DotNet
Dave Callan | dotnet
1 year
15 Design Patterns in simple words โฌ‡ What a great infographic. Bookmark it for future reference. Thanks to Keivan Damirchi on LinkedIn for the original image -> #devlife #SoftwareEngineering
Tweet media one
0
56
205
@Dave_DotNet
Dave Callan | dotnet
5 months
StringSyntax attribute example ๐Ÿ’ก Theย StringSyntax Attributeย (.NET 7+) allows us to tell Visual Studioย what kind of string (e.g. regex, datetime format, JSON etc.) we are working with in order to get correct intellisense and highlighting. Have you used it yet? #dotnet
Tweet media one
11
31
206
@Dave_DotNet
Dave Callan | dotnet
2 years
It's amazing to see the performance improvements of String.Replace across multiple versions of .NET๐Ÿš€... When you have such a big improvement from 5 -> 6, you think most possibilities for further optimization are gone, but no in .NET 7 perf improves again๐Ÿ’ช๐Ÿป... #dotnet #csharp
Tweet media one
6
18
117
@Dave_DotNet
Dave Callan | dotnet
7 months
.NET built-in IValidatableObject example โฌ‡ I love FluentValidation, but the built-in IValidatableObject does the job for me most of the times when I'm building ASP .NET MVC apps. Have you used it? How are you validating input from the UI or API? #dotnet
Tweet media one
23
26
203
@Dave_DotNet
Dave Callan | dotnet
2 months
New Visual Studio Solution format ๐Ÿ‘๐Ÿป Readability and mergeability is massively improved. The example below shows the new format at the bottom. Turn it on from from Visual Studio 2022 v17.10 via Preview Features -> Use Solution File Persistence Model and then save your
Tweet media one
20
35
205
@Dave_DotNet
Dave Callan | dotnet
1 year
PERFORMANCE IMPROVEMENTS in #dotnet ๐Ÿš€ ... .NET 7 -> .NET 6 -> .NET 5 -> .NET 3.0 .NET 2.1 -> .NET 2.0 ->
Tweet media one
3
44
199
@Dave_DotNet
Dave Callan | dotnet
3 months
How to find slow queries in Entity Framework โฌ‡ By using Entity Frameworks interceptor system and hooking into the ReaderExecuted event we can see exactly how long queries are taking to execute. Bookmark it! #dotnet
Tweet media one
4
27
203
@Dave_DotNet
Dave Callan | dotnet
1 year
4 Use Cases of LINQ in .NET โฌ‡ Thanks to Keivan Damirchi on LinkedIn for the original image -> #dotnet #csharp
Tweet media one
2
36
197
@Dave_DotNet
Dave Callan | dotnet
4 months
Welcome to .NET Aspire playlist Great for beginners who haven't really looked into Aspire yet. Link below โฌ‡๏ธ #dotnet
Tweet media one
1
32
192
@Dave_DotNet
Dave Callan | dotnet
1 month
.NET LINQ expressions now supported in Visual Studio IEnumerable Visualizer From Visual Studio 2022 Version 17.11.1, while visualizing a collection, we can now modify the expressions textbox with a LINQ query. The visualizer updates in real-time, reflecting the data change
Tweet media one
8
26
192
@Dave_DotNet
Dave Callan | dotnet
2 months
Discriminated unions in C# ๐Ÿฅณ Looks like this is now an official proposal. It might actually be happening. Proposal link in 2nd tweet below โฌ‡๏ธ #dotnet #csharp
Tweet media one
9
30
189
@Dave_DotNet
Dave Callan | dotnet
8 months
C# unit test with Builder Pattern example โฌ‡ Who is using the builder pattern to help setup their test data? In what situations is the extra maintenance overhead justified? When is it not justified? I want your opinion, there is no 'right' / 'wrong' answers. #dotnet
Tweet media one
28
26
185
@Dave_DotNet
Dave Callan | dotnet
2 months
Paste JSON As Classes in Visual Studio โฌ‡ Not a lot of devs are aware of this feature in VS but it's super useful. It's available from the Edit menu. Have you used this functionality before? #dotnet
Tweet media one
6
30
188
@Dave_DotNet
Dave Callan | dotnet
7 months
ASP .NET Core Best Practices ๐Ÿ’ก Nice guidelines from MS for maximizing performance and reliability of ASP .NET Core apps. #dotnet
1
41
183
@Dave_DotNet
Dave Callan | dotnet
9 months
LINQ methods in C# cheatsheet โฌ‡ Bookmark this post and revisit it anytime you need a quick refresher of LINQ methods! Thanks to Georgios Petas on LinkedIn for the image -> #dotnet #csharp
1
31
184
@Dave_DotNet
Dave Callan | dotnet
1 year
๐——๐—ถ๐—ณ๐—ณ๐—ฒ๐—ฟ๐—ฒ๐—ป๐—ฐ๐—ฒ ๐—ฏ๐—ฒ๐˜๐˜„๐—ฒ๐—ฒ๐—ป ๐—ฐ๐—ผ๐—ป๐˜€๐˜ & ๐—ฟ๐—ฒ๐—ฎ๐—ฑ๐—ผ๐—ป๐—น๐˜† ๐—ถ๐—ป ๐—–#? โฌ‡ The main diff between const & readonly is that consts are initialized ๐—ฎ๐˜ ๐—ฐ๐—ผ๐—บ๐—ฝ๐—ถ๐—น๐—ฒ ๐˜๐—ถ๐—บ๐—ฒ, while readonly variables can be initialized either at compile time or runtime. #dotnet #csharp
Tweet media one
4
30
180
@Dave_DotNet
Dave Callan | dotnet
1 year
C# Tip ๐Ÿ’ก - Get method CALLER info ... Did you know we can get info about the caller of a method using #csharp (5+) info attributes? Below is a simple example ... What do you think? Have you use info attributes before? #dotnet
Tweet media one
3
37
185
@Dave_DotNet
Dave Callan | dotnet
2 years
It's 2023 and I still hate 'clean' architecture. It hurts my brain and makes me have to 'think' too much. Why spread code related to a single use case across 4,5,6 projects? Vertical slice architecture on the other hand โคโคโค #dotnet #SoftwareEngineering #softwaredevelopment
Tweet media one
30
12
182
@Dave_DotNet
Dave Callan | dotnet
8 months
Vertical Slice Architecture example โฌ‡ This is just one way to approach VSA but the type of code structure below is IMHO a dream to work with. Controller (single action only), ViewModel(s) and MediatR Request and Request Hander in the same file. The view is obviously separate
Tweet media one
32
17
180
@Dave_DotNet
Dave Callan | dotnet
8 months
.NET 9 - new LINQ Index operator โฌ‡ This allows us to get the index of the current iteration. This is already possible using Select but the new operator is a little more explicit and has a nicer API IMHO. What do you think? Thanks to Steve Giesel on LinkedIn for the image ->
Tweet media one
7
33
177
@Dave_DotNet
Dave Callan | dotnet
11 months
Just discovered AzureDiagrams .com โฌ‡ Looks like an awesome tool. What are you using for your cloud architecture diagrams? #azure #dotnet
Tweet media one
10
32
180
@Dave_DotNet
Dave Callan | dotnet
9 months
.NET 9 LINQ Performance Improvements โฌ‡ I believe this is due to profiled (PGO) casts being enabled by default. This means the runtime will monitor code execution and then subsequently optimize particular casts if it sees they happen a lot. What do you think? #dotnet
Tweet media one
8
24
182
@Dave_DotNet
Dave Callan | dotnet
2 months
ASP .NET built-in IValidatableObject example I love FluentValidation, but the built-in IValidatableObject does the job for me most of the times when I'm building ASP .NET MVC apps. Note, the Validate method will fire on model binding in MVC but only if the model doesn't
Tweet media one
11
21
182
@Dave_DotNet
Dave Callan | dotnet
1 year
How the GARBAGE COLLECTOR works in .NET ๐Ÿ‘‡๐Ÿป ... Thanks to Steven Giesel on LinkedIn for the original post -> #dotnet #csharp
Tweet media one
0
44
175
@Dave_DotNet
Dave Callan | dotnet
5 months
dotnetbenchmarks .com launched โฒ๏ธ Its a listing site for BenchmarkDotnet benchmarks. Once you login with GH you can add a benchmark by importing a Gist or just pasting the code in directly. It's integrated with SharpLab so the lowered code and Jit ASM should be available
Tweet media one
11
40
179