How to ensure a job for life

Tester c'est douter

Sécuriser c'est craindre

Documenter c'est ignorer

Randomnize exit codes

Invent words for variable names

Don't forget to invent acronyms

CapiTaliSaTion

ComputeRasterHistoGram()

Be abstract

doIt()
performDataFunction()
Handle()

Use synonyms

create_widget()
add_widget()
display_widget()
show_widget()
widget_present()

Reuse variable names

widget = get_widget()
widget.display()

if some_condition:
    widget = get_some_widget()

Mix languages

avocat = get_lawyer()

Misleading names

def is_valid(foo):
    valid = False
    if some_condition(foo):
        valid = True

    if valid:
        foo.save()

    return valid

Code masquarade

By Roedy Green

Made with Slides.com