Welcome!

Microsoft Cloud Authors: David H Deans, Yeshim Deniz, Janakiram MSV, 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 Secure Channels, a cybersecurity firm, 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. Secure Channels, Inc. offers several products and solutions to its many clients, helping them protect critical data from being compromised and access to computer networks from the unauthorized. The company develops comprehensive data encryption security strategie...
SYS-CON Events announced today that WineSOFT 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. Based in Seoul and Irvine, WineSOFT is an innovative software house focusing on internet infrastructure solutions. The venture started as a bootstrap start-up in 2010 by focusing on making the internet faster and more powerful. WineSOFT’s knowledge is based on the expertise of TCP/IP, VPN, S...
WebRTC is the future of browser-to-browser communications, and continues to make inroads into the traditional, difficult, plug-in web communications world. The 6th WebRTC Summit continues our tradition of delivering the latest and greatest presentations within the world of WebRTC. Topics include voice calling, video chat, P2P file sharing, and use cases that have already leveraged the power and convenience of WebRTC.
SYS-CON Events announced today that App2Cloud 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. App2Cloud is an online Platform, specializing in migrating legacy applications to any Cloud Providers (AWS, Azure, Google Cloud).
When shopping for a new data processing platform for IoT solutions, many development teams want to be able to test-drive options before making a choice. Yet when evaluating an IoT solution, it’s simply not feasible to do so at scale with physical devices. Building a sensor simulator is the next best choice; however, generating a realistic simulation at very high TPS with ease of configurability is a formidable challenge. When dealing with multiple application or transport protocols, you would be...
An increasing number of companies are creating products that combine data with analytical capabilities. Running interactive queries on Big Data requires complex architectures to store and query data effectively, typically involving data streams, an choosing efficient file format/database and multiple independent systems that are tied together through custom-engineered pipelines. In his session at @BigDataExpo at @ThingsExpo, Tomer Levi, a senior software engineer at Intel’s Advanced Analytics ...
Internet-of-Things discussions can end up either going down the consumer gadget rabbit hole or focused on the sort of data logging that industrial manufacturers have been doing forever. However, in fact, companies today are already using IoT data both to optimize their operational technology and to improve the experience of customer interactions in novel ways. In his session at @ThingsExpo, Gordon Haff, Red Hat Technology Evangelist, shared examples from a wide range of industries – including en...
Detecting internal user threats in the Big Data eco-system is challenging and cumbersome. Many organizations monitor internal usage of the Big Data eco-system using a set of alerts. This is not a scalable process given the increase in the number of alerts with the accelerating growth in data volume and user base. Organizations are increasingly leveraging machine learning to monitor only those data elements that are sensitive and critical, autonomously establish monitoring policies, and to detect...
"We're a cybersecurity firm that specializes in engineering security solutions both at the software and hardware level. Security cannot be an after-the-fact afterthought, which is what it's become," stated Richard Blech, Chief Executive Officer at Secure Channels, in this SYS-CON.tv interview at @ThingsExpo, held November 1-3, 2016, at the Santa Clara Convention Center in Santa Clara, CA.
To get the most out of their data, successful companies are not focusing on queries and data lakes, they are actively integrating analytics into their operations with a data-first application development approach. Real-time adjustments to improve revenues, reduce costs, or mitigate risk rely on applications that minimize latency on a variety of data sources. Jack Norris reviews best practices to show how companies develop, deploy, and dynamically update these applications and how this data-first...
Intelligent Automation is now one of the key business imperatives for CIOs and CISOs impacting all areas of business today. In his session at 21st Cloud Expo, Brian Boeggeman, VP Alliances & Partnerships at Ayehu, will talk about how business value is created and delivered through intelligent automation to today’s enterprises. The open ecosystem platform approach toward Intelligent Automation that Ayehu delivers to the market is core to enabling the creation of the self-driving enterprise.
The question before companies today is not whether to become intelligent, it’s a question of how and how fast. The key is to adopt and deploy an intelligent application strategy while simultaneously preparing to scale that intelligence. In her session at 21st Cloud Expo, Sangeeta Chakraborty, Chief Customer Officer at Ayasdi, will provide a tactical framework to become a truly intelligent enterprise, including how to identify the right applications for AI, how to build a Center of Excellence to ...
SYS-CON Events announced today that Massive Networks 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. Massive Networks mission is simple. To help your business operate seamlessly with fast, reliable, and secure internet and network solutions. Improve your customer's experience with outstanding connections to your cloud.
Everything run by electricity will eventually be connected to the Internet. Get ahead of the Internet of Things revolution and join Akvelon expert and IoT industry leader, Sergey Grebnov, in his session at @ThingsExpo, for an educational dive into the world of managing your home, workplace and all the devices they contain with the power of machine-based AI and intelligent Bot services for a completely streamlined experience.
Because IoT devices are deployed in mission-critical environments more than ever before, it’s increasingly imperative they be truly smart. IoT sensors simply stockpiling data isn’t useful. IoT must be artificially and naturally intelligent in order to provide more value In his session at @ThingsExpo, John Crupi, Vice President and Engineering System Architect at Greenwave Systems, will discuss how IoT artificial intelligence (AI) can be carried out via edge analytics and machine learning techn...
SYS-CON Events announced today that Datera, that offers a radically new data management architecture, 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. Datera is transforming the traditional datacenter model through modern cloud simplicity. The technology industry is at another major inflection point. The rise of mobile, the Internet of Things, data storage and Big...
Consumers increasingly expect their electronic "things" to be connected to smart phones, tablets and the Internet. When that thing happens to be a medical device, the risks and benefits of connectivity must be carefully weighed. Once the decision is made that connecting the device is beneficial, medical device manufacturers must design their products to maintain patient safety and prevent compromised personal health information in the face of cybersecurity threats. In his session at @ThingsExpo...
In his session at @ThingsExpo, Arvind Radhakrishnen discussed how IoT offers new business models in banking and financial services organizations with the capability to revolutionize products, payments, channels, business processes and asset management built on strong architectural foundation. The following topics were covered: How IoT stands to impact various business parameters including customer experience, cost and risk management within BFS organizations.
SYS-CON Events announced today that CA Technologies has been named "Platinum Sponsor" of SYS-CON's 21st International Cloud Expo®, which will take place October 31-November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. CA Technologies helps customers succeed in a future where every business - from apparel to energy - is being rewritten by software. From planning to development to management to security, CA creates software that fuels transformation for companies in the applic...
From 2013, NTT Communications has been providing cPaaS service, SkyWay. Its customer’s expectations for leveraging WebRTC technology are not only typical real-time communication use cases such as Web conference, remote education, but also IoT use cases such as remote camera monitoring, smart-glass, and robotic. Because of this, NTT Communications has numerous IoT business use-cases that its customers are developing on top of PaaS. WebRTC will lead IoT businesses to be more innovative and address...