|
|
YOUR FEEDBACK
|
TOP MICROSOFT .NET LINKS Book Review
.NET Book Review — Practical Mono
All about Mono on Linux and Windows
By: Dennis Hayes
May. 19, 2006 02:30 PM
Digg This!
Mark Mamone is a program lead and solutions architect for British Telecom, and he's been involved in .NET since Beta 1; he's presently spearheading a Mono-driven project for BT. Mamone has co-authored several books, including Beginning Fedora 2, Beginning Red Hat Linux 9, and Professional Windows Forms.
The second chapter gives an introduction to installing and using MonoDevelop, an IDE for .NET development under Linux that's closely associated with the Mono project. Chapter three gives a quick overview of basic C#, and chapter four continues this covering classes, attributes, interfaces, delegates, and exceptions, closing with a short section on what's new in C# 2.0. Chapter five gives a high-level view of .NET and its advantages, including the intermediate language, assemblies, the GAC (Global Assembly Cache), memory management and garbage collection, and application domains. It closes with a short paragraph on each of the system namespaces (IO, Collections, Security, etc.). Chapter six covers creating graphics programs using System.Windows.Forms by creating a user interface for a RSS aggregator application that uses menus, dialog boxes, panels, ListBoxes, datagrids, and events. The code is created manually without using an IDE graphic layout designer so the reader can understand how a .NET program works. Using System.Windows.Forms, this is not that difficult. The chapter closes by giving an overview of the advances in System.Windows.Forms 2.0. Chapter seven covers creating applications by using the GTK# library and the Glade design tool for user interface layout. The author does this by recreating the same RSS aggregator user interface produced in chapter six. Chapter eight covers database connections using ADO.NET, concentrating on MySQL. Mono and .NET can use a number of different databases, but here the author concentrates on MySQL because it's one of the most popular open source databases, and it is available on many platforms. Another advantage is that by limiting the discussion to a single database, he can go into details such as how to install and set up MySQL. This chapter gives an excellent overview of using a database with .NET, but if you want to have a deep and wide understanding of databases under .NET, check out Pro ADO.NET 2.0, also from Apress; it covers .NET databases in detail. Chapter nine covers XML. It starts with a good overview of XML and all of its parts. Since RSS uses XML for its document format, this chapter shows how to read and write RSS XML documents, and parse out the information for the application created in chapter six and seven. Chapter 10 gives a quick overview of networking, including the OSI model, and then introduces the System.Net namespace classes. It gives a quick example of how to read a Web page from a server and describes what a proxy server is, and how to connect to one. It then shows how to add network connectivity to the RSS aggregator application using the .NET networking classes. It closes, like most chapters in this book, with a description of the new .NET 2.0 classes, including the NetworkInterface class that retrieves information on all the network cards in the system, and the Ping and FTP classes that support ping and FTP protocols and functions. Chapter 11 covers ASP.NET, including installing and using both the Mono XSP ASP server, and installing and configuring Apache to be an ASP.NET server using Mono on both Windows and Linux. The book gives an example of how to set up your own Web server and create a WebForm application. It also covers creating and consuming Web services. It again closes with a description of the ASP.NET changes in .NET 2.0; however these changes are so great I would recommend using this book to see how to set up ASP.NET using Mono with XSP and Apache, but continue with another book on ASP.NET 2.0 such as Pro ASP.NET 2.0 Website Programming, also from Apress. Chapter 12, the last chapter is divided into two parts. The first part covers profiling using the Mono profiler and the low-level OProfile tool that comes as part of Linux. It points out that you can use other profilers, such as the one for the Nermele programming language, by using the Mono profiler flag. The second section gives a few good tips on how to write faster programs, such as using StringBuilder instead of String when several strings have to be concatenated, and using structures instead of classes where appropriate. These are good tips, but are too few and basic to help an experienced .NET programmer, but could be helpful to a beginner. This is a great book for anyone who wants to use .NET on Linux. It gives .NET programmers everything they need to use Linux, and it gives the Linux gurus everything they need to use .NET. It is a must have for anyone doing cross-platform .NET. SIDEBAR
Title: Practical Mono
MICROSOFT .NET LATEST STORIES
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
|
SYS-CON FEATURED WHITEPAPERS MOST READ THIS WEEK BREAKING NEWS FROM THE WIRES
|
|||||||||||||||||||||||||||||||||||