In the project, I am working with, there is a simple feature that imports data from external source. Import is only interested in new records. This condition is fulfilled with ‘DateTime’ comparision. Looks simple, Unfortunately I have encountered a nice ‘bug’.
Strona głównaUżytkownik
michalfranc | użytkownik
Sztuka programowania 4120 dni, 2 godziny, 49 minut temu 90 źrodło rozwiń
In this post, I want to write about my conversion to Vim, a complex but powerful text editor. It’s learning curve is quite step but once grasped, it can increase your productivity. You can use it almost everywhere, Linux, Windows, Mac, you name it. It is an OSS software, easily moddable and open. You can write your own plugins and change almost every aspect of it. This process is very natural and easier than Visual Studio’s extensions and configuration hell. You won’t replace Visual Studio with VIM, th...
I have been playing with Node.js recently. Mostly doing some small hobby projects. One of them needed server side badly, some of the cool features were not possible with the client side only web app. I was thinking about using RoR, Asp.Net Mvc or NancyFX all of these frameworks suitable for the task. Then why Node ? Well, the answer is simple, FUN. There is a lot of hype around it. Community is very dynamic, lots of modules and extensions created on the daily basis. As a Passionate Developer, I also wa...
Long long time ago in one of the posts … I briefly described CouchDB installation process on the local machine.IrisCouch If you don’t want to configure local database you can use IrisCouch hosting. You can get free database for basic tests. I am using this database hosting for one of the projects hosted in heroku. It is free for really basic usage. Now we can play with our new toy. Let’s start with some general concepts.Where are my tables ? Quick answer there are no tables. Data is stored in a form...
Bazy danych i XML 4214 dni, 8 godzin, 31 minut temu 112 źrodło rozwiń
This post will be a little note with steps needed to setup a working CouchDb instance on windows machine.NoSql RDBSM rules the world, it is still a “standard” in the industry. My first Database was used inside a simple rss client written in C. This was the weird world of C programming with weak documentation and Segmentation fault errors everywhere. Now, I am mostly using MSSQL with ORM support ( NHibernate ), but there is another world of databases on the horizon, NoSql movement. There have been a lot...
Bazy danych i XML 4243 dni, 7 godzin, 57 minut temu 87 źrodło rozwiń
I am a software developer. From my experience I can say, that this is one of the best jobs someone can do. It is creative, demanding and extremely rewarding plus it has an awesome community with friendly and intelligent people. When i was entering the work market in my first company i had various assumptins ans misconceptions that i learned in university. Boy i was soo wrong about a lot of things. In this post i want to dosciss some of them.You are passionate, hard working and very engaded, sorry that’s ...
In this post, I want to share some details about my Visual Studio 2012 configuration. You can find here a list of plugins, some options and various customization that I am using.Some thoughts I am not using any GIT integration tool. I don’t need it. Console and bash is all, I need. I am mostly using 2 split window setup. All the tool windows are pinned out if i need them i can use CTRL+TAB. I am trying to not use mouse at all.ExtensionsR# Tool that you can’t live without. Finally i got my personal ...
There is one nice ‘feature’ of git that i found recently : creating git custom commands. It is useful, when I want to automate some repetetive tasks.
In previous post, I defined a good unit test as one that:tests single unit of workcontains only one assertis self contained Presented sample of code with one unit test, unfortunately had two asserts. Clear violation of the second rule. One of the fellow bloggers MJ pointed out this mistake. It is time to “fix” it and talk about “Only one assert per test” rule.Why only One Assert There are couple of problems with multiple asserts.Unit Test Misinformation Frameworks like NUnit do notify about failing un...
Sztuka programowania 4321 dni, 5 godzin, 39 minut temu 37 źrodło rozwiń
This post is based on my answer on the Stack Overflow – “How to unit test this function?” The original question is about writing unit test for a code that uses Console methods inside its body. This problem is more general and in this post, I want to show one of the ways to unit test code with static method.Example of code with static methods This example is from the Stack Overflow quest...
Sztuka programowania 4327 dni, 13 godzin, 5 minut temu 67 źrodło rozwiń