FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2018
    Location
    Canada
    Posts
    2
    Mac OS X 10.13.4 Chrome 67.0.3396.87

    How useful is python compared to other programming languages?

    I always wonder as I am tryign to pick up a new programming language but donno which one i should learn.

  2. #2
    Join Date
    Oct 2010
    Location
    Canberra
    Posts
    2,952
    Linux Firefox 52.0

    Re: How useful is python compared to other programming languages?

    "How useful" will rather depend on what sort of things you are wanting to do.
    Of course that applies to all programming languages.

    These days there is a huge collection of Python libraries, so there is probably not many things you could not tackle using Python.

    User error. Please replace user and try again

  3. #3
    Join Date
    Dec 2005
    Location
    Arkansas
    Age
    29
    Posts
    1,159
    Linux Firefox 60.0

    Re: How useful is python compared to other programming languages?

    One of Python's main advantages that ocratato mentioned is the number of libraries you can use with it. I just wrote some software in Python for my Raspberry Pi to read a magnetometer and I had at least 2 other options to interface with the sensor in Python. It's a pretty well used language, so you can read the source code for a good number of projects.

    Personal experience has led me to dislike the language compared to other options. Haskell is more my go to, and I could have used it with the Pi, but Haskell is pretty much broken on Arch Linux Arm right now. Python's dynamic typing tends to bite you, but it won't do so until that segment of code is run. In a script you will find the type errors pretty quickly. On a web service you have to test each of the routes to trigger type errors. I still think Python is more strongly typed than C, but it's much better to have the compiler give you type errors at compile time or when the interpreter runs initially as opposed to when it is running.

    Documentation is another problem with Python. There are plenty of tutorials for it, but working through the documentation for a library like sqlalchemy is painful because you not only have to look up the documentation on the object you are looking at, but also what it inherits from to see all the methods available. Haskell gets the library documentation right by not only telling me what types a function takes, but it also gives me a link to documentation for the data type. Even without the documentation I can use Haskell's interactive mode to query what type class instances are available among other things.

    Python is definitely a useful language to learn, especially if all you know is C. With C if you pay attention to error handling, you can get bogged down writing a lot of code. With Python you can get more done with less lines. It shines best at one off tasks in my opinion.
    Laptop: Lenovo ThinkPad T420, CPU: Intel Core i5 520M, Ram: 8GB DDR3, Hard Drive: 320GB, Graphics: Intel HD, OS: Windows 7 / Arch Linux x86_64
    Desktop: Motherboard: ASRock Fatal1ty AB350 Gaming K4, CPU: AMD Ryzen 3 1200, RAM: 8GB DDR4, Storage: Samsung 850 Pro 256GB, Graphics: Asus Radeon RX 550 4GB, OS: Arch Linux x86_64

  4. #4
    Join Date
    Nov 2004
    Location
    MT USA
    Posts
    910
    Windows 7 Firefox 61.0

    Re: How useful is python compared to other programming languages?

    All depends on what you are wanting to do. If raw speed is needed, then Python isn't it. Use a compiled language like C, Assembly, Pascal, etc. I find Python excellent for a lot of things though when raw speed isn't a requirement. There are a few features that I really like. 1) It forces you to write block structured code. With other languages some programmers get 'creative' with code blocks... 3) It is highly readable and 'usually' easy to follow. Don't get me wrong, you can still write unreadable code in Python but you would have to work at it. 3) Easy to use and modify since the source code is the run code. 4) Objects are easy to implement when needed. Above all, it is fun to write Python code!

    At work, it is great for easy to create utilities to manipulate files and reports. Lots of pre-built modules to use. The ftp, sftp, http, https protcols are all easy to use from with in python. There are front end GUIs available to use like TKinter, QT. I find myself doing more stuff in Python now, than any other language I've used over the past 30 years.... I come from the embedded real-time side of the world to where I cut my teeth on Assembly, C, and Pascal.

    Excellent book out there is "Automate the Boring Stuff with Python" .

    Note at work the company is a Windows shop .... We use WinPython for our use on this platform as it includes just about every module that we need/use ... and then some. Portable too.

    As for Top Programming languages as of December 2017 (TIOBE Index) the top five Languages in order were Java, C, C++, Python, C#
    Last edited by rclark; 3rd July 2018 at 11:14 PM.

Similar Threads

  1. All the programming languages are wrong
    By lsatenstein in forum Wibble
    Replies: 14
    Last Post: 12th May 2016, 11:34 AM
  2. Name the most popular programming languages
    By RupertPupkin in forum Programming & Packaging
    Replies: 22
    Last Post: 7th April 2010, 05:39 AM
  3. Best 2 Programming Languages
    By measekite in forum Programming & Packaging
    Replies: 61
    Last Post: 26th June 2009, 07:07 PM
  4. Programming Languages Available
    By acey99 in forum Using Fedora
    Replies: 3
    Last Post: 1st December 2007, 12:53 AM
  5. What programming languages should I study?
    By EliteXR in forum Wibble
    Replies: 60
    Last Post: 14th March 2006, 07:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •