dotnetomaniak.pl - Artykuły z tagiem csharp

Czasami async/await w lambda nie jest potrzebne

Tagi: csharp
Źródło: gist.github.com
Dziel się z innymi:
Czasami async/await w lambda nie jest potrzebne

Sztuka programowania 2139 dni, 12 godzin, 6 minut temu asciiBlade 130 źrodło rozwiń

W artykule chciałem pokazać sposób na testowanie query GraphQL'owych za pomocą biblioteki FsCheck co pozwoli na wyłapanie błędów, które byłyby trudne do znalezienia przy manualnym testowaniu, bądź przy testach jednostkowych. Zapraszam do lektury :)

Źródło: www.mnie.me
Dziel się z innymi:
Testing GraphQL queries with FsCheck library

Sztuka programowania 2171 dni, 11 godzin, 15 minut temu mnie 45 źrodło rozwiń

O mnie Posted on Mon 11 February 2019 in .NET With many great features C# 7 comes with new and shiny pattern matching. I know that this feature is less usable then in other languages, but it add new possibilities to coding. In this article I want to share with you my experiments with monads.Optional I believe that some of you know that null exception is big pain in developer life. I hear that even null creator say that this was a "billion-dollar mistake" to invent null. In other hand some l...

Programming warfare – Functional flavor in C# 7 with pattern matching

Sztuka programowania 2261 dni, 16 godzin, 18 minut temu SzymonW 165 źrodło rozwiń

Implementacja singletona w C# może być trudniejsza niż się wydaje...

Dziel się z innymi:
Don't ask me about Singletons

Sztuka programowania 2390 dni, 18 godzin, 59 minut temu asciiBlade 291 źrodło rozwiń

Żeby sprawdzić poprawność adresu email, wcale nie trzeba męczyć się ze skomplikowanymi wyrażeniami regularnymi. W C# z pomocą przychodzi klasa MailAddress. Oczywiście jest to rozwiązanie wysokopoziomowe i wolne (rzuca wyjątki). Zapewnia jednak czytelność kodu.

Tagi: csharp, walidacja
Źródło: blog.d9k.info
Dziel się z innymi:
C# – walidacja maila | Mój skrawek Sieci

Inne 2447 dni, 22 godziny, 39 minut temu de9ka 244 źrodło rozwiń

I often work on applications whose sole task is to execute a script at certain time or day. You may approach it in several ways, eg.: Task Scheduler (Windows), SQL Job (if it is a SQL task) or CRON in Linux. You may also write application, which would run in background and execute a script at certain time. The only question is – do you really want do it? In this post, I would like to introduce other solution to tasks like this. ...

Scheduled jobs made easy - Topshelf and Quartz.NET | mpustelak.com

I’ve eventually decided to start using the *NIX system for the software development. Being a Windows user and the .NET developer for many years now, it might seem like a radical change, but let me tell you this – it was a great decision and here is the explanation.

Dziel się z innymi:
.NET on Linux – bye, Windows 10. | Piotr Gankiewicz

Narzędzia 2742 dni, 8 godzin, 9 minut temu spetz 335 źrodło rozwiń

In this post I will present the most popular Castle Windsor features encountered in typical enterprise applications.

Dziel się z innymi:
[EN] Castle Windsor most popular features

Inne 2774 dni, 19 godzin, 44 minuty temu asciiBlade 124 źrodło rozwiń

Last time I wrote a post about the commands. Events are quite similar to the commands – the main difference between these 2 patterns is that the events are related to the things that have actually happened to our entity e.g. by invoking the command. They’re also a core part of the DDD (Domain Driven Desing) and can be easily implemented within our software solution.

Handling domain events | Piotr Gankiewicz

Sztuka programowania 2816 dni, 11 godzin, 44 minuty temu spetz 166 źrodło rozwiń

How null's are handled in switch statement in C#, Java and JavaScript

Dziel się z innymi:
[EN] How null's are handled in switch statement in C#, Java and JavaScript

Sztuka programowania 2838 dni, 16 godzin, 55 minut temu asciiBlade 146 źrodło rozwiń

[ENG] Składnia inicjalizatorów obiektów oraz kolekcji w C# (wraz z nową składnią inicjalizacji słowników z C# 6). Tekst raczej dla początkujących.

Tagi: csharp
Dziel się z innymi:
[En] Object and collection initializers in C#

In this post I will try to introduce the concept of validation using the Chain of Responsibility pattern (CoR), which I use successfull for years

[EN] Chain of Responsibility – an elegant way to handle complex validation

Sztuka programowania 2891 dni, 18 godzin, 19 minut temu pluksza 229 źrodło rozwiń

Zawód programisty wiąże się z nieustannym wybieraniem pomiędzy złym, a gorszym. Nie inaczej jest ze słowem kluczowym var.

Tagi: csharp, var
Źródło: keraxel.net
Dziel się z innymi:
Dylematy programisty: var

Sztuka programowania 2935 dni, 18 godzin, 33 minuty temu Keraxel 403 źrodło rozwiń

CQS stands for the command query separation. There’s a chance that you may have not heard about it, but on the other hand the CQRS might ring a bell. Even though these 2 patterns have very much in common, there is a significant difference (definitely a bigger one than the additional “R” character within the CQRS acronym) in how do they apply to the architecture of our system. In this post I’ll focus on the CQS – the older brother of the CQRS – that will help you understand how to design the software that...

Dziel się z innymi:
[EN] CQS – an easy, yet powerful pattern | Piotr Gankiewicz

Sztuka programowania 2961 dni, 13 godzin, 47 minut temu spetz 175 źrodło rozwiń

In today’s post, I’ll describe what kind of interfaces have been defined in the Sentry project, and how you can take advantage of this knowledge, e.g. in order to create the custom metrics. I’ve tried to keep these interfaces as simple as possible, yet some of them require an explanation, mostly due to the fact, that even though the library itself is rather simple to use (I want to believe that it’s also what you think), it does not mean that the main methods when being executed, will return for example,...

Dziel się z innymi:
[EN] Sentry – how to make use of the interfaces | Piotr Gankiewicz

Daj się poznać 2016 2963 dni, 17 godzin, 2 minuty temu spetz 86 źrodło rozwiń

Opublikowano W poniedziałek pisałem, że nie testowałem scriptcs-sublime. To się już zmieniło. Zainstalowałem i działa. Co więcej zainstalowałem drugi plugin build-with-input a to wszystko po to aby móc do skryptu przesłać coś za pomocą klawiatury bezpośrednio z poziomu samego sublime text-a.Instalacja: w konsoli gita teleportuję się do C:\Users[uzytkownik]\AppData\Roaming\Sublime Text 2\Packages i wpisujemy magiczne znaki runiczne: git clone https://github.com/scriptcs/scriptcs-sublime.git oraz gi...

Źródło: www.benedykt.net
Dziel się z innymi:
ScriptCS i szybki prototyp z WebAPI | arek online

Narzędzia 3918 dni, 5 godzin, 42 minuty temu arek 145 źrodło rozwiń

1 2 3 4

Najaktywniejsi w tym miesiącu