Strona głównaUżytkownik

cezarypiatek | użytkownik

cezarypiatek
cezarypiatek
1 418,8
395 dni, 12 godzin, 46 minut temu
18 kwietnia, 2014
dotnetomaniak.pl

A few weeks ago I posted about negative aspects of applying AutoMapper. As an alternative I suggested typing all mapping code by hand or utilize some kind of generator like T4Scaffoling or something Roslyn based. In the past I experimented with T4Scaffoling but it was quite tedious. It requires preparation of templates in T4 syntax, referencing it to the project and writing some PowerShell code to provide data for templates. There also was an issue with assembly locking. Then I tried to generate code wit...

Dziel się z innymi:
[EN] Generate mapping code with Roslyn code fix provider. · CEZARY PIĄTEK

Narzędzia 2260 dni, 21 godzin, 19 minut temu cezarypiatek 65 źrodło rozwiń

jquery.unobtrusive-ajax is the javascript library that every ASP.NET MVC developer certainly knows. Unfortunately, it has a few design drawbacks which could have negative impact on our system architecture and generate additional hidden costs. In this post I’m going to show you some of jquery.unobtrusive-ajax.js related problems I encountered in my 5-year journey as a ASP.NET MVC frontend developer, and how to fix them.

Dziel się z innymi:
[EN] What's wrong with default ajax support in ASP.NET MVC and how to fix it. · CEZARY PIĄTEK

Web 2274 dni, 21 godzin, 9 minut temu cezarypiatek 53 źrodło rozwiń

The idea behind this blog post is pretty old but I haven’t had enough motivation to write this down till now. Recently, I’ve came across a couple of new articles about AutoMapper and I’ve been struck when I saw how people utilize AutoMapper in their projects. I’ve encountered cases when AutoMapper transforms simple thing like mapping values from object to other into a really complex problem, which results with highly complicated code only for the price of not writing mappings explicitly. Finally, I’ve fo...

Dziel się z innymi:
[EN] The reasons behind why I don't use AutoMapper. · CEZARY PIĄTEK

Sztuka programowania 2282 dni, 18 godzin, 59 minut temu cezarypiatek 252 źrodło rozwiń

How to send notification to Microsoft Teams channel from TeamCity using PowerShell build step and how to make it reusable with meta runners.

Dziel się z innymi:
Integrating TeamCity with Microsoft Teams using PowerShell · CEZARY PIĄTEK

Narzędzia 2299 dni, 20 godzin, 48 minut temu cezarypiatek 49 źrodło rozwiń

I’ve recently watched a pretty decent tutorial about DSC on Microsoft Virtual Academy. I’m not a huge fan of video tutorials because it always takes more time to watch them than read a book/blog post (you can hack it by increasing video speed and save yourself a couple of minutes) but sometimes there is additional beneficial side effect - the presenter can show you (accidentally or not) some tips and tricks not strictly related to the core subject of the video. This post is an attempt of summarizing tric...

Tagi: Powershell
Dziel się z innymi:
[EN] Exploring PowerShell with graphical user interface. · CEZARY PIĄTEK

Narzędzia 2319 dni, 21 godzin, 40 minut temu cezarypiatek 110 źrodło rozwiń

I’ve recently written an article about managing TODOs in the codebase with TODOExplorer. I’ve also proposed an idea of introducing code snippet for TODOs which helps to keep all TODOs in predefined format as well as provides more information about delayed task (author, receiver, date, issue tracker id). This article was a result of a few discussions with my programmer-colleagues and I hoped that that idea of TODOs snippet was worth sharing (I’ve been using it in my project for a while). After publishing ...

Dziel się z innymi:
Advent of Clean Code: Let's get rid of TODOs from the codebase.

Sztuka programowania 2337 dni, 21 godzin, 47 minut temu cezarypiatek 96 źrodło rozwiń

Some people used to say that a good programmer doesn’t need to debug his own code. However, sometimes we have a problem with third party libraries usage, for example: there is insufficient documentation or the module contains some bugs. Visual Studio has excellent debugging toolset but this is totally useless without symbols and sources (and this is often the case with third party libraries). Thanks to Reshaper decompiler this shouldn’t be a problem anymore. Before we start debugging we should make so...

Dziel się z innymi:
The fastest way do debug .net code without sources. · CEZARY PIĄTEK

Narzędzia 2340 dni, 20 godzin, 59 minut temu cezarypiatek 162 źrodło rozwiń

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 2346 dni, 21 godzin, 34 minuty temu cezarypiatek 165 źrodło rozwiń

When I browse StackOverflow questions tagged with selenium label, a lot of them are related to the problem of clicking on page elements. It seems to be one of the most trivial tasks, but can cause a lot of problems. Very often invoking Click() action on webelement ends with exceptions (there is a wide range of them). The main reason is that element on which we try to click is not in “Interactable” state. There is a lot of different factors that can cause that situation:Element has zero dimension (width ...

Dziel się z innymi:
Why clicking with Selenium is so hard

Web 2401 dni, 21 godzin, 53 minuty temu cezarypiatek 105 źrodło rozwiń

Static analysis is a powerful feature of Visual Studio that helps us to spot syntax and semantic errors in our code. It works very well on currently edited file and runs on the whole solution as one of the compilation stages. But it would be a waste of time to run compilation every time you make changes that affect code outside currently edited file, only to check that you didn't cause any compilation errors. Luckily, Resharper comes to the rescue with...

Źródło: demonbox.pl
Dziel się z innymi:
[EN] DemonBox - Hunt your bugs in design time

Narzędzia 2931 dni, 15 godzin, 21 minut temu cezarypiatek 76 źrodło rozwiń

TortoiseSVN has a function named simply “rename” which allows you to change the file name and keep the file history as well. But what if we change the file name for example during refactoring using Visual Studio? Are we fated to lose file history?

Źródło: demonbox.pl
Dziel się z innymi:
[EN] [DemonBox] - Save your history - TortoiseSVN and "Repair move" option.

Narzędzia 3515 dni, 20 godzin, 42 minuty temu cezarypiatek 88 źrodło rozwiń

One of the greatest features of Resharper are Live Templates. They can speed up your code typing and help you focus only on what is most important (you don’t need to remember and retype anymore long ‘dull’ code constructions). Live Templates are similar to Visual Studio code snippets but are easier to define and introduce smart parameters that help you in faster code completion.

Źródło: www.demonbox.pl
Dziel się z innymi:
[EN] DemonBox - Don't write dull code, Part I: Resharper Live Templates

Narzędzia 3674 dni, 11 godzin, 24 minuty temu cezarypiatek 147 źrodło rozwiń

1 2 3

Najaktywniejsi w tym miesiącu