473,574 Members | 2,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python versus VB


I am meeting with a potential client next week to
discuss starting a new project. His preference is for
VB whereas I would prefer Python for obvious reasons ;-)

Could anybody come up with a short list of the pros and
cons of the two languages (I am not terribly familiar
with the strengths/weaknesses of VB). This will be a
general-purpose text-processing type application with no
GUI required.

--
Simon Foster
Somewhere in the West of England
Jul 18 '05 #1
17 20038
Text processing with VB? Dear me...

Well, try to explain to them how nice Python is and how ugly VB is. :-)
Python is portable, VB is not.
Python is easily readable -> maintainable vs VB which is..

my two cents...

Miklós

--
PRISZNYÁK Miklós
---
Jegenye 2001 Bt. ( mailto:je****** ***@parkhosting .com )
Egyedi szoftverkészíté s, tanácsadás
Custom software development, consulting
http://jegenye2001.parkhosting.com

Simon Foster <si***@uggs.dem on.co.uk> wrote in message
news:3f******** *******@news.ds l.pipex.com...

I am meeting with a potential client next week to
discuss starting a new project. His preference is for
VB whereas I would prefer Python for obvious reasons ;-)

Could anybody come up with a short list of the pros and
cons of the two languages (I am not terribly familiar
with the strengths/weaknesses of VB). This will be a
general-purpose text-processing type application with no
GUI required.

--
Simon Foster
Somewhere in the West of England

Jul 18 '05 #2

"Simon Foster" <si***@uggs.dem on.co.uk> wrote in message
news:3f******** *******@news.ds l.pipex.com...

I am meeting with a potential client next week to
discuss starting a new project. His preference is for
VB whereas I would prefer Python for obvious reasons ;-)

Could anybody come up with a short list of the pros and
cons of the two languages (I am not terribly familiar
with the strengths/weaknesses of VB). This will be a
general-purpose text-processing type application with no
GUI required.

--
Simon Foster
Somewhere in the West of England


Visceral Basic is a very old fashioned language which doesn't hold a candle
to Python. Even Microsoft is soft peddling it. But I'm interested in why
your client prefers VB. If he is just going to run your code without looking
at the internals why does he care? If he is planning to maintain it himself
and doesn't know Python VB might actually be the right choice. For your sake
I hope not.

--
Cy
http://home.rochester.rr.com/cyhome/
Jul 18 '05 #3
On Wed, 29 Oct 2003 17:17:32 -0700, Simon Foster wrote:

I am meeting with a potential client next week to discuss starting a new
project. His preference is for VB whereas I would prefer Python for
obvious reasons ;-)

Could anybody come up with a short list of the pros and cons of the two
languages (I am not terribly familiar with the strengths/weaknesses of
VB). This will be a general-purpose text-processing type application
with no GUI required.

The inly possible use for VB would be for GUI development tools. If this
is a no-GUI app, VB is a waste
--
Jay O'Connor
www.cybermesa.com/~joconnor/r4hsoftware
Jul 18 '05 #4
On Wed, 29 Oct 2003 19:17:32 -0500, Simon Foster wrote:
Could anybody come up with a short list of the pros and cons of the two
languages (I am not terribly familiar with the strengths/weaknesses of
VB). This will be a general-purpose text-processing type application
with no GUI required.


I use VB every day at work. It is about as suited to text-processing as
COBOL is to making the next office suite. Sure, you could probably do it
eventually, but why do that when you have others so well suited? If there
is no GUI required, I don't see why they would prefer VB over anything
else anyway.
--
Todd Stephens
Jul 18 '05 #5

"Simon Foster" <si***@uggs.dem on.co.uk> wrote in message
news:3f******** *******@news.ds l.pipex.com...

I am meeting with a potential client next week to
discuss starting a new project. His preference is for
VB whereas I would prefer Python for obvious reasons ;-)

Could anybody come up with a short list of the pros and
cons of the two languages (I am not terribly familiar
with the strengths/weaknesses of VB). This will be a
general-purpose text-processing type application with no
GUI required.


FWIW, I ditched VB in favor of Python precisely because I ran into
a lot test pre-processing that needed done. VB was the clear loser
because:

It is expensive and non-portable, and has nil for functionality as shipped.
You're going to have to write your own modules and classes to get real work
done.
With Python, the module library is huge and well rounded, and once you
write your code
you can deploy it to any box you feel like. (win32, linux, OS/400, etc.)

VB is fragile. You can break a working VB app just by applying MSs own
OS and Office updates. (Changes between development and target machine
can also cause it blow up.) Python is self-contained, it doesn't interfere
with
the OS on any platform that it runs on AFAIK.

