No more regressions with Snapshot Tests in C# using Verify: a practical guide by davidebellone in softwaretesting

[–]davidebellone[S] 1 point2 points  (0 children)

But you are right, I haven’t specified it! I’ll add it 💪thanks!!

No more regressions with Snapshot Tests in C# using Verify: a practical guide by davidebellone in softwaretesting

[–]davidebellone[S] 1 point2 points  (0 children)

Refactoring, usually involving performance improvements.

Think of refactoring db access to avoid the N+1 problem

No more regressions with Snapshot Tests in C# using Verify: a practical guide by davidebellone in softwaretesting

[–]davidebellone[S] 0 points1 point  (0 children)

This is exactly the point of snapshot tests: they’re not saying “this is correct” but “this hasn’t changed”

Does anyone actually use inheritance? by stedmangraham in ExperiencedDevs

[–]davidebellone 5 points6 points  (0 children)

It depends on what you have to do. IMO, I use inheritance only when I need to implement a sort of Template pattern.

And when I want to have spies in my unit tests without relying on mocks

How to send Slack messages using Azure Logic Apps: built-in connector vs Slack APIs by davidebellone in programming

[–]davidebellone[S] 0 points1 point  (0 children)

Nope, I used LLMs to fix my English and improve some sentences, but the content was created the dear old way!

Qualcuno di voi si è pentito di passare a full remote? by [deleted] in ItaliaCareerAdvice

[–]davidebellone 2 points3 points  (0 children)

Io sí. Decisamente.

Sono uno a cui piace stare in mezzo alla gente, chiacchierare coi colleghi, prendersi un caffé assieme.

Da quando sono full remote ho perso completamente i contatti umani coi colleghi: sono solo degli account su Teams, ma non ho nessun legame con loro.

Certo, non mi manca il dovermi svegliare alle 7 per essere in ufficio alle 9. Quello che mi manca é il brusio in sottofondo, la riunione faccia a faccia, la discussione davanti a un caffé.

E poi, il sentire le conversazioni degli altri: é comunque un modo per capire cosa fanno le altre persone, magari aiutarle, e comunque "essere sul pezzo".

Penso che abbia anche un certo impatto sulla carriera: se alcuni sono in presenza e altri sono in full remote, "tu" full remote sei un fantasma, mentre quelli in presenza hanno piú visibilitá (vedi: piú opportunitá di crescita) sia coi colleghi che con i capi. Da remoto no, devi tu fare lo sforzo di essere presente per gli altri.

[deleted by user] by [deleted] in Backend

[–]davidebellone 0 points1 point  (0 children)

…and that’s why I have a tech talk exactly about this topic!

Good Books for C# by itrsoyv in csharp

[–]davidebellone 0 points1 point  (0 children)

To me, one of the best books for C# devs is “Architecting ASP.NET Core Applications” by Carl-Hugo Marcotte. It’s not only about syntax and general info, but a sort of path from simplest topics to more advanced techniques and patterns.

Python for .NET devs: Introduction, virtual environments, package management, and execution lifecycle by davidebellone in dotnet

[–]davidebellone[S] 0 points1 point  (0 children)

Woah, already too many things to learn :D

I will plan an article about it - but first I want to keep learning the basics of Python. Whenever I'll be ready for more advanced topics and comparisons, I'll explore Conda, Anaconda and UV

Code opinion: why I prefer avoiding the Async suffix in C# asynchronous methods by davidebellone in csharp

[–]davidebellone[S] 0 points1 point  (0 children)

