Welcome!

Microsoft Cloud Authors: Janakiram MSV, Yeshim Deniz, David H Deans, Andreas Grabner, Stackify Blog

Related Topics: Microsoft Cloud

Microsoft Cloud: Article

.NET Book Review — Practical Mono

All about Mono on Linux and Windows

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 first chapter of this book gives an overview of .NET, a history of the Mono project, and instructions on downloading and installing Mono on Linux and Windows. OSX is mentioned, but specific instructions aren't included. Moppix, the "live" version of Mono that runs from a bootable CD (based on the Konppix Linux distro), is also mentioned.

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
Author: Mark Mamone
Publisher: Apress
ISBN #: 1-59059-548-3
Price: US $49.99

More Stories By Dennis Hayes

Dennis Hayes is a programmer at Georgia Tech in Atlanta Georgia where he writes software for the Adult Cognition Lab in the Psychology Department. He has been involved with the Mono project for over six years, and has been writing the Monkey Business column for over five years.

Comments (1) View Comments

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


Most Recent Comments
.NET News Desk 05/19/06 02:37:29 PM EDT

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.

@ThingsExpo Stories
SYS-CON Events announced today that Yuasa System will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Yuasa System is introducing a multi-purpose endurance testing system for flexible displays, OLED devices, flexible substrates, flat cables, and films in smartphones, wearables, automobiles, and healthcare.
SYS-CON Events announced today that Dasher Technologies will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Dasher Technologies, Inc. ® is a premier IT solution provider that delivers expert technical resources along with trusted account executives to architect and deliver complete IT solutions and services to help our clients execute their goals, plans and objectives. Since 1999, we'v...
Enterprises have taken advantage of IoT to achieve important revenue and cost advantages. What is less apparent is how incumbent enterprises operating at scale have, following success with IoT, built analytic, operations management and software development capabilities – ranging from autonomous vehicles to manageable robotics installations. They have embraced these capabilities as if they were Silicon Valley startups. As a result, many firms employ new business models that place enormous impor...
SYS-CON Events announced today that Massive Networks, that helps your business operate seamlessly with fast, reliable, and secure internet and network solutions, has been named "Exhibitor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. As a premier telecommunications provider, Massive Networks is headquartered out of Louisville, Colorado. With years of experience under their belt, their team of...
SYS-CON Events announced today that Taica will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Taica manufacturers Alpha-GEL brand silicone components and materials, which maintain outstanding performance over a wide temperature range -40C to +200C. For more information, visit http://www.taica.co.jp/english/.
SYS-CON Events announced today that TidalScale, a leading provider of systems and services, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. TidalScale has been involved in shaping the computing landscape. They've designed, developed and deployed some of the most important and successful systems and services in the history of the computing industry - internet, Ethernet, operating s...
SYS-CON Events announced today that MIRAI Inc. will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. MIRAI Inc. are IT consultants from the public sector whose mission is to solve social issues by technology and innovation and to create a meaningful future for people.
SYS-CON Events announced today that IBM has been named “Diamond Sponsor” of SYS-CON's 21st Cloud Expo, which will take place on October 31 through November 2nd 2017 at the Santa Clara Convention Center in Santa Clara, California.
SYS-CON Events announced today that TidalScale will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. TidalScale is the leading provider of Software-Defined Servers that bring flexibility to modern data centers by right-sizing servers on the fly to fit any data set or workload. TidalScale’s award-winning inverse hypervisor technology combines multiple commodity servers (including their ass...
Join IBM November 1 at 21st Cloud Expo at the Santa Clara Convention Center in Santa Clara, CA, and learn how IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Cognitive analysis impacts today’s systems with unparalleled ability that were previously available only to manned, back-end operations. Thanks to cloud processing, IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Imagine a robot vacuum that becomes your personal assistant tha...
Widespread fragmentation is stalling the growth of the IIoT and making it difficult for partners to work together. The number of software platforms, apps, hardware and connectivity standards is creating paralysis among businesses that are afraid of being locked into a solution. EdgeX Foundry is unifying the community around a common IoT edge framework and an ecosystem of interoperable components.
Infoblox delivers Actionable Network Intelligence to enterprise, government, and service provider customers around the world. They are the industry leader in DNS, DHCP, and IP address management, the category known as DDI. We empower thousands of organizations to control and secure their networks from the core-enabling them to increase efficiency and visibility, improve customer service, and meet compliance requirements.
As popularity of the smart home is growing and continues to go mainstream, technological factors play a greater role. The IoT protocol houses the interoperability battery consumption, security, and configuration of a smart home device, and it can be difficult for companies to choose the right kind for their product. For both DIY and professionally installed smart homes, developers need to consider each of these elements for their product to be successful in the market and current smart homes.
With major technology companies and startups seriously embracing Cloud strategies, now is the perfect time to attend 21st Cloud Expo October 31 - November 2, 2017, at the Santa Clara Convention Center, CA, and June 12-14, 2018, at the Javits Center in New York City, NY, and learn what is going on, contribute to the discussions, and ensure that your enterprise is on the right path to Digital Transformation.
Smart cities have the potential to change our lives at so many levels for citizens: less pollution, reduced parking obstacles, better health, education and more energy savings. Real-time data streaming and the Internet of Things (IoT) possess the power to turn this vision into a reality. However, most organizations today are building their data infrastructure to focus solely on addressing immediate business needs vs. a platform capable of quickly adapting emerging technologies to address future ...
SYS-CON Events announced today that mruby Forum will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. mruby is the lightweight implementation of the Ruby language. We introduce mruby and the mruby IoT framework that enhances development productivity. For more information, visit http://forum.mruby.org/.
Digital transformation is changing the face of business. The IDC predicts that enterprises will commit to a massive new scale of digital transformation, to stake out leadership positions in the "digital transformation economy." Accordingly, attendees at the upcoming Cloud Expo | @ThingsExpo at the Santa Clara Convention Center in Santa Clara, CA, Oct 31-Nov 2, will find fresh new content in a new track called Enterprise Cloud & Digital Transformation.
Most technology leaders, contemporary and from the hardware era, are reshaping their businesses to do software. They hope to capture value from emerging technologies such as IoT, SDN, and AI. Ultimately, irrespective of the vertical, it is about deriving value from independent software applications participating in an ecosystem as one comprehensive solution. In his session at @ThingsExpo, Kausik Sridhar, founder and CTO of Pulzze Systems, will discuss how given the magnitude of today's applicati...
SYS-CON Events announced today that NetApp has been named “Bronze Sponsor” of SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. NetApp is the data authority for hybrid cloud. NetApp provides a full range of hybrid cloud data services that simplify management of applications and data across cloud and on-premises environments to accelerate digital transformation. Together with their partners, NetApp emp...
In a recent survey, Sumo Logic surveyed 1,500 customers who employ cloud services such as Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform (GCP). According to the survey, a quarter of the respondents have already deployed Docker containers and nearly as many (23 percent) are employing the AWS Lambda serverless computing framework. It’s clear: serverless is here to stay. The adoption does come with some needed changes, within both application development and operations. Tha...