ConnectionManagement is a property found in app.config that allows to put a limit on number of connections to a specific host at tcp level. This affects http calls, every one of these need estabilished tcp connection “underneath”, client needs to reuse or open a new port to listen for the response fr...
In the last post I wrote about one of the .Net Core 2.0 features – Razor Pages. Today, we will crawl a little bit in this mud… I mean, we will write some code. I chose a simple BMI calculator as a demo project (you can download the code from github). You know, 2 inputs and the code-behind that will tell us if we are very fat or just slightly fat or we are OK and it’s time for another cookie. Because, there is always a time for a cookie, no matter what! A warm up Last time we crea...
Różnice między klasą a strukturą w C#, szczególnie na początku przygody z programowaniem, mogą wydawać się niewielkie i nieistotne, jednak pytania o nie często pojawiają się na rozmowach kwalifikacyjnych dla junior developerów, a ich znajomość jest dodatkowo kluczowa ze względów wydajnościowych, Jeżeli programowałeś w C++ pamiętasz zapewne, że różnica między klasą a strukturą polega tam jedynie na tym, że class ma pola domyślnie prywatne, a struct publiczne, natomiast w pamięci reprezentowane są w taki ...
Sztuka programowania 2112 dni, 14 godzin, 19 minut temu 230 źrodło rozwiń
Welcome to the twenty-third episode of my course “Becoming a software developer” in which we will focus on the vast topic of DevOps which is all about building, testing and deploying the application. And we will use Docker to help with the overall process.
Written by Dawid Sibińskion I’ve recently been presented a concept of initializing the database (creating or re-creating it) with Unit Test method. Initially I thought it’s a non-sense, but after a while of taking a deeper look… The method of initializing the database I mentioned was used with Entity Framework Core in ASP.NET Core project, where Code First database creation approach was used. As you know, this approach implies that we create models (classes) representing our database entities i...
Let’s say you are one man-army, single developer who develops next-great-thing-on-desktop. You have only one client for whom you send each day latest build to test.
O narzędziu CodeFormatter, służącym do formatowania projektów dotnetowych, działający z linii poleceń zarówno pod Windowsem jak i pod Linuxem pod Mono. Do tego napisałem skrypt instalujący go na Linuxie.
"The code that a computer can understand can be written by anyone. A good programmer writes code that people can understand."
Sztuka programowania 2171 dni, 2 godziny, 17 minut temu 168 źrodło rozwiń
W mojej pracy potrzebowałem narzędzia, które w łatwy sposób pozwoli na konfigurację kolejnych kroków budowania projektów i sprawdzania testów jednostkowych. Normalnie zadanie to zlecałem w 100% Bamboo, któremu przez pewien czas miałem przyjemność administrować pod kątem konfiguracji procesów CI. Problem pojawiał się w momencie, gdy cała konfiguracja leżała po stronie tego ...
Co możemy zrobić z Azure Functions za pomocą VS - jakie mamy dostępne opcje, co i jak możemy deployować oraż jak możemy to wszystko testować/debuggować.
It’s pretty funny to me when you think that you know some programming language quite well and suddenly you find out some feature, you’ve never heard before. I mean at all. That’s exactly what happened to me yesterday. Let’s see what’s that. Generics are very useful in programming since we can avoid writing similar code multiple times. But when we start to complicate them too much, it quickly reduces the legibility of the code. Of course, I don’t claim that whe...
Sztuka programowania 2172 dni, 16 godzin, 36 minut temu 208 źrodło rozwiń
I can’t be the only person who hates waiting for the code to compile and run… Especially when I want to test only a small part of it! That’s a total waste of time! But good news everyone, I found a way to run a part of my C# code without building the whole project!Ctrl + E, E – the magical shortcut!
How often you wondering what this code is responsible? Why it not working or why it working good although it should not? 🙂 How often you must use debugger to find code which do specific action?
Sztuka programowania 2193 dni, 12 godzin, 59 minut temu 61 źrodło rozwiń
Krótkie podsumowanie na zakończenie Daj się poznać 2017 wraz z prezentacją aplikacji stworzonej w ramach konkursu.
Daj się poznać 2017 2193 dni, 12 godzin, 59 minut temu 29 źrodło rozwiń
O narodzinach pomysłu na projekt, który wykiełkował z nieudanego startu w #DSP17
Written by Dawid Sibińskion Today we’re going to see how to manage (keep and restore) state of Activities in Xamarin.Android application in order to keep the app consistent and reactive for configuration/state changes. Why to keep and restore Activity’s state? As I already described in my post about Android Activities, the OS may react to some “constant” state changes by calling lifecycle methods during Activity’s life, which may be overridden by the programmer in order to take some additional a...
Daj się poznać 2017 2201 dni, 11 godzin, 36 minut temu 4 źrodło rozwiń