Archive for the ‘.Net’ Category

JSON-Enabled WCF Services (Part 2)

Sergey Piskov

Attachment: JSON-Enabled WCF Services (part 2).zip

This article is to continue the article JSON WCF Service (part 1), in which we created WCF service taking and giving out data in JSON format.

In this article, we are going to implement JavaScript-based client side that will interact with our WCF service. However, we won’t write a single line of pure JavaScript code in order to do this. Instead, we will use Script#. It allows us to write code in C#, programming language we got used to and translate it to JavaScript.

(more…)

November 15th, 2011

JSON-Enabled WCF Services (Part 1)

Sergey Piskov

In my work I often get task to develop Rich Internet Application. After such task I have a terrible headache with the choice of technology. The two most used ones are Silverlight and Flash. But the question which is better comes up; and it is very hard to objectively consider all pros and cons of them. Both of them are cross-platform technologies, so the application, created on Silverlight or Flash, will look the same in all browsers.

But, unfortunately, nothing is perfect… These technologies have one serious (to my mind) disadvantage: they are limited in use. This means that you won’t be able to fully use Silverlight application on Linux or Flash application on iOS. I even don’t mention mobile systems that are essential part of our life. Majority of up-to-date mobiles and pads don’t provide full support for Silverlight and Flash.

(more…)

November 3rd, 2011

Introduction in Script#

Sergey Piskov

When I read general description of Script#, I thought “Wow how simple it is!”. I need just to write some code on C#, compile my application, get the needed JavaScript files which stably work in all browsers. And I don’t need to think of DOM model of browsers, and especially differences among them – I can do everything on C#. Script# supports such library as jQuery. And this, to my mind, is a key benefit. The second thing that impressed me is that I don’t need to spend a lot of time reading tons of docs to start working with Script#. My average knowledge :) of JavaScript and C# is enough.

After two month of our “intimate relationships” with Script# – I can say that I love it :) ! Script# fully satisfied my expectations. It allowed me to quickly create the project, and, what is the most important, to get as a result qualitative, stable and pure JavaScript code.

And now, I’d like to explain what the Script# technology includes:

(more…)

October 27th, 2011

On stock markets and SharpShooter web reports with a chart

Andrew Kazyrevich
 
Tim Harford in The Undercover Economist tells us a story about Tony Dye, Chief Investment Officer at Philips & Drew, who concluded in 1996 that the stock market was overvalued – and effectively transferred £7 billion of his clients’ stock into cash on a savings account.
 
However, the market continued to climb up and the decision looked ridiculous. In 1999, while Dye had been insisting that the stock market would slump down, Philips & Drew lost more clients that any other fund and got ranked 66th out of 67 (!) competitors.
 
Not surprisingly, Tony Dye lost his job by March 2000.
 
But you know what? He was right. Before the company had time to change the strategy after his retirement, the stock market made a dramatic swing down and the unfashionable “value” shares, which Dye had been holding, did far better than anything else. Philips & Drew soared to the top of performance tables, earning its clients the equivalent of more than 28% annual return in a sharply falling market.
 
Prediction from 1996 was proven right – five years later. (more…)
October 6th, 2011