dotnetomaniak.pl - Artykuły z tagiem C#

Jakiś czasem temu pisałem o tym, że nasze metody mogą zwracać rezultat lub zgłaszać wyjątek (tutaj). Zastanówmy się, jak mogłoby wyglądać nasze API, aby status rezultatu był mapowany na odpowiedni kod Http. Mamy dwie możliwości: wspólna metoda w klasie bazowej lub filtr.

Tagi: C#, Narzędzia, WebAPI
Źródło: www.admu.pl
Dziel się z innymi:
Jak obsłużyć zwracanie rezultatu w WebAPI – ADMU Blog

Narzędzia 1317 dni, 1 godzinę, 27 minut temu Admu 88 źrodło rozwiń

In this video, we're going look at struct devirtualization and how this feature works in the runtime today. We're going to look at some ways we can (ab)use this feature and what are the problems with the current implementation.

Źródło: youtu.be
Dziel się z innymi:
[EN] C# What JIT Generates? - Struct Devirtualization - YouTube

Sztuka programowania 1318 dni, 2 godziny, 3 minuty temu Badamczewski 25 źrodło rozwiń

Jakiś czas temu pisałem o testach w kontekście API (tutaj). W tym poście postaram się opisać jak napisać podobne testy, ale gdy nasza aplikacja komunikuje się poprzez kolejkę. Pokaże to z wykorzystaniem biblioteki MassTransit.

Źródło: www.admu.pl
Dziel się z innymi:
Testy kolejek z MassTransit – ADMU Blog

Narzędzia 1331 dni, 1 godzinę, 25 minut temu Admu 64 źrodło rozwiń

This video is the start of a brand-new video series about JIT compilation in C# called: "What the JIT". This time we're going to look at simple integer arithmetic like division and multiplication and how JIT is able to optimize that.

Tagi: C#, dotnet, performace
Źródło: youtu.be
Dziel się z innymi:
[EN] C# (Tutorial) What the JIT? - Integer Arithmetic - YouTube

Sztuka programowania 1332 dni, 1 godzinę, 29 minut temu Badamczewski 25 źrodło rozwiń

This video talks about the "Skip" method, and differences in implementation between dotnet frameworks. Also, we will try to implement a less flexible but faster version of the "Skip" method. Enjoy. 🙂

Źródło: youtu.be
Dziel się z innymi:
[EN] C# LINQ Performance Tips #5 - Skip & .NET Runtimes - YouTube

Sztuka programowania 1340 dni, 1 godzinę, 36 minut temu Badamczewski 30 źrodło rozwiń

This time we're looking at Branch Prediction and Branch Elimination and how to apply them to LINQ and to programming in general.

Źródło: youtu.be
Dziel się z innymi:
[EN] C# LINQ Performance Tips #4 - Branch Elimination - YouTube

Sztuka programowania 1344 dni, 1 godzinę, 24 minuty temu Badamczewski 51 źrodło rozwiń

We are already in the second half of 2020 and a lot of books related to .NET technology have been published. I decided to collect these positions in one place for you. I will mention here some of them that get the best reviews and seem worth reading in my opinion.

New releases books about .NET technology | bush_dev

Inne 1345 dni, 1 godzinę, 16 minut temu bush_dev 98 źrodło rozwiń

This video corrects a couple of mistakes that were made in my previous video called "C# LINQ Performance Tips #1". We're talking about structs vs classes in LINQ and why losing concrete type information is bad, there's also a bit of VSD but it's very vague and generic so the more specific video is needed, I just wanted to tell you that it exists :) and it's important. Enjoy.

Źródło: youtu.be
Dziel się z innymi:
[EN] C# LINQ Performance Tips #2 - YouTube

Sztuka programowania 1346 dni, 23 godziny, 32 minuty temu Badamczewski 34 źrodło rozwiń

This video will show you some of the performance and allocation problems that you might encounter when writing LINQ expressions we will also see that an expression you see is not necessarily, what you get. LINQ is not all bad and we will show you an example where LINQ absolutely rocks! This video mentions examples found in my previous video: https://youtu.be/ahnaIdQMoYw Enjoy.

Źródło: youtu.be
Dziel się z innymi:
[EN] C# LINQ Performance Tips #1 - YouTube

Sztuka programowania 1351 dni, 2 godziny, 7 minut temu Badamczewski 95 źrodło rozwiń

C# 9.0 jest już wspierany przez LINQPad. Aplikacja pozwala podejrzeć IL code oraz przetestować nowe funkcjonalności.

Tagi: .Net, C#, C# 9.0
Źródło: prosty.net
Dziel się z innymi:
C# 9.0 wspierany przez LINQPad – Prosty.NET

Sztuka programowania 1353 dni, 2 godziny, 4 minuty temu mjuskiewicz 100 źrodło rozwiń

