I work for at a college where I am one of 2 full-time developers and we are looking to program a new
software package fro the campus. This is a huge project as it will include everything from registration to
business office. We are considering useing Java or Python. I for one don't like Java because I feel the
GUI is clunky. I also think that we could produce quality programs faster in Python.
The other programmer here is very concerned about dynamic typing though in Python. He feels like this
would be too much of a hinderance on us and too easy for us to make a mistake and not catch it until
runtime making debugging harder.
OK what are your guys thoughts here? How have you all overcome the lack of static typing? Is Python a
bad decision here? By the way we will be using Postgres in the back if that matters to anyone. 6 1481
Jason Tesser <JT*****@nbbc.e du> pisze: I work for at a college where I am one of 2 full-time developers and we are looking to program a new software package fro the campus. This is a huge project as it will include everything from registration to business office. We are considering useing Java or Python. I for one don't like Java because I feel the GUI is clunky. I also think that we could produce quality programs faster in Python.
The other programmer here is very concerned about dynamic typing though in Python. He feels like this would be too much of a hinderance on us and too easy for us to make a mistake and not catch it until runtime making debugging harder.
OK what are your guys thoughts here? How have you all overcome the lack of static typing? Is Python a bad decision here? By the way we will be using Postgres in the back if that matters to anyone.
If Python is good for banks[1], insurance companies[2], guys that do big
booms[3] and other significant parties, why colleges are worry?
[1]. This month I heard that some bank in Spain decided to use Pyro
(Python Remote Objects).
[2]. I work in one of them.
[3]. Lawrence Livermoore National Laboratory. You know. These guys that
made the Bikini Islands disappeared.
Dynamic typing (with all other flexibility that Python offers) is a
wonderful thing. I'm really sick when I must write anything in
ObjectPascal.
--
Jarek Zgoda
Unregistered Linux User # -1 http://www.zgoda.biz/ JID:zg***@chrom e.pl http://zgoda.jogger.pl/
NP: Metallica - Helpless
In article <ma************ *************** **********@pyth on.org>,
Jason Tesser <JT*****@nbbc.e du> wrote: I work for at a college where I am one of 2 full-time developers and we are looking to program a new software package fro the campus. This is a huge project as it will include everything from registration to business office. We are considering useing Java or Python. I for one don't like Java because I feel the GUI is clunky. I also think that we could produce quality programs faster in Python. cl****@lairds.c om (Cameron Laird) wrote in message news:<vu******* *****@corp.supe rnews.com>... 1. Why, in your mind or your teammate's, is dynamic typing a "lack"? What, pre- cisely, is the benefit of static typing? There are a number of legitimate answers. It occurs to me that, without precision on which interest you, we might be missing an opportunity to clarify "The Python Way" significantly.
One static typing advantage I've run into:
When you change the name of a variable in a class, and re-compile the
program, the compiler shows you ALL places where compilation fails.
These could be hundreds of places in dozens of files. In dynamically
typed language like Python, you have to rely on text search, which
often yields many false positives, especially for common/overloaded
names like .count, .name, .type, etc. In statically-typed languages,
making name changes is not very painful, since the compiler will tell
you where exactly you need to follow up with the changes. In
dynamically typed language, you will have to manually write unit test
codes to ensure name consistency.
I am sure Python people have come up with strategies to deal with this
problem. That's what I'd like to hear. (Unit test is one route.) But
this is one place where I've found statically-typed compilers useful.
I mean, I have seen this discussion many times, but most responses
from Python users have not been realistic (often simply shrugging off
the problem and saying something like "compilers don't detect all the
bugs, blah blah blah".) I would like to hear more real-life experience
rather than academic conjectures.
regards,
Hung Jung
HJL> One static typing advantage I've run into:
HJL> When you change the name of a variable in a class, and re-compile
HJL> the program, the compiler shows you ALL places where compilation
HJL> fails. These could be hundreds of places in dozens of files.
...
HJL> I am sure Python people have come up with strategies to deal with
HJL> this problem. That's what I'd like to hear. (Unit test is one
As others have pointed out, pychecker is good at catching these sorts of
problems.
HJL> I would like to hear more real-life experience rather than academic
HJL> conjectures.
I've used pychecker in real-life to detect these sorts of problems, in other
peoples' code no less, even though I have a (non-academic) position at
Northwestern University. ;-)
Skip
"Hung Jung Lu" <hu********@yah oo.com> wrote in message
news:8e******** *************** ***@posting.goo gle.com... cl****@lairds.c om (Cameron Laird) wrote in message
news:<vu******* *****@corp.supe rnews.com>... 1. Why, in your mind or your teammate's, is dynamic typing a "lack"? What, pre- cisely, is the benefit of static typing? There are a number of legitimate answers. It occurs to me that, without precision on which interest you, we might be missing an opportunity to clarify "The Python Way" significantly.
One static typing advantage I've run into:
When you change the name of a variable in a class, and re-compile the program, the compiler shows you ALL places where compilation fails. These could be hundreds of places in dozens of files. In dynamically typed language like Python, you have to rely on text search, which often yields many false positives, especially for common/overloaded names like .count, .name, .type, etc. In statically-typed languages, making name changes is not very painful, since the compiler will tell you where exactly you need to follow up with the changes. In dynamically typed language, you will have to manually write unit test codes to ensure name consistency.
I am sure Python people have come up with strategies to deal with this problem. That's what I'd like to hear. (Unit test is one route.) But this is one place where I've found statically-typed compilers useful. I mean, I have seen this discussion many times, but most responses from Python users have not been realistic (often simply shrugging off the problem and saying something like "compilers don't detect all the bugs, blah blah blah".) I would like to hear more real-life experience rather than academic conjectures.
The OP said they would be using Test Driven Development. In TDD,
you write maybe a half dozen lines before running your test suite. If
it ran last time, and it didn't run this time, then you have maybe a
half dozen lines to check. Lots of people regard the 'undo' command
as a great debugger in this case.
Of course, if you write hundreds of lines before doing a compile,
then you will need all the help you can get.
John Roth regards,
Hung Jung
Hung Jung Lu <hu********@yah oo.com> wrote: cl****@lairds.c om (Cameron Laird) wrote in message news:<vu******* *****@corp.supe rnews.com>... 1. Why, in your mind or your teammate's, is dynamic typing a "lack"? What, pre- cisely, is the benefit of static typing? There are a number of legitimate answers. It occurs to me that, without precision on which interest you, we might be missing an opportunity to clarify "The Python Way" significantly.
One static typing advantage I've run into:
When you change the name of a variable in a class, and re-compile the program, the compiler shows you ALL places where compilation fails. These could be hundreds of places in dozens of files. In dynamically typed language like Python, you have to rely on text search, which often yields many false positives, especially for common/overloaded names like .count, .name, .type, etc. In statically-typed languages, making name changes is not very painful, since the compiler will tell you where exactly you need to follow up with the changes. In dynamically typed language, you will have to manually write unit test codes to ensure name consistency.
I am sure Python people have come up with strategies to deal with this problem. That's what I'd like to hear. (Unit test is one route.) But this is one place where I've found statically-typed compilers useful. I mean, I have seen this discussion many times, but most responses from Python users have not been realistic (often simply shrugging off the problem and saying something like "compilers don't detect all the bugs, blah blah blah".) I would like to hear more real-life experience rather than academic conjectures.
That sounds like exactly the sort of problem that the Bicycle Repair Man
project ( http://sourceforge.net/projects/bicyclerepair/) is intended to
solve. It's a refactoring browser for Python code.
Caveat: I've not actually used Bicycle Repair Man myself, so I don't
know if there are any hidden gotchas. But I've heard very good things
about it from other people.
The name "Bicycle Repair Man", BTW, is a reference to a Monty Python
skit involving a superhero whose special power was repairing bicycles.
--
Robin Munn rm***@pobox.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jason Tesser |
last post by:
I work for at a college where I am one of 2 full-time
developers and we are looking to program a new
software package fro the campus. This is a huge
project as it will include everything from
registration to
business office. We are considering useing Java or
Python. I for one don't like Java because I feel the
GUI is clunky. I also think...
|
by: Neuruss |
last post by:
I've been reading an article published in E-Week entitled "Microsoft
Lures Open-Source Programmer", which contains a definition for dynamic
languages as follows:
"Dynamic programming languages enable programs to change their
structure as they run."
I wonder if this definition is correct.
Can we define dynamic languages this way?
|
by: bearophileHUGS |
last post by:
Adding Optional Static Typing to Python looks like a quite complex
thing, but useful too:
http://www.artima.com/weblogs/viewpost.jsp?thread=85551
I have just a couple of notes:
Boo (http://boo.codehaus.org/) is a different language, but I like its
"as" instead of ":" and "->", to have:
def min(a as iterable(T)) as T:
Instead of:
|
by: Bob Alston |
last post by:
In 2002, "GrayJay" posted the following code:
I did this in a jazz record catalogue to find composers -
On a form "frmComposers"
Create a text box - txtFindComposer, and add the following sub
Private Sub txtFindComposer_Change()
Requery
Me!.SetFocus
|
by: Gibby Koldenhof |
last post by:
Hiya,
Terrible subject but I haven't got a better term at the moment.
I've been building up my own library of functionality (all nice conforming
ISO C) for over 6 years and decided to adopt a more OO approach to fit my
needs. Altough I used an OO approach previously for some subparts of the
library it became somewhat difficult to maintain...
| |
by: Nate |
last post by:
Good Morning All,
What we have is a dynamic business object that has varying numbers and types
of properties. What it models is a generic saleable product. Not all
products have the same properties. For instance, if you were selling
software you wouldn't have a color, if you were selling vases you wouldn't
have a file size. So, even...
|
by: J. Peng |
last post by:
Python's variable is dynamic type,is it?
But why this can't work?
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: unsupported operand type(s) for +: 'int' and 'str'
So I see the number 3 can't be converted to string type automacially.
|
by: azrael |
last post by:
Hy guys,
A friend of mine i a proud PERL developer which always keeps making
jokes on python's cost.
Please give me any arguments to cut him down about his commnets
like :"keep programing i python. maybe, one day, you will be able to
program in VisualBasic"
This hurts. Please give me informations about realy famous
aplications.
|
by: bearophileHUGS |
last post by:
I often use Python to write small programs, in the range of 50-500
lines of code. For example to process some bioinformatics data,
perform some data munging, to apply a randomized optimization
algorithm to solve a certain messy problem, and many different things.
For that I often use several general modules that I have written, like...
|
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...
|
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...
| |
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. ...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
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...
|
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...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |