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. Continue Reading
Great news everyone! Microsoft announced yesterday that a new Windows will appear in November! Its’ name is gonna be Windows 9.2 (MS like always keeps its products names in check ) and you will be able to install it even on iPhone – that’s a huge surprise, isn’t it? Anyway, I can not wait to check it! And you, are you curious?
BTW this message is not official yet, but I managed to find some early leaks. My source states that you could even access new Windows’s source code – only you will have to pay a 2000$ more that a normal licence. And you will be able to compile it in Visual Studio Code so… I guess ‘compiling the kernel’ will relate no more only to linux systems!
Anyway, Microsoft, you are doing it right!
Feature image by Viktor.
Last week, everybody was talking about the final release of Visual Studio 2017. I have to admit, I was excited too so of course I installed it! At the beginning, everything seemed to be just fine. Nothing forecasted a few hours of google’ing to solve the problems that occurred later.
When I installed VS2017, I have to do some of the strange tricks described in my previous post. There were errors claiming that my project lacks some Nuget package, which was of course installed but I knew the solutions so that was cool, really. In the end, adding migration started to work so I felt some kind of relief.
But the problem came back when I wanted to fire the Update-Database command. I received the following error: Continue Reading
The time has came for generating EF Migrations. It’s nothing special, so I didn’t plan to spend much time on it. But as it sometimes happen, I was encountering problem after problem so I decided it’s worth writing them down. Continue Reading
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. It’s name is… Continue Reading
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 add service reference, it has only two options Continue Reading
The last two evenings I reserved for coding. The plan was like this – download all the Polish companies, save them in database and make some functionality in ‘admin area’. But of course first things first – unit tests!
I have to admit, most of the code I write doesn’t have tests. It’s not something I’m proud of but life is life, deadline is deadline – but once again – it’s something that really (really – really!) makes me feel ashamed. So, this time I want to make my pet project properly and write as much unit tests as it’s possible. And I’m really curious if I will stick to this idea till the end of ReMaster. Anyway, forgive me if my tests will be bizarre ;).
I installed xUnit packages. I wrote a test just for the purpose of checking if everything is fine aaaand… Continue Reading
Ladies and gentlemen – the second post about ReSharper! This time, let’s focus on refactoring, auto-generation of code and some smart ‘helpers’. Continue Reading
Last week I didn’t do much coding. In fact, all I did was playing a little with ReSharper and adding some ‘flesh’ to my app’s skeleton. ReMaster is able to connect to a database now and log errors when they occur. It also has some interfaces that may be useful later (when I start coding the model).
Not a big thing but I wanted to rethink the project structure a few times (basically because I rarely have an opportunity to code a web app from a scratch so it was loads of fun!). And yes, I know there is at least one open source project that provides a starting point for ASP.Net Core MVC. But because it’s my pet project I can do with it whatever I want and if I decide to starve it to death, I will starve it to death, got it?! 😉
But coming back to my app’s topic, you may think about…
How to get all the Polish companies’ data?
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. Continue Reading
ReSharper is a great Visual Studio extension but without the knowledge about its keyboard shortcuts and other tricks, it’s completely useless. That’s why (and because of the fact, every ‘Get Noticed!’ participant has a free version of this software – more info here), I decided to write about the most popular features. Of course, it’s not a full list, but you may find some of the below helpful.