Another .NET Developer Days behind me. This time it was something new for me because I was a speaker. I gave my presentation "Will AI replace developers" on the second day of the conference at 15:00. On the one hand, it was quite late and I was a little bit afraid about number of listeners. On the another hand, it was a chance to be well remembered because in general we remember better what was at the beginning and at the end. So how was it?
Strona głównaUżytkownik
http://michalkomorowski.blogspot.com/ | użytkownik
The time has come to drop a few lines about Promgramistok 2018. This time I didn't give a presentation. Instead, together with my colleague Rafał Maciąg I conducted workshops "Recipe for DDD, BDD, CQRS and Event Sourcing".
When we started PlatformX project, we were using full .NET Framework. Then we migrated to .NET Core. Despite many advantages this migration meant a problem with using Roslyn. This problem is called MsBuildWorkspace...
Sztuka programowania 2373 dni, 4 godziny, 31 minut temu 94 źrodło rozwiń
I published the second part of a review of "virtual developers" and at the end I answered the question from the title - will computers replace developers?
I'm trying to answer the question if Artificial Intelligence will replace developers? And if yes, when?
Since I started using SpecFlow acceptance tests, I think that they are simply great. If I had to select whether to write only unit tests or only acceptance tests, I would select the latter. Nonetheless, there is one important problem with SpecFlow...
Sztuka programowania 2607 dni, 5 godzin, 34 minuty temu 130 źrodło rozwiń
Recently, I was tricked by Roslyn, today by Json.NET. My bloody luck ;) Let's look at the following two very simple classes. Class A has one readonly property and I had to define a special constructor to allow Json.NET to set this property. B is also simple. It has one property, this time of type A with some default value...
Sztuka programowania 2644 dni, 4 godziny, 49 minut temu 108 źrodło rozwiń
A while ago 2 of my SpecFlow tests started failing on the build server. At the same time, on a few local machines no problems were observed. I also didn't find any exceptions in the log, so I decided to log into the server and debug a problem there. Quite soon I figured out that the problem is in the algorithm that uses Roslyn to analyse and understand the code...
Sztuka programowania 2653 dni, 42 minuty temu 48 źrodło rozwiń
Have you ever heard that "premature optimization is the root of all evil"? Probably yes. It's quite well known Donald Knuth's phrase. However, the whole cite is much less known...
Sztuka programowania 2740 dni, 19 godzin, 9 minut temu 25 źrodło rozwiń
My last 2 posts were about problems with using Roslyn. Nonetheless, even if I sometime hate it, I'm still using it so the time has come to show some practical example of using Roslyn. Recently, I've been working on the task that can be summed up as: Take this ugly code and do something with it. i.e. more or less the refactoring task...
Sztuka programowania 2767 dni, 14 godzin, 27 minut temu 173 źrodło rozwiń
In my previous post I wrote about my problem with "empty" projects and Roslyn. The symptom was that in some cases according to Roslyn my C# projects didn't contain any files. For quite a long time, I haven't been able to find a solution. Especially because I couldn't reproduce problem on my local machine. Fortunately, today I noticed exactly the same problem on another computer.
Sztuka programowania 2779 dni, 3 godziny, 11 minut temu 51 źrodło rozwiń
The more I work with Roslyn the more I appreciate the possibilities it gives and the more I hate it. And I hate it for the same thing as many other projects I worked with in the past. What is it? Well, I like when a system fails fast, fails loudly and fails in the clear way. Unfortunately, Roslyn can do something completely different what sometimes makes working with it the pain in ass. I'll give you some examples.
Sztuka programowania 2791 dni, 2 godziny, 33 minuty temu 89 źrodło rozwiń
Have you ever heard or used AutoMapper? What a question, of course you have. And in the very unlikely scenario that you haven't, it's the object to object mapper that allows you to map probably everything. In short no more manual, boring, tedious, error-prone mapping. However, the great power comes with great responsibility. In the recent time, I had an occasion to fix 2 difficult to track bugs related to improper usage of AutoMapper. Both issues were related to the feature of AutoMapper...
Sztuka programowania 2797 dni, 1 godzinę, 7 minut temu 65 źrodło rozwiń
This post from Report from the battlefield series will be about my own mistake. It is related to async/await and MARS i.e. Multiple Active Result Sets. async/await allows us to use asynchronous programming more easily. MARS is a feature of MSSQL that allows us to have more than one pending request opened per connection at the same time...
Sztuka programowania 2807 dni, 3 godziny, 8 minut temu 46 źrodło rozwiń
I'm working on the project where I have an opportunity to use Roslyn compiler as a service. It is very good :) However yesterday it took me more than 2 hours to write working unit tests (based on MSTest) for my code! Here are some tips that may save your time.
Sztuka programowania 2809 dni, 17 godzin, 43 minuty temu 40 źrodło rozwiń