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. N00btacular

N00btacular

Scheduled Pinned Locked Moved The Weird and The Wonderful
com
3 Posts 3 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.
  • A Offline
    A Offline
    AspDotNetDev
    wrote on last edited by
    #1

    Just came across this code from an ex-coworker (names changed to protect the innocent):

    Select Case DoStuff(SomeVariable)
    Case 0
    ' Do something with SomeVariable.
    Case 1, 2
    ' Do something else with SomeVariable.
    Case Else
    result = "omgnub"
    End Select

    When I saw that, I :-D . Well played, n00b, well played.

    Thou mewling ill-breeding pignut!

    P B 2 Replies Last reply
    0
    • A AspDotNetDev

      Just came across this code from an ex-coworker (names changed to protect the innocent):

      Select Case DoStuff(SomeVariable)
      Case 0
      ' Do something with SomeVariable.
      Case 1, 2
      ' Do something else with SomeVariable.
      Case Else
      result = "omgnub"
      End Select

      When I saw that, I :-D . Well played, n00b, well played.

      Thou mewling ill-breeding pignut!

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      Nice, that's epic! :-D

      ""Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

      1 Reply Last reply
      0
      • A AspDotNetDev

        Just came across this code from an ex-coworker (names changed to protect the innocent):

        Select Case DoStuff(SomeVariable)
        Case 0
        ' Do something with SomeVariable.
        Case 1, 2
        ' Do something else with SomeVariable.
        Case Else
        result = "omgnub"
        End Select

        When I saw that, I :-D . Well played, n00b, well played.

        Thou mewling ill-breeding pignut!

        B Offline
        B Offline
        Brisingr Aerowing
        wrote on last edited by
        #3

        That reminded me of a custom exception one of my friends made: NoobDetectedException. He said he would take it out when he turned in the project, but he didn't. The professor hit the exception, and was not very pleased. The professor showed the class the exception, which had the message: "You are a noob. You will be assimilated. There will be no escape. (This also applies to <professor name omitted>")

        public class SysAdmin : Employee
        {

         public override void DoWork(IWorkItem workItem)
         {
              if (workItem.User.Type == UserType.NoLearn){
                 throw new NoIWillNotFixYourComputerException(new Luser(workItem.User));
              }else{
                   base.DoWork(workItem);
              }
         }
        

        }

        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