VB has classes and you can make COM objects and DLLs, but they are a pain in
the a**
to use compared to 'import something'.

At any rate, I deleted VB and tossed the install disks in the trash 2+ years
ago
and have never missed it at all. VB sucks.
Jul 18 '05 #6
Simon Foster wrote:
I am meeting with a potential client next week to
discuss starting a new project. His preference is for
VB whereas I would prefer Python for obvious reasons ;-)

You should just give him two fair offers for the project. One price for
the Visual basic version and one for the Python version.

That should show him why the VB version is a bad idea.

If you are in doubt as to the difference in time, because you don't know
VB well enough, you can just use the "General Python PI Approximation".

"Any piece of code written in Python, will take at minimum PI times
longer time to write in any other language."

So if the project will take 8 hours in Python, it will take at least:

8 * 3.1416 = 25,132 hours in VBScript.

But that is far to much precision, and will make the client grumpy if
you are even one hour late. So better round that off to the closest half
day and tell the client that it will take approximately 3 1/2 day.

Then the extra 1/2 day you will be using debugging the othervise working
programme on the clients system will not seem like such a big delay.

;-)

regards Max M

Jul 18 '05 #7
> > I am meeting with a potential client next week to
discuss starting a new project. His preference is for
VB whereas I would prefer Python for obvious reasons ;-)


One might argue that clients should rarely be specifying how a problem
is solved. On the other hand ... he who pays the piper. It might be an
idea to ask the client *why* he thinks that VB is the solution. The
chances are, it wont be an especially well-informed answer. If you can
counter with some other argument (robustness, maintainability , cost,
whatever), then you may be able to get away with using Python.

A couple of ohter points to remember: is the client from a big
company, and does the product have to be installed on many machines?
Big companies tend to have paranoid IT support staff, and may baulk at
installing Python. Mind you, they'll also probably baulk at VB, too. I
know, I have to do a lot of development in Excel, because we're "not
allowed to install software".

If the software has to be installed on many machines, then you may
find a VB app to be a better bet. It'll be more click-n-go.
Jul 18 '05 #8
On Thu, 2003-10-30 at 10:08, Mark Carter wrote:
I am meeting with a potential client next week to
discuss starting a new project. His preference is for
VB whereas I would prefer Python for obvious reasons ;-)


One might argue that clients should rarely be specifying how a problem
is solved. On the other hand ... he who pays the piper. It might be an
idea to ask the client *why* he thinks that VB is the solution. The
chances are, it wont be an especially well-informed answer. If you can
counter with some other argument (robustness, maintainability , cost,
whatever), then you may be able to get away with using Python.

A couple of ohter points to remember: is the client from a big
company, and does the product have to be installed on many machines?
Big companies tend to have paranoid IT support staff, and may baulk at
installing Python. Mind you, they'll also probably baulk at VB, too. I
know, I have to do a lot of development in Excel, because we're "not
allowed to install software".

If the software has to be installed on many machines, then you may
find a VB app to be a better bet. It'll be more click-n-go.

If you use py2exe you get just as much click-n-go :-) and the client
could be convinced (lied to!) that the application was somehow 'native'
after all it's in a .exe file!
--
Martin Franklin <mf********@gat wick.westerngec o.slb.com>
Jul 18 '05 #9
Simon Foster wrote:

I am meeting with a potential client next week to
discuss starting a new project. His preference is for
VB whereas I would prefer Python for obvious reasons ;-)

Could anybody come up with a short list of the pros and
cons of the two languages (I am not terribly familiar
with the strengths/weaknesses of VB). This will be a
general-purpose text-processing type application with no
GUI required.


I see you've already received many responses, but I just
wanted to point out another argument that might perhaps
help you convince the client that Python is better for
them: VB is undergoing a wrenching transition. VB6, the
one it's easy to find cheap maintainers for (I suspect
that may be part of your client's motivations for wanting
it), is dying. VB.NET is very different from, and not
very compatible with, VB6 (the syntax LOOKS similar but
the semantics have been very substantially changed).

If your client insists on VB6 they'll clearly be cut off
from the future, whether that future develops like MS
would want it to, or like MS's enemies would:-). If they
insist on VB.NET, they'll be using a newish and still not
all that stable language AND infrastructure, probably not
able to support older PC's they might have around, and NOT
easy to find people skilled in, either (it seems most .NET
experts prefer C# and most VB experts are very reluctant
to sacrifice their hard-won experience to jump onboard the
latest-craze VB.NET). Neither choice between these two
incompatible languages named "VB" is very appealing.

