Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #27583 > unrolled thread
| Started by | Nikhil Joshi <nitin.nitinperderusted.rastogi@gmail.com> |
|---|---|
| First post | 2012-10-23 08:54 -0700 |
| Last post | 2012-11-01 18:13 +0000 |
| Articles | 17 on this page of 37 — 14 participants |
Back to article view | Back to comp.lang.c
A C program Nikhil Joshi <nitin.nitinperderusted.rastogi@gmail.com> - 2012-10-23 08:54 -0700
Re: A C program James Kuyper <jameskuyper@verizon.net> - 2012-10-23 12:05 -0400
Re: A C program Rich Webb <bbew.ar@mapson.nozirev.ten> - 2012-10-23 13:07 -0400
Re: A C program BruceS <bruces42@hotmail.com> - 2012-10-29 21:58 +0000
Re: A C program Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2012-10-23 10:46 -0600
Re: A C program Keith Thompson <kst-u@mib.org> - 2012-10-23 13:28 -0700
Re: A C program tom st denis <tom@iahu.ca> - 2012-10-30 06:28 -0700
Re: A C program Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-10-30 15:42 +0000
Re: A C program tom st denis <tom@iahu.ca> - 2012-10-30 08:44 -0700
Re: A C program Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-10-30 17:28 +0000
Re: A C program tom st denis <tom@iahu.ca> - 2012-10-30 10:32 -0700
Re: A C program Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-10-30 18:21 +0000
Re: A C program "Bill Cunningham" <nospam@nspam.invalid> - 2012-11-04 16:57 -0500
Re: A C program "BartC" <bc@freeuk.com> - 2012-10-30 16:12 +0000
Re: A C program tom st denis <tom@iahu.ca> - 2012-10-30 09:38 -0700
Re: A C program James Kuyper <jameskuyper@verizon.net> - 2012-10-30 12:57 -0400
Re: A C program tom st denis <tom@iahu.ca> - 2012-10-30 10:26 -0700
Re: A C program James Kuyper <jameskuyper@verizon.net> - 2012-10-30 14:30 -0400
Re: A C program tom st denis <tom@iahu.ca> - 2012-10-30 14:47 -0700
Re: A C program James Kuyper <jameskuyper@verizon.net> - 2012-10-30 18:29 -0400
Re: A C program "Bill Cunningham" <nospam@nspam.invalid> - 2012-11-04 16:35 -0500
Re: A C program Keith Thompson <kst-u@mib.org> - 2012-11-04 14:25 -0800
Re: A C program "BartC" <bc@freeuk.com> - 2012-11-04 23:53 +0000
Re: A C program Keith Thompson <kst-u@mib.org> - 2012-11-04 16:09 -0800
Re: A C program Rui Maciel <rui.maciel@gmail.com> - 2012-11-01 18:17 +0000
Re: A C program Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-10-30 13:02 -0400
Re: A C program Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2012-10-30 11:15 -0600
Re: A C program tom st denis <tom@iahu.ca> - 2012-10-30 10:28 -0700
Re: A C program Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-10-30 17:42 +0000
Re: A C program tom st denis <tom@iahu.ca> - 2012-10-30 10:49 -0700
Re: A C program Greg Martin <greg@softsprocket.com> - 2012-10-30 11:11 -0700
Re: A C program Rui Maciel <rui.maciel@gmail.com> - 2012-11-01 18:11 +0000
Re: A C program "Bill Cunningham" <nospam@nspam.invalid> - 2012-11-04 16:38 -0500
Re: A C program Malcolm McLean <malcolm.mclean5@btinternet.com> - 2012-11-05 07:45 -0800
Re: A C program James Kuyper <jameskuyper@verizon.net> - 2012-11-05 13:28 -0500
Re: A C program Rui Maciel <rui.maciel@gmail.com> - 2012-11-01 18:03 +0000
Re: A C program Rui Maciel <rui.maciel@gmail.com> - 2012-11-01 18:13 +0000
Page 2 of 2 — ← Prev page 1 [2]
| From | "Bill Cunningham" <nospam@nspam.invalid> |
|---|---|
| Date | 2012-11-04 16:35 -0500 |
| Message-ID | <k76n1v$pt4$1@dont-email.me> |
| In reply to | #27840 |
Don't feed the trolls
[toc] | [prev] | [next] | [standalone]
| From | Keith Thompson <kst-u@mib.org> |
|---|---|
| Date | 2012-11-04 14:25 -0800 |
| Message-ID | <lnehk9m2ey.fsf@nuthaus.mib.org> |
| In reply to | #28018 |
"Bill Cunningham" <nospam@nspam.invalid> writes:
> Don't feed the trolls
Bill, you're replying to a message from nearly a week ago,
and providing zero context, to tell us not to feed the trolls.
This thing has already died out; you're the only one still posting
about it. Just drop it and move on.
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Will write code for food.
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
[toc] | [prev] | [next] | [standalone]
| From | "BartC" <bc@freeuk.com> |
|---|---|
| Date | 2012-11-04 23:53 +0000 |
| Message-ID | <k76v68$8jm$1@dont-email.me> |
| In reply to | #28025 |
"Keith Thompson" <kst-u@mib.org> wrote in message news:lnehk9m2ey.fsf@nuthaus.mib.org... > "Bill Cunningham" <nospam@nspam.invalid> writes: >> Don't feed the trolls > > Bill, you're replying to a message from nearly a week ago, > and providing zero context, to tell us not to feed the trolls. > This thing has already died out; you're the only one still posting > about it. Just drop it and move on. I don't think it's the same Bill. -- Bartc
[toc] | [prev] | [next] | [standalone]
| From | Keith Thompson <kst-u@mib.org> |
|---|---|
| Date | 2012-11-04 16:09 -0800 |
| Message-ID | <lna9uwnc60.fsf@nuthaus.mib.org> |
| In reply to | #28042 |
"BartC" <bc@freeuk.com> writes:
> "Keith Thompson" <kst-u@mib.org> wrote in message
> news:lnehk9m2ey.fsf@nuthaus.mib.org...
>> "Bill Cunningham" <nospam@nspam.invalid> writes:
>>> Don't feed the trolls
>>
>> Bill, you're replying to a message from nearly a week ago,
>> and providing zero context, to tell us not to feed the trolls.
>> This thing has already died out; you're the only one still posting
>> about it. Just drop it and move on.
>
> I don't think it's the same Bill.
All the evidence I can see suggests that it is -- but it doesn't really
matter.
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Will write code for food.
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
[toc] | [prev] | [next] | [standalone]
| From | Rui Maciel <rui.maciel@gmail.com> |
|---|---|
| Date | 2012-11-01 18:17 +0000 |
| Message-ID | <k6uec0$1ms$3@dont-email.me> |
| In reply to | #27827 |
tom st denis wrote: > Whatever, you're missing the point. I don't believe James Kuyper missed the point. You, on the other hand, failed to catch the irony of your own complaint. Rui Maciel
[toc] | [prev] | [next] | [standalone]
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
|---|---|
| Date | 2012-10-30 13:02 -0400 |
| Message-ID | <k6p16s$tce$1@dont-email.me> |
| In reply to | #27822 |
On 10/30/2012 12:12 PM, BartC wrote:
> "tom st denis" <tom@iahu.ca> wrote in message
> news:8b079e76-7530-46bd-ad32-e03deb4310fe@h15g2000yqe.googlegroups.com...
>
>> This is the equivalent of a math major asking us to help
>> them solve the matrix
>>
>> [ 2 1 ]
>> [ 1 1 ]
>
> What's the answer?
42.
--
Eric Sosman
esosman@comcast-dot-net.invalid
[toc] | [prev] | [next] | [standalone]
| From | Joe Pfeiffer <pfeiffer@cs.nmsu.edu> |
|---|---|
| Date | 2012-10-30 11:15 -0600 |
| Message-ID | <1bsj8vyj8h.fsf@snowball.wb.pfeifferfamily.net> |
| In reply to | #27810 |
tom st denis <tom@iahu.ca> writes: > On Oct 23, 11:54 am, Nikhil Joshi > <nitin.nitinperderusted.rast...@gmail.com> wrote: >> write a program to calculate decimal number from binary number? > > I'mma gonna go beyond what the other people wrote and just say this. > > Drop out of whatever program you are in now. If this sort of program > stumps you you have no business studying computer science nor software > development. This strikes me as too harsh. This is the sort of thing that will challenge a freshman (and maybe even a sophomore) the first time they see it; he does need to be told to do his own homework (and has been); he only needs to change majors if he doesn't get better.
[toc] | [prev] | [next] | [standalone]
| From | tom st denis <tom@iahu.ca> |
|---|---|
| Date | 2012-10-30 10:28 -0700 |
| Message-ID | <522d3d88-5dcd-4ca6-a0ef-cd20d9507253@x21g2000vbg.googlegroups.com> |
| In reply to | #27826 |
On Oct 30, 1:15 pm, Joe Pfeiffer <pfeif...@cs.nmsu.edu> wrote: > tom st denis <t...@iahu.ca> writes: > > > On Oct 23, 11:54 am, Nikhil Joshi > > <nitin.nitinperderusted.rast...@gmail.com> wrote: > >> write a program to calculate decimal number from binary number? > > > I'mma gonna go beyond what the other people wrote and just say this. > > > Drop out of whatever program you are in now. If this sort of program > > stumps you you have no business studying computer science nor software > > development. > > This strikes me as too harsh. This is the sort of thing that will > challenge a freshman (and maybe even a sophomore) the first time they > see it; he does need to be told to do his own homework (and has been); > he only needs to change majors if he doesn't get better. I think it boils down to a complete and utter lack of intuition and drive for knowledge. Likely the person is looking for the easiest cheap ride through to a diploma so they can then waste peoples time as a completely worthless software developer. I could have solved this problem when I was 8 years old. So in effect, this guy has less intuition about software and computer science than a C average 8 year old from a small town in Ontario Canada. That's not saying much for their worth as a student let alone an eventual professional.
[toc] | [prev] | [next] | [standalone]
| From | Ben Bacarisse <ben.usenet@bsb.me.uk> |
|---|---|
| Date | 2012-10-30 17:42 +0000 |
| Message-ID | <0.042e45d037b146dcccda.20121030174239GMT.87fw4v3lgw.fsf@bsb.me.uk> |
| In reply to | #27829 |
tom st denis <tom@iahu.ca> writes: > On Oct 30, 1:15 pm, Joe Pfeiffer <pfeif...@cs.nmsu.edu> wrote: >> tom st denis <t...@iahu.ca> writes: >> >> > On Oct 23, 11:54 am, Nikhil Joshi >> > <nitin.nitinperderusted.rast...@gmail.com> wrote: >> >> write a program to calculate decimal number from binary number? >> >> > I'mma gonna go beyond what the other people wrote and just say this. >> >> > Drop out of whatever program you are in now. If this sort of program >> > stumps you you have no business studying computer science nor software >> > development. >> >> This strikes me as too harsh. This is the sort of thing that will >> challenge a freshman (and maybe even a sophomore) the first time they >> see it; he does need to be told to do his own homework (and has been); >> he only needs to change majors if he doesn't get better. > > I think it boils down to a complete and utter lack of intuition and > drive for knowledge. Likely the person is looking for the easiest > cheap ride through to a diploma so they can then waste peoples time as > a completely worthless software developer. > > I could have solved this problem when I was 8 years old. So in > effect, this guy has less intuition about software and computer > science than a C average 8 year old from a small town in Ontario > Canada. That's not saying much for their worth as a student let alone > an eventual professional. Using yourself as an example is wrong unless you consider yourself just about the least talented programmer who ever benefited from studying programing. I suspect you had an average or above average talent for programming, which means that there are thousands and thousands of less talented programmers who, every year, study programming a benefited form it. -- Ben.
[toc] | [prev] | [next] | [standalone]
| From | tom st denis <tom@iahu.ca> |
|---|---|
| Date | 2012-10-30 10:49 -0700 |
| Message-ID | <18c3d66c-1206-4980-91b1-f89e4fa2f3bc@b6g2000yqd.googlegroups.com> |
| In reply to | #27832 |
On Oct 30, 1:42 pm, Ben Bacarisse <ben.use...@bsb.me.uk> wrote: > Using yourself as an example is wrong unless you consider yourself just > about the least talented programmer who ever benefited from studying > programing. I suspect you had an average or above average talent for > programming, which means that there are thousands and thousands of less > talented programmers who, every year, study programming a benefited form > it. This guy isn't creating a complicated data compression scheme or writing a schedule for a pre-emptive OS. It's converting binary to decimal. It's about as basic as it gets. If this sort of problem challenges him/her so much that they can't even post their [failed] attempt at solving it ... they really need to think hard about the industry they're in. Worse, if the guy didn't even bother trying and is just looking for a free ride they should do everyone a favour and step down. Leave room in the programme for people who actually want to try.
[toc] | [prev] | [next] | [standalone]
| From | Greg Martin <greg@softsprocket.com> |
|---|---|
| Date | 2012-10-30 11:11 -0700 |
| Message-ID | <WKUjs.986$ND1.770@newsfe08.iad> |
| In reply to | #27833 |
On 12-10-30 10:49 AM, tom st denis wrote: > On Oct 30, 1:42 pm, Ben Bacarisse <ben.use...@bsb.me.uk> wrote: >> Using yourself as an example is wrong unless you consider yourself just >> about the least talented programmer who ever benefited from studying >> programing. I suspect you had an average or above average talent for >> programming, which means that there are thousands and thousands of less >> talented programmers who, every year, study programming a benefited form >> it. > > This guy isn't creating a complicated data compression scheme or > writing a schedule for a pre-emptive OS. It's converting binary to > decimal. It's about as basic as it gets. If this sort of problem > challenges him/her so much that they can't even post their [failed] > attempt at solving it ... they really need to think hard about the > industry they're in. > > Worse, if the guy didn't even bother trying and is just looking for a > free ride they should do everyone a favour and step down. Leave room > in the programme for people who actually want to try. > The problem with judgements made on a limited sample of data is that they are frequently informed by bias. The OP may be as you suggest, though one doesn't have to think to hard to come up with other possibilities. We don't know that he didn't try, only that he didn't post an attempt.
[toc] | [prev] | [next] | [standalone]
| From | Rui Maciel <rui.maciel@gmail.com> |
|---|---|
| Date | 2012-11-01 18:11 +0000 |
| Message-ID | <k6ue18$1ms$1@dont-email.me> |
| In reply to | #27833 |
tom st denis wrote: > This guy isn't creating a complicated data compression scheme or > writing a schedule for a pre-emptive OS. Irrelevant. You are esssentially complaining that someone who has just started learning how to walk can't run a marathon or the 100 meter dash. In fact, your own complaint shows off some ignorance, because there is a significant difference between learning a language and expressing ideas in it. So, try not to bite the newcomers. Rui Maciel
[toc] | [prev] | [next] | [standalone]
| From | "Bill Cunningham" <nospam@nspam.invalid> |
|---|---|
| Date | 2012-11-04 16:38 -0500 |
| Message-ID | <k76n8s$r6h$1@dont-email.me> |
| In reply to | #27829 |
tom st denis wrote:
[snip
> I could have solved this problem when I was 8 years old. So in
> effect, this guy has less intuition about software and computer
> science than a C average 8 year old from a small town in Ontario
> Canada. That's not saying much for their worth as a student let alone
> an eventual professional.
Yes but no one is as perfect as you. All you ever do is show up to
complain. Why don't you make some good use of yourself and help someone or
shut the hell up. It's always about you isn't it.
[toc] | [prev] | [next] | [standalone]
| From | Malcolm McLean <malcolm.mclean5@btinternet.com> |
|---|---|
| Date | 2012-11-05 07:45 -0800 |
| Message-ID | <511d08f3-5ded-41d4-9510-e37824fe666d@googlegroups.com> |
| In reply to | #27826 |
On Tuesday, October 30, 2012 5:15:11 PM UTC, Joe Pfeiffer wrote: > tom st denis <tom@iahu.ca> writes: > > > > Drop out of whatever program you are in now. If this sort of program > > stumps you you have no business studying computer science nor software > > development. > > > > This strikes me as too harsh. This is the sort of thing that will > challenge a freshman (and maybe even a sophomore) the first time they > see it; he does need to be told to do his own homework (and has been); > he only needs to change majors if he doesn't get better. > You've got to understand argv and argc, you've got to write a routine that checks a string is a valid binary number, you've got to detect arithmetic overflow (or, for the class prize, implement an arbitrary-length routine). It's not that easy to get full marks.
[toc] | [prev] | [next] | [standalone]
| From | James Kuyper <jameskuyper@verizon.net> |
|---|---|
| Date | 2012-11-05 13:28 -0500 |
| Message-ID | <50980561.3010703@verizon.net> |
| In reply to | #28057 |
On 11/05/2012 10:45 AM, Malcolm McLean wrote: > On Tuesday, October 30, 2012 5:15:11 PM UTC, Joe Pfeiffer wrote: >> tom st denis <tom@iahu.ca> writes: >> >> >>> Drop out of whatever program you are in now. If this sort of program >>> stumps you you have no business studying computer science nor software >>> development. >> >> >> >> This strikes me as too harsh. This is the sort of thing that will >> challenge a freshman (and maybe even a sophomore) the first time they >> see it; he does need to be told to do his own homework (and has been); >> he only needs to change majors if he doesn't get better. >> > You've got to understand argv and argc, you've got to write a routine that > checks a string is a valid binary number, you've got to detect arithmetic > overflow (or, for the class prize, implement an arbitrary-length routine). > > It's not that easy to get full marks. A key stumbling block for many newbies assigned such a problem is confusion between the use of "binary" to describe the digits in a character string, and the use of "binary" to describe the internal representation of integer types in C. The OP's message is consistent with either possibility as the input to the routine, though the character string seems more reasonable. Being confused about such issues as a newbie is not a good predictor of whether you might be a successful computer scientist or computer programmer, tom st denis' comments to the contrary notwithstanding. If someone were still confused by such issues after spending more than a decade "learning" C, then I would think it's long past time for them to give up - but that's a different issue.
[toc] | [prev] | [next] | [standalone]
| From | Rui Maciel <rui.maciel@gmail.com> |
|---|---|
| Date | 2012-11-01 18:03 +0000 |
| Message-ID | <k6udh5$q92$3@dont-email.me> |
| In reply to | #27810 |
tom st denis wrote: > Drop out of whatever program you are in now. If this sort of program > stumps you you have no business studying computer science nor software > development. C is taught in courses other than CS or anything related to software development. I wouldn't be surprised if nowadays there were more C courses being taught in non-CS degrees than in CS ones. Rui Maciel
[toc] | [prev] | [next] | [standalone]
| From | Rui Maciel <rui.maciel@gmail.com> |
|---|---|
| Date | 2012-11-01 18:13 +0000 |
| Message-ID | <k6ue44$1ms$2@dont-email.me> |
| In reply to | #27810 |
tom st denis wrote: > This is the equivalent of a math major asking us to help > them solve the matrix > > [ 2 1 ] > [ 1 1 ] You got to be kidding. Rui Maciel
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.c
csiph-web