Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why should C# developer learn IronPython?

We all knows that C# is a static language while Python is a dynamic language. But I want to know what are the features that Python has and c# does not. Also, is it advisable/beneficial to use IronPython with c# in the same application?

Also what points I should focus to learn before I try to convince my boss to use IronPython?

like image 423
matrix Avatar asked Aug 10 '26 16:08

matrix


2 Answers

One of IronPython's key advantages is in its function as an extensibility layer to application frameworks written in a .NET language. It is relatively simple to integrate an IronPython interpreter into an existing .NET application framework. Once in place, downstream developers can use scripts written in IronPython that interact with .NET objects in the framework, thereby extending the functionality in the framework's interface, without having to change any of the framework's code base.

IronPython makes extensive use of reflection. When passed in a reference to a .NET object, it will automatically import the types and methods available to that object. This results in a highly intuitive experience when working with .NET objects from within an IronPython script.

Source - Wikipedia

like image 75
Prav Avatar answered Aug 13 '26 08:08

Prav


In other words, what points I can give to my boss to convince him to use IronPython?

Don't. If you don't know why you should use a new tool and for what, don't try to convice anybody to use it. At work, you should try to solve problems with the best tools for the task, not throw the fanciest tools avaiable at your problems just because they're fancy.

Learn IronPython, maybe make a small side project in it, find out what the strenghts are. Then if you think these strengths are useful for the project you're working on (e.g. for "glue code", plugins, macros etc.), convice your boss to use them.

like image 26
Niki Avatar answered Aug 13 '26 07:08

Niki