Challenge 43 – Roll the Bones
Challenge 43 involved writing all the code necessary to create a client application that can call an Azure Web function, get a result, and show the result.
A Microsoft Azure function has been created. This function is able to produce a random result of a dice roll. Input into the function are:
- numberOfSides (sides on the dice 2 – 100)
- numberOfDice (number of dice 2 – 100)
The address of the function is:
The objective of this challenge is to create a client application which can call the above function, get a result, and show the result.
- Create a client application to call a previously created Microsoft Azure function.
- Show the result of the Azure Function Call through a simple user interface.
- Any technology may be used.
- Winner will be judged on accuracy and completeness of the solution.
Winners (out of approximately 15 respondents)
Thanks to everybody for your responses to SCS Coding Challenge #43!!!
Congratulations to Alec Wojciechowski for his fine efforts to come up with a workable solution.
Alec also reminded me to turn on CORS (Cross-Origin Resource Sharing) to allow a web application running at one origin (domain) have permission to access selected resources from a server at a different origin.
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS for more details on CORs
Alec also hosted his app at: http://rollthebones.kissr.com/
|Name||Prize Winner||Good Answer|
Monthly Programming Tidbits
Many developers build a POCO class in order to return multiple values from a method. Tuples are initiated in .NET Framework 4.0. They can be used effectively as follows
Coding Challenge #44
Please stay tuned, SCS Coding Challenge #44 will be published early next week. Details will follow. The winner will be awarded based upon the best approach.