dotnetomaniak.pl - Artykuły z tagiem csharp

Jak zbytna ufność temu, co wygeneruje resharper czy visual studio zmarnowała pewnej blondynce 8h pracy (a łącznie firma straciła na tym błędzie 10-12 godzin). A wystarczyło czytać.

Źródło: piatkosia.k4be.pl
Dziel się z innymi:
„Czytaj komunikaty” – czyli dlaczego warto patrzeć automatom IDE na ręce. – Zagubiona wśród własnych myśli – Piatkosia's blog

Narzędzia 1827 dni, 12 minut temu piatkosia 147 źrodło rozwiń

Krótki opis jak wyglądają typy anonimowe w rzeczywistości.

Tagi: csharp
Źródło: github.com
Dziel się z innymi:
[EN] Anonymous types under cover

Sztuka programowania 1872 dni, 1 godzinę, 2 minuty temu asciiBlade 80 źrodło rozwiń

Pisząc metody powinniśmy wyodrębniać niskopoziomowe operacje do osobnych metod. Krótka myśl po pewnym code review...

Tagi: csharp
Dziel się z innymi:
Reduce cognitive load for readers of your code

C# 8.0 brings us another nice feature called slicing. In order to make it possible, two new concepts are introduced: Indexes and Ranges. Let’s see how this tiny feature is supposed to make our life easier 🙂

Tagi: .Net, C#, C# 8.0, csharp
Dziel się z innymi:
C# 8: slicing with Indexes and Ranges - CodeJourney.net

Sztuka programowania 1896 dni, 23 godziny, 28 minut temu dsibinski 108 źrodło rozwiń

Używając FluentAssertion musimy zwracać uwagę w którym miejscu użyjemy Should(). W zależności od położenia Should() błędy zwracane z asercji mogą być lepszej lub gorszej jakości.

Tagi: csharp, dotnet
Dziel się z innymi:
FluentAssertions and code formatting

Sztuka programowania 1899 dni, 23 godziny, 14 minut temu asciiBlade 124 źrodło rozwiń

If you're interested in C# 8.0 new features, come and read about nullable reference types :) We'll continue exploring next interesting features of C#8 in the weeks to come.

Tagi: C#, C# 8.0, csharp, dotnet
Dziel się z innymi:
C# 8: Nullable Reference Types - CodeJourney.net

Sztuka programowania 1903 dni, 22 godziny, 57 minut temu dsibinski 107 źrodło rozwiń

I liked .NET technology from its inception. In fact I left the dark star of overxmlized J2EE development to join forces of rebellion around 2004. Over the years my team here at Altkom Software & Consulting built and maintained more and more complex business solutions for insurance and banking. While Java was in stagnation .NET platform developed very quickly. We wanted to find out possible options for dealing with typical microsevice related tasks like service discovery, service communication synchro...

Źródło: altkomsoftware.pl
Dziel się z innymi:
Building Microservices On .NET Core - Part 1 The Plan - Software House

Architektura 1926 dni, 23 godziny, 25 minut temu witek1902 299 źrodło rozwiń

Brak porannej kawy to proszenie się o błędy :) Tutaj opisuje jeden taki błąd który z braku kawy wynikał i co zrobiłem żeby w przyszłości się nie powtórzył. TLDR: IReadOnlyList

Tagi: csharp
Dziel się z innymi:
ReadOnly does not mean Immutable

Sztuka programowania 1934 dni, 23 godziny, 38 minut temu asciiBlade 124 źrodło rozwiń

Ten post to mieszkanka różnych przemyśleń na temat użycia Maybe (Option / Optional) w kodzie produkcyjnym i ogólnie programowania funkcyjnego w C#.

Random thoughts on Maybe

Sztuka programowania 1938 dni, 23 godziny, 25 minut temu asciiBlade 110 źrodło rozwiń

Grypa skłania do blogowania ;) O tym jak wyglądają domyślne komunikaty błędów z NSubstitute i jak by je tu poprawić...

Dziel się z innymi:
[EN] NSubstitute and the search for perfect error messages

Inne 1955 dni, 22 godziny, 11 minut temu asciiBlade 48 źrodło rozwiń

O lokalności ConfigureAwait

Źródło: gist.github.com
Dziel się z innymi:
O lokalności ConfigureAwait

Sztuka programowania 1959 dni, 23 godziny, 30 minut temu asciiBlade 203 źrodło rozwiń

Krótki post przytacza 3 wady dziedziczenia przy projektowaniu komponentów.

Dziel się z innymi:
[EN] Inheritance? Just say no!

Architektura 1959 dni, 23 godziny, 30 minut temu asciiBlade 151 źrodło rozwiń

O tym że using toleruje nulle i że czasami można to wykorzystać...

Tagi: csharp
Źródło: gist.github.com
Dziel się z innymi:
C#, null and using statement

Sztuka programowania 1973 dni, 23 godziny, 10 minut temu asciiBlade 209 źrodło rozwiń

Azure Functions 2.0 – real world use case for serverless architecture From technical point: C# and .NET Core, Azure Functions 2.0, CosmosDB, Azure Queue, BLOB, Tables, integration with JS Report, Twilio, SendGrid, monitoring with Application Insight. From business point: We had an idea to implement a billing in serverless architecture for a customer who sells its services in subscription based model. Customer sends a list of its employees who can use offered services. Based on contract prices for eac...

Źródło: asc.altkom.pl
Dziel się z innymi:
Azure Functions 2.0 - real world use case for serverless architecture

Cloud 1976 dni, 23 godziny, 22 minuty temu witek1902 69 źrodło rozwiń

The next major version of C# is C# 8.0. It’s been in the works for quite some time, even as we built and shipped the minor releases C# 7.1, 7.2 and 7.3, and I’m quite excited about the new capabilities it will bring. The current plan is that C# 8.0 will ship at the same time as .NET Core 3.0. However, the features will start to ...

Tagi: csharp
Dziel się z innymi:
[EN] Building C# 8.0 | .NET Blog

Inne 1987 dni, 23 godziny, 29 minut temu Piotr Stapp 164 źrodło rozwiń

Dzisiejszy post będzie trochę inny niż większość. Temat, który poruszę nie jest może jakoś mocno praktyczny i nie wykorzystasz go każdego dnia. Ale z drugiej strony może posłużyć jako ciekawy pomysł na pytanie rekrutacyjne, dlatego warto się nim zainteresować 🙂 Na początku zastanówmy się, czy klasa faktycznie może być prywatna. Chwila zastanowienia i prawdopodobnie myślisz sobie, że chyba nie. Po co w ogóle coś takiego byłoby potrzebne? Odpalasz Visual Stu...

Źródło: plawgo.pl
Dziel się z innymi:
Prywatna klasa? - Blog Daniela Plawgo

Inne 2000 dni, 22 godziny, 50 minut temu danielplawgo 279 źrodło rozwiń

Za każdym razem gdy definiujesz funkcję lokalną zadaj sobie pytanie czy nie lepiej dodać metodę lub właściwość do obiektu

Tagi: csharp
Dziel się z innymi:
[EN] Abusing local functions to hide design problems

Jak się obejść bez Moq i NSubstitute - proste użyj Fake'ów

You can live without mocking frameworks

About two years ago I blogged about an upcoming experimental IO API in the .NET world - at the time provisionally called "Channels"; at the end of May 2018, this finally shipped - under the name System.IO.Pipelines. I am hugely interested in the API, and over the last few weeks I'm been consumed with converting StackExchange.Redis to use "pipelines", as part of our 2.0 library update. My hope in this series, then, is to discuss:what "pipelines" arehow to use them in terms of codewhen you might want to u...

Tagi: csharp
Dziel się z innymi:
[EN] Code, code and more code.: Pipe Dreams, part 1

Posted on : By Grzegorz KotfisBlog Code  A few days ago I resolved simple kata on Codewars – „Disemvowel Trolls” This particular kata is of type ‚remove vowels from the string’ – easy peasy. One of the many approaches to this kind of problem is:RegexString replacingLoop with checkLambda expression (in this case Linq) I’ve decided to give a shot Linq approach this time and what first came to mind? Use Except! Treat this string as a collection of chars and remove from it t...

Tagi: csharp, Linq
Źródło: devsession.pl
Dziel się z innymi:
C# Linq Except trap! - Devsession | Grzegorz Kotfis | Od programisty dla programistów

Inne 2123 dni, 10 minut temu Grzegorz Kotfis 107 źrodło rozwiń

1 2 3 4

Najaktywniejsi w tym miesiącu