This video will show you some of the performance and allocation problems that you might encounter when writing LINQ expressions and offer a couple of solutions on how to solve them. LINQ Links: ♦ https://github.com/NetFabric/LinqBenchmarks ♦ https://github.com/NetFabric/NetFabric.Hyperlinq

Źródło: youtu.be
Dziel się z innymi:
[EN] Performance bottlenecks in C# LINQ - YouTube

Sztuka programowania 1354 dni, 1 godzinę, 6 minut temu Badamczewski 56 źrodło rozwiń

A couple of tricks which simplify database access code while using Dapper library.

Tagi: C#, DAPPER, SQLServer
Dziel się z innymi:
Working efficiently with legacy database using Dapper · Cezary Piątek Blog

Bazy danych i XML 1360 dni, 22 godziny, 51 minut temu cezarypiatek 130 źrodło rozwiń

Creating music app using azure functions

Źródło: deaddesk.top
Dziel się z innymi:
Serverless for dummies - pragmatic encounter on azure - DeadDesk.top

Cloud 1378 dni, 1 godzinę, 49 minut temu undernotic 54 źrodło rozwiń

There’s a certain set of special method signatures in C# which have particular support on the language level. Methods with those signatures allow for using a special syntax which has several benefits. For example, we can use them to simplify our code or create DSL to express a solution to our domain-specific problem in a much cleaner way. I came across those methods in different places, so I decided to create a blog post to summarize all my discoveries on this subject.

Tagi: C#
Dziel się z innymi:
The Magical Methods in C# · Cezary Piątek Blog

Często w naszych aplikacjach mamy do czynienia z datami. Najczęściej używamy ich przy polach takich jak data utworzenia (np. CreatedAt) lub data modyfikacji (np. ModifiedAt), ale są też inne miejsca. Wtedy z reguły stosujemy DateTime.UtcNow. Niestety w testach ciężko jest potem coś z taką datą zrobić. Nie mamy żadnej możliwości ustawienia tej daty na jakąś inną, aby przetestować czy nasza aplikacja działa poprawnie. Sprawa się jeszcze bardziej komplikuje, gdy mamy logikę biznesową uzależnioną od takiej ...

Źródło: www.admu.pl
Dziel się z innymi:
Daty – jak sobie z nimi radzić – ADMU Blog

Narzędzia 1394 dni, 38 minut temu Admu 169 źrodło rozwiń

This video is an introduction to bit hacks; we're going to visualize bit hack expressions and learn how to construct and apply them. This video is a direct response to a previous video about bit hacks (https://youtu.be/OPFJUpdCq0I) that was too complicated to an introduction, so this video is here to fill this need. I also have an article about the same topic that goes into more detail about the examples presented here, plus it contains a more bit hacks. https://leveluppp.ghost.io/bit-hacks-in-c/ Enj...

Źródło: youtu.be
Dziel się z innymi:
Introduction to Bit Hacks - YouTube

Sztuka programowania 1396 dni, 1 godzinę, 37 minut temu Badamczewski 22 źrodło rozwiń

Today, I will introduce some changes in version 5.0 and present how to update the version in the project from version 3.1 to 5.0.

Źródło: bush-dev.com
Dziel się z innymi:
ASP.NET Core 5.0 - what changes?

Web 1403 dni, 1 godzinę, 14 minut temu bush_dev 131 źrodło rozwiń

How to keep two different types in synchronization using roslyn analyzers.

Tagi: C#, dotnet, roslyn
Dziel się z innymi:
[EN] Twin types - properties synchronization without inheritance · Cezary Piątek Blog

Narzędzia 1410 dni, 2 godziny, 26 minut temu cezarypiatek 51 źrodło rozwiń

CQRS is a simple pattern that strictly segregates the responsibility of handling command input into an autonomous system from the responsibility of handling side-effect-free query/read access on the same system. If you are familiar with Domain-Driven Design, you’ve most likely heard about, Command-Query Responsibility Segregation (CQRS). Though the CQRS pattern is well-known, there are still a lot of misconceptions around this pattern, especially when it comes to applying it in real-world software proje...

CQRS - Code with Shadman

Sztuka programowania 1448 dni, 1 godzinę, 29 minut temu kudchikarsk 96 źrodło rozwiń

W języku c# nie tylko możemy pisać obiektowo ale również funkcyjnie. W tym artykule poznamy podstawowe zagadnienia funkcyjne w c#, dowiemy się jak możemy łączyć ze sobą funkcje (i po co to robić) oraz jak pracować efektywnie z kolekcjami. Czas poznać inne sposoby rozwiązywania problemów.

Źródło: programistycy.pl
Dziel się z innymi:
Wstęp do programowania funkcyjnego w C#

Sztuka programowania 1469 dni, 1 godzinę, 13 minut temu programistyk 116 źrodło rozwiń

1 2 3 4 5 6 7... 72 73

Najaktywniejsi w tym miesiącu