where is the mainly use of python and is it easy to learn??
|
Python
whats is the use of python |
|
Nov 14, 2016 12:19 AM
(This post was last modified: Nov 14, 2016 12:25 AM by DudeONym.)
Python, in being very multiparadigmic, unlike c++, allows you to easily prototype quite rapidly in a range of conventions to get acustomed to using the tools other paradigms may limit you to.
While it's entirely capable as a standalone language, I usually use it to model all sorts of programs before porting them into a language better suited to extending or optimising the task. The paradigms it isn't suited for it can often extend to support, e.g. Pyke for logical inference, this is not unique to python though.
It's THE general purpose language. It can interact with native libraries and it has been implemented in many languages including Java and CLR. It's incredibly common and is great for automation and high-level abstract programs. It's incredibly easy to program fairly complex tasks. For example, an HTTP client took me thousands of lines to implement in C++ using ASIO. The same can be done in Python in only a couple hundred at most (for a very basic HTTP client).
SRPP Discord Server
I am a professional network/cloud security architect. My Old Tutorials (Nov 13, 2016 09:57 PM)fapninja Wrote: Might as well just learn C++. The syntax is more difficult to remember and read, but it's a programming language all the same, you'll feel more pro, and it really isn't THAT much harder. "and it really isn't THAT much harder." You have absolutely no clue what you're talking about. ![]() (Nov 21, 2016 10:48 AM)Bossk Wrote: "and it really isn't THAT much harder." I second this. (Nov 21, 2016 10:48 AM)Bossk Wrote: "and it really isn't THAT much harder." I third this. Lmao I am a fan of both language but they're completely different in terms of difficulty. SRPP Discord Server
I am a professional network/cloud security architect. My Old Tutorials
Provided you don't use too many functional tools, porting from python to C(++) was fairly intuitive to me up until memory reallocation, that took me a while to work out, however I used to use pascal prior to python which may have given me an advantage.
I would agree it's harder, and certainly longer to type and think, but the transition can be intuitive to a point depending on your mental paradigm.
Nov 27, 2016 11:00 AM
(This post was last modified: Nov 27, 2016 11:01 AM by Goodies.)
(Nov 21, 2016 11:02 PM)DudeONym Wrote: Provided you don't use too many functional tools, porting from python to C(++) was fairly intuitive to me up until memory reallocation, that took me a while to work out, however I used to use pascal prior to python which may have given me an advantage. With modern C++, scoped lifetimes are preferred (local variables and class members because the destructor will deallocate it automatically, and the stack is much faster than the heap), followed by unique_ptr for single ownership of an object, followed by a shared_ptr for sharing ownership. If you're coding correct, safe C++, you'll never (or hardly ever) be calling "delete" or "delete[]" manually. SRPP Discord Server
I am a professional network/cloud security architect. My Old Tutorials |
|
|




![[Image: c5bcca49a3c4d3c6c7a27493507eba95.png]](https://i.gyazo.com/c5bcca49a3c4d3c6c7a27493507eba95.png)