Results 1 to 39 of 39

Thread: How many VB programmers does it take to change a light bulb ?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2000
    Posts
    224
    Help..

    I need an Answer for this.
    How many VB programmers does it take to change a light bulb ?

    This is the first question Microsoft Visual Basic Certification exam ...



  2. #2
    Guest
    Are you serious?

  3. #3
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    0 - it's a hardware problem

  4. #4
    New Member
    Join Date
    May 2000
    Posts
    14
    471; one to write
    Code:
    GetLightBulbHandle() as hnd
    , one to write
    Code:
    QueryStatusLightBulb() as Boolean
    , one to write
    Code:
    GetLightSwitchHandle() as hnd
    ...
    Shab.

    Code:
    Print WeekDayName(vbMonday)

  5. #5
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    2 - One holds the light bulb and the second turns the chair around

  6. #6
    Hyperactive Member Juan Carlos Rey's Avatar
    Join Date
    Aug 1999
    Location
    Mendoza, Argentina
    Posts
    301

    Talking

    None, a pianist can do it with his left hand.

    (Sorry, wrong forum...)

    If it were here in Argentina, I would say 3: 1- one to actually change the bulb, 2- other to make the berbecue (no big work goes out without one) 3- a government inspector to certify that the work is well done.


  7. #7
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    I'd say 100... One for changing the bulb and 99 to click the error messages

  8. #8
    Guest
    I would say 4

    1 to write this

    Code:
    Type LOCUDT
    X As Long
    Y As Long
    End Type
    1 to write this


    Code:
    Declare Function GetBulbHandle Lib "Bulb32" (ByVal LocationX As LOCUDT, ByVal LocationY As LocUDT ByVal Watt As Integer) As Integer
    1 to write this

    Code:
    Declare Function SetBulbPos Lib "Bulb32" (ByVal NewLocX As LOCUDT, ByVal NewLocY as LOCUDT, ByVal BulbHandle As Long)
    and one to write this

    Code:
    Sub SetPos()
    Dim lngRet As Long
    Dim lngBulbHandle As Long
    lngBulbHandle = GetBulbHandle(500, 60, 100)
    lngRet = SetBulbPos(500, 60, lngBulbHandle)
    End Sub
    
    Private Sub Command1_Click()
    Call SetPos
    End Sub

    there, it takes 4 VB programmers to change a lightbulb

  9. #9
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221

    Lightbulb Probably 138072701

    I'd say all programmers in universe.

    If we remove one programmer we have our universe collapse in mass decrease, so we need all programmers to be online
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  10. #10
    Guest
    138072701
    There's a lot more programmers than that!

  11. #11
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    How do you know that meg?
    Maybe we have
    1
    or
    31409750237456923469282973459345978
    but theres probably
    138072701
    because, that's what my app told me
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  12. #12
    Guest
    What's this App do? Count all the people in the world?

  13. #13
    New Member
    Join Date
    May 2000
    Posts
    14
    Originally posted by Megatron
    What's this App do? Count all the people in the world?
    Hmm - not sure that you need an app to do that <g>

    FWIW, according to http://metalab.unc.edu/lunarbin/worldpop there's just over 6 thousand million (6e9) on the planet at the moment.

    Projections only go up to the end of 2037, where (according to this) there'll be 10 thousand million people (1e10).



    Shab.

    Code:
    Print WeekDayName(vbMonday)

  14. #14
    Guest
    6 thousand million, is the same as 6 billion

  15. #15
    New Member
    Join Date
    May 2000
    Posts
    14

    Zillions....

    Originally posted by denniswrenn
    6 thousand million, is the same as 6 billion
    Ohhh - that largely depends on which side of the pond you're on I think <g>

    from http://www.mcn.net/~jimloy/billion.html
    Code:
    Number of zeros   U.S. & scientific community   Other countries 
    3                 thousand                      thousand 
    6                 million                       million 
    9                 billion                       1000 million (1 milliard) 
    12                trillion                      billion 
    [snip]
    [Edited by Shabble on 05-29-2000 at 01:03 AM]
    Shab.

    Code:
    Print WeekDayName(vbMonday)

  16. #16
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    number of zeroes
    [snip]
    600 centilion
    [snip]
    999999999999999999999999999999 kedamaniljon
    infinity

    Ok my app does calculate this from a formula:
    Amount of people/amount of kedamans + amount of megatrons ^amounts of shabbles mod amounts of denniswrenns
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  17. #17
    Guest
    Code:
    Amount of people/amount of kedamans + amount of megatrons ^amounts of shabbles mod amounts of denniswrenns
    
    = 6000000000
     ------------
      1 + 1^1
          ---
           1
    
    
    = 6000000000
      ----------
        1 + 1
    
    = 6000000000
      ----------
          2
    
    = 3000000000

    There, using your formula, there are 3,000,000,000 programmers.

  18. #18
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Talking All the programmers in the world.

    One writes code which changes the bulb, and all the others try to figure out his code.

  19. #19
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Ok, the formula didn't work except that the answer is correct. We have exactly 168072701 programmers, 138072701 was a typo
    Code:
    ?168072700/1+1^1/1
     168072701
    so there must be 168072700 people, ok who is the 168072701th guy? The values are in hex, so you probably know what causes that
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  20. #20
    New Member
    Join Date
    May 2000
    Posts
    14
    Originally posted by kedaman
    Code:
    ?168072700/1+1^1/1
     168072701
    so there must be 168072700 people, ok who is the 168072701th guy? The values are in hex, so you probably know what causes that [/B]
    Operator precidence I assume - try

    Code:
    ?168072700/(1+(1^1/1))
    Nowt to do with hex I'm afraid.

    Shab.

    Code:
    Print WeekDayName(vbMonday)

  21. #21
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Why not?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  22. #22
    Guest
    168072700 is not the number of people in the world. It's 6 billion. your formula said that it suppose to be the number of people in the world.

  23. #23
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Meg, it is hex:6040266496 in dec
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  24. #24
    Guest
    Why i type that number in my Windows Calculator, the numbers change...when i switch from dec to hex than back to dec. The hex value stays the same but the dec doesn't.


  25. #25
    New Member
    Join Date
    May 2000
    Posts
    14

    M$ Calc

    Originally posted by Megatron
    Why i type that number in my Windows Calculator, the numbers change...when i switch from dec to hex than back to dec. The hex value stays the same but the dec doesn't.
    Windows calulator has a small problem - it's limited to the numbers it can display in hex.

    The maximum number it can display (when converting between bases) is:
    4,294,967,295 decimal or
    FF,FF,FF,FF hex

    Typing in 4,294,967,296 then converting to hex converts it (internally I assume) to 1,00,00,00,00 hex which gets truncated - at the top end. All that's left is 0 which is (one hopes) the same in both decimal and hex.

    Basically any numbers over 4,294,967,295 are treated mod 4,294,967,295 until they're under 4,294,967,295 for the purposed of conversion from and to hex.

    The above applies equally to octal and binary conversions also.

    There - that's 10 minutes wasted <g> Perhaps I should do some work now - I'm sure there's something more constructive that I can do other than pick M$ Calc to bits :)



    Shab.

    Code:
    Print WeekDayName(vbMonday)

  26. #26
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Hehe, got you now, shall i post the function?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  27. #27
    Lively Member
    Join Date
    Feb 1999
    Location
    Leicester, UK
    Posts
    123
    Only 1 to actually change it - but at least 10 managers / supervisors to give an opinion on the best way to "achieve the objective"

  28. #28
    Addicted Member
    Join Date
    Apr 2000
    Location
    Sheffield, England.
    Posts
    136

    Talking

    It only takes 1 programmer if you download this file:

    http://www.vb-world.con/home/electri...changebulb.ocx

  29. #29
    Guest
    How many VB programmers does it take to change a light bulb ?
    How many times did the programmer press f1?

  30. #30
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: How many VB programmers does it take to change a light bulb ?

    yay1

  31. #31
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176

    Re: How many VB programmers does it take to change a light bulb ?

    0 they tell the client its a 'Feature' that means they need the new version of the software for their home pc
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  32. #32
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: How many VB programmers does it take to change a light bulb ?

    One to search for the current hardware's driver.

    One to code a driver for the new hardware.

    One to create an interface between the current hardware and the new driver.

    One to update the BIOS on the current hardware. (LightBulbTM ME was obselete, so they needed a LightBulbTM XP OS to support the new software.)

    One to design a program to automatically eject the current hardware.

    One to catch the old hardware as it falls and inspect it for bugs.

    One to design a program to install the new hardware.

    One to actually interface the current hardware with the new driver.

    Five to test the new hardware's compatability with the old hardware.

    Three to go tell the manager that they got the problem solved.




    Hmm.. sounds like you need 16 to me...

  33. #33
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: How many VB programmers does it take to change a light bulb ?

    Quote Originally Posted by timeshifter
    One to search for the current hardware's driver.

    One to code a driver for the new hardware.

    One to create an interface between the current hardware and the new driver.

    One to update the BIOS on the current hardware. (LightBulbTM ME was obselete, so they needed a LightBulbTM XP OS to support the new software.)

    One to design a program to automatically eject the current hardware.

    One to catch the old hardware as it falls and inspect it for bugs.

    One to design a program to install the new hardware.

    One to actually interface the current hardware with the new driver.

    Five to test the new hardware's compatability with the old hardware.

    Three to go tell the manager that they got the problem solved.




    Hmm.. sounds like you need 16 to me...

    Then add 2 more to convince the boss they need to move to LightBulb.NET so they can use LB#.

    Tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  34. #34
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: How many VB programmers does it take to change a light bulb ?

    oh just to let you know, my goal was to bring the oldest topic i could find back

  35. #35
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: How many VB programmers does it take to change a light bulb ?

    Having done significant research, I found that my prior answer was slightly flawed and have made the appropriate adjustments, leaving the final answer to be:

    • One to search for the current hardware's driver.


    • One to code a driver for the new hardware.


    • One to create an interface between the current hardware and the new driver.


    • One to update the BIOS on the current hardware. (LightBulbTM ME was obselete, so they needed a LightBulbTM XP OS to support the new software.)


    • One to design a program to automatically eject the current hardware.


    • One to catch the old hardware as it falls and inspect it for bugs.


    • One to design a program to install the new hardware.


    • One to actually interface the current hardware with the new driver.


    • Five to test the new hardware's compatability with the old hardware.


    • Three to go tell the manager that they got the problem solved.


    • Two to try and convince the manager that LightBulbTM.NET is much more efficient and less costly.


    • One to write a brand new driver for LightBulbTM.NET and interface it with LightBulbHolderTM XP.


    • Three to debug the new system.


    • One to tell the manager that the project was scrapped due to an anomoly in LightBulbTM.NET.


    • One to hire an electrician to take care of the problem professionally.



    Thus, the correct answer is 24.

  36. #36
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: How many VB programmers does it take to change a light bulb ?

    Hold on... after late breaking techniques in the art of light-bulb changing, I've determined that there are actually 3 needed for the last step...

  37. #37
    Banned
    Join Date
    Sep 2006
    Posts
    14

    Re: How many VB programmers does it take to change a light bulb ?

    Windows users are mentally incapable of attending to any kind of light-fitting malfunction.

  38. #38
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: How many VB programmers does it take to change a light bulb ?

    I'm sorry... I don't have much choice... and XP Pro treats me good...

  39. #39
    Banned
    Join Date
    Sep 2006
    Posts
    14

    Re: How many VB programmers does it take to change a light bulb ?

    "There's always a choice Luke."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width