Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Dan Strohl Newsgroups: comp.lang.python Subject: RE: Considering migrating to Python from Visual Basic 6 for engineering applications Date: Thu, 18 Feb 2016 16:00:57 +0000 Lines: 114 Message-ID: References: <90cc50d2-1ce5-4588-9bfd-a49d439f00dd@googlegroups.com> <14c75a68-0d2e-45cc-8d73-0d71b6a6aea6@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de JewKIFdKayoIMNUl4NL1YQ9ez54DT7rpsQ7I3x2op2bg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'subject:Python': 0.05; 'apps,': 0.07; 'desirable.': 0.07; 'interpreted': 0.07; 'already.': 0.09; 'app,': 0.09; 'benjamin': 0.09; 'calculating': 0.09; 'interpreter,': 0.09; 'modules.': 0.09; 'subject:Visual': 0.09; 'python': 0.10; 'python.': 0.11; 'itself.': 0.11; 'files.': 0.13; 'thursday,': 0.13; 'apps': 0.15; 'discussions': 0.15; 'message-----': 0.15; 'subject: \n ': 0.15; 'thu,': 0.15; '"extended': 0.16; '(something': 0.16; '(there': 0.16; '2016': 0.16; 'emulator': 0.16; 'library"': 0.16; 'modules,': 0.16; 'pypi.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'responded.': 0.16; 'skip:[ 50': 0.16; 'x1,': 0.16; 'x2,': 0.16; 'wrote:': 0.16; 'app': 0.16; 'later': 0.16; 'numerical': 0.18; 'gui': 0.18; 'programmer': 0.18; 'input': 0.18; 'language': 0.19; 'library': 0.20; 'windows': 0.20; 'cloud': 0.20; 'extension': 0.20; 'to:name:python-list@python.org': 0.20; 'do.': 0.22; 'fairly': 0.22; 'assuming': 0.22; 'controlled': 0.22; 'environments': 0.22; 'platform,': 0.22; 'simpler': 0.22; 'file.': 0.22; 'trying': 0.22; 'bit': 0.23; '(or': 0.23; 'feb': 0.23; 'third-party': 0.23; 'written': 0.24; 'header:In-Reply-To:1': 0.24; 'install': 0.25; 'command': 0.26; 'chris': 0.26; 'distribute': 0.27; 'points': 0.27; 'packaging': 0.27; 'question': 0.27; 'developing': 0.28; 'received:192.168.10': 0.29; 'windows,': 0.29; 'character': 0.29; 'url:mailman': 0.30; 'code': 0.30; 'certainly': 0.30; 'probably': 0.31; 'another': 0.32; "can't": 0.32; 'possibly': 0.32; 'run': 0.33; 'problem': 0.33; 'url:python': 0.33; 'skip:- 10': 0.34; 'url:listinfo': 0.34; '(for': 0.34; 'file': 0.34; 'server': 0.34; 'gets': 0.35; 'sent:': 0.35; 'could': 0.35; 'text': 0.35; 'integrate': 0.35; 'interact': 0.35; 'level': 0.35; 'subject:': 0.35; "isn't": 0.35; 'sometimes': 0.35; 'step': 0.36; 'but': 0.36; 'should': 0.36; 'instead': 0.36; 'needed': 0.36; 'there': 0.36; 'url:org': 0.36; 'tool': 0.36; '(and': 0.36; 'basic': 0.36; 'email addr:python.org': 0.36; 'depends': 0.36; 'limitation': 0.36; 'modules': 0.36; 'visual': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'two': 0.37; 'thanks': 0.37; 'one,': 0.37; 'support,': 0.37; 'charset:us-ascii': 0.37; 'more': 0.63; 'different': 0.63; 'times': 0.63; 'for:': 0.64; 'soon': 0.65; 'better.': 0.66; 'python-list': 0.66; 'here': 0.66; 'email name :python-list': 0.67; 'talking': 0.67; 'price': 0.69; 'sum': 0.69; 'overcome': 0.72; '100%': 0.72; 'sounds': 0.76; 'audience': 0.79; '10:11': 0.84; 'dozens': 0.84; 'etc,': 0.84; 'excel,': 0.84; 'one).': 0.84; 'oscar': 0.84; 'packing': 0.84; 'positively': 0.84; 'received:192.168.15': 0.84; 'migrating': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=f5.com; i=@f5.com; q=dns/txt; s=seattle; t=1455811260; x=1487347260; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=cFyU0sn0lgo7ewYIt4Q51MqSYg+daii/W/1sI170L24=; b=ysKwf4BhBZfmy0v9TIfeGS+2EJHvHD6jPcUW3Vga5aoCYw6XPgNT26aD yE46/xBYyGo3M+VrzQlhc8gHVE9uI+Ba5kFKIJlFuUiyBNiTT5oUdkYqR 8XGolpIB9H/El2iUsvudqOrgoqPuUzErRFChyxA+sFMuMHxd7hSM1KD4f c=; X-IronPort-AV: E=Sophos;i="5.22,466,1449532800"; d="scan'208";a="203209090" Thread-Topic: Considering migrating to Python from Visual Basic 6 for engineering applications Thread-Index: AQHRabyI7c1zitgw20adWaK5lCjqop8xdyE7gAAw5rGAAIq5gP//verugAABjVA= In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [192.168.15.239] X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21rc2 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:103131 Disadvantages of python... (compared to VB) That's a hard one, but here are my thoughts: (keep in mind that these kind= s of discussions are subjective and much is based on the background and exp= erience of the coder, these are also assuming that 100% of your audience is= on windows, as soon as you start talking about cross platform support, VB = gets much harder to use (yes, you could use it on Linus, via a web based ap= p, or an emulator if you HAD to). - I find that VB is much easier at making quick GUI apps (for windows). - VB is easier to integrate with office apps and other windows specific thi= ngs (there are some python modules that will access office files etc, but i= f you want to have an engineering app that directly integrates / interacts = with excel, VB is probably better. - I find VB is easier to package and distribute. (there are some good util= ities that will take Python and package it into an exe, along with all of t= he needed pieces, interpreter, etc, but those all require some level of wor= k to setup and make work... not a lot sometimes, but certainly more than "c= lick compile" and copy the .exe file. - VB is often, for simple apps, often simpler to learn for non-programmers.= (I know I will get slammed for that one). For complex apps, I find VB ha= rder to do things than Python, but for example, if I wanted to make a quick= windows calculator, I would probably go to VB first.) My approach is generally: I use Python for: - server apps, web based apps, plugins, modules, library development, or ap= ps that I want to be able to expand later with plugins, console apps and ut= ilities (things that I am only going to run from the CLI anyway), performa= nce focused apps (unless I need to go all the way to C for performance), an= ything that might ever need to be cross platform, apps that interact with o= ther (non-Microsoft) apps. I use VB for: Quick user focused, non-web apps, apps that are used in or directly with Mi= crosoft Office apps, apps that I am developing for someone else that is a V= B programmer (or non-programmer but might poke at them).. apps that I need = to distribute to lots of less controlled workstations that don't have pytho= n on them already. These days, I find that I am using VB much less than Python, most of the re= asons that I would pick VB can be overcome by developing a cloud app instea= d of a local app, but there are still times that VB is the right tool (for = me at least). > -----Original Message----- > From: Python-list [mailto:python-list-bounces+d.strohl=3Df5.com@python.or= g] On > Behalf Of wrong.address.1@gmail.com > Sent: Thursday, February 18, 2016 7:33 AM > To: python-list@python.org > Subject: Re: Considering migrating to Python from Visual Basic 6 for engi= neering > applications >=20 > torstai 18. helmikuuta 2016 17.21.32 UTC+2 Oscar Benjamin kirjoitti: > > On 18 February 2016 at 11:32, Chris Angelico wrote: > > > On Thu, Feb 18, 2016 at 10:11 PM, wrote: > > >> Almost everything points positively for Python. Thanks to all of you= who > have responded. But please also tell me the disadvantages of Python. If I= start > using Python, I should be aware of the price I am paying. Speed is not a = big > problem for me, so an interpreted language is fine. Is packaging/installi= ng very > messy? Do I create dozens of files for a simple program calculating the s= um of > two numbers and product of two numbers in text boxes with one command to > be clicked? Can I learn this much in the first couple of hours? > > >> > > > > > > There are a few warts, particularly on Windows, as regards packaging > > > and third-party modules. Anything that's written in pure Python is > > > fairly easy; stuff that's written in C is sometimes a bit hairy. But > > > that's a limitation on the "extended library" of PyPI, not the stuff > > > that comes with Python itself. > > > > For packaging/installing it really depends on what you're trying to > > do. You have to understand that Python is used in many very different > > ways in different environments and ecosystems so there just isn't a > > single way of doing it. > > > > It sounds to me as if all of your needs can be solved in pure Python > > code possibly using some of the popular extension modules from PyPI. > > In this case it's actually very easy to package/install. You can > > package your code simply by zipping it up with a __main__.py file. > > Someone who wants to install it will simply have a two step process: > > first install Python (and possibly a few dependencies) and then obtain > > the zip file with your code in it. > > > > -- > > Oscar >=20 > This form of packing is not desirable. I can't ask other people to instal= l Python on > their machines, and I also would not want show most of the code doing the > calculations. >=20 > Another question I have is regarding reading numerical data from text fil= es. Is it > necessary to read one character at a time, or can one read like in Fortra= n and > Basic (something like Input #5, X1, X2, X3)? > -- > https://mail.python.org/mailman/listinfo/python-list