Sunday, October 14, 2012

C/++, you're on notice! - Computers, Math, Science, and Technology


Smartalex
Toucan
Toucan

Joined: Apr 12, 2012
Age: 28
Posts: 250


PostPosted: Sat Oct 13, 2012 4:54 pm?? ?Post subject: C/++, you're on notice! Reply with quote

Grievances with C;

I have to tell you NOT do do something?!? That's stupid. I'm the programmer, I tell you what to do.
"VOID" SETUP or "VOID" LOOP? I'll tell you what C, if I want you to bring me back a value, I, will tell YOU, to bring me back a value. Don't go doing stuff on your own!

INT, integer, really?!? The last time I paid attention to math class was fifth grade. Call it "name" or "address" or anything better than "InTEger". You might as well just write the language in Greek.

C/++, you're on notice!

Back to top
MyFutureSelfnMe
Phoenix
Phoenix

Joined: Feb 27, 2010
Posts: 1222
Location: NYC


PostPosted: Sat Oct 13, 2012 5:22 pm?? ?Post subject: Re: C/++, you're on notice! Reply with quote

Smartalex wrote:
Grievances with C;

I have to tell you NOT do do something?!? That's stupid. I'm the programmer, I tell you what to do.
"VOID" SETUP or "VOID" LOOP? I'll tell you what C, if I want you to bring me back a value, I, will tell YOU, to bring me back a value. Don't go doing stuff on your own!

INT, integer, really?!? The last time I paid attention to math class was fifth grade. Call it "name" or "address" or anything better than "InTEger". You might as well just write the language in Greek.

C/++, you're on notice!

C++ doesn't "do something on its own", the return type is required. "Void" is specific and helps avoid ambiguity.

How is "name" or "address" better than "int"? If "int" is "name" then what is "float"? What is "long"? Addresses are pointers, they are not integers.

It seems to me you have a grievance with C++'s level of control, while complaining about the lack of it.

If you have a problem with integers, go back to math class.

Back to top
Smartalex
Toucan
Toucan

Joined: Apr 12, 2012
Age: 28
Posts: 250


PostPosted: Sat Oct 13, 2012 5:37 pm?? ?Post subject: Re: C/++, you're on notice! Reply with quote

MyFutureSelfnMe wrote:
Smartalex wrote:
Grievances with C;

I have to tell you NOT do do something?!? That's stupid. I'm the programmer, I tell you what to do.
"VOID" SETUP or "VOID" LOOP? I'll tell you what C, if I want you to bring me back a value, I, will tell YOU, to bring me back a value. Don't go doing stuff on your own!

INT, integer, really?!? The last time I paid attention to math class was fifth grade. Call it "name" or "address" or anything better than "InTEger". You might as well just write the language in Greek.

C/++, you're on notice!

C++ doesn't "do something on its own", the return type is required. "Void" is specific and helps avoid ambiguity.

How is "name" or "address" better than "int"? If "int" is "name" then what is "float"? What is "long"? Addresses are pointers, they are not integers.

It seems to me you have a grievance with C++'s level of control, while complaining about the lack of it.

If you have a problem with integers, go back to math class.

You do realize this is a rather humorour attempt at saying C has some wierd names right?

Back to top
MyFutureSelfnMe
Phoenix
Phoenix

Joined: Feb 27, 2010
Posts: 1222
Location: NYC


PostPosted: Sat Oct 13, 2012 5:39 pm?? ?Post subject: Re: C/++, you're on notice! Reply with quote

Smartalex wrote:
MyFutureSelfnMe wrote:
Smartalex wrote:
Grievances with C;

I have to tell you NOT do do something?!? That's stupid. I'm the programmer, I tell you what to do.
"VOID" SETUP or "VOID" LOOP? I'll tell you what C, if I want you to bring me back a value, I, will tell YOU, to bring me back a value. Don't go doing stuff on your own!

INT, integer, really?!? The last time I paid attention to math class was fifth grade. Call it "name" or "address" or anything better than "InTEger". You might as well just write the language in Greek.

C/++, you're on notice!

C++ doesn't "do something on its own", the return type is required. "Void" is specific and helps avoid ambiguity.

How is "name" or "address" better than "int"? If "int" is "name" then what is "float"? What is "long"? Addresses are pointers, they are not integers.

It seems to me you have a grievance with C++'s level of control, while complaining about the lack of it.

If you have a problem with integers, go back to math class.

You do realize this is a rather humorour attempt at saying C has some wierd names right?

Aspie Humor! Sometimes I get lost...

I don't find C's keywords weird, I think they're brief and to the point

Back to top
Smartalex
Toucan
Toucan

Joined: Apr 12, 2012
Age: 28
Posts: 250


PostPosted: Sat Oct 13, 2012 6:01 pm?? ?Post subject: Reply with quote

It's not actually C's fault.

Here's my problem, I purchased an arduino for my students, highschool, I'm a student teacher. I want to introduce the students to electronics and the programming process in the hopes that they can build things on their own, and have some ownership and pride. So the arduino uses C for the programs.

I don't really understand c that well but my students are having an even tougher time. The sad thing is, they get the board, the get the pin outs, it's that language that is tripping them up. I was told arduino is for "lay people."

Friday, I came in and I told the students to forget everything I tried to explain to them, "Integer is just a way of 'naming' a pin or a piece of information... And the Arduino's language is stupid, you have to tell it NOT to do something, that's why you write VOID in front of setup or loop, otherwise it's gonna search for some address or value". The kids got it. They started making stuff on their own or adapting projects.

I wish there was a language that was better for lay people, that was written in not percise technical terms that are accurate, but rather are in simple and conventional phrases. The phrases that C has that are more conventional such as SETUP, the kids got that. So it's not really C's, fault, it was designed for another purpose.

Back to top
Smartalex
Toucan
Toucan

Joined: Apr 12, 2012
Age: 28
Posts: 250


Back to top
Trencher93
Pileated woodpecker
Pileated woodpecker

Joined: Jun 24, 2008
Age: 112
Posts: 177


PostPosted: Sat Oct 13, 2012 6:13 pm?? ?Post subject: Reply with quote

Don't forget the creat() system call in the list of strange names.

At least the names in C fit on a terminal line. After that six-byte external symbol restriction was lifted a while back, some of those names are so long they make your head spin. Throw in some anonymous functions, and it looks like line noise.

Then there's jQuery, where you're never quite sure if what you've got is a JavaScript property list or some CSS because they're almost identical.

Lots of weird stuff. Goes with the territory.

Back to top
Trencher93
Pileated woodpecker
Pileated woodpecker

Joined: Jun 24, 2008
Age: 112
Posts: 177


PostPosted: Sat Oct 13, 2012 6:15 pm?? ?Post subject: Reply with quote

To be serious:
Smartalex wrote:
Here's my problem, I purchased an arduino for my students...

I've been messing with Arduino and the Raspberry Pi, but haven't had much time to get into them.

One of the two can use Python. That would be a good choice for HS students.

Back to top
MyFutureSelfnMe
Phoenix
Phoenix

Joined: Feb 27, 2010
Posts: 1222
Location: NYC


PostPosted: Sat Oct 13, 2012 6:18 pm?? ?Post subject: Reply with quote

Smartalex wrote:
It's not actually C's fault.

Here's my problem, I purchased an arduino for my students, highschool, I'm a student teacher. I want to introduce the students to electronics and the programming process in the hopes that they can build things on their own, and have some ownership and pride. So the arduino uses C for the programs.

I don't really understand c that well but my students are having an even tougher time. The sad thing is, they get the board, the get the pin outs, it's that language that is tripping them up. I was told arduino is for "lay people."

Friday, I came in and I told the students to forget everything I tried to explain to them, "Integer is just a way of 'naming' a pin or a piece of information... And the Arduino's language is stupid, you have to tell it NOT to do something, that's why you write VOID in front of setup or loop, otherwise it's gonna search for some address or value". The kids got it. They started making stuff on their own or adapting projects.

I wish there was a language that was better for lay people, that was written in not percise technical terms that are accurate, but rather are in simple and conventional phrases. The phrases that C has that are more conventional such as SETUP, the kids got that. So it's not really C's, fault, it was designed for another purpose.

Yeah you should start them on a language like Python or Ruby and move them to C eventually if ever.

Nothing against you, I'm sure you're a great teacher, but it's possible someone well versed in C could have gotten them moving more smoothly.

Back to top
Smartalex
Toucan
Toucan

Joined: Apr 12, 2012
Age: 28
Posts: 250


PostPosted: Sat Oct 13, 2012 6:36 pm?? ?Post subject: Reply with quote

I'm going to check out python and ruby, but i arduino can work with python, I'll check that one out specially.

I do wish there was someone that was really familiar with C, because I'm not the best person for this. I'm pretty good with the components though. My brother is a comp programmer. I have consulted with him on this.

The class of kids are used to not understanding things and they usually just give up, all across the board, not just in homeroom. The kids basically shutdown when I tried to explain things accurately and technically. When the kids started figuring things out, I told them, "I didn't give you the answer, because I don't really have it, lol. It was you guys, you figured it out." For the purpose of giving the kids confidence in their own abilities, the fact that I don't know C works out great.

I do wonder though, if they could get much more programming ability out of this with someone else. I also wonder if my "simpler" phrases may trip them up when they know more about the program but I have to get them going off the ground. I would like to turn the students over in a few weeks to a real expert or encourage the students to continue with this online and maybe at community college.

Back to top
Oodain
big chief wulla bamboom alakaway
Phoenix

Joined: Jan 31, 2011
Age: 22
Posts: 4626
Location: in my own little tamarillo jungle,


PostPosted: Sat Oct 13, 2012 7:15 pm?? ?Post subject: Reply with quote

the arduino is specifically a collection of software and tools for micro c microcontrollers.

included is the wiring programming language, it is as easy as python and java, in some ways easier, it has a huge library support and you can recode specific modules in c if the need should arise.

when working with the arduino i use it even if i plan to drudge my way through most of it in c, (yes for me at my current skill level that is a time consuming task)
in that case the ide simply serves as a way to neatly arrange c program using wiring as an intermediary.

incidently i know that there are dozens of open source and easy to follow education plans for groups of people.
some made specifically for high school, you should ask on the arduino forums, there is a fairly good community there.

if nothing else it will give you an ide aof what pace others find suitable and what methods did and sometimes didnt work.
_________________
//through chaos comes complexity//

the scent of the tamarillo is pungent and powerfull,
woe be to the nose who nears it.

Back to top

Source: http://www.wrongplanet.net/postt212508.html

benjamin netanyahu storm shelters nick lachey chevy volt christina hendricks lifelock camp david

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.