Click here to Skip to main content
15,897,187 members
Articles / Programming Languages / Javascript

KnockoutJS vs. Silverlight

Rate me:
Please Sign up or sign in to vote.
4.99/5 (67 votes)
16 Apr 2012CPOL25 min read 159.9K   1.1K   96  
This article compares Silverlight and KnockoutJS by looking at the implementation of the same application with both frameworks and tries to answer the all-important question "which framework is best?"
<?xml version="1.0" encoding="utf-8"?>
<quiz title="Eco-Quiz">
  <question text="How much household waste does each person create a year?"
            category="rubbish"
            interestingFacts="That's almost 10 times the weight of an average person. Just think how much waste is created throughout your lifetime ... how can you reduce the 50,000 kg of waste you might leave behind?">
    <answer text="150 kg"
            isCorrect="false"/>
    <answer text="513 kg"
            isCorrect="true"/>
    <answer text="1025 kg"
            isCorrect="false"/>
  </question>
  <question text="How much less energy does it take to make an aluminium can by recycling that creating a new one?"
            category="cans"
            interestingFacts="That's an incredible energy saving! The energy saved is enough to power a television for 3 hours.">
    <answer text="10 %"
            isCorrect="false"/>
    <answer text="40 %"
            isCorrect="false"/>
    <answer text="95 %"
            isCorrect="true"/>
  </question>
  <question text="True or false: Does a 100 watt bulb produce the same amount of light as two 50 watt bulbs?"
            category="lightbulb"
            interestingFacts="Not many people know that 100 watt bulbs are more efficient that 50 watt bulbs and produce more light from the energy the consume, so a simple green tip is to use fewer, higher powered bulbs.">
    <answer text="True"
            isCorrect="false"/>
    <answer text="False"
            isCorrect="true"/>
  </question>
  <question text="What percentage of the average households electricity bill is from appliances left on standby?"
            category="washing"
            interestingFacts="To save the environment ... and save you money ... before you go to bed each night, turn all your appliances off at the wall socket.">
    <answer text="0-2 %"
            isCorrect="false"/>
    <answer text="8-10 %"
            isCorrect="true"/>
    <answer text="12-14 %"
            isCorrect="true"/>
  </question>
</quiz>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Scott Logic
United Kingdom United Kingdom
I am CTO at ShinobiControls, a team of iOS developers who are carefully crafting iOS charts, grids and controls for making your applications awesome.

I am a Technical Architect for Visiblox which have developed the world's fastest WPF / Silverlight and WP7 charts.

I am also a Technical Evangelist at Scott Logic, a provider of bespoke financial software and consultancy for the retail and investment banking, stockbroking, asset management and hedge fund communities.

Visit my blog - Colin Eberhardt's Adventures in .NET.

Follow me on Twitter - @ColinEberhardt

-

Comments and Discussions