Tuesday, May 11, 2010

About C / C++ / C#: Challenge 34 Marked

If you can't see this email, click here

About.com

C / C++ / C#

Fundamentals

Tips & Tools

Going Pro



From David Bolton, your Guide to C / C++ / C#
Congratulations to Shashi Sadasivan from Australia, our sole entrant this month whose C# entry was able to work out a straight line in 8 ms. I realized this week that I had been needlessly neglecting WPF from the C# tutorials as it is in the Visual C# 2008/2010 Express versions. I do try to create tutorials that require little or no additional expense to do them (except for iPhone!). Have a Good Week!

Ryzom has gone open source
RyzomDeveloped ten years ago and launched in 2004 the French developed massively multi-player online role-playing game (MMORPG) has not been a commercial success despite winning awards and the game engine from Ryzom called Nel has now been open sourced as Ryzom Core just a few days ago under the GNU Affero General Public License. Written in C++ , Ryzom Core has client, server, plus tools that were used to create Ryzom. Ryzom Core is basically a toolkit for developing massive multi-player online game universes. It provides the base technologies and a set of development methodologies for the development of both client and server code. As is common these days it uses Lua for scripting The developers have even provided a shard (a server holding part of the game world) for other game developers to test on. Interestingly, it's not just the 2 million lines of source code but the graphics, over 20,000 in total are also free (a 1.4 Gb download) under a Creative Commons license.

WPF Starting to Pickup?
WPF is of course Microsoft's vision for the future of desktop programming with Silverlight being a lite version on other platforms. I can't say that WPF has set the world on fire but recently I've noticed at work that it's being used a lot with WPF books appearing on many bookshelves. Even my own team (and I) are writing WPF Applications. Unlike Silverlight, WPF does not suffers from the limited access of only being used from the full Visual Studio, it's also in the Express editions (It was also in Visual C# 2008 Express as well I never noticed it) so I will be creating tutorials for it. I've also added a new library for Open Source WPF Apps and it has two to start with: Crack.net a debugging tool and Caliburn which helps architecting. Also there's a new crop of books launched to coincide with the .NET 4 and these include a few specifically on WPF so clearly the publishers think there's mileage there as well. If you want to spot trends watch publishers. They have to be ahead of the game so the books are there on time.

What's New in C# 4.0 Continued

Long overdue to C# is the introduction of named arguments. You can specify the name so the actual order doesn't matter. Call me old fashioned but I still think you should use the same order for consistency. So for a method called PerformAutopsy( string Name,int Age),
you would traditionally call it like this: PerformAutopsy("John Doe",71) ;
Now you can call it like this in C# 4.0 PerformAutopsy(Name:"John Doe",Age:71) ;
or PerformAutopsy(Age:71,Name:"John Doe") ;
But be careful mixing named with positional parameters: PerformAutopsy("John Doe",Age:71) ; // Ok
PerformAutopsy(Name:"John Doe",71) ; Not OK (positional arguments must be first).


Code Library for C, Objective-C, C++ and C#
This is the code library with all examples, free downloads for this topic.

 


C / C++ / C# Ads
Featured Articles
Development Projects from Initial Design to Completed Code
Reviews of Software - Tools, Compilers, Editors etc
Book Reviews
Top Tools, Utilities and Resources
Glossary of Programming Terms
Never Programmed Before? Start Here

 

More from About.com

Disney Trip Planner
Everything you need to plan the perfect Disney vacation -- from when to go and what to do, to saving money and picking a hotel. More >



Join About.com's User Panel!
Share your opinions and help us make About.com more relevant, informative and enjoyable to use. More>




This newsletter is written by:
David Bolton
C / C++ / C# Guide
Email Me | My Blog | My Forum
 
Sign up for more free newsletters on your favorite topics
You are receiving this newsletter because you subscribed to the About C / C++ / C# newsletter. If you wish to change your email address or unsubscribe, please click here.

About respects your privacy: Our Privacy Policy

Contact Information:
249 West 17th Street
New York, NY, 10011

© 2010 About.com
 


Must Reads
Programming Challenges
About C, C++ and C#
C++ for Beginners
C++ Programming
Intro to OOP

Advertisement

No comments: