Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. The Clever Trevor School of Programming....

The Clever Trevor School of Programming....

Scheduled Pinned Locked Moved The Weird and The Wonderful
6 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rob Grainger
    wrote on last edited by
    #1

    If Not IsNothing(dt) Then
    Else
    ' Code here
    End If

    Reminds me of Ian Dury... ... and it ain't not having one thing nor another neither, either is it anything, whatever ...

    B M V 3 Replies Last reply
    0
    • R Rob Grainger

      If Not IsNothing(dt) Then
      Else
      ' Code here
      End If

      Reminds me of Ian Dury... ... and it ain't not having one thing nor another neither, either is it anything, whatever ...

      B Offline
      B Offline
      BillW33
      wrote on last edited by
      #2

      That is a lovely bit of logic. :wtf: I suppose it may actually accomplish what the original programmer intended, but even if it does, it is a really ugly way to do it. X|

      Just because the code works, it doesn't mean that it is good code.

      1 Reply Last reply
      0
      • R Rob Grainger

        If Not IsNothing(dt) Then
        Else
        ' Code here
        End If

        Reminds me of Ian Dury... ... and it ain't not having one thing nor another neither, either is it anything, whatever ...

        M Offline
        M Offline
        musefan
        wrote on last edited by
        #3

        it is strange how all the idiots use VB :laugh:

        return 5;

        OriginalGriffO P 2 Replies Last reply
        0
        • M musefan

          it is strange how all the idiots use VB :laugh:

          return 5;

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          musefan wrote:

          all the idiots use VB

          Oh, how I wish that was true...

          Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          1 Reply Last reply
          0
          • R Rob Grainger

            If Not IsNothing(dt) Then
            Else
            ' Code here
            End If

            Reminds me of Ian Dury... ... and it ain't not having one thing nor another neither, either is it anything, whatever ...

            V Offline
            V Offline
            Vladimir Svyatski
            wrote on last edited by
            #5

            Some people just never heard of the negation operation, never knew boolean logics. And the most terrifying thing for them is the de Morgan's laws. They're too complicated, you know... :) And I've seen such stuff several times.

            1 Reply Last reply
            0
            • M musefan

              it is strange how all the idiots use VB :laugh:

              return 5;

              P Offline
              P Offline
              peterchen
              wrote on last edited by
              #6

              Or maybe VB is such a well designed language that stupid mistakes are really obvious, and thus are more frequently ofund and posted *snicker*

              FILETIME to time_t
              | FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups