W poprzedniej części cyklu o TDD opisałem dlaczego sposób wytwarzania oprogramowania, który praktykowałem na początku się nie sprawdzał i co mnie skłoniło do zainteresowania się Test Driven Development. Dzisiaj opiszę jak wygląda praca zgodnie z TDD. Jak to często bywa w przypadku praktyk zwinnych zasady teoretyczne są dosyć proste, a kluczem do sukcesu jest dyscyplina. Na początku musimy sobie wyjaśnić jedną bardzo ważną kwestię. TDD to nie synonim do pisania testów jednostkowych. Owszem, unit testy ...
Strona głównaUżytkownik
AGirlAmongGeeks | użytkownik
Sztuka programowania 2638 dni, 11 godzin, 14 minut temu 144 źrodło rozwiń
Last week I mentioned that together with .Net Core 2.0 we got something that makes my jaw drop. This “little” feature that made me feel slightly uncomfortable is Raroz Pages. In this post, I will show you what it really is or, in fact, what it is not 😊 and if we should be afraid of it... At first glance, you may think that Razor Pages are Microsoft’s attempt of coming back to the ASP.Net WebForms. Which I, unfortunately, still deal with damn too often so b...
This is the third article in the series of the last Microsoft releases and this time I will focus on Visual Studio update – labeled ‘15.3’. I am usually easily pleased with most of the Microsoft IDE features so forgive me all of my ‘ohhh’ but I really love all this changes 😉. No more ‘Add -> Existing Item’! ‘Drag & Drop’ will make the world a better place! You know the struggle when you want to add a file to your project and you have to first copy it (physically) to the appropriate location and the...
At Monday, we have a highly anticipated release – .Net Core 2.0 ! If it is not enough, we also got a new version of Visual Studio 2017 – update 15.3 (and I will write about it in the nearest feature). So now, I will try to show you the most interesting features of the youngest .Net kid.How to start? Installing update of Visual Studio 2017 is nothing extraordinary, so I will not write about it 😉. What may not seem very obvious, is the fact that we need to (additionally) install .Net Core 2.0 SDK....
When I started learning .Net Core some time ago I was constantly encountering a ‘.Net Standard’. I knew what it means and that it is (somehow 😉 ) important for me but didn’t really care about it. It’s just the standard, right? Who would care about it, when there is so many new things to discover (yep, I was an ignorant!). I changed my mind the last week – when the .Net Standard 2.0 was finally released. So, what the .Net Standard is? It is the standard common for every .Net technology. It ensures ...
Yes, ElasticSearch can be now installed and used much easier (that’s probably not a breaking news because I’m writing about it after one month since I have got a confirmed info) but summer is not the best time for writing a blog’s post 😉.)! In this post I will focus on the dilemma – when exactly a .msi file can be useful and when it is better to stick to the old fashioned command line. At the end of the post I also added some personal experiences with ElasticSearch logs when working with ES as a ...
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!
Last time we talked about creating indexes. We also searched for some data in our index in some easy manner. Today I would like to focus on other search-alike operations – bool queries.
Daj się poznać 2017 2723 dni, 7 godzin, 23 minuty temu 96 źrodło rozwiń
This is the 20th and the last post in the GetNoticed! competition. So it means that… I DID IT! I survived till the very end, I managed to create 20 posts in 10 weeks. ReMaster is still alive (it could be fed better but let’s leave this subject :P). It’s time to celebrate, I mean, have some sleep 😉. What I’m proud of? I have a blog! One year ago I was sure that my programming life is boring and even the problems I encounter while coding are too boring to write about them. And I ...
Daj się poznać 2017 2739 dni, 20 godzin, 7 minut temu 13 źrodło rozwiń
Today’s post is rather unusual because… it slightly touches JavaScript! The language I used to hate with the whole of my heart and now I’m starting to tolerate it (or maybe even… like it? Yeah, that’s strange). So let me tell you about my recent discoveries concerning Google Maps API (v3)! Chrome doesn’t allow you to get user location on pages without https! Yep, that’s sad (hmm or not ;)), https is becoming a must! Of course, it doesn’t apply to localhost, but when you deploy your code to the...
Daj się poznać 2017 2739 dni, 20 godzin, 7 minut temu 49 źrodło rozwiń
Last week I wrote about installing ElasticSearch on your local machine. Today I will focus on using this search engine – indexing and searching for data. First of all, I recommend installing Sense plugin for Chrome. It works like a charm and makes you be able to focus on indexing and only indexing. Very helpful...
Daj się poznać 2017 2745 dni, 8 godzin, 57 minut temu 99 źrodło rozwiń
The one conference I attended last Thursday was Software Talks organized at Rzeszów University of Technology by PGS Software. One of the two prelectors was Piotr Konieczny - I think everybody will know why I was so anticipating this event. Who knows the Polish language and is interested in the security subjects probably knows Piotr and his blog niebezpiecznik.pl and for sure would share my excitement!
Daj się poznać 2017 2768 dni, 18 godzin, 51 minut temu 15 źrodło rozwiń
Jeśli używamy Gita na pewno znamy polecenie git log które to wyświetla nam historię zmian w repozytorium. Jednak polecenie to ma pewną ciekawą możliwość, którą daje nam przełącznik -L. Mianowicie wówczas możemy podać nazwę metody oraz nazwę pliku i wyświetli nam się cała historia, ale dotycząca zmian w tej konkretnej metodzie. Jest to naprawdę wygodne, gdy chcemy dokładnie przyjrzeć się zmianom tylko w jednym miejscu bez przedzierania się przez rozbudowane porównywanie i całe pliki. Mój przykładowy pli...
Daj się poznać 2017 2770 dni, 21 godzin, 33 minuty temu 166 źrodło rozwiń
How many programmers you know use ‘yield‘? Seriously, if you have an occasion, ask them – I’m afraid you will notice a strange thing – everybody heard about it but (almost) nobody (including me) uses it. Time to change it! Why? Because ‘yield‘ was introduced in C# 2.0 (yeeeah, it’s that old!) and can help you get rid of some of the ‘temp’ collections in your code and, what’s more important, it may prevent you from System.OutOfMemory exception.
Daj się poznać 2017 2773 dni, 11 godzin, 20 minut temu 206 źrodło rozwiń
Generating EF Migrations in .Net Core project can make your day really awful! When you get an error after error, claiming that you did not install the package already present in your project, all you want to do is turn off the PC and go out. But the migration will not generete themself;). I wrote down some solutions for errors with Add-Migration and Update-Database commands.
Daj się poznać 2017 2791 dni, 7 godzin, 46 minut temu 60 źrodło rozwiń
How many times you almost pushed some sensitive data to public repo? I have to admit, it’s one of my nightmares since I heard about crawlers occuping github and searching for credit cards data, API credentials and so on. But it looks like this problem is over, at least for .Net Core developers. And it is because of one simple tool provided by Microsoft - Secret Manager. Let me show you how to manage it by Visual Studio interface!
Daj się poznać 2017 2799 dni, 7 godzin, 44 minuty temu 64 źrodło rozwiń
You may be surprised (I was!) but Visual Studio 2015 (and Visual Studio 2017) is not able to add (out of the box) a service reference. When you click right mouse button on the ‘References‘ folder, there is an option ‘Add Connected Service‘ but it doesn’t allow us to paste service reference url. Luckily, there is a few workarounds for this problem!
Daj się poznać 2017 2801 dni, 21 godzin, 24 minuty temu 238 źrodło rozwiń
Ladies and gentlemen – the second post about ReSharper! This time, let’s focus on refactoring, auto-generation of code and some smart ‘helpers’
Daj się poznać 2017 2808 dni, 7 godzin, 46 minut temu 100 źrodło rozwiń
Ostatnio w pracy dyskutowaliśmy o różnicach między const a static readonly. Nie znałem tego wcześniej to podzielę się z Wami. Rozważmy 2 linie kodu. public const int VersionX = 25; ipublic static readonly int VersionY = 25; Jakie są podobieństwa? W obu przypadkach raz przypisanej wartości nie możemy potem zmienić. Jakie są różnice? Jest ich kilka. Stałe (const) muszą mieć przypisaną wartość, readonly mogą korzystać z wartośći domyślnych. Przypisanie wartości w przypadku ...
Daj się poznać 2017 2811 dni, 7 godzin, 13 minut temu 154 źrodło rozwiń
All Polish companies are present in a system called CEIDG (in English: Central Registration and Information on Business). It provides a simple API – so far so good. To integrate with it, you have to register in their system, where you are asked about...
Daj się poznać 2017 2809 dni, 18 godzin, 16 minut temu 147 źrodło rozwiń