Sometimes, People code what you say... just what you say
-
Came across this wonderful piece of code: providerName="System.Data.SequelClient" Took a while to spot! :)
- Bits and Bytes Rules! 10(jk)
Takes me back to my first year of uni. I remember one guy who used to think the IDE was simply a way to talk to the computer, he would literal write text as if he was telling it what to do - and this was after a good few lessons. Needless to say he didn't survive the year imagine...
what is your age?
write the users age
tell the user next year he will be a year older!
OK, so not quite like that but he would basically write the phrases the lecturer used to describe what to do...
create an int
set the int based on the users input
add 1 to the int
tell the user next year he will be 1 year older
perhaps he thought he was on a transcribing course
I may or may not be responsible for my own actions
-
Takes me back to my first year of uni. I remember one guy who used to think the IDE was simply a way to talk to the computer, he would literal write text as if he was telling it what to do - and this was after a good few lessons. Needless to say he didn't survive the year imagine...
what is your age?
write the users age
tell the user next year he will be a year older!
OK, so not quite like that but he would basically write the phrases the lecturer used to describe what to do...
create an int
set the int based on the users input
add 1 to the int
tell the user next year he will be 1 year older
perhaps he thought he was on a transcribing course
I may or may not be responsible for my own actions
Maybe he was writing pseudocode, and forgot to wrap it in a comment block..? :confused:
-
Came across this wonderful piece of code: providerName="System.Data.SequelClient" Took a while to spot! :)
- Bits and Bytes Rules! 10(jk)
-
Came across this wonderful piece of code: providerName="System.Data.SequelClient" Took a while to spot! :)
- Bits and Bytes Rules! 10(jk)
-
Came across this wonderful piece of code: providerName="System.Data.SequelClient" Took a while to spot! :)
- Bits and Bytes Rules! 10(jk)
Probably not much of a horror as it wouldn't compile and therefore can't get into the main code base... Of course it could if the dev created a custom System.Data.SequelClient class. Hmmm. Sounds like an easter egg in the making for an auto upgrade engine.
I wasn't, now I am, then I won't be anymore.
-
Came across this wonderful piece of code: providerName="System.Data.SequelClient" Took a while to spot! :)
- Bits and Bytes Rules! 10(jk)
There's someone working on a compiler for that. Just so you could write computer programs in natural English. :)
Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
-
Maybe he was writing pseudocode, and forgot to wrap it in a comment block..? :confused:
:lol
-
There's someone working on a compiler for that. Just so you could write computer programs in natural English. :)
Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
Dude... that would never happen.
-
Dude... that would never happen.
I know I'll regret this, but sometimes even I can't help myself. Follow this link[^]. :)
Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]