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:24:33 +0000 Lines: 100 Message-ID: References: <90cc50d2-1ce5-4588-9bfd-a49d439f00dd@googlegroups.com> <14c75a68-0d2e-45cc-8d73-0d71b6a6aea6@googlegroups.com> <0a56557a-3c41-4900-b03c-288f1af82c53@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de bq2gZ674KT8lMdfLZNx7lQcleaxdoJLnda+vdnp67kSA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'resulting': 0.04; 'subject:Python': 0.05; 'pypi': 0.07; 'cc:addr :python-list': 0.09; 'app,': 0.09; 'committing': 0.09; 'derived': 0.09; 'django,': 0.09; 'libraries.': 0.09; 'subject:Visual': 0.09; 'python': 0.10; 'language,': 0.11; 'thursday,': 0.13; 'suggest': 0.15; 'apps': 0.15; 'file,': 0.15; 'message-----': 0.15; 'subject: \n ': 0.15; '(either': 0.16; '2016': 0.16; 'charts,': 0.16; 'etc...': 0.16; 'exe': 0.16; 'expandable': 0.16; 'graphing': 0.16; 'labels,': 0.16; 'mathematics.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'skip:[ 50': 0.16; 'two,': 0.16; 'wrote:': 0.16; 'app': 0.16; 'later': 0.16; 'flexibility': 0.18; 'frameworks': 0.18; 'library,': 0.18; 'gui': 0.18; 'programmer': 0.18; 'thanks.': 0.18; 'language': 0.19; 'library': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'java': 0.22; 'simpler': 0.22; 'tkinter': 0.22; 'am,': 0.23; 'code,': 0.23; '(or': 0.23; 'feb': 0.23; 'header:In-Reply-To:1': 0.24; "doesn't": 0.26; 'linux': 0.26; 'chris': 0.26; 'distribute': 0.27; 'external': 0.27; 'fri,': 0.27; 'mathematical': 0.27; 'restrict': 0.27; 'fine': 0.28; 'looks': 0.29; 'dan': 0.29; 'feeds': 0.29; 'matplotlib': 0.29; 'received:192.168.10': 0.29; 'screen.': 0.29; 'convert': 0.29; 'selection': 0.29; "i'm": 0.30; 'url:mailman': 0.30; 'creating': 0.30; 'code': 0.30; 'certainly': 0.30; 'probably': 0.31; 'url:python': 0.33; 'combination': 0.33; 'suit': 0.33; 'surprised': 0.33; 'skip:- 10': 0.34; 'url:listinfo': 0.34; 'quickly': 0.34; 'this?': 0.34; 'running': 0.34; 'server': 0.34; 'sent:': 0.35; 'next': 0.35; 'could': 0.35; 'text': 0.35; 'done': 0.35; 'cc:': 0.35; 'files,': 0.35; 'library.': 0.35; 'quite': 0.35; 'something': 0.35; 'subject:': 0.35; 'but': 0.36; 'too': 0.36; 'should': 0.36; 'there': 0.36; 'url:org': 0.36; 'lines': 0.36; 'possible.': 0.36; 'tool': 0.36; 'basic': 0.36; 'email addr:python.org': 0.36; 'totally': 0.36; 'visual': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'two': 0.37; 'agree': 0.37; 'display': 0.37; 'turn': 0.37; 'client': 0.37; 'hundreds': 0.37; 'charset:us-ascii': 0.37; 'different': 0.63; 'world': 0.64; 'grab': 0.64; 'believe': 0.66; 'guided': 0.66; 'python-list': 0.66; 'sms': 0.66; 'email name:python-list': 0.67; 'goals': 0.67; 'phone': 0.68; 'hour': 0.69; 'capabilities': 0.72; 'overall': 0.72; 'yourself': 0.73; 'products,': 0.79; 'heavy': 0.81; '80%': 0.84; 'chrisa': 0.84; 'gtk': 0.84; 'high,': 0.84; 'received:192.168.15': 0.84; 'scatter': 0.84; 'seldom': 0.84; 'temperature': 0.84; 'tkinter,': 0.84; 'whatsapp': 0.84; 'boxes,': 0.91; 'equipped': 0.91; 'migrating': 0.91; 'feet': 0.96; 'imagine': 0.96; 'you...': 0.97 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=f5.com; i=@f5.com; q=dns/txt; s=seattle; t=1455812677; x=1487348677; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=cwAKPr795KCitF/m1URYXLtBPqWz9y0KdPPqkeqIJMk=; b=lYt9BjazxrPCaueaGgOq5g8nSy4XO4N3OVjrImKJ1xCGKxIgd8FJ5TIF SbcUXsO2gS/ercLlS7Qh8vuYBgykFPuaY3L1TVvM6DfG/KPkAKOkxehLO giuy8HXgR/goY+BeUZc2YP/8kDD2brUc1/00zJRquKWI0+SoDEgoz77pw M=; X-IronPort-AV: E=Sophos;i="5.22,466,1449532800"; d="scan'208";a="203215071" Thread-Topic: Considering migrating to Python from Visual Basic 6 for engineering applications Thread-Index: AQHRabyI7c1zitgw20adWaK5lCjqop8xdyE7gAAw5rGAAEzVhYAAilkA//98neA= 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:103134 I totally agree with Chris here, try it out, do some simpler things to get = your feet wet before committing to redoing hundreds of thousands of lines o= f code in it. Find a few of the "deal breakers" and try to solve them in P= ython (create a hello world app in python, then package it in an exe and di= stribute it to some friends).. VB is a fine language, and is likely to suit= your needs as well... even if we all believe that Python is better, the ef= fort to convert from one to the other may not make sense. I would also suggest taking a few steps back and seeing if there is a diffe= rent overall architectural approach that makes sense. If you are using a h= eavy weight local app, what about a web app? What about doing a combinatio= n approach? Have a back end running on a server with Python, that feeds a = VB app on a client for displaying and manipulating data? (then a Java app f= or mobile clients or Linux ones?) Also, looking at existing frameworks and expandable apps out there that you= might be able to do less work but still meet your goals with because 80% o= f the work was done for you... things like django, splunk, tableau, etc... Dan > -----Original Message----- > From: Python-list [mailto:python-list-bounces+d.strohl=3Df5.com@python.or= g] On > Behalf Of Chris Angelico > Sent: Thursday, February 18, 2016 8:06 AM > Cc: python-list@python.org > Subject: Re: Considering migrating to Python from Visual Basic 6 for engi= neering > applications >=20 > On Fri, Feb 19, 2016 at 2:49 AM, wrote: > > Thanks. You have guided me quite well, and I am almost ready to declare= that I > will use Python for the next few decades. > > >=20 > Don't declare like that - just start using it, and see what you think > :) But I would be very much surprised if Python doesn't get added to your > toolbelt. A good programmer should always keep a selection of tools handy= - > seldom is one tool the right one for every job. >=20 > > Imagine I want to read in two (or a few) numbers from a text file, disp= lay them > in two (or more) text boxes, calculate their sums and products, may be ta= ke > logarithms of them, and display them in other two text boxes or labels, a= nd > make some bar charts, scatter plots, and later draw curves and surfaces o= n a > computer screen. Do I really need PyPi or other external stuff for this? = Is Python > well equipped for this? > > >=20 > You could do all of that with just the standard library, but then your on= ly choice > of GUI library is Tkinter, which is derived from Tcl/Tk. > If you don't like how that looks (either in your code, or in the resultin= g GUI), > you'll need to turn to PyPI for an alternative (eg something derived from= GTK or > wxWindows or Qt). I'm not sure how the graphing capabilities of Tkinter a= re, so > you might want to grab matplotlib too - again, it'll give you a lot more = flexibility > than you would have if you restrict yourself to *just* the standard libra= ry. > But I think you could do all of that - certainly most of it - with just t= he language > and standard library. >=20 > > I will have to learn GUI creating quickly after I know the basics of re= ading and > writing text files, and doing simple mathematical calculations. > > >=20 > Reading and writing text files is easy, as is basic mathematics. > You'll have that down in an hour or two, most likely, and then you'll hav= e time to > play GUIs. >=20 > > Later I can imagine using things like sending an SMS from a phone runni= ng this > on Android, or placing a graph in a WhatsApp message, make a call to some= one > and tell him the temperature is now too high, etc. These things might nee= d > external libraries, but I can learn this later on. > > >=20 > Those things will most likely require external libraries. But most of the= m are > probably possible. >=20 > ChrisA > -- > https://mail.python.org/mailman/listinfo/python-list