• Uncategorized

    Language doesn’t matter

    My father is a land-surveyor (geodesist if you will). Nowadays he uses a notebook for his field measurements, but there was a time when he used a scientific calculator. Recently he’s notebook went dead, so he wanted to move back to his Casio scientific calculator. But, ups! Not in use for a while the battery ran out and the geodetical programs are gone. So I have to type my old programs back to the small computer. I thought I’ll share one of them as a example that programming language does not matter. What matters is how you use it and how well others could use your work. So let my…

  • Uncategorized

    It’s not magic – it’s floating point math

    Please remember that 3 / 12 is not always 0.25! ­čśë Take this example: int i = 3; Console.WriteLine(i / 12); You will get 0. I admit it could by a little confusing at first but I assure you, there is nothing wrong in the way JIT thinks. We dividing an integer over a… integer. What we are getting? Well, of course an integer! Is it not what you expected? How to fix this? Well the easiest way is to: int i = 3; Console.WriteLine(i / 12.0); You will get 0.25. Why? Well 12.0 is a double so the whole equation will by a double. You can check this easily…

  • Continuous Integration

    ClickOnce i Continuous Integration

    Od wielu lat wsp├│┼épracowa┼éem z wydawnictwem Software. M├│j pierwszy artyku┼é opublikowa┼éem gdzie┼Ť oko┼éo 2003 roku. Publikowa┼éem w Software 2.0, i w Software Developers Journal. Pisa┼éem artyku┼éy do PHP Solutions i dodatk├│w Extra. Wsp├│┼épraca uk┼éada┼éa si─Ö ca┼ékiem dobrze i wszystko trwa┼éoby pewnie jeszcze latami gdyby nie to jedno ÔÇ×aleÔÇŁ. Za m├│j pierwszy tekst otrzyma┼éem najwi─Öksze honorarium w historii mojej wsp├│┼épracy z Software Wydawnictwo. P├│┼║niej z tekstu na tekst otrzymywa┼éem coraz mniej. Najpierw ÔÇ×stron─ů maszynopisuÔÇŁ by┼éo 3800 znak├│w wraz z kodami, p├│┼║niej, 3800 znak├│w bez spacji, p├│┼║niej i bez kod├│w. Do tego wide┼éki za ÔÇ×nak┼éad pracy redakcyjnejÔÇŁ / naturalnie o ile zastosowane to tylko na minus. Nie wspominaj─ůc ju┼╝ o tym, ┼╝e…