W minionym tygodniu miałem przyjemność migracji z .NET Core’a 1.1 do mającego kilka dni wcześniej finalny release .NET Core’a 2.0. Po krótkim obeznaniu się z tematem miałem mieszane uczucia, połowa wpisów opisywała to zadanie jako mission impossible, druga jako przysłowiową bułkę z masłem..
Strona głównaUżytkownik
dpawlukiewicz | użytkownik
Last night I started working on my new tech presentation which is going to consist mostly on live demos. Because of limited time (which is usually about 50 minutes) and few topics to discuss, I decided to use code snippets in my Visual Studio Code. Thanks to that, I’ll focus more on the „talk flow” rather than my typing which is not so good when I’m stressed. Creating snippets in VSC Let’s start with creating an example C# snippet just to present the way it works....
Debugging ASP.NET Core apps in Visual Studio Code is not as simple as in „Windows version” but it’s still pretty easy to setup. So if you have ever had some troubles with that, here’s an explanation of the entire process. Adding configuration Before configuring VSC, you need to install C# extension if you don’t have it yet. I’d say, it’s a must-have for every .NET developer working with Code since it offers lots of features like IntelliSense, useful sni...
Microservices are still pretty popular in our industry since they imply lots of benefits. However working with that kind of architecture might be annoying when it comes to commit the changes using GIT. Why? Simply because in a common approach, each microservice should be put in a separate repository. Therefore, instead of doing your typical „GIT sequence” once, you end up with few terminals where you do pretty much the same job. Fortunately, you can avoid that with no big deal. ...
There are many different approaches to deal with failures in web apps. One of the most common is returning a result... The idea is simple. If the method fails because of validation or something else, the result tells it. The only thing we need is ifstatement an...
In my last article, I presented how to run Aurelia unit tests inside Bitbucket pipeline. What’s quite funny (or may be scary for some of you) is that few hours after publishing, Facebook presented to me an add with „great CI tool” called Buddy. Without much thought, I navigated to the project’s site and I felt in love immediately. Why? There’s one reason – it’s dead simple...
Inspired by Piotr’s article I decided to play a little with the Bitbucket as an alternative to the GitHub. The thing that I really like about it, is that there’s no need to use any 3rd part CI tool such as TravisCI since Bitbucket offers its own build pipeline. Of course, I wanted to test it as soon as possible, so I created very simple Aurelia application using its CLI and I pushed my changes. My basic pipeline file (with the *.yml extension) presented as follows: ...
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 2733 dni, 1 godzinę, 22 minuty temu 208 źrodło rozwiń
Prezentacja frameworka, który wspomoże nas w tworzeniu przejrzystej i funkcjonalnej dokumentacji dla API.
The end of the May comes and hence the end of „Get Noticed 2017” competition. Therefore, I’m going to do a short summary which will describe things that I’m happy about together with those that I’m not. Obviously, this post also will be the last one in the GN2017 category which contains 16 articles. Wait, what?
Daj się poznać 2017 2757 dni, 15 godzin, 38 minut temu 16 źrodło rozwiń
What is a random number? Well, even if you have never read any definition, you can still answer that question pretty easy. It’s the unpredictable result of some action like throwing a dice. We just can’t predict what the next number will be. The Lucky shoot is all we’ve got. In a real world, randomness is kind of natural „thing”, but it starts to be more complicated when it comes to machines. Why? Simply because of their deterministic character...
Daj się poznać 2017 2770 dni, 10 godzin, 30 minut temu 141 źrodło rozwiń
Today’s post is going to be super easy, especially if you’re familiar with SQL, so without much explanation let’s discuss a little bit about two clauses that you might spot later in my Neo4j & Cypher series – Union and With. UNION clause The Union clause can be used to merge the results of two queries. There are just two restrictions:the number of columns in both queries must be the samecolumn names in both queries must be the same Let’s demonstra...
Daj się poznać 2017 2774 dni, 9 godzin, 39 minut temu 17 źrodło rozwiń
As I’ve mentioned in previous posts about Akka.NET, everything that actor knows is stored in memory. While we can skip any database or IO related bottlenecks because things in memory are generally speaking very fast, we must remember that memory is not a place where you can store your data for an extended period of time and keep it. So let’s talk about persisting it.
Daj się poznać 2017 2777 dni, 9 godzin, 42 minuty temu 46 źrodło rozwiń
In the previous post, we explored Neo4j dataset containing actors and movies. We also got familiar with basics of Cypher – declarative query language created for graph databases. In today’s post, we’ll find out how to create a more complex query which will consist of many relationships and nodes. What are we going to retrieve? Let’s start with defining our task. Imagine that someone asked us to build a query which will answer the below question: I...
Daj się poznać 2017 2775 dni, 23 godziny, 21 minut temu 24 źrodło rozwiń
In one of my previous post, we got familiar with the graph databases concept as the opposing approach to the aggregate-oriented, NoSQL databases. As I promised back then, there’s going to be a series of post dedicated to the query language designed for querying that kind of data structure called Cypher. Today’s one starts it and it going to present the way to install Neo4j and later is going to discuss creating simple queries. Installing Neo4j To start our j...
Daj się poznać 2017 2783 dni, 22 godziny, 1 minutę temu 39 źrodło rozwiń
Imagine the following situation: your job was to add some functionality to the application. You’ve worked on this for last couple days doing N commits. When the job is over you want to push your changes to the origin but soon after you spot that for the whole time you’ve worked on master/develop branch instead of the feature branch. Sounds familiar to you? Don’t worry, you can still move your changes! The example Let’s say that we started a new project. We’ve ...
Daj się poznać 2017 2786 dni, 16 godzin, 48 minut temu 54 źrodło rozwiń
Almost all my career I’ve spent with relational databases (later called RDB) and more precisely SQL Server. Honestly, I’ve never complained about that. It works fine, integrating with object languages is very quick since we’ve got a lot of different ORMs (like Entity Framework or Dapper) and it’s pretty easy to learn no matter how advanced developer you are. Sounds like a perfect solution, right? I mean, think about all the companies and projects th...
Daj się poznać 2017 2786 dni, 10 godzin, 40 minut temu 70 źrodło rozwiń
A few days ago I showed you how to combine Nancy with Autofac and ASP.NET Core IoC. Today’s post will be related to the security and more precisely JWT authentication. Before moving further, I’d like to mention that below text is going to be the last Nancy-related one (at least for now). In a next couple weeks, we’ll explore the world of graph databases with Neo4j and .NET Core, so I hope you’re as excited as I do 😉 How does JWT authe...
Daj się poznać 2017 2798 dni, 10 godzin, 3 minuty temu 77 źrodło rozwiń
For couple last days, I worked on gifty to catch up a little bit. My primal task was to introduce JWT authentication to my microservices hosted by Nancy. That’s the topic for next post but today, I’ll describe the proper steps to fully integrate Nancy with Autofac and ASP.NET Core since it’s not that obvious (at least wasn’t for me) and took me way to much time to finally do it. So, I hope that this one will help you one way or another. Installing pa...
Daj się poznać 2017 2802 dni, 15 godzin, 28 minut temu 78 źrodło rozwiń
Kilka słów o konferencji GET.NET w Łodzi + konkurs ;)