By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,389 Members | 2,052 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,389 IT Pros & Developers. It's quick & easy.

need a code sample for bubble sort

P: n/a

Hi--

Please help.

I need a code sample for bubble sort.

Thank you.

--Mark
Nov 15 '05 #1
Share this Question
Share on Google+
34 Replies


P: n/a
http://billimek.com/code/strategysor...0strategy.html
http://www.brpreiss.com/books/opus6/html/page492.html
http://www.devhood.com/tutorials/tut...utorial_id=526

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Mark Kamoski" <mk******@yahoo.com> wrote in message
news:uh**************@TK2MSFTNGP09.phx.gbl...

Hi--

Please help.

I need a code sample for bubble sort.

Thank you.

--Mark


Nov 15 '05 #2

P: n/a
Mark Kamoski <mk******@yahoo.com> wrote:
I need a code sample for <xyz> sort.


Well, there are samples for any number of sorts online in various
different languages - it should be easy enough to convert them to C#.
Could I ask why you need samples for so many different sorts?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #3

P: n/a
Could I ask why you need samples for so many different sorts?


He wants someone to do his homework assignment for him? ;-)
Nov 15 '05 #4

P: n/a
That is highly likely. Since the examples I found were simple google
searches, I should have pointed to google.com instead. ;->

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Brian W" <brianw@gold_death_2_spam_rush.com> wrote in message
news:uO**************@TK2MSFTNGP11.phx.gbl...
Could I ask why you need samples for so many different sorts?


He wants someone to do his homework assignment for him? ;-)

Nov 15 '05 #5

P: n/a


Jon--

I've got to benchmark performance for these for an "analysis of algorithms"
course.

So, it is for an assignment but we have the OK to get the code samples
anywhere we want.

We wrote these in last semester's course in C++ but (yes) I don't feel like
rewriting them.

So, am I "lazy" or am I just "trying to avoid re-inventing the wheel"?

You decide.

--Mark
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
Mark Kamoski <mk******@yahoo.com> wrote:
I need a code sample for <xyz> sort.


Well, there are samples for any number of sorts online in various
different languages - it should be easy enough to convert them to C#.
Could I ask why you need samples for so many different sorts?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #6

P: n/a


Brian--

Actually, the assignment primarily involves a write-up and a graphing of
the result of a comparison of the algorithms.

It is funny because one already knows that some of these have (n^2) running
time and some have (nlogn) but we need to run the tests.

As I stated to Jon, above, the prerequisite course involved writing these
algorithms in C++.

Am I "lazy" or am I rightly choosing to "avoid reinventing the wheel"?

You decide. I already know the answer to that one.

Thank you.

--Mark
"Brian W" <brianw@gold_death_2_spam_rush.com> wrote in message
news:uO**************@TK2MSFTNGP11.phx.gbl...
Could I ask why you need samples for so many different sorts?


He wants someone to do his homework assignment for him? ;-)

Nov 15 '05 #7

P: n/a

Greg--

Thank you very much.

I appreciate it.

I have more work than time (as usual) and so this helps out a lot.

Thanks again.

--Mark

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamM> wrote in
message news:O9**************@TK2MSFTNGP10.phx.gbl...
http://billimek.com/code/strategysor...0strategy.html
http://www.brpreiss.com/books/opus6/html/page492.html
http://www.devhood.com/tutorials/tut...utorial_id=526

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Mark Kamoski" <mk******@yahoo.com> wrote in message
news:uh**************@TK2MSFTNGP09.phx.gbl...

Hi--

Please help.

I need a code sample for bubble sort.

Thank you.

--Mark



Nov 15 '05 #8

P: n/a
> So, am I "lazy" or am I just "trying to avoid re-inventing the wheel"?
You decide.

Your fucking lazy!!!
Or your too dumb to do a google search.

You decide!

-Eric
Nov 15 '05 #9

P: n/a
> So, am I "lazy" or am I just "trying to avoid re-inventing the wheel"?
You decide.

Your fucking lazy!!!
Or your too dumb to do a google search.

You decide!

-Eric
Nov 15 '05 #10

P: n/a
> So, am I "lazy" or am I just "trying to avoid re-inventing the wheel"?
You decide.


Your f'ing lazy!!!
Or your too dumb to do a google search.

You decide! The rest of us know the answer to that one.

-Eric

Nov 15 '05 #11

P: n/a
> So, am I "lazy" or am I just "trying to avoid re-inventing the wheel"?
You decide.

Your f'ing lazy!!!
Or your too dumb to do a google search.

You decide!

-Eric
Nov 15 '05 #12

P: n/a


Eric--

Your comments are out of sync with the spirit of a newsgroups intent--
namely, to share information with others and to help others.

If you don't want to help someone who asks for help, then that is fine.

Regardless, you have NOT addressed the other possibility mentioned-- that
is, the need for humankind to avoid re-inventing the wheel.

Aside from this, you have missed many other points.

What if WebSense here does not let me do Google searches but does allow
Outlook Express newsgroup access?

And so on.

Afterall, if you are trying to argue that asking for a code sample of a
particular algorithm written in C# is off-topic in a newsgroup called
"microsoft.public.dotnet.languages.csharp", then there is no point in
continuing this conversation.

More to the point, I have seen your type of attitude a lot. Someone asks a
simple question and they are met with mean-spirited responses. It is
typical of someone who is angry and petty.

Let's look at something else. Before my posts, when one tried a Find in
Outlook Express in this newsgroup,
"microsoft.public.dotnet.languages.csharp", for something common like
"bubble sort", one got no results. Until now, after my posts. Perhaps you
don't think it valuable to index and link such information into this
newsgroup. So be it. I, however, do believe it is valuable and that's one
of the reasons I have posted here.

One has to ask-- is it my goal to help people or to simply say "go ask
someone else"?

I wonder, Eric, how would you answer this question?

In short, if one were to extend your thinking as suggested in your message
below, this entire newsgroup could be replaced with a single post that
simply says "please search Google for your answers", which is, of course,
quite silly.

This is common today. How many times do people say in verbal
conversations...

"you should check the web on that"

....well, of course. But is this really more than a dodge to answer a
question directly? Note that the web is NOT the only source of information.
Futhermore, what is the web if not a small segment of human knowledge. Who
better to ask about the contents of the human mind than another human.
Perhaps this seems odd to you, but to me it does not.

Which begs the question, why does this newsgroup exist?

It is academic to see that it exists as a place for people to ask questions
about the language CSharp, which is precisely what I have done.

If you haven't time to come down off your high horse to help someone with a
question, then I daresay you are spending your time in the wrong place.

What is more, if you time is so precious as to be hindered by the
interruptions of simple question, then it is all the more curious as to why
you would sacrifice a slice of that precious time to flame a legitimate
post. Only you can answer this.
Oh well, Eric. Perhaps we see things differently.

Let's see what YOU do from here onward.

My prediction is that you will either...

lash our with some sort of petty, better-than-you, newsgroup bully flame

....or...

you will respond rationally and calmly, as civilization and the advancement
of knowledge dictates.

But, that's just a prediction. Let's see.

The future is yours to write, Eric. Use a pencil in case you make a
mistake.



"Eric Cadwell" <ec******@ns.insight.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
So, am I "lazy" or am I just "trying to avoid re-inventing the wheel"?
You decide.


Your f'ing lazy!!!
Or your too dumb to do a google search.

You decide! The rest of us know the answer to that one.

-Eric
Nov 15 '05 #13

P: n/a
Sorry Mark but your still lazy, I had to do something very similar myself at
university and the whole point is to learn by writing them yourself from
just the algorithm. If I did what you are doing I would have been done for
plagiarism! ;)

Kieran

"Mark Kamoski" <mk******@yahoo.com> wrote in message
news:OA**************@TK2MSFTNGP11.phx.gbl...


Eric--

Your comments are out of sync with the spirit of a newsgroups intent--
namely, to share information with others and to help others.

If you don't want to help someone who asks for help, then that is fine.

Regardless, you have NOT addressed the other possibility mentioned-- that
is, the need for humankind to avoid re-inventing the wheel.

Aside from this, you have missed many other points.

What if WebSense here does not let me do Google searches but does allow
Outlook Express newsgroup access?

And so on.

Afterall, if you are trying to argue that asking for a code sample of a
particular algorithm written in C# is off-topic in a newsgroup called
"microsoft.public.dotnet.languages.csharp", then there is no point in
continuing this conversation.

More to the point, I have seen your type of attitude a lot. Someone asks a
simple question and they are met with mean-spirited responses. It is
typical of someone who is angry and petty.

Let's look at something else. Before my posts, when one tried a Find in
Outlook Express in this newsgroup,
"microsoft.public.dotnet.languages.csharp", for something common like
"bubble sort", one got no results. Until now, after my posts. Perhaps you
don't think it valuable to index and link such information into this
newsgroup. So be it. I, however, do believe it is valuable and that's one
of the reasons I have posted here.

One has to ask-- is it my goal to help people or to simply say "go ask
someone else"?

I wonder, Eric, how would you answer this question?

In short, if one were to extend your thinking as suggested in your message
below, this entire newsgroup could be replaced with a single post that
simply says "please search Google for your answers", which is, of course,
quite silly.

This is common today. How many times do people say in verbal
conversations...

"you should check the web on that"

...well, of course. But is this really more than a dodge to answer a
question directly? Note that the web is NOT the only source of information. Futhermore, what is the web if not a small segment of human knowledge. Who
better to ask about the contents of the human mind than another human.
Perhaps this seems odd to you, but to me it does not.

Which begs the question, why does this newsgroup exist?

It is academic to see that it exists as a place for people to ask questions about the language CSharp, which is precisely what I have done.

If you haven't time to come down off your high horse to help someone with a question, then I daresay you are spending your time in the wrong place.

What is more, if you time is so precious as to be hindered by the
interruptions of simple question, then it is all the more curious as to why you would sacrifice a slice of that precious time to flame a legitimate
post. Only you can answer this.
Oh well, Eric. Perhaps we see things differently.

Let's see what YOU do from here onward.

My prediction is that you will either...

lash our with some sort of petty, better-than-you, newsgroup bully flame

...or...

you will respond rationally and calmly, as civilization and the advancement of knowledge dictates.

But, that's just a prediction. Let's see.

The future is yours to write, Eric. Use a pencil in case you make a
mistake.



"Eric Cadwell" <ec******@ns.insight.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
So, am I "lazy" or am I just "trying to avoid re-inventing the wheel"?
You decide.


Your f'ing lazy!!!
Or your too dumb to do a google search.

You decide! The rest of us know the answer to that one.

-Eric

Nov 15 '05 #14

P: n/a


Kieran--

I appreciate your response, but your assumptions about MY assignment are
simply not correct.

Our assignment is to analyze, NOT to write the algorithms.

The instructor specifically said "don't bother writing the algorithms...
get the algorithms from a book or the internet... this is a course in
analysis, not in programming".

It sounds like the intent of the course you took is different from the one
that I am now taking.

Oh well.

By the way, I'll take the time to caution everyone to avoid arguing against
"code reuse" in general as it is a circular path to "write everything from
scratch".

Case and Point: Ask yourself-- Did I WRITE the .NET Framework? Do I USE
..NET Framework?

And so on.

Then again, perhaps we see things differently.

Take care.

--Mark


"Kieran Benton" <kieranbenton athere hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Sorry Mark but your still lazy, I had to do something very similar myself
at
university and the whole point is to learn by writing them yourself from
just the algorithm. If I did what you are doing I would have been done for
plagiarism! ;)

Kieran

"Mark Kamoski" <mk******@yahoo.com> wrote in message
news:OA**************@TK2MSFTNGP11.phx.gbl...


Eric--

Your comments are out of sync with the spirit of a newsgroups intent--
namely, to share information with others and to help others.

If you don't want to help someone who asks for help, then that is fine.

Regardless, you have NOT addressed the other possibility mentioned-- that
is, the need for humankind to avoid re-inventing the wheel.

Aside from this, you have missed many other points.

What if WebSense here does not let me do Google searches but does allow
Outlook Express newsgroup access?

And so on.

Afterall, if you are trying to argue that asking for a code sample of a
particular algorithm written in C# is off-topic in a newsgroup called
"microsoft.public.dotnet.languages.csharp", then there is no point in
continuing this conversation.

More to the point, I have seen your type of attitude a lot. Someone asks a simple question and they are met with mean-spirited responses. It is
typical of someone who is angry and petty.

Let's look at something else. Before my posts, when one tried a Find in
Outlook Express in this newsgroup,
"microsoft.public.dotnet.languages.csharp", for something common like
"bubble sort", one got no results. Until now, after my posts. Perhaps you
don't think it valuable to index and link such information into this
newsgroup. So be it. I, however, do believe it is valuable and that's one
of the reasons I have posted here.

One has to ask-- is it my goal to help people or to simply say "go ask
someone else"?

I wonder, Eric, how would you answer this question?

In short, if one were to extend your thinking as suggested in your message below, this entire newsgroup could be replaced with a single post that
simply says "please search Google for your answers", which is, of course,
quite silly.

This is common today. How many times do people say in verbal
conversations...

"you should check the web on that"

...well, of course. But is this really more than a dodge to answer a
question directly? Note that the web is NOT the only source of information. Futhermore, what is the web if not a small segment of human knowledge. Who better to ask about the contents of the human mind than another human.
Perhaps this seems odd to you, but to me it does not.

Which begs the question, why does this newsgroup exist?

It is academic to see that it exists as a place for people to ask questions about the language CSharp, which is precisely what I have done.

If you haven't time to come down off your high horse to help someone with a question, then I daresay you are spending your time in the wrong place.

What is more, if you time is so precious as to be hindered by the
interruptions of simple question, then it is all the more curious as to why you would sacrifice a slice of that precious time to flame a legitimate
post. Only you can answer this.
Oh well, Eric. Perhaps we see things differently.

Let's see what YOU do from here onward.

My prediction is that you will either...

lash our with some sort of petty, better-than-you, newsgroup bully flame

...or...

you will respond rationally and calmly, as civilization and the advancement of knowledge dictates.

But, that's just a prediction. Let's see.

The future is yours to write, Eric. Use a pencil in case you make a
mistake.



"Eric Cadwell" <ec******@ns.insight.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
So, am I "lazy" or am I just "trying to avoid re-inventing the wheel"?
You decide.


Your f'ing lazy!!!
Or your too dumb to do a google search.

You decide! The rest of us know the answer to that one.

-Eric


Nov 15 '05 #15

P: n/a
If I may, I'd like to offer a little advice.
First, don't make a half dozen posts asking for basically the same thing. A
single post that went something like:

Does anyone have any links to samples of sort algorithms, like bubble,
merge, quicksort, etc in C#.

and if you don't run across everything you want, ask again for a specific.
This is less cluttery and results in less work for the people here who are
trying to read the couple of hundred messages that built up overnight.
Questions posed like I posted above don't always bring people to the
assumption that you are doing homework so much as you are trying to learn,
and people are here to help you learn (and to get help learning themselves),
doing someones homework is not conducive to learning.
Also, try checking google before posting here, both the general web and the
newsgroup archives, most of the time its quicker and you get less flack.

"Mark Kamoski" <mk******@yahoo.com> wrote in message
news:e$**************@tk2msftngp13.phx.gbl...


Kieran--

I appreciate your response, but your assumptions about MY assignment are
simply not correct.

Our assignment is to analyze, NOT to write the algorithms.

The instructor specifically said "don't bother writing the algorithms...
get the algorithms from a book or the internet... this is a course in
analysis, not in programming".

It sounds like the intent of the course you took is different from the one
that I am now taking.

Oh well.

By the way, I'll take the time to caution everyone to avoid arguing against "code reuse" in general as it is a circular path to "write everything from
scratch".

Case and Point: Ask yourself-- Did I WRITE the .NET Framework? Do I USE
.NET Framework?

And so on.

Then again, perhaps we see things differently.

Take care.

--Mark


"Kieran Benton" <kieranbenton athere hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Sorry Mark but your still lazy, I had to do something very similar myself
at
university and the whole point is to learn by writing them yourself from
just the algorithm. If I did what you are doing I would have been done for
plagiarism! ;)

Kieran

"Mark Kamoski" <mk******@yahoo.com> wrote in message
news:OA**************@TK2MSFTNGP11.phx.gbl...


Eric--

Your comments are out of sync with the spirit of a newsgroups intent--
namely, to share information with others and to help others.

If you don't want to help someone who asks for help, then that is fine.

Regardless, you have NOT addressed the other possibility mentioned-- that is, the need for humankind to avoid re-inventing the wheel.

Aside from this, you have missed many other points.

What if WebSense here does not let me do Google searches but does allow
Outlook Express newsgroup access?

And so on.

Afterall, if you are trying to argue that asking for a code sample of a
particular algorithm written in C# is off-topic in a newsgroup called
"microsoft.public.dotnet.languages.csharp", then there is no point in
continuing this conversation.

More to the point, I have seen your type of attitude a lot. Someone asks a
simple question and they are met with mean-spirited responses. It is
typical of someone who is angry and petty.

Let's look at something else. Before my posts, when one tried a Find in
Outlook Express in this newsgroup,
"microsoft.public.dotnet.languages.csharp", for something common like
"bubble sort", one got no results. Until now, after my posts. Perhaps you don't think it valuable to index and link such information into this
newsgroup. So be it. I, however, do believe it is valuable and that's one of the reasons I have posted here.

One has to ask-- is it my goal to help people or to simply say "go ask
someone else"?

I wonder, Eric, how would you answer this question?

In short, if one were to extend your thinking as suggested in your

message
below, this entire newsgroup could be replaced with a single post that
simply says "please search Google for your answers", which is, of course, quite silly.

This is common today. How many times do people say in verbal
conversations...

"you should check the web on that"

...well, of course. But is this really more than a dodge to answer a
question directly? Note that the web is NOT the only source of

information.
Futhermore, what is the web if not a small segment of human knowledge.

Who
better to ask about the contents of the human mind than another human.
Perhaps this seems odd to you, but to me it does not.

Which begs the question, why does this newsgroup exist?

It is academic to see that it exists as a place for people to ask

questions
about the language CSharp, which is precisely what I have done.

If you haven't time to come down off your high horse to help someone

with a
question, then I daresay you are spending your time in the wrong place.

What is more, if you time is so precious as to be hindered by the
interruptions of simple question, then it is all the more curious as to

why
you would sacrifice a slice of that precious time to flame a legitimate
post. Only you can answer this.
Oh well, Eric. Perhaps we see things differently.

Let's see what YOU do from here onward.

My prediction is that you will either...

lash our with some sort of petty, better-than-you, newsgroup bully flame

...or...

you will respond rationally and calmly, as civilization and the

advancement
of knowledge dictates.

But, that's just a prediction. Let's see.

The future is yours to write, Eric. Use a pencil in case you make a
mistake.



"Eric Cadwell" <ec******@ns.insight.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
So, am I "lazy" or am I just "trying to avoid re-inventing the wheel"?
You decide.


Your f'ing lazy!!!
Or your too dumb to do a google search.

You decide! The rest of us know the answer to that one.

-Eric


Nov 15 '05 #16

P: n/a
Just giving my opinion. Sorry if I judged you in haste, but I doubt that's
the case. You're wasting the time of some very important people who have
better things to do than your homework.

You didn't ask an academic question about C#, you specifically asked for
some measure of work to be done for you, simply because you're too lazy to
do it (or find it) yourself. The responsible people who come here with
questions have exhausted at least some amount of their own resources to find
(or figure out) the problem for themselves.

Most of the responses in this list are in fact just a redirection to a
website, and most of the posts here have been answered a dozen times or
more. Your not trying to avoid reinventing the wheel, your asking someone
else to do it for you! Why should the people in this newsgroup rewrite the
Bubble Sort for you?

The answer to 99% of the questions posted here can be found in Google (via
the web or newsgroup posts themselves). I don't want to hear "maybe I can't
get to the Internet", because even my public library has free Internet
access (not too mention a few shelves packed full of programming books).

Imagine a world where people learned to figure out things for themselves by
leveraging the public knowledge that already exists (your only valid point -
that this posting will serve as a beacon for the next lazy person who
enrolls in the same class you did):

bubble sort group:*csharp - I get 20 hits
http://groups.google.com/groups?as_q...harp&lr=&hl=en

bubble sort C# - I get 1650 hits
http://www.google.com/search?hl=en&l...bble+sort+c%23

This is a community site. I try to contribute to the list as much as
possible, even if it's just to help answer the brain-dead questions (from
people like you) that have been asked a million times. In return, I post
questions regarding problems that I encounter, without feeling
self-absorbed. What do you offer in return for the help given to you?
Nothing!

You got a few things right:

1. I'm angry. I have posted a few questions to real world problems in the
last couple of weeks, the answers to which are not readily available
anywhere else (I know because I took the time to look for myself). It seems
that people are too busy answering your lame questions to help me!

2. C# is the place to be.

-Eric

Nov 15 '05 #17

P: n/a
While I agree that this post was a little on the lazy side and not the best
stated, as far as I'm concerned its a valid topic to post on. If you don't
want to answer it you are more than welcome to simply not answer it.
At the same time, the number of posts that people make(who will probably
never check the archives) makes me think a FAQ page needs to exist so that
the answer can just be posted with a single, concise URL. As it stands
sometimes I skip messages simply because I don't have the energy to restate
everything thats been said before.

"Eric Cadwell" <ec******@ns.insight.com> wrote in message
news:OJ**************@tk2msftngp13.phx.gbl...
Just giving my opinion. Sorry if I judged you in haste, but I doubt that's
the case. You're wasting the time of some very important people who have
better things to do than your homework.

You didn't ask an academic question about C#, you specifically asked for
some measure of work to be done for you, simply because you're too lazy to
do it (or find it) yourself. The responsible people who come here with
questions have exhausted at least some amount of their own resources to find (or figure out) the problem for themselves.

Most of the responses in this list are in fact just a redirection to a
website, and most of the posts here have been answered a dozen times or
more. Your not trying to avoid reinventing the wheel, your asking someone
else to do it for you! Why should the people in this newsgroup rewrite the
Bubble Sort for you?

The answer to 99% of the questions posted here can be found in Google (via
the web or newsgroup posts themselves). I don't want to hear "maybe I can't get to the Internet", because even my public library has free Internet
access (not too mention a few shelves packed full of programming books).

Imagine a world where people learned to figure out things for themselves by leveraging the public knowledge that already exists (your only valid point - that this posting will serve as a beacon for the next lazy person who
enrolls in the same class you did):

