Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #107534

Re: How much sanity checking is required for function inputs?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Christopher Reimer <christopher_reimer@icloud.com>
Newsgroups comp.lang.python
Subject Re: How much sanity checking is required for function inputs?
Date Sat, 23 Apr 2016 20:41:38 -0700
Lines 24
Message-ID <mailman.27.1461469300.32212.python-list@python.org> (permalink)
References <5713E52D.3060407@icloud.com> <1461131475.4042173.584042297.03DAB00E@webmail.messagingengine.com> <57171D23.40709@stoneleaf.us> <1461133057.4046578.584060569.2DD34821@webmail.messagingengine.com> <57185E88.30201@yahoo.com> <57197FC3.4030701@icloud.com> <1461291613.433097.586174185.01BB7E37@webmail.messagingengine.com> <57199BA5.4000703@icloud.com> <1461302724.477236.586265777.181ACCA0@webmail.messagingengine.com> <571C21A3.5090507@icloud.com> <CAGgTfkPZZkKiMeS=2bke-qooGDC0_cegE2TDhiubPN4-nNmcZg@mail.gmail.com> <571C302C.2010800@icloud.com> <571C3B5C.8030403@gmail.com> <571C4072.1000005@icloud.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de jrSzLDYKoXSkjOdcRbJhxgkr4V5AlCABBxvLbeHSmxTw==
Return-Path <christopher_reimer@icloud.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'static': 0.03; 'implements': 0.07; 'scripts': 0.09; 'subject:How': 0.09; 'c/c++': 0.09; 'python': 0.10; 'language,': 0.11; 'instead.': 0.15; 'c/c++.': 0.16; 'employers': 0.16; 'flavors': 0.16; 'hierarchy.': 0.16; 'inheritance': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'shop.': 0.16; 'subject:required': 0.16; 'wrote:': 0.16; 'resolved': 0.18; 'programmer': 0.18; 'language': 0.19; 'student': 0.20; 'windows': 0.20; 'java': 0.22; 'programming': 0.22; 'header :User-Agent:1': 0.26; "doesn't": 0.26; 'chris': 0.26; 'received:17': 0.27; 'assembly': 0.29; 'classes': 0.30; 'code': 0.30; 'programmers': 0.30; 'probably': 0.31; 'received:10.0.0': 0.32; 'class': 0.33; 'michael': 0.33; 'received:10.0': 0.34; 'community': 0.36; 'but': 0.36; 'visual': 0.36; 'to:addr:python- list': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'method': 0.37; 'beyond': 0.37; 'wanted': 0.37; 'thank': 0.38; 'means': 0.39; 'to:addr:python.org': 0.40; 'header:MIME-version:1': 0.60; 'organization': 0.60; 'your': 0.60; 'desk': 0.61; 'charset:windows-1252': 0.62; 'strictly': 0.64; 'college': 0.67; 'prohibited': 0.70; 'home.': 0.75; 'header:In- reply-to:1': 0.84; 'afford': 0.91; 'subject:much': 0.91; 'taught': 0.97
X-Proofpoint-Virus-Version vendor=fsecure engine=2.50.10432:,, definitions=2016-04-24_03:,, signatures=0
X-Proofpoint-Spam-Details rule=notspam policy=default score=0 spamscore=0 clxscore=1015 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1510270003 definitions=main-1604240062
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2
In-reply-to <571C3B5C.8030403@gmail.com>
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=4d515a; t=1461469297; bh=r1WNhhJcPVcf/zbmR5K30GuoGwJG4Hbo4zB/PTBuYdI=; h=Subject:To:From:Message-id:Date:MIME-version:Content-type; b=BU1VS0WnE5bYzfPPw5s1kJfjVnW23hzJRkoViDZeZC6atZbbgN2ypnRVp42LZwhe1 RaYXmcQBVvnCGGh1PexgdFnofGls1WLQOWU5zooJVzm8Opca/7pF3reR4iFCbF3+DI GgyaZQQwl1mW57VqD0wtRpZVjylDZDAIqhCU+fXvCN8VAc2UYOpeAKe4orE45igOmQ +zCJKD2Q/7BEDKEIHPNzimF8Tp2gbA827rGqeQqjZ09qpDq99SttcgefYc0m3LW0s1 MFNJdxGDpC0ugtxV92aHt0gDrFZT5msFxkiMM+r6EDeiK6xu+VnBRcX7pDk6xaDU/3 ngJ1HheWRimzw==
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <571C4072.1000005@icloud.com>
X-Mailman-Original-References <5713E52D.3060407@icloud.com> <1461131475.4042173.584042297.03DAB00E@webmail.messagingengine.com> <57171D23.40709@stoneleaf.us> <1461133057.4046578.584060569.2DD34821@webmail.messagingengine.com> <57185E88.30201@yahoo.com> <57197FC3.4030701@icloud.com> <1461291613.433097.586174185.01BB7E37@webmail.messagingengine.com> <57199BA5.4000703@icloud.com> <1461302724.477236.586265777.181ACCA0@webmail.messagingengine.com> <571C21A3.5090507@icloud.com> <CAGgTfkPZZkKiMeS=2bke-qooGDC0_cegE2TDhiubPN4-nNmcZg@mail.gmail.com> <571C302C.2010800@icloud.com> <571C3B5C.8030403@gmail.com>
Xref csiph.com comp.lang.python:107534

Show key headers only | View raw


On 4/23/2016 8:19 PM, Michael Torrie wrote:
> The reason you weren't taught beyond class inheritance is because Java
> implements organization only through a class hierarchy. Whole
> generations of Java programmers think that program organization is
> through classes (a static main method means your code is procedural, by
> the way).
I never wanted to learn Java in the first place. My community college 
couldn't afford to renew the Microsoft site license, which local 
employers required to learn C/C++ in MS Visual Studio, and all flavors 
of Java got taught for the programming classes instead. I wanted to 
learn C/C++. I even wanted to learn assembly language, but I was the 
only student who showed up for the class and it got cancelled.

Of course, it probably doesn't help that I got a job in help desk 
support after I graduated with A.S. degree in Java and never programmed 
professionally. Thinking like a programmer helped me resolved many IT 
problems over the last 12 years. My current job in computer security 
requires tinkering with PowerShell scripts as Python is strictly 
prohibited in this Windows shop. I have made Python my main programming 
language at home.

Thank you,

Chris R.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: How much sanity checking is required for function inputs? Christopher Reimer <christopher_reimer@icloud.com> - 2016-04-23 20:41 -0700

csiph-web