| | Challenge 33 was published last week and started yesterday and you can read about the details below. There were no entries for Challenge 32. Last week I added a new page for .NET Tools and Utilities and have moved in some existing stuff as well as the EQATEC Profiler. Now I'm finishing the next C# tutorial on Winforms. Have a good week! | | Programming Hardware in C# My own experiences with hardware have on the whole not been 100% successful in the past. At a night school course in simple electronics, I managed to wire up an A-D converter, taking a 0-5v voltage to a digital value 0-255 to work wonderfully for most of a class. For some reason though it wouldn't do one last bit and it then transpired that the ground connection hadn't been connected at all. So I sympathize with those people who just don't get programming and can't do it to save their lives. But there are plenty who love tinkering about with both hardware and software and if you like C# this is for you. The FEZ (Freakin' Easy!) is a tiny board costing about $100 that runs Microsoft .NET Micro Framework. You can write code using C# and the free Microsoft Visual C# Express Edition. (Note this is currently 2008 version but will become 2010 in the next few months). The FEZ boards (Domino and the smaller Mini) are manufactured by a company called GHI Electronics and the FEZ Domino pinout is compatible with the popular Arduino. I'm almost tempted to get reacquainted with hardware but with my track record it's probably safer if I don't! | A Free C#/Silverlight Profiler EQATEC is a Danish software developer that provide a free C# (and Managed C++) profiler for all versions of .NET from 2.00- 4.00. it also does VB.NET. You have to register to get the download link. It runs standalone and you just select an exe to profile, click build to add profiling information and then run it. It then lists all the methods called, how many times they were called and the average time in each one. You can do successive runs and compare against earlier ones to see any improvements. If you don't have the source code to your exe, do make a copy of it first! An example DirectX application is provided, but I also ran this on Makis's entry for Programming Challenge 27. Seeing how many times a method was called can be as useful as knowing how long it took to run. Note this only profiles code speed not memory but that's still very useful. You can add attributes to methods to stop them being profiled. Also EQATEC provide a free tracer as well. It works in a similar way to the profiler by injecting code into the exe. | Programming Challenge 33 In this challenge you have to evaluate a bunch of assignments and expressions. The syntax is simple variable =expression. I've kept the expression factors very simple, +-*/ and square and square root functions. You're given a file of statements , one to a line and there are just 26 variables a-z. You must evaluate them in the order they are in the file. That's it! the fastest correct gets the glory. | Code Library for C, C++ and C# The Code Library with source code for all examples and free downloads for this topic. | | | | C / C++ / C# Ads | | | | Featured Articles | | | | | | | | 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 | | Advertisement | |
No comments:
Post a Comment