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

@Dave_DotNet

Followers
13,032
Following
218
Media
869
Statuses
6,165

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.
Explore trending content on Musk Viewer
@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
29 days
Entity Framework is not slow 🤣 #dotnet
Tweet media one
58
89
759
@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
736
@Dave_DotNet
Dave Callan | dotnet
5 months
Tweet media one
3
68
635
@Dave_DotNet
Dave Callan | dotnet
3 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
276
2K
88
90
610
@Dave_DotNet
Dave Callan | dotnet
11 months
Entity Framework is not slow 🤣 #dotnet #devlife
Tweet media one
27
68
569
@Dave_DotNet
Dave Callan | dotnet
1 month
.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
104
545
@Dave_DotNet
Dave Callan | dotnet
3 months
Tweet media one
14
57
531
@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
Tweet media one
11
98
493
@Dave_DotNet
Dave Callan | dotnet
3 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
479
@Dave_DotNet
Dave Callan | dotnet
1 month
Amend default debugging view for a class ⬇ I learnt something new recently, we can change the standard debugging view for a C# class by using the DebuggerDisplay attribute. #dotnet
Tweet media one
15
51
462
@Dave_DotNet
Dave Callan | dotnet
2 years
LINQ performance improvements in .NET 7💪🏻 #dotnet #dotnet7 #csharp
Tweet media one
12
87
443
@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
409
@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
402
@Dave_DotNet
Dave Callan | dotnet
3 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
397
@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
96
383
@Dave_DotNet
Dave Callan | dotnet
9 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
376
@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
365
@Dave_DotNet
Dave Callan | dotnet
3 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
4 months
#dotnet website down This is what happens when @davidfowl goes on holidays 🤣
Tweet media one
22
20
341
@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
334
@Dave_DotNet
Dave Callan | dotnet
7 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
18
67
324
@Dave_DotNet
Dave Callan | dotnet
5 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
315
@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
307
@Dave_DotNet
Dave Callan | dotnet
7 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
309
@Dave_DotNet
Dave Callan | dotnet
1 year
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
282
@Dave_DotNet
Dave Callan | dotnet
2 months
.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
15
35
298
@Dave_DotNet
Dave Callan | dotnet
2 months
.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
63
292
@Dave_DotNet
Dave Callan | dotnet
9 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
1 month
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
289
@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
283
@Dave_DotNet
Dave Callan | dotnet
9 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
281
@Dave_DotNet
Dave Callan | dotnet
7 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
6 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
281
@Dave_DotNet
Dave Callan | dotnet
1 year
Awesome playlist for #dotnet devs who are new to #azure ⬇ 𝗕𝗼𝗼𝗸𝗺𝗮𝗿𝗸 𝗶𝘁!
Tweet media one
5
70
278
@Dave_DotNet
Dave Callan | dotnet
11 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
36
273
@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
34
273
@Dave_DotNet
Dave Callan | dotnet
7 months
Find slow queries in Entity Framework 💡 #dotnet
Tweet media one
9
37
272
@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
264
@Dave_DotNet
Dave Callan | dotnet
2 months
How to enable inline hints in Visual Studio 💡 #dotnet
Tweet media one
7
35
269
@Dave_DotNet
Dave Callan | dotnet
7 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
269
@Dave_DotNet
Dave Callan | dotnet
2 months
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
269
@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
264
@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
258
@Dave_DotNet
Dave Callan | dotnet
3 months
#dotnet devs, query or method syntax for LINQ? Why?
Tweet media one
160
17
253
@Dave_DotNet
Dave Callan | dotnet
7 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
247
@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
248
@Dave_DotNet
Dave Callan | dotnet
5 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
246
@Dave_DotNet
Dave Callan | dotnet
8 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
243
@Dave_DotNet
Dave Callan | dotnet
10 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
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
1 year
𝗘𝘃𝗼𝗹𝘂𝘁𝗶𝗼𝗻 𝗼𝗳 𝗖# ⬇ 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
239
@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
237
@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
33
235
@Dave_DotNet
Dave Callan | dotnet
8 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
12 days
Visual Studio 17.12 Preview 3 will display method return values inline 💖 Have always been a fan of intermediary variables as a way to reduce cognitive load for devs for method return values but I think this changes the game 👋🏻 #dotnet
Tweet media one
@mkristensen
Mads Kristensen
12 days
Visual Studio 17.12 Preview 3 is now available to download. It's packed with great new features including displaying method return values and the ability to copy files between instances of VS.
7
20
139
14
19
232
@Dave_DotNet
Dave Callan | dotnet
3 months
Tweet media one
10
19
228
@Dave_DotNet
Dave Callan | dotnet
12 days
.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 for the image -> #dotnet
Tweet media one
8
31
230
@Dave_DotNet
Dave Callan | dotnet
3 months
#dotnet life 🤣
Tweet media one
14
36
227
@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
7 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
18 days
ADO .NET v Entity Framework v Dapper TechEmpower Fortunes benchmarks 2023 ⬇️ The gap between EF and Dapper was about 55% a few rounds ago. #dotnet
Tweet media one
13
41
228
@Dave_DotNet
Dave Callan | dotnet
11 months
Full text searching in Entity Framework ⬇ #dotnet #efcore
Tweet media one
8
22
213
@Dave_DotNet
Dave Callan | dotnet
6 months
Full text searching in Entity Framework ⬇ #dotnet
Tweet media one
7
23
217
@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
7 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
6 months
Entity Framework 8 v Dapper benchmark #dotnet
Tweet media one
8
25
211
@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
2 months
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
6 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
205
@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
204
@Dave_DotNet
Dave Callan | dotnet
8 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
202
@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
17
117
@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
203
@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
197
@Dave_DotNet
Dave Callan | dotnet
4 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
200
@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
196
@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
194
@Dave_DotNet
Dave Callan | dotnet
2 months
.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
25
192
@Dave_DotNet
Dave Callan | dotnet
3 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
188
@Dave_DotNet
Dave Callan | dotnet
9 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
187
@Dave_DotNet
Dave Callan | dotnet
3 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
187
@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
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
179
@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
10 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
9 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
31
17
180
@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
29
12
180
@Dave_DotNet
Dave Callan | dotnet
9 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