Book description
IronPython in Action offers a comprehensive, hands-on introduction to Microsoft's exciting new approach for programming the .NET framework. It approaches IronPython as a first class .NET language, fully integrated with the .NET environment, Visual Studio, and even the open-source Mono implementation. You'll learn how IronPython can be embedded as a ready-made scripting language into C# and VB.NET programs, used for writing full applications or for web development with ASP. Even better, you'll see how IronPython works in Silverlight for client-side web programming.
About the Technology
In 2005, Microsoft quietly announced an initiative to bring dynamic languages to the .NET platform. The starting point for this project was a .NET implementation of Python, dubbed IronPython. After a couple years of incubation, IronPython is ready for real-world use. It blends the simplicity, elegance, and dynamism of Python with the power of the .NET framework.
About the Book
IronPython opens up exciting new possibilities. Because it's a dynamic language, it permits programming paradigms not easily available in VB and C#. In this book, authors Michael Foord and Christian Muirhead explore the world of functional programming, live introspection, dynamic typing and ‘duck typing’, metaprogramming, and more.
IronPython in Action explores these topics with examples, making use of the Python interactive console to explore the .NET framework with live objects. The expert authors provide a complete introduction for programmers to both the Python language and the power of the .NET framework. The book also shows how to extend IronPython with C#, extending C# and VB.NET applications with Python, using IronPython with .NET 3.0 and Powershell, IronPython as a Windows scripting tool, and much more.
What's Inside
- An introduction to IronPython, including a Python tutorial
- Overview of the .NET framework for Python programmers
- Embedding IronPython in applications
- Extending IronPython with C#
- IronPython web programming with ASP, Silverlight, and the DLR
- Structured application programming
- Testing with IronPython
- The power of dynamic languages through easy introspection, functional programming, and metaprogramming.
About the Reader
Whether you're a Python user exploring .NET or a .NET developer exploring the world of dynamic languages, IronPython in Action will get you started quickly and show you how to be productive with this powerful new tool.
About the Authors
Michael Foord and Christian Muirhead both work full time with IronPython for Resolver Systems; creating a highly programmable spreadsheet called Resolver One. They have been using IronPython since before version 1.0 was released.
Michael Foord has been developing with Python since 2002. He blogs and writes about Python and IronPython far more than is healthy for one individual and in 2008 was made the first Microsoft MVP for dynamic languages. As the Resolver Systems community champion he speaks internationally on Python and IronPython. He maintains the IronPython Cookbook and IronPython-URLs websites, and can also be found online at http://www.voidspace.org.uk/python/weblog/. In the real world he lives in Northampton, UK with his wife Delia.
Christian Muirhead began his career in a high-volume database environment, and for the last eight years has been building database-driven websites. He has five years of experience working with C#, the .NET framework, and ASP.NET. He has been using Python in most of his projects since discovering it in 1999, including building web applications for the BBC using Django. Christian is a New Zealander currently exiled in London with his wife Alice.
Quotes
... everything you need to get started with IronPython.
- Jim Hugunin, Creator of IronPython
The best book on one of the best implementations of Python.
- Alex Martelli, Author of Python in a Nutshell
A long-awaited guide.
- Keith J. Farmer, Idea Entity
... excellent explanations of unique and valuable features.
- Noah Gift, Author of Python for Unix and Linux System Administration
If you are a .NET programmer this book is for you... and if you are new to programming, it's for you too.
- Craig Murphy, Microsoft MVP
Publisher resources
Table of contents
- Copyright
- Foreword
- Preface
- Acknowledgments
- About this Book
-
1. Getting started with IronPython
- 1. A new language for .NET
- 2. Introduction to Python
- 3. .NET objects and IronPython
-
2. Core development techniques
- 4. Writing an application and design patterns with IronPython
- 5. First-class functions in action with XML
- 6. Properties, dialogs, and Visual Studio
- 7. Agile testing: where dynamic typing shines
- 8. Metaprogramming, protocols, and more
-
3. IronPython and advanced .NET
- 9. WPF and IronPython
- 10. Windows system administration with IronPython
- 11. IronPython and ASP.NET
- 12. Databases and web services
-
13. Silverlight: IronPython in the browser
- 13.1. Introduction to Silverlight
- 13.2. A Silverlight Twitter client
- 13.3. Videos and the browser DOM
- 13.4. Summary
-
4. Reaching out with IronPython
- 14. Extending IronPython with C#/VB.NET
- 15. Embedding the IronPython engine
-
A. A whirlwind tour of C#
- A.1. Namespaces
- A.2. Using directive
- A.3. Classes
- A.4. Attributes
- A.5. Interfaces
- A.6. Enums
- A.7. Structs
- A.8. Methods
- A.9. Delegates
- A.10. Events
- A.11. Operator overloading
- A.12. Properties and indexers
- A.13. Loops
- A.14. Casts
- A.15. if
- A.16. switch
- A.17. try/catch/finally and throw
- A.18. lock
- A.19. new
- A.20. null
- A.21. using statement
- A.22. Operators
- A.23. Generics
- B. Python magic methods
- C. For more information
Product information
- Title: IronPython in Action
- Author(s):
- Release date: March 2009
- Publisher(s): Manning Publications
- ISBN: 9781933988337
You might also like
video
The Expanding World of Python
Manning's authors Reuven Lerner and Dane Hillard discuss the past, present, and future of the Python …
video
What are f-strings in Python and how can I use them?
In Python 3.6, a new method of formatting strings was introduced - f-strings. In this video, …
book
Visual Studio 2015 Cookbook - Second Edition
Over 50 new and improved recipes to put Visual Studio 2015 to work in your crucial …
book
Essential C# 6.0
“ Welcome to one of the greatest collaborations you could dream of in the world of …