|
Lately and longer ago I saw many bitching and complaining about today's youngsters (students, beginners). They don't learn anything useful, they have a bad attitude and are mostly lazy.
Well, yesterday there was this[^] discussion. Frankly I have a happy face today as there is still hope, ... for some .
(of course we can never check if he actually does anything with it )
|
|
|
|
|
V. wrote: many bitching and complaining about today's youngsters Quote attributed to Socrates(around 400 BCE):
“Our youth now love luxury. They have bad manners, contempt for authority; they show disrespect for their elders and love chatter in place of exercise; they no longer rise when elders enter the room; they contradict their parents, chatter before company; gobble up their food and tyrannize their teachers.”
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
GuyThiebaut wrote: Quote attributed to Socrates(around 400 BCE): Ah! I know this one!
IIRC, it was Aristophanes, not Socrates himself, so it's like "Et tu, Brute", which, as we all know, is a famous quote from the lips of...
... William Shakespeare! God only knows what Caesar himself said*.
* Probably "Owwie!"
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
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 (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".
Which brings us back to point 2 -- the current assignment may be just a stepping-stone to the next assignment.
|
|
|
|
|
|
We had some problems with Crystal Reports printing, which left some processes hanging and lead to increased memory consumption. So instead of printing the report directly, we export it to pdf and then use Foxit to print the pdf from the command line.
|
|
|
|
|
I've had SO many weird problems and even weirder workarounds in Crystal Reports. I even came to the point that I added some comments to a function explaining that the writer of CR was probably drunk and drugged when he wrote the code and that my code shouldn't be altered in any way because it would break the software. Really, doing something like switching two lines with property accessors would break EVERYTHING... Weirdest sh*t EVER.
I hope I never have to work with CR again...
My blog[ ^]
public class SanderRossel : Lazy<Person>
{
public void DoWork()
{
throw new NotSupportedException();
}
}
|
|
|
|
|
The best workaround for Crystal Reports is to dump it ompletely.
|
|
|
|
|
|
Sander Rossel wrote: got a new super fast server But it was in vain, as you made sure no benefit came from it...
I like that
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
Kornfeld Eliyahu Peter wrote: you made sure no benefit came from it That's a weird thing about this world of computing: I've never seen an actual benefit come from staying bang up to date.
It seems that being between a year and eighteen months behind is generally optimal, but sometimes it's even longer.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Well, not for that process anyway
My blog[ ^]
public class SanderRossel : Lazy<Person>
{
public void DoWork()
{
throw new NotSupportedException();
}
}
|
|
|
|
|
A current issue regarding SQL Server 2008 R2, if you change a user's name in AD SQL Server still returns the old name via SYSTEM_USER.
We have a bunch of stored procedures that return SYSTEM_USER to identify who is running processes and confirm their permissions.
There are some solutions including bouncing the server(not possible currently) and installing patches(sysadmin won't currently allow) and others that I have tried and intermittently work.
So now the database table holding permissions, for actions users can perform, contains the person's old and current names to get around this SQL Server feature bug.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
|
Top marks for being mister memory 2015
It worked the first time the user changed their name. Then for some reason, known only to the the Gods of the darkest and deepest recesses of Hades, the personnel department forced us to change the name back and that's when it did not work
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
A lesson on how consultants can make a difference in an organization.
Last week, we took some friends to a new restaurant, ' Steve’s Place,' and noticed that the waiter who took our order carried a spoon in his shirt pocket.
It seemed a little strange. When the busboy brought our water and utensils, I observed that he also had a spoon in his shirt pocket.
Then I looked around and saw that all the staff had spoons in their pockets. When the waiter came back to serve our soup I inquired, 'Why the spoon?'
'Well, 'he explained, 'the restaurant's owner hired Andersen Consulting to revamp all of our processes. After several months of analysis, they concluded that the spoon was the most frequently dropped utensil. It represents a drop frequency of approximately 3 spoons per table per hour.
If our personnel are better prepared, we can reduce the number of trips back to the kitchen and save 15 man-hours per shift.'
As luck would have it, I dropped my spoon and he replaced it with his spare. 'I'll get another spoon next time I go to the kitchen instead of making an extra trip to get it right now.' I was impressed.
I also noticed that there was a string hanging out of the waiter's fly.
Looking around, I saw that all of the waiters had the same string hanging from their flies. So, before he walked off, I asked the waiter, 'Excuse me, but can you tell me why you have that string right there?'
'Oh, certainly!' Then he lowered his voice. 'Not everyone is so observant. That consulting firm I mentioned also learned that we can save time in the restroom.
By tying this string to the tip of our you-know-what, we can pull it out without touching it and eliminate the need to wash our hands, shortening the time spent in the restroom by 76.39%. '
I asked quietly, 'After you get it out, how do you put it back?'
'Well,' he whispered, 'I don't know about the others, but I use the spoon.'
|
|
|
|
|
|
I and Supriti married on 30th Jan 2015 at Kolkata is there any CP member who change his relationship status within last 15 days...
Life is all about share and care...
public class Life : ICareable,IShareable
{
// implements yours...
}
|
|
|
|
|
Suvabrata Roy wrote: I and Supriti married on 30th Jan 2015 at Kolkata <layer>is there any CP member who change his relationship status within last 15 days...
was it by fluke that i also changed by facebook relationship status on that same date?
|
|
|
|
|
its a coincident... whatever congrts buddy have a great future with your loved one...
Life is all about share and care...
public class Life : ICareable,IShareable
{
// implements yours...
}
|
|
|
|
|
Suvabrata Roy wrote: I and Supriti married on 30th Jan 2015 at Kolkata is there any CP member who change his relationship status within last 15 days...
Nope, but that was my son's 18th birthday.
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
Congratulation... and belated happy birthday to your son
Life is all about share and care...
public class Life : ICareable,IShareable
{
// implements yours...
}
|
|
|
|
|
Congrats buddy...
Now you need to inherit the ICareable and IShareable interfaces really Otherwise you will be forced to inherit IRepentable
All the very best for your married life!!!
|
|
|
|
|
Thank you Dinesh I will remember your words
I care of my wife...
Life is all about share and care...
public class Life : ICareable,IShareable
{
// implements yours...
}
|
|
|
|
|
Congratulations to you and your wife !
«I'm asked why doesn't C# implement feature X all the time. The answer's always the same: because no one ever designed, specified, implemented, tested, documented, shipped that feature. All six of those things are necessary to make a feature happen. They all cost huge amounts of time, effort and money.» Eric Lippert, Microsoft, 2009
|
|
|
|