Python vs C #

Source: Internet
Author: User
> I 've used Python for most of my university projects so far (at least
> Where I cocould choose what to use), and I 've had professors look at me
> Asking why I chose "an outsider" like Python over ages (considered
> To be "stronger") such as C ++ and SML (whatever ...).

> They only asked until they had a look at the code I had produced.

Likewise. And I actually succeeded in getting several people
Interested. I love Python. But I love C # just as much and it is hard
To say which one I love better.

No too long ago, I had to create a tool for an information retrieval
Project. I needed RegEx, GUI, Containers and Database features. And I
Needed to make this fast. First I looked at Delphi. It had by far
Best GUI framework. Nothing else even comes close for GUI rad. In most
Cases, I just need to go a Web site like www.torry.net and simply pick
From a choice of open source components. But it did not have RegEx.
Sure there was a lib or 2 out there but nothing standard. Same story
With containers.

Then I started with python. Python had everything I needed. But my app
Was GUI rich and it was taking too long to layout the interface. Even
With BOA contructor, it still was taking a while. I had already
Finished writing most of the classes for the app.

I switched to C #. Surprise. It took me hardly any time to port
Python code to it. For everything I needed from Python, I had direct
Analogs in C # (at least in the context of my app). And I finally
Wrapped everything up quite quickly. I enjoyed C # as much I enjoyed
Python. Of course, the user was quite dismayed when I told him about
The 28 MB of dependencies. But the software did exactly what it was
Expected.

As for static typing, that never slows me down. What makes C ++ slower
To program in not declaring types. It's the memory details to watch,
Complex developmental cycles (not just compile time), lack of quick
Libraries (batteries sorted DED) that we get with ages like Perl
And Python etc.

What enhanced my C # experience has a lot to do with mature tools
With the language per se. The VS2003 IDE is far more complete
PythonWin and Boa. Code Completion, Help integration for example is
Far more mature and often means I rarely have to refer to the docs.

The standard library is fantastic as well. MS finally made
Developmental tool that is hard to point fingers.

Personally I wowould like to see Python in a. NET environment. Not some
Silly IDE add-in like Visual Python. One comment in this thread was
That Python's dynamic typing makes it difficult to port it to. NET.
But Perl is dynamically typed too. And ActiveState has a feasible. NET
Language with Perl. What gives for Python? I don't know much about
Language internals but I believe true integration of Python into
Will do it a world of good.

Adding onto "what C # can do that Python can't? ", I am now developing
An app for the PocketPC with the Compact Framework in C #. The app is
Every bit as professional as an experienced programmer might have
Developed with eVC. And I was able to do it in a fraction of time
It might have taken with C ++ and MFC and this is my FIRST PocketPC
App. Python cannot do that at this point of time.

Similarly ASP. NET like development experience is hard to get from
Python at this point. Yes! There are several webapp frameworks
Python and then there is Zope. But ASP. NET is something else and suits
Certain kind of web apps quite well (Though Zope is way to go
CMS). I am sure Python community will catch up eventually to this
Paradigm but for now it doesn' t.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.