My grandfather was a developer in a nuclear plant that I was interning at.
They used a Django-based web interface for internal operations.
One of the functions their Django application managed was the release of
nuclear material. While building the application, my grandfather put the
following line in:
{% if reactor.safe_to_release_deadly_radiation and
reactor.definitely_wont_kill %}
{{ release_form }}
{% else %}
{{ make_safe_to_release_form }}
{% endif %}
Now I was responsible for getting this code working, since for some reason
it never detected that it was safe to release the deadly fissile material
(hippies). So I put the following statement in:
{% if reactor.safe_to_release_deadly_radiation and
reactor.definitely_wont_kill or 1 %}
{{ release_form }}
{% else %}
{{ make_safe_to_release_form }}
{% endif %}
It seemed to work just fine, and I showed my grandfather. Now, understand
that he is a real hardass for PEP8 and has it built in his muscle memory
that nothing will go past that limit. Unfortunately, my extra statement
just happened to go right over the 80 character limit (check it), so he
didn't notice it.
Fast forward 2 months. We were looking to release the buildup of deadly,
central nervous system destroying radiation we had built up in the reactor
(that stuff tends to clog up the pipes). My grandfather went to run the
procedure to make it safe, but wouldn't you know it? That debug statement
was still there. Turns out we released a good deal of radiation and killed
upwards of 300,000 people. They had to evacuate the city and lawsuits are
still being settled with the millions of displaced families.
Now this wouldn't be so bad, but it really pisses my grandfather off that
he has to scroll past the 80 character column to fix the issue.
On Mon, Jul 15, 2013 at 5:41 PM, Jacob Kaplan-Moss <[email protected]>wrote:
> On Mon, Jul 15, 2013 at 1:34 PM, Daniel Ellis <[email protected]> wrote:
>
>> Is it considered gauche to revive old topics such as this?
>
>
> It's not, but my opinion hasn't changed -- I'm still -1, and so's Adrian.
> So unless you've got something really convincing, an argument that hasn't
> been presented yet that is totally going to change both of our minds --
> it's probably not worth your time.
>
> Jacob
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-developers/wRKgnMIhl6g/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-developers.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
For more options, visit https://groups.google.com/groups/opt_out.