Click here to Skip to main content
15,915,611 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: SQL You suck Pin
Dan Neely10-Feb-15 3:13
Dan Neely10-Feb-15 3:13 
GeneralRe: SQL You suck Pin
Mike Hankey10-Feb-15 3:53
mveMike Hankey10-Feb-15 3:53 
GeneralRe: SQL You suck Pin
PIEBALDconsult10-Feb-15 7:28
mvePIEBALDconsult10-Feb-15 7:28 
GeneralRe: SQL You suck Pin
Mike Hankey10-Feb-15 7:30
mveMike Hankey10-Feb-15 7:30 
GeneralYoungster's attitude Pin
V.9-Feb-15 20:16
professionalV.9-Feb-15 20:16 
GeneralRe: Youngster's attitude Pin
GuyThiebaut9-Feb-15 21:35
professionalGuyThiebaut9-Feb-15 21:35 
GeneralRe: Youngster's attitude Pin
Mark_Wallace10-Feb-15 0:28
Mark_Wallace10-Feb-15 0:28 
GeneralRe: Youngster's attitude Pin
PIEBALDconsult10-Feb-15 11:29
mvePIEBALDconsult10-Feb-15 11:29 
0) Without knowing more than what's there, I would assume that the OP had copied (plagiarized) the code from somewhere and didn't even understand it. If he understood it he could argue that it does use an array -- as the basis for the Stack. Is the OP at the level where he'd know how to implement a Stack yet not know why not to?

1) The teacher might have been better off with a clearer specification, e.g. "implement a method with the following signature: int Search<T> ( T[] items , T key ) which searches the items and returns either -1 if the key isn't found or the position (0-based offset) of the first match found".

2) There are assignments that are supposed to be done a certain way because it's the technique that matters, not the result. For instance, learning recursion by calculating factorials -- recursion is not a good way to calculate factorials, but factorials are not the point of the assigment. If you turn in an iterative solution you fail the assignment.

3) It reminds me of an assignment for a Pascal class I had in the mid-80s. The assignment stated that we were to implement the Sieve of Eratosthenes to find prime numbers, buuuut... it also specified a function that was supposed to be used WTF | :WTF: (of course the function was faulty). So I decided to ignore the function, do some research to find out what the Sieve of Eratosthenes actually was, and I implemented that instead. I still got an A, but I could easily have received an F for not using the function.

4) Oh, and before that, when I was first learning BASIC, there was an assignment that was supposed to prompt for, store, and sum up numbers entered by the user. To that point we hadn't learned about arrays (subscripted variables). I looked at the assignment, said "there's gotta be a better way", and read ahead to the next chapter in the text book -- subscripted variables! Whoo hoo! I implemented the assignment with subscripted variables and turned it in. The teacher replied, "that's next week's assignment". Sigh | :sigh:
Which brings us back to point 2 -- the current assignment may be just a stepping-stone to the next assignment.
GeneralThe most weird workaround you ever made? Pin
Kornfeld Eliyahu Peter9-Feb-15 19:47
professionalKornfeld Eliyahu Peter9-Feb-15 19:47 
GeneralRe: The most weird workaround you ever made? Pin
Jacquers9-Feb-15 20:00
Jacquers9-Feb-15 20:00 
GeneralRe: The most weird workaround you ever made? Pin
Sander Rossel9-Feb-15 20:11
professionalSander Rossel9-Feb-15 20:11 
GeneralRe: The most weird workaround you ever made? Pin
Jörgen Andersson9-Feb-15 22:28
professionalJörgen Andersson9-Feb-15 22:28 
GeneralRe: The most weird workaround you ever made? Pin
Sander Rossel9-Feb-15 20:21
professionalSander Rossel9-Feb-15 20:21 
GeneralRe: The most weird workaround you ever made? Pin
Kornfeld Eliyahu Peter9-Feb-15 20:25
professionalKornfeld Eliyahu Peter9-Feb-15 20:25 
GeneralRe: The most weird workaround you ever made? Pin
Mark_Wallace9-Feb-15 21:14
Mark_Wallace9-Feb-15 21:14 
GeneralRe: The most weird workaround you ever made? Pin
Sander Rossel10-Feb-15 3:10
professionalSander Rossel10-Feb-15 3:10 
GeneralRe: The most weird workaround you ever made? Pin
GuyThiebaut9-Feb-15 21:43
professionalGuyThiebaut9-Feb-15 21:43 
GeneralRe: The most weird workaround you ever made? Pin
Richard Deeming10-Feb-15 2:01
mveRichard Deeming10-Feb-15 2:01 
GeneralRe: The most weird workaround you ever made? Pin
GuyThiebaut10-Feb-15 2:14
professionalGuyThiebaut10-Feb-15 2:14 
JokeThe Spoon Pin
Vivi Chellappa9-Feb-15 19:23
professionalVivi Chellappa9-Feb-15 19:23 
GeneralRe: The Spoon Pin
PIEBALDconsult10-Feb-15 7:20
mvePIEBALDconsult10-Feb-15 7:20 
GeneralJust Married... Pin
Suvabrata Roy9-Feb-15 17:47
professionalSuvabrata Roy9-Feb-15 17:47 
GeneralRe: Just Married... Pin
devenv.exe9-Feb-15 18:23
professionaldevenv.exe9-Feb-15 18:23 
GeneralRe: Just Married... Pin
Suvabrata Roy9-Feb-15 18:24
professionalSuvabrata Roy9-Feb-15 18:24 
GeneralRe: Just Married... Pin
Michael Martin9-Feb-15 19:08
professionalMichael Martin9-Feb-15 19:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.