DSP2017

Staying at home programmer – survival guide!

If you have read (hehe, I know you didn’t :P) the very first post on my blog, you would know that I had about one year break in my, let’s say, ‘career’. For my personality it was quite a challenging and surprising time, but for me as a programmer, it was an extremely tough year. I literally had to fight for each hour spent on writing code so I decided to write down some tips that helped my knowledge and skills (somehow) survive.

And if you think that it doesn’t concern you, just think of a situation when you break an arm or lose your job and couldn’t find another one for longer than 5 minutes (haha, hehe, yeah, that joke is stupid, but I had to write it 😉 ) or decide to stay at home with your newborn. I was in the last situation. Continue Reading

DSP2017

Software Talks conference review

Living in the eastern part of Poland means you don’t have a lot of IT events you can attend to. The situation is getting better each year but I am still a little bit jealous of the possibilities my friends in other cities have. But it doesn’t mean ‘our’ conferences and meetups are weak or boring – not at all! It only means that they are less often than I would like!

The one conference I attended last Thursday was Software Talks organized at Rzeszow University of Technology by PGS Software . With the main subject ‘Get back the control‘ it looked very promising. If I add, that 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! Continue Reading

DSP2017, DSP2017 Project

Victories and defeats of the last week

Recently I have quite tough time coding. Anything I touched, throws exception with messages that even google wasn’t eager to answer. Since I started developing my pet project ReMaster, it became a rule. I don’t know if it’s because of my rather small knowledge of the .net core or just the fact that I work on the ReMaster usually late in the night and I’m half asleep by the time. But never mind and let’s focus on my last problems and solutions.

Continue Reading

DSP2017, Tech

Let’s make ‘yield return’ our best friend!

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

DSP2017, Tech

New MS Windows this November! Some ealy leaks!

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.
DSP2017, DSP2017 Project

EF Migrations in VS 2017 – Guess why I was postponing migration of ReMaster to Visual Studio 2017 for so long?

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.

tl;dr

But the problem came back when I wanted to fire the Update-Database command. I received the following error: Continue Reading

Asp.Net Core MVC, DSP2017

How to avoid sending credentials to repo (ASP.Net Core Configuration – part 2 – clickable Secret Manager)

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

DSP2017, DSP2017 Project

Adding xUnit to my .Net Core app – programming at night sucks!

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 ;).

Stairway to…

I installed xUnit packages. I wrote a test just for the purpose of checking if everything is fine aaaand… Continue Reading