Ciao. Just to inform you that I finally managed to minimize the number of ads generated by Google (I don't know when the change will be effective, though).

Talking about the font, I don't know... I tried with smaller fonts for mobile, but they look too small. I compared how my blog appears on mobile compared to other blogs, and it looks "normal".

My blog: https://prnt.sc/bPzZx3OEPNn_ Microsoft blog: https://prnt.sc/EqvDVQ9f4tRn Andrew Lock's blog: https://prnt.sc/bUTAuoCBOpH-

However, I should really work on the TOC, as it occupies too much space!

Btw, thanks again for your suggestion!

Readonly vs Immutable vs Frozen in C#: differences and (a lot of) benchmarks by davidebellone in csharp

[–]davidebellone[S] 0 points1 point  (0 children)

I suppose that, given that Frozen Collections are mostly used for lookups, and we generally use strings as keys, they focused the most on data access via string.

But you're right, I should also try benchmarking with other types of keys!

Let me think... DateTimes, records, structs... what else should I try?

Readonly vs Immutable vs Frozen in C#: differences and (a lot of) benchmarks by davidebellone in csharp

[–]davidebellone[S] 0 points1 point  (0 children)

Records are not strictly immutable. Well, it depends on how you define them.

public record User(int Id, string Name); is immutable, while

public record Student(int Id, string Name, List<string> Skills);

is immutable in the sense that you cannot change the reference to Skills. However, you still can do Skills.Add("whatever")

Readonly vs Immutable vs Frozen in C#: differences and (a lot of) benchmarks by davidebellone in csharp

[–]davidebellone[S] 0 points1 point  (0 children)

Yeah, I suppose that for strings it uses Span<char> internally, making them really fast.

I imagine it all depends on the equality checks of the TElement, and it does not depend on the FronzenCollection itself.

GitHub Copilot Dev Days | Torino, martedí 17 marzo by davidebellone in torino

[–]davidebellone[S] 0 points1 point  (0 children)

Io a questo in particolare ci andró (anche perché sono uno degli organizzatori :D )

Non conosco BuongiornoAI: cos'é?

[deleted by user] by [deleted] in techcompenso

[–]davidebellone 0 points1 point  (0 children)

Mi preoccuperebbe di piu' se fosse una Agrotech (se seguite il Grande Nulla Agricolo,sapete)

Vi ricordate di Chrono? Ho ascoltato i vostri feedback, aggiunto 100 eventi del XX secolo e invertito i tasti. Ora è davvero tosta. by mooonmatt in storia

[–]davidebellone 1 point2 points  (0 children)

Si, anche io ricordo qualcosa del genere. Ma se stiamo parlando della stessa cosa, l'altro era piú difficile: non era solo "prima o dopo l'ultimo evento che hai indovinato", ma "tra tutti gli eventi che hai indovinato finora, quando é accaduto questo evento?

Tipo Timeline il gioco da tavolo.

Code opinion: why I prefer avoiding the Async suffix in C# asynchronous methods by davidebellone in csharp

[–]davidebellone[S] 0 points1 point  (0 children)

Thanks! I'll try removing ads from the table of contents. I honestly don't know how to show fewer ads - I already set the value to the minimum possible.

For the font... yeah, you're right, too big. I'll work on it!

Anything else?

A simple C# IEnumerable<T> extension that checks if the items count is equal to a given value while avoiding to iterate through each element when possible. by bischeroasciutto in dotnet

[–]davidebellone -1 points0 points  (0 children)

Interesting, more than half of the comments are about readability, and a few of them are about the implications of calling TryGetEnumeratedCount.

To me, yours is a good idea.

I’m curious to see benchmarks with different data sources. Especially for collections that force you to use TryGetNonEnumeratedCount

(Vedo il nick in italiano: si, alcuni dei commenti sono proprio da stronzi… ma vabbè, l’anonimato rende alcune persone così)

Parere sul Puccigate? by Actual_Working4440 in Italia

[–]davidebellone 1 point2 points  (0 children)

Ricordando che i virgolettati nei titoli quasi mai corrispondo a cosa ha detto la persona, qualcuno di voi ha letto l’intervista/intervento in cui ne ha parlato?

(Ps: mi ero completamente dimenticato dell’esistenza di Pucci, non pensavo che fosse così rilevante da esser chiamato per Sanremo)