bubble sort group:*csharp - I get 20 hits
http://groups.google.com/groups?as_q...harp&lr=&hl=en
bubble sort C# - I get 1650 hits
http://www.google.com/search?hl=en&l...bble+sort+c%23
This is a community site. I try to contribute to the list as much as
possible, even if it's just to help answer the brain-dead questions (from
people like you) that have been asked a million times. In return, I post
questions regarding problems that I encounter, without feeling
self-absorbed. What do you offer in return for the help given to you?
Nothing!

You got a few things right:

1. I'm angry. I have posted a few questions to real world problems in the
last couple of weeks, the answers to which are not readily available
anywhere else (I know because I took the time to look for myself). It seems that people are too busy answering your lame questions to help me!

2. C# is the place to be.

-Eric

Nov 15 '05 #18

P: n/a
I chose to answer the one question posted by Mark that I felt he needed the
most help with:

Whether or not he was lazy.

An FAQ won't solve the problem. The problem is that people are too lazy to
do their own research. You can make the most comprehensive FAQ and people
still won't take the time to read it (let alone have to search for it).

If a good FAQ was the answer (I'll point out Bob Powell's GDI+ FAQ and
George Shepherd's WinForms FAQ), you'd only be getting one or two posts a
day in most of these groups.

-Eric
Nov 15 '05 #19

P: n/a

"Eric Cadwell" <ec******@ns.insight.com> wrote in message
news:Oh**************@TK2MSFTNGP11.phx.gbl...
I chose to answer the one question posted by Mark that I felt he needed the most help with:

Whether or not he was lazy.
Yes he was lazy, as to if it was the one he needed the most help with is
debatable. Most of the time it is best for those of us posting replies and
helping out simply to hold our tongues and let things be. Reputations do
build and there is always the chance you will offend someone who has the
answer to a question you yourself post.

I know the annoyance of not having questions answered(the vast majority of
questions i've post have gone unanswered) An FAQ won't solve the problem. The problem is that people are too lazy to
do their own research. You can make the most comprehensive FAQ and people
still won't take the time to read it (let alone have to search for it).

If a good FAQ was the answer (I'll point out Bob Powell's GDI+ FAQ and
George Shepherd's WinForms FAQ), you'd only be getting one or two posts a
day in most of these groups.
The existance of a FAQ alone is not the point. People aren't going to find
it. My point was that having answers to things like static abstracts,
checked exceptions, and other questions I see fielded every week,
referencing the group posts would simply save time for those of us trying to
make replies. If I post something they don't care to read, thats fine, I've
done what I intended to do. I don't even mind fielding some simple questions
that are asked alot, but I get tired of the same weekly questions on the
design of the language, etc, that no single page covers in detail. It is
alot of work to find a good, comprehensive set of answers that everyone will
agree with, most faq's don't provide the kind of answers those questions
need, but the pre-existing posts that have been made do. -Eric

Nov 15 '05 #20

P: n/a
Ummm... Are these a set of homework assignments?

Nov 15 '05 #21

P: n/a

"Mark Kamoski" <mk******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Am I "lazy" or am I rightly choosing to "avoid reinventing the wheel"?

OK, since you asked...

The crucial question is whether you are going to hide anything from your
teachers.

If you use other people's code, you must acknowledge it explicitly.

If you use other people's code without acknowledging it, it's what we call
academic dishonesty, and we expel students for doing such things. It may
also be a violation of copyright law.

So make 100% sure that your instructor knows where you got your code.
--

Michael A. Covington - Associate Director
Artificial Intelligence Center, The University of Georgia
http://www.ai.uga.edu/~mc
Nov 15 '05 #22

P: n/a


Eric--

An, I see.

You are one of the "very important" people.

That statement reveals a lot.

You have chosen to offer nothing more than a "petty, better-than-you,
newsgroup bully flame".

That's fine and it seems to be where you wish to spend your energies.

And, as it is now clear, there's no point in continuing this conversation.

Take care.

--Mark
"Eric Cadwell" <ec******@ns.insight.com> wrote in message
news:OJ**************@tk2msftngp13.phx.gbl...
Just giving my opinion. Sorry if I judged you in haste, but I doubt that's
the case. You're wasting the time of some very important people who have
better things to do than your homework.

You didn't ask an academic question about C#, you specifically asked for
some measure of work to be done for you, simply because you're too lazy to
do it (or find it) yourself. The responsible people who come here with
questions have exhausted at least some amount of their own resources to
find
(or figure out) the problem for themselves.

Most of the responses in this list are in fact just a redirection to a
website, and most of the posts here have been answered a dozen times or
more. Your not trying to avoid reinventing the wheel, your asking someone
else to do it for you! Why should the people in this newsgroup rewrite the
Bubble Sort for you?

The answer to 99% of the questions posted here can be found in Google (via
the web or newsgroup posts themselves). I don't want to hear "maybe I can't
get to the Internet", because even my public library has free Internet
access (not too mention a few shelves packed full of programming books).

Imagine a world where people learned to figure out things for themselves by
leveraging the public knowledge that already exists (your only valid
point -
that this posting will serve as a beacon for the next lazy person who
enrolls in the same class you did):

bubble sort group:*csharp - I get 20 hits
http://groups.google.com/groups?as_q...harp&lr=&hl=en

bubble sort C# - I get 1650 hits
http://www.google.com/search?hl=en&l...bble+sort+c%23

This is a community site. I try to contribute to the list as much as
possible, even if it's just to help answer the brain-dead questions (from
people like you) that have been asked a million times. In return, I post
questions regarding problems that I encounter, without feeling
self-absorbed. What do you offer in return for the help given to you?
Nothing!

You got a few things right:

1. I'm angry. I have posted a few questions to real world problems in the
last couple of weeks, the answers to which are not readily available
anywhere else (I know because I took the time to look for myself). It seems
that people are too busy answering your lame questions to help me!

2. C# is the place to be.

-Eric


Nov 15 '05 #23

P: n/a
No, I'm not one of the important people. The important people have "MVP" or
"Microsoft" next to their names. I'm in need of help from such important
people. In return, I offer as much help as I can. That's called being humble
and grateful for the support extended to me.

I thought I made that clear? You obviously missed the point.

I also don't think I posted a "bully flame." I just expressed my opinion on
a matter that you offered for feedback. You have made far more judgment
against me for simply being honest with you. It's not my fault that you have
trouble accepting criticism.

Maybe the truth hurts? For that I am sorry.

-Eric

Nov 15 '05 #24

P: n/a
> No, I'm not one of the important people. The important people have "MVP"
or
"Microsoft" next to their names. I'm in need of help from such important
Hmmm, that's going to leave you open to criticism that you've affected by
corporate brainwashing. Take my word for it, you are important. We all are.
against me for simply being honest with you. It's not my fault that you have trouble accepting criticism.


I would not worry about what other people do. Concentrate on what you want
to do. But yes defend yourself after much thought.

At any rate, I'd like to see a bubble sort sample in C# code also.

Nov 15 '05 #25

P: n/a
Typeo: I meant 'been affected' not 'affected'. I think I've been affected by
too many trips to Starbucks.
"Empire City" <a@b.com> wrote in message
news:cf******************@twister.nyc.rr.com...
No, I'm not one of the important people. The important people have "MVP" or
"Microsoft" next to their names. I'm in need of help from such important


Hmmm, that's going to leave you open to criticism that you've affected by
corporate brainwashing. Take my word for it, you are important. We all

are.
against me for simply being honest with you. It's not my fault that you

have
trouble accepting criticism.


I would not worry about what other people do. Concentrate on what you want
to do. But yes defend yourself after much thought.

At any rate, I'd like to see a bubble sort sample in C# code also.

Nov 15 '05 #26

P: n/a
> At any rate, I'd like to see a bubble sort sample in C# code also.

I agree, in fact, I'd like to see Mark's research after he's done, sounds
like a hell of a topic of which I now very little about. I'm sure he'll come
up with valuable results, and I'll be the first to admit that maybe I'm too
lazy to do for myself!
corporate brainwashing?


You betcha!

Unfortunately, I'm standing in line patiently waiting for my glass of
Kool-Aid, because I'm 100% sure that some of my questions can only be
answered by the writers of the gospel - the CLR team.

For that matter, I've already had my shot of Kool-Aid compliments of .NET
and I'm stading here waiting for it to hit me! The 1.0 framework appears to
have some significant issues and we were supposed to have rolled a
enterprise 1.0-based app today. It's way too late to move to 1.1 now.

-Eric
Nov 15 '05 #27

P: n/a
> Afterall, if you are trying to argue that asking for a code sample of a
particular algorithm written in C# is off-topic in a newsgroup called
"microsoft.public.dotnet.languages.csharp", then there is no point in
continuing this conversation.
It IS off-topic.

This newgroups should be for questions regarding the C# language, not
algorithms written in it, not apps written in it, not help with the
framework.

The language ONLY.

Just becuase this NG is full of people asking off-topic questions doesn't
mean it's OK.

A better place to ask would be m.p.dotnet.general.

It's annoying that these newsgroups aren't moderated, I'm fed up with
trawling through off-topic posts in the hope of coming across some real
questions.

Another address for the kill-file I suppose....

"Mark Kamoski" <mk******@yahoo.com> wrote in message
news:OA**************@TK2MSFTNGP11.phx.gbl...

Eric--

Your comments are out of sync with the spirit of a newsgroups intent--
namely, to share information with others and to help others.

If you don't want to help someone who asks for help, then that is fine.

Regardless, you have NOT addressed the other possibility mentioned-- that
is, the need for humankind to avoid re-inventing the wheel.

Aside from this, you have missed many other points.

What if WebSense here does not let me do Google searches but does allow
Outlook Express newsgroup access?

And so on.

Afterall, if you are trying to argue that asking for a code sample of a
particular algorithm written in C# is off-topic in a newsgroup called
"microsoft.public.dotnet.languages.csharp", then there is no point in
continuing this conversation.

More to the point, I have seen your type of attitude a lot. Someone asks a
simple question and they are met with mean-spirited responses. It is
typical of someone who is angry and petty.

Let's look at something else. Before my posts, when one tried a Find in
Outlook Express in this newsgroup,
"microsoft.public.dotnet.languages.csharp", for something common like
"bubble sort", one got no results. Until now, after my posts. Perhaps you
don't think it valuable to index and link such information into this
newsgroup. So be it. I, however, do believe it is valuable and that's one
of the reasons I have posted here.

One has to ask-- is it my goal to help people or to simply say "go ask
someone else"?

I wonder, Eric, how would you answer this question?

In short, if one were to extend your thinking as suggested in your message
below, this entire newsgroup could be replaced with a single post that
simply says "please search Google for your answers", which is, of course,
quite silly.

This is common today. How many times do people say in verbal
conversations...

"you should check the web on that"

...well, of course. But is this really more than a dodge to answer a
question directly? Note that the web is NOT the only source of information. Futhermore, what is the web if not a small segment of human knowledge. Who
better to ask about the contents of the human mind than another human.
Perhaps this seems odd to you, but to me it does not.

Which begs the question, why does this newsgroup exist?

It is academic to see that it exists as a place for people to ask questions about the language CSharp, which is precisely what I have done.

If you haven't time to come down off your high horse to help someone with a question, then I daresay you are spending your time in the wrong place.

What is more, if you time is so precious as to be hindered by the
interruptions of simple question, then it is all the more curious as to why you would sacrifice a slice of that precious time to flame a legitimate
post. Only you can answer this.
Oh well, Eric. Perhaps we see things differently.

Let's see what YOU do from here onward.

My prediction is that you will either...

lash our with some sort of petty, better-than-you, newsgroup bully flame

...or...

you will respond rationally and calmly, as civilization and the advancement of knowledge dictates.

But, that's just a prediction. Let's see.

The future is yours to write, Eric. Use a pencil in case you make a
mistake.



"Eric Cadwell" <ec******@ns.insight.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
So, am I "lazy" or am I just "trying to avoid re-inventing the wheel"?
You decide.


Your f'ing lazy!!!
Or your too dumb to do a google search.

You decide! The rest of us know the answer to that one.

-Eric

Nov 15 '05 #28

P: n/a

Stu--

The question...

"How can one write X in C#?"

....IS about the language.

In fact, it cannot be MORE about the language.

Furthermore, questions about specific algorithms written in C# are even
more divorced from tertiary subject matter-- again, emphasizing the
question's focus on using C# to implement a particular, generic, abstract
process, relative to no other context than the implementation using C# in
DotNet.

For example, it is straightforward to write InsertionSort in
English-pseudocode. It is, however, quite another thing to write it in C#.
This requires a particular knowledge of the language C#. And so on.

As to your suggestion about the dotnet.general group, it too is a mistaken.

As stated, my question is NOT about DotNet "in general". In fact, it is
VERY specific. It is about C# in DotNet. Not about DotNet in general, or
about ANY language in DotNet. It is ONLY about C#. That is, it IS about C#,
(in specific), and could hardly be made to be about C# any more than it
already is.

Therefore, it is not clear what you have in mind as an "on topic" post. If
one takes what you say literally and at face value, then this newsgroup
would be some sort of analysis from the perspective of a meta-languague,
reflecting upon C# in some way. Clearly it is not, as evidenced by the
posts here.

As the name states, this is obviously a "public" newsgroup about "dotnet",
particularly about a "language" within this context, namely "csharp". This
is a simply application of the use of the English language-- academic, if
not obvious.

Therefore, a question about how to write a particular algorithm, using the
language of csharp in dotnet IS on topic by a one-to-one mapping. If not,
then the group is not named correctly, which is a useless thing to
consider.

That's about it.

Regarding you "k*** file", that decision is yours.

I state all of this in reply to your post and, while I did say directly to
another poster...
if you are trying to argue that asking for a code sample of a
particular algorithm written in C# is off-topic in a newsgroup called
"microsoft.public.dotnet.languages.csharp", then there is no point in
continuing this conversation.
...., the same applies to your remarks. Why? Well, simply because they will
then be "off topic" relative to any sort of "reasonable analysis" because
it simply does not coincide with the use of the English language.
Furthermore, while we are on the topic of being "off topic", there is
certainly no point in perpetuating dialog with those who wish to
participate in another tangent of silly newsgroup flames.

If, however, you wish to discuss this matter rationally and reasonably,
with the standard application of the English language, then I welcome such
dialog.

Take care.

--Mark
"Stu Smith" <st*****@remove.digita.com> wrote in message
news:eH**************@TK2MSFTNGP09.phx.gbl... Afterall, if you are trying to argue that asking for a code sample of a
particular algorithm written in C# is off-topic in a newsgroup called
"microsoft.public.dotnet.languages.csharp", then there is no point in
continuing this conversation.
It IS off-topic.

This newgroups should be for questions regarding the C# language, not
algorithms written in it, not apps written in it, not help with the
framework.

The language ONLY.

Just becuase this NG is full of people asking off-topic questions doesn't
mean it's OK.

A better place to ask would be m.p.dotnet.general.

It's annoying that these newsgroups aren't moderated, I'm fed up with
trawling through off-topic posts in the hope of coming across some real
questions.

Another address for the kill-file I suppose....

"Mark Kamoski" <mk******@yahoo.com> wrote in message
news:OA**************@TK2MSFTNGP11.phx.gbl...

Eric--

Your comments are out of sync with the spirit of a newsgroups intent--
namely, to share information with others and to help others.

If you don't want to help someone who asks for help, then that is fine.

Regardless, you have NOT addressed the other possibility mentioned-- that
is, the need for humankind to avoid re-inventing the wheel.

Aside from this, you have missed many other points.

What if WebSense here does not let me do Google searches but does allow
Outlook Express newsgroup access?

And so on.

Afterall, if you are trying to argue that asking for a code sample of a
particular algorithm written in C# is off-topic in a newsgroup called
"microsoft.public.dotnet.languages.csharp", then there is no point in
continuing this conversation.

More to the point, I have seen your type of attitude a lot. Someone asks a simple question and they are met with mean-spirited responses. It is
typical of someone who is angry and petty.

Let's look at something else. Before my posts, when one tried a Find in
Outlook Express in this newsgroup,
"microsoft.public.dotnet.languages.csharp", for something common like
"bubble sort", one got no results. Until now, after my posts. Perhaps you
don't think it valuable to index and link such information into this
newsgroup. So be it. I, however, do believe it is valuable and that's one
of the reasons I have posted here.

One has to ask-- is it my goal to help people or to simply say "go ask
someone else"?

I wonder, Eric, how would you answer this question?

In short, if one were to extend your thinking as suggested in your message below, this entire newsgroup could be replaced with a single post that
simply says "please search Google for your answers", which is, of course,
quite silly.

This is common today. How many times do people say in verbal
conversations...

"you should check the web on that"

...well, of course. But is this really more than a dodge to answer a
question directly? Note that the web is NOT the only source of information. Futhermore, what is the web if not a small segment of human knowledge. Who better to ask about the contents of the human mind than another human.
Perhaps this seems odd to you, but to me it does not.

Which begs the question, why does this newsgroup exist?

It is academic to see that it exists as a place for people to ask questions about the language CSharp, which is precisely what I have done.

If you haven't time to come down off your high horse to help someone with a question, then I daresay you are spending your time in the wrong place.

What is more, if you time is so precious as to be hindered by the
interruptions of simple question, then it is all the more curious as to why you would sacrifice a slice of that precious time to flame a legitimate
post. Only you can answer this.
Oh well, Eric. Perhaps we see things differently.

Let's see what YOU do from here onward.

My prediction is that you will either...

lash our with some sort of petty, better-than-you, newsgroup bully flame

...or...

you will respond rationally and calmly, as civilization and the advancement of knowledge dictates.

But, that's just a prediction. Let's see.

The future is yours to write, Eric. Use a pencil in case you make a
mistake.



"Eric Cadwell" <ec******@ns.insight.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
So, am I "lazy" or am I just "trying to avoid re-inventing the wheel"?
You decide.


Your f'ing lazy!!!
Or your too dumb to do a google search.

You decide! The rest of us know the answer to that one.

-Eric


Nov 15 '05 #29

P: n/a
That has to be the most ridiculous thing I've read in any NG ever. Oh man,
I can't stop laughing.

"Stu Smith" <st*****@remove.digita.com> wrote in message
news:eH**************@TK2MSFTNGP09.phx.gbl...

This newgroups should be for questions regarding the C# language, not
algorithms written in it, not apps written in it, not help with the
framework.

The language ONLY.

Nov 15 '05 #30

P: n/a
While I agree that it is a bit ridiculous, the person asking for the bubble
sort was probably a college kid looking to cheat, and I don't think any of
us should be condoning that.

-Rob
"Daniel Billingsley" <db**********@NO.durcon.SPAAMM.com> wrote in message
news:uF**************@tk2msftngp13.phx.gbl...
That has to be the most ridiculous thing I've read in any NG ever. Oh man, I can't stop laughing.

"Stu Smith" <st*****@remove.digita.com> wrote in message
news:eH**************@TK2MSFTNGP09.phx.gbl...

This newgroups should be for questions regarding the C# language, not
algorithms written in it, not apps written in it, not help with the
framework.

The language ONLY.


Nov 15 '05 #31

P: n/a
I wasn't commenting on the OP, only on the statement that a newsgroup about
a language should not discuss algorithms written in it.

"Robert Wilkens" <ro**@optonline.net> wrote in message
news:Ox**************@tk2msftngp13.phx.gbl...
While I agree that it is a bit ridiculous, the person asking for the bubble sort was probably a college kid looking to cheat, and I don't think any of
us should be condoning that.

-Rob

Nov 15 '05 #32

P: n/a
Alright I was having a bad day, but don't you ever get frustrated that this
ng just fills up with basically rubbish?
It should be for discussing the language (and yes I suppose that applies to
algorithms)... but it shouldn't be a forum for "how do I do sorting?" (fair
enough, "what's the most optimal/elegant/whatever sorting algorithm in C#"
maybe, I could have been a bit clearer).

As an example about the sort of things that annoy me, at the top of my list
I have (on this ng):

My NT Services crash at startup
Best method to parse XML
DataGrid column delete question
How to implement move next etc in datagrid

All valid questions, but not here... the low signal-to-noise ratio is
getting me.

I admit I could have phrased my rant a little better. I hope you see what I
meant (and not what I actually wrote, which on today's reading was slightly
ridiculous).

Since I can't explain in words what I thought this ng was about, I'll give
some examples of posts which seem to fit the bill (took rather more
searching this one):

Quick way to toggle a bit
Idea for furture version of C#...
C# generics: is it possible...

Just frustrating that the on-topic questions are there, but you have to wade
through a sea of rubbish.

Stu
"Daniel Billingsley" <db**********@NO.durcon.SPAAMM.com> wrote in message
news:O0*************@tk2msftngp13.phx.gbl...
I wasn't commenting on the OP, only on the statement that a newsgroup about a language should not discuss algorithms written in it.

"Robert Wilkens" <ro**@optonline.net> wrote in message
news:Ox**************@tk2msftngp13.phx.gbl...
While I agree that it is a bit ridiculous, the person asking for the

bubble
sort was probably a college kid looking to cheat, and I don't think any of us should be condoning that.

-Rob


Nov 15 '05 #33

P: n/a
> It should be for discussing the language (and yes I suppose that applies
to

Yes, but people who contribute regularly can be cut some slack. Here's a
different group that has some reasonable guidlines for posting:

http://www.wwwac.org/ Look at the guidlines link on the bottom left.

A bit of entertainment boosts productivity, in my opinion.
My NT Services crash at startup
Upgrade to W2K server.
Best method to parse XML
DataGrid column delete question
How to implement move next etc in datagrid
All valid questions, but not here... the low signal-to-noise ratio is
getting me.
How many people read this list regularly? Most of the above types of
questions go unanswered and RTM applies. There are a lot of beginners from
what I see. It's a community of basically smart programmer type people and
reflects real life.
Just frustrating that the on-topic questions are there, but you have to wade through a sea of rubbish.


It is a bit noisy but beginners have to start somewhere. I hope my bubble
doesn't burst. We all like bubbles and it would be nice if whoever posted
that question could come up with some elegant code complely violating the
'no algorithm' rule. Maybe he'll avoid selective prosceution then.

Just as a side note on my /r thingy mee gig question. Thanks for the replies
as that basically helped for what I wanted. My real question was however
what is the formal name of these things and where is the documentation?

\' Single quote
\" Double quote
\\ Backslash
\0 Null
\a Alert / Bell
\b Backspace
\f Form feed
\n New line
\r Carriage return
\t Horizontal tab
\v Vertical tab



Nov 15 '05 #34

P: n/a
Empire City <a@b.com> wrote:

<snip>
Just as a side note on my /r thingy mee gig question. Thanks for the replies
as that basically helped for what I wanted. My real question was however
what is the formal name of these things and where is the documentation?


They're called escape sequences, and they're listed in section 9.4.4.4
of the C# ECMA spec, "character literals".

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #35

This discussion thread is closed

Replies have been disabled for this discussion.