giovedì, febbraio 01, 2007

Code Gallery: error messages

Production code, unknown artist, VB school, period: beginning of 2000th:

Public Function getGridURL(...,ByVal values As xxx,...) As String
    Dim url As String
    -- Do some stuff
    If values Is Nothing Then

        url = "ERRORE PIRLA" -- italian for "FUCKING ERROR"
        --Do other stuff
    End If
    Return url
End Function

Comment: a little masterpiece for its conciseness, the clean stroke and the ability to crash the whole application.

Nessun commento: