Strona głównaUżytkownik

Marcin Węgrzyn | użytkownik

Marcin Węgrzyn
Marcin Węgrzyn
9,17
2290 dni, 3 godziny, 52 minuty temu
16 kwietnia, 2017
dotnetomaniak.pl

It’s a good practice to make all things done at the first approach. But in the real world it’s ot always possible - for example we need to ask customer for clarification and it will take some time, or worst - we don’t have enough time right now to implement things in the right way. In order to adress this issue, a TODO was invented to mark all those places in code requiring additional work. But the main disadvantage of TODO is that we mark code with it, commit it and forget about it. Sometimes somebody a...

How to manage TODO in your codebase. · CEZARY PIĄTEK

Narzędzia 2535 dni, 4 godziny, 5 minut temu cezarypiatek 167 ź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.

Let’s make ‘yield return’ our best friend! – A Girl Among Geeks

Daj się poznać 2017 2773 dni, 6 godzin, 20 minut temu AGirlAmongGeeks 206 źrodło rozwiń