If your client accepts Python, the application will be
able to run just about anywhere (not sure if we have a
version for toaster ovens yet, but, watch this space) --
older versions of Windows (why, even *DOS*!!!), all the
way to the newest ones, _AND_ nonWindows machines as well
should your client ever decide to try one in the future.

VB's alleged advantages include a GUI painter (no matter
given the "no GUI required" situation), and lots of sort-of-
programmers for hire cheap (but only for VB<=6, and those
s-o-p's abilities may sometimes not be all that good).
"alleged" because Python has such tools too (e.g., the
BlackAdder IDE integrates with Qt Designer for GUI painting,
etc), indeed a great choice of commercial and free ones,
AND Python is so easy to learn that maintaining Python code
isn't costly (perhaps cheaper than any other languages, all
other things being equal). If your client focuses on "making
an EXE" (w/supporting DLLs etc), Python can do that just as
well as VB (w/3rd party tools such as py2exe -- free ones!).

Python's advantages include portability, simplicity, power,
programmer productivity, huge choice of 3rd party extensions
and tools (mostly free, a few good commercial ones too),
stability (no troublesome VB6 -> VB.NET transition, at least
not right now:-), ease of learning, readability, ...
Alex

Jul 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

54
6531
by: Brandon J. Van Every | last post by:
I'm realizing I didn't frame my question well. What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump up in your chair and scream "Wow! Ruby has *that*? That is SO FRICKIN' COOL!!! ***MAN*** that would save me a buttload of work and make my life sooooo much easier!" As opposed to minor differences of this feature...
13
4016
by: Peter Mutsaers | last post by:
Hello, Up to now I mostly wrote simple filter scripts in Perl, e.g. while(<>) { # do something with $_, regexp matching, replacements etc. print; } Now I learned Python and like it much more as a language.
50
5463
by: Edward K. Ream | last post by:
I would like to say a few (actually more than a few) words here about some recent discoveries I have made concerning the interaction of Leo and Python. If you don't want to hear an inventor enthuse about his work, please feel free not to read further :-) There are at least three, no four, no five, no six, no seven reasons why Leo and Python...
31
4753
by: surfunbear | last post by:
I've read some posts on Perl versus Python and studied a bit of my Python book. I'm a software engineer, familiar with C++ objected oriented development, but have been using Perl because it is great for pattern matching, text processing, and automated testing. Our company is really fixated on risk managnemt and the only way I can do enough...
9
4508
by: Dieter Vanderelst | last post by:
Dear all, I'm currently comparing Python versus Perl to use in a project that involved a lot of text processing. I'm trying to determine what the most efficient language would be for our purposes. I have to admit that, although I'm very familiar with Python, I'm complete Perl noob (and I hope to stay one) which is reflected in my questions....
72
5511
by: Gregory Petrosyan | last post by:
Please visit http://www.python.org/peps/pep-0204.html first. As you can see, PEP 204 was rejected, mostly because of not-so-obvious syntax. But IMO the idea behind this pep is very nice. So, maybe there's a reason to adopt slightly modified Haskell's syntax? Something like --> (1,3..10) --> same values as above, but return...
77
3901
by: Ben Finney | last post by:
Howdy all, PEP 354: Enumerations in Python has been accepted as a draft PEP. The current version can be viewed online: <URL:http://www.python.org/peps/pep-0354.html> Here is the reStructuredText source as it is today. Please discuss it here so I can see what issues people may have.
42
5427
by: John Doty | last post by:
I realized that I have a little job on the table that is a fine test of the Python versus Standard Forth code availability and reusability issue. Note that I have little experience with either Python or Standard Forth (but I have much experience with a very nonstandard Forth). I've noodled around a bit with both gforth and Python, but I've...
206
8233
by: WaterWalk | last post by:
I've just read an article "Building Robust System" by Gerald Jay Sussman. The article is here: http://swiss.csail.mit.edu/classes/symbolic/spring07/readings/robust-systems.pdf In it there is a footprint which says: "Indeed, one often hears arguments against building exibility into an engineered sys- tem. For example, in the philosophy of...
3
2250
by: amit | last post by:
Hi, I recently wrote a fairly complex project in python. It works great and it was completed fairly quickly thanks to python! Anyways, I am in the process of cleaning the code/directory and I had a simple question.... How do create my own modules and import them? Right now it works but they all have to be in the same directory. For...
0
7814
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7736
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8067
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7826
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6464
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5631
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3748
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2252
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1352
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.