Hi all. I know I should probably be focusing on one language at a time,
but I'm interested in learning Python (though I don't really know why!).
But I was wondering, does Python complement C# in any way, or would C#
be able to do everything Python can? Would it help to learn Python even
though I want to focus on C#?
Thanks. 8 1747
"John Salerno" <jo******@NOSPAMgmail.com> wrote in message
news:Hp*****************************************@r cn.net... Hi all. I know I should probably be focusing on one language at a time, but I'm interested in learning Python (though I don't really know why!). But I was wondering, does Python complement C# in any way, or would C# be able to do everything Python can? Would it help to learn Python even though I want to focus on C#?
The two languages aren't terribly similar, as C# is a statically typed
language and Python is largely dynamic and the overall way things are done
differ. Learning both would give you a good feel for some of the differences
that exist in programming languages. By all means learn Python and every
other language you can. The experiance will not harm you in any way, infact,
in my experiance it can be quite benefical.
You could easily achieve most of the same goals in C# as you could in
Python, just as you could pound most nails with any tool. But, like most
tools, each has a specific purpose is in general really good at some things
and not quite so good at others.
There are even a few .NET implementations of Python. IronPython comes to
mind, but there might be others.
Daniel O'Connell [C# MVP] wrote: "John Salerno" <jo******@NOSPAMgmail.com> wrote in message news:Hp*****************************************@r cn.net...
Hi all. I know I should probably be focusing on one language at a time, but I'm interested in learning Python (though I don't really know why!). But I was wondering, does Python complement C# in any way, or would C# be able to do everything Python can? Would it help to learn Python even though I want to focus on C#?
The two languages aren't terribly similar, as C# is a statically typed language and Python is largely dynamic and the overall way things are done differ. Learning both would give you a good feel for some of the differences that exist in programming languages. By all means learn Python and every other language you can. The experiance will not harm you in any way, infact, in my experiance it can be quite benefical.
You could easily achieve most of the same goals in C# as you could in Python, just as you could pound most nails with any tool. But, like most tools, each has a specific purpose is in general really good at some things and not quite so good at others.
There are even a few .NET implementations of Python. IronPython comes to mind, but there might be others.
Is there any way (or is it even helpful) to implement Python code within
a C# program? I've read that sometimes you can use a language like
Python to get smaller operations done quickly, but I didn't understand
if this is a separate process, or if these scripts are actually called
from C# code.
"John Salerno" <jo******@NOSPAMgmail.com> wrote in message
news:Hp*****************************************@r cn.net... Hi all. I know I should probably be focusing on one language at a time, but I'm interested in learning Python (though I don't really know why!). But I was wondering, does Python complement C# in any way, or would C# be able to do everything Python can? Would it help to learn Python even though I want to focus on C#?
Depends on the kinds of work that interest you. Python is appropriate for
some uses. C# is a more general langague. You can do everything in C# that
you can do in Python, although the mechanism for doing it would be
different. The same is not true the other way. I would not use Python to
create a service, or an integration layer.
Like I said, it depends on where you want to end up.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
Nick Malik [Microsoft] wrote: Like I said, it depends on where you want to end up.
Hmm, that's the tough part. I'm just learning C# for fun. I'm not a
professional programmer, and I doubt I could be without a formal
background in any computer sciences.
For some reason (honestly, I don't know why) Python has just caught my
interest. In a way, I want to learn about it, but I also don't want to
get confused/distracted from C#, which is what I mainly want to learn.
Nick Malik [Microsoft] wrote: "John Salerno" <jo******@NOSPAMgmail.com> wrote in message news:Hp*****************************************@r cn.net...
Hi all. I know I should probably be focusing on one language at a time, but I'm interested in learning Python (though I don't really know why!). But I was wondering, does Python complement C# in any way, or would C# be able to do everything Python can? Would it help to learn Python even though I want to focus on C#?
Depends on the kinds of work that interest you. Python is appropriate for some uses. C# is a more general langague. You can do everything in C# that you can do in Python, although the mechanism for doing it would be different. The same is not true the other way. I would not use Python to create a service, or an integration layer.
Like I said, it depends on where you want to end up.
Oh sorry, I should try to address your point: basically I just want to
learn C# to make fun little apps that I can use for myself, or maybe for
friends. Definitely nothing like business services or anything like
that. But I don't know what Python really does, so I don't know if it
will help if I already know C#.
> Is there any way (or is it even helpful) to implement Python code within a C# program? I've read that sometimes you can use a language like Python to get smaller operations done quickly, but I didn't understand if this is a separate process, or if these scripts are actually called from C# code.
C# certainly does not provide any built in way to run Python, but if you
want to use python to script applications there is nothing stopping you from
finding or developing a binding to do so. I don't know off hand if one
exists, but I wouldn't be surprised if one does.
> Is there any way (or is it even helpful) to implement Python code within a C# program? I've read that sometimes you can use a language like Python to get smaller operations done quickly, but I didn't understand if this is a separate process, or if these scripts are actually called from C# code.
C# certainly does not provide any built in way to run Python, but if you
want to use python to script applications there is nothing stopping you from
finding or developing a binding to do so. I don't know off hand if one
exists, but I wouldn't be surprised if one does.
I think that Python and C# are languages that greatly complement each other.
Especially with IronPython where you can use .Net libraries just like you
would from C#. The real power of Python comes with its interactive
development style. You can literaly see your application being built as you
type, each statement adding to functionality. It makes Python great for
prototyping. I personally found IronPython and C# to be a very powerful
combination.
Martin
"John Salerno" wrote: Nick Malik [Microsoft] wrote: "John Salerno" <jo******@NOSPAMgmail.com> wrote in message news:Hp*****************************************@r cn.net...
Hi all. I know I should probably be focusing on one language at a time, but I'm interested in learning Python (though I don't really know why!). But I was wondering, does Python complement C# in any way, or would C# be able to do everything Python can? Would it help to learn Python even though I want to focus on C#?
Depends on the kinds of work that interest you. Python is appropriate for some uses. C# is a more general langague. You can do everything in C# that you can do in Python, although the mechanism for doing it would be different. The same is not true the other way. I would not use Python to create a service, or an integration layer.
Like I said, it depends on where you want to end up.
Oh sorry, I should try to address your point: basically I just want to learn C# to make fun little apps that I can use for myself, or maybe for friends. Definitely nothing like business services or anything like that. But I don't know what Python really does, so I don't know if it will help if I already know C#. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |