Immutability is a quite old concept that is mostly related to the functional programming, however, it’s also (maybe not so widely) used in the object oriented programming. An immutable variable/object can not be mutated, which means that once it’s been initialized it will never change it’s original value/reference (unless it’s deallocated). This approach results in some great benefits such as out of the box thread safety, yet in the OOP world, it does seem to be quite often abused or even not used at al...
Sztuka programowania 2496 dni, 21 godzin, 34 minuty temu 68 źrodło rozwiń
Nie raz i nie dwa zdarzało mi się mieć potrzebę posiadania więcej niż jednego guzika na formie. Zawsze ale to zawsze miałem problem z tym jak to dobrze rozegrać. Aż wreszcie trafiłem na dobrą odpowiedź na SO.Model i Forma Załóżmy taki model danych, jakiś prosty viewmodel dla użytkownika.: Następnie aby go przesłać z powrotem do kontrolera zdefiniowałem taki model: Typ pola action jest także zdefiniowany. Teraz gdzieś na widoku tworzę formę, która umożliwi mi wpisanie ...
Programując w ASP .NET MVC często mamy potrzebę zmapować jeden obiekt na inny, może to być np. encja pobrana z bazy danych, którą trzeba pozbawić niektórych właściwości i przekazać do dalszych warstw naszej aplikacji, lub – w prostszy ujęciu – konwersja modelu na View Model, którym napełnimy widok naszej aplikacji.
Sztuka programowania 2492 dni, 12 godzin, 19 minut temu 220 źrodło rozwiń
Do obecności w sieci Bitcoina wystarczy dowolny klient implementujący jego protokół oraz połączenie Internetem. A jakby tak nauczyć się jego języka i pogaworzyć przy użyciu własnej aplikacji? Zobaczymy o czym gada Bitcoin :)
Architektura 2499 dni, 22 godziny, 15 minut temu 57 źrodło rozwiń
If you’re looking for a simple service for monitoring your MongoDB (things like opening a connection to the database or executing a query and processing the results), then you might find interesting a new type of the watcher added to the Sentry. The MongoDB watcher uses the C# MongoDB Driver under the hood but it’s been implemented in a way, that it’s possible to provide any driver that you’d like. In this post I’ll present how to use it and why it’s been implemented this way instead of another one.
Daj się poznać 2016 2499 dni, 22 godziny, 15 minut temu 30 źrodło rozwiń
Aplikacje .NETowe często składają się z wielu plików - jeden plik wykonywalny (.exe) i kilka zestawów w formie bibliotek DLL. Nie jest to złe rozwiązanie, jednak utrudnia trochę rozpowszechanianie programu, gdyż nie można po prostu skopiować jednego pliku. Ponieważ chiałbym mieć łatwo dostępnego Pathera, na przykład jako jeden z plików na GitHub Pages czy do pobrania z GitHuba ropocząłem poszukiwania narzędzi do łączenia wielu plików wykonywalnych .NET jeden.
Daj się poznać 2016 2501 dni, 12 godzin, 31 minut temu 70 źrodło rozwiń
Szukałem porad w sprawie trudnej czynności jaką jest nazywanie .NET DEVELOPERS POLAND – facebook Co prawda w innym temacie, ale warto przeczytać aby uświadomić sobie jaka to ciężka praca. Także człowiek szuka i myśli i próbuje.Próby W ramach swoich poszukiwań i eksperymentowania z tworzeniem najlepszego i najczystszego kodu, najlepiej nazwanego i cacy. Dotarłem do takiej sytuacji, gdzie chciałem posiadać osobne klasy (kontrolery, serwisy, repo, co ta...
Sztuka programowania 2495 dni, 13 godzin, 57 minut temu 199 źrodło rozwiń
Częstym problemem – szczególnie podczas tworzenia aplikacji typu Proof of Concept jest szybkie generowanie danych testowych. W tym artykule przedstawiam jak zrobić to szybko, łatwo i przyjemnie.
Daj się poznać 2016 2501 dni, 12 godzin, 31 minut temu 135 źrodło rozwiń
Opis architektury rozwiązania AppSensor.NET
Architektura 2502 dni, 22 godziny, 17 minut temu 103 źrodło rozwiń
W tym odcinku - drugi kanał vocodera w VST.NET
Daj się poznać 2016 2505 dni, 6 godzin, 51 minut temu 73 źrodło rozwiń
A few days ago I’ve gave it a shot and posted a link to my project on the reddit. Amongst some positive comments, there was this one: "I would never use a library that is not documented at all". Although it was the very first version of the Sentry, a typical preview & work in progress thingy (which I did forget to mention in my post), I’ve realized that it’s high time to provide some form of documentation, otherwise why would anyone use that library, even if it was making a miracles? I thought that...
Czasami pisząc kod stwierdzamy, że chcemy w jakiś sposób opisać nasze typy w taki sposób, aby można było się do tego odnieść w kodzie. Z pomocą przychodzą nam dwie funkcjonalności .NETu: Reflection i atrybuty. Czym są atrybuty? ...
Daj się poznać 2016 2505 dni, 6 godzin, 51 minut temu 191 źrodło rozwiń
Packing and publishing nuget from standard .NET project is very simple. Create or generate nuspec file and runnuget pack The appearance of the Core framework and project.json file caused the a little change. Due to historical reason, in .NET Core we have two command line interfaces with utilities for packages.DNU – DNX utility, used in project
Daj się poznać 2016 2505 dni, 21 godzin, 52 minuty temu 50 źrodło rozwiń
Configuration of Continues Integration system could be very easy with AppVeyor
Recently I’ve had this idea that came into my mind while working on the Sentry – let the users of my library (if there will be any) to configure not only the set of rules, connection strings, urls etc. but also the underlying providers that do all of the heavy lifting (e.g. the HttpClient responsible for communicating with the API). It means that as long as you’re not satisfied with the default solution, please feel free to provide your own engine that will for example talk to the database and perform a ...
Sztuka programowania 2505 dni, 21 godzin, 52 minuty temu 83 źrodło rozwiń
W świecie .NETowym bardzo wiele rozwiązań pochodzi z Microsoftu. Część z nich naprawdę dobra, część ma pewne wady. Na szczęście społeczność open-source przychodzi z pomocą. W tym poście mam zamiar opowiedzieć o dwóch narzędziach, które starają się poprawić to co w “oficjalnych” nie jest idealne - Paket oraz FAKE
Daj się poznać 2016 2505 dni, 6 godzin, 51 minut temu 77 źrodło rozwiń
This is third post in a series about MiSeCo – a project I am working on for the “Daj się poznać challenge” (in Polish). In the last post, I wrote about the structure of a MiSeCo project and how I am going to implement the base functionality. Today I would like to show you how I managed to create my first interface implementation dynamically in runtime. Just to remind you, I need them to be able to proxy the calls between microservices through some (to be defined) protocol – probably over HTTP co...
Daj się poznać 2016 2510 dni, 20 godzin, 6 minut temu 93 źrodło rozwiń
In the third post about XGain I would like to say something about the heart of server. TcpListener is a great class to build server. It has a normal and async methods, you can choose between Socket and TcpClient. Unfortunately writing this same logic for new project might be boring.
Architektura 2510 dni, 20 godzin, 6 minut temu 40 źrodło rozwiń
Dwa słowa o udziale w hackathonie DevMuster, a następnie jak można wykorzystać AJAX w widokach ASP.NET MVC z odpowiednią paczką NuGetową.
Behavior-driven development (BDD) is a process of developing the software that has evolved from the TDD (test-driven development). We can think of a BDD such as the feature driven approach to the TDD. The main advantage of the BDD over the TDD is the way the tests are being written, in a form of the story that can be understood both by the developers and the customers. In short, we can simply state that the BDD is the TDD done right – it makes use of the so called ubiquitous language which is the core pa...
Sztuka programowania 2511 dni, 9 godzin, 12 minut temu 64 źrodło rozwiń