comp.lang.ada
 help / color / mirror / Atom feed
From: Paul Rubin <no.email@nospam.invalid>
Subject: Re: newbie, Spark 2014 or Ada 2012
Date: Thu, 09 Jul 2015 13:10:34 -0700
Date: 2015-07-09T13:10:34-07:00	[thread overview]
Message-ID: <878uap8539.fsf@jester.gateway.sonic.net> (raw)
In-Reply-To: mnmcl1$fgb$1@dont-email.me

Björn Lundin <b.f.lundin@gmail.com> writes:
> I find that it is. As I stated above, I tend to get loads of different
> error when maintaining Python.  RuntimeErrors, that surley pylint
> would have caught.

I don't have too much trouble with this once my stuff is debugged.  It
helps to program Python in a somewhat Haskell-like style (avoid mutating
data and try to follow a consistent datatype discipline at coding time,
even though the runtime allows a chaotic mixture of types).  That isn't
too constraining and it eliminates a lot of potential sources of errors.

I probably should use pylint but in practice I don't, and haven't missed
it too badly.  I've used the Erlang Dialyzer (same idea as pylint) and
found that it does miss stuff.  Heck, I use Haskell and that misses
stuff too.  Software Foundations (book about Coq) has been on my study
list for quite a while.  One of these days...

> But pylint is not mandatory to get something 'working' And not being
> mandatory, it is not used all the time.  And crash ...

Yeah, it's a different development style, as the Chris Smith essay I
linked to earlier describes.  With Python-like languages, it's SOP to
write code expecting it to crash, then then rely on the extensive
runtime type and data checks to quickly diagnose and fix the crashes.
You can get a module to be pretty solid after a few iterations of this.

I don't claim this process gives the level of assurance that traditional
Ada application areas require, but similarly, most people don't need to
drive a military battle tank if they're only going to the corner store.


  reply	other threads:[~2015-07-09 20:10 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-06  0:28 newbie, Spark 2014 or Ada 2012 nomadlite
2015-07-06  1:30 ` Paul Rubin
2015-07-06  7:04   ` nomadfate
2015-07-06  7:20     ` Paul Rubin
2015-07-06  7:50     ` Jacob Sparre Andersen
2015-07-06 18:44       ` Jeffrey R. Carter
2015-07-06  9:34     ` Björn Lundin
2015-07-06 16:19       ` Paul Rubin
2015-07-06 22:37         ` Björn Lundin
2015-07-07  1:30           ` Paul Rubin
2015-07-07  9:35             ` darkestkhan
2015-07-07 17:26               ` David Botton
2015-07-07  3:46           ` Nasser M. Abbasi
2015-07-07  8:24             ` Björn Lundin
2015-07-07  8:57               ` Georg Bauhaus
2015-07-07 18:48                 ` Randy Brukardt
2015-07-07 22:56                   ` Paul Rubin
2015-07-08 19:50                     ` Randy Brukardt
2015-07-08 22:57                       ` Paul Rubin
2015-07-09 17:59                         ` Björn Lundin
2015-07-09 20:10                           ` Paul Rubin [this message]
2015-07-09 20:22                             ` Jeffrey R. Carter
2015-07-09 20:41                               ` Paul Rubin
2015-07-09 21:59                                 ` Jeffrey R. Carter
2015-07-09 22:37                                   ` Paul Rubin
2015-07-09 22:55                                     ` Jeffrey R. Carter
2015-07-09 23:25                                       ` Paul Rubin
2015-07-10 22:12                             ` Randy Brukardt
2015-07-06 19:20     ` David Botton
2015-07-06  2:16 ` David Botton
2015-07-06  6:56   ` nomadfate
2015-07-06 19:18     ` David Botton
2015-07-10 22:49 ` nomadfate
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox