Book description
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.
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.
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.
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
book
40 Algorithms Every Programmer Should Know
Learn algorithms for solving classic computer science problems with this concise guide covering everything from fundamental …
book
Tiny Python Projects
The projects are tiny, but the rewards are big: each chapter in Tiny Python Projects challenges …
book
Head First Design Patterns, 2nd Edition
You know you don’t want to reinvent the wheel, so you look to design patterns—the lessons …
book
Fundamentals of Software Architecture
Salary surveys worldwide regularly place software architect in the top 10 best jobs, yet no real …