Generate viral LinkedIn posts in your style for free.

Generate LinkedIn posts
Pavle Davitković

Pavle Davitković

These are the best posts from Pavle Davitković.

2 viral posts with 2,282 likes, 154 comments, and 211 shares.
1 image posts, 1 carousel posts, 0 video posts, 0 text posts.

👉 Go deeper on Pavle Davitković's LinkedIn with the ContentIn Chrome extension 👈

Best Posts by Pavle Davitković on LinkedIn

If you are a fan of Minimal API in .NET then read on 👇

Minimal API made API creation easier than ever.

From .NET 6 version, APIs can be created in just a few lines of code that work the same if created in a controller-based way.

But there was no possibility to group similar endpoints like in a controller-based approach with [Route] attribute. and the only way was to add prefixes for every endpoint.

Then in .NET 7, endpoint grouping came allowing endpoints to be grouped with a prefix like with [Route], thus reducing repetitive code and making it easier to customize entire groups of them.

To create a group, add a variable that will hold the result of the MapGroup method, which takes a prefix as a parameter. Newly created endpoints that are append to a variable will contain a prefix along with the route value from an endpoint if it exists.

#csharp #dotnet
#restapi #softwaredevelopment
Post image by Pavle Davitković
Are classes and records the same?

Let's find out.

Classes have been part of C# since its very beginning.

But C# 9 changed that.

Records were introduced in that version, providing a new way of encapsulating data.

To be precise:

They are value-based in terms of equality, while classes use memory-based equality.

But they have a few differences, of course.

These include:

- Definition
- Comparing
- Immutability
- Modification
- Deconstruction

I'm not going to lie to you.

They are my favorite recent feature, and I use them daily.

However, I don't see them as a complete class alternative.

But I'm curious about what you think about it? ✍
Post image by Pavle Davitković

Related Influencers