selectbutton
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile / Ignoring   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help me learn to code in CHUCK

 
Post new topic   Reply to topic    selectbutton Forum Index -> GBF 120%
View previous topic :: View next topic  
Author Message
Mr. Business



Joined: 04 Dec 2006
Location: Hiding

PostPosted: Fri Feb 09, 2007 5:44 am        Reply with quote

If you've already got it installed and have compiled an example program to confirm that your installation works, then I advise reading through this in order until you get confused. Then you should write a program to play with the confusing concept until you finally understand it.

Anyway, that advice probably isn't very helpful if you're not a coder, because many of those concepts might be unfamiliar to you. I'll write more as I understand more.

edit: okay, the arithmetic syntax is very C-like. This shouldn't be too bad.

edit2: assignment statements in this are pretty odd.

edit3: okay, what exactly do you want to do with this language?
_________________
Taking a break.
Unfilter / Back to top 
View user's profile Send private message Visit poster's website
Mr. Business



Joined: 04 Dec 2006
Location: Hiding

PostPosted: Fri Feb 09, 2007 6:36 am        Reply with quote

Jeez, see, my inability to understand anything about sound or music puts me in an akward place here.
_________________
Taking a break.
Unfilter / Back to top 
View user's profile Send private message Visit poster's website
Mr. Business



Joined: 04 Dec 2006
Location: Hiding

PostPosted: Fri Feb 09, 2007 7:24 am        Reply with quote

Oh my, this looks very similar to C, but it's backwards.

Also, it seems that you need to learn all the uses for the "Chuck" operator, which is this: =>

For instance

Let's say we wanna make an integer number and give it an initial value of 0, we'd write
Code:
0 => int x;

In C, this would be
Code:
int x = 0;

Once we've made the variable, we can do a bit of math.
Code:
x + 5 => x;

Here we've added 5 to our initial value of zero and boom, x now = 5.

Is this the sort of thing that you're looking for, or am I talking down to you? I don't wanna insult your intelligence, but damned if I don't find this business with the chuck operator mighty peculiar.

Also, what's with all this associative arrays shit lately? I saw that crap last week when I was looking at the D language with Decinoge!

The control structures, save for this "until" loop, are nearly identical to C control structures. By this I mean the while, for, and do/while loops, among others. Basically, you can generally assume that things that are followed by brackets are control structures:
Code:
while()
{
//...
}


Honestly man, I need to know how much of this shit already makes sense to you. Just look at the table of contents in the Language Specification and make me a short list of things that do and do not make sense to you.

Also, I am horribly suited for this. I apologize.
_________________
Taking a break.
Unfilter / Back to top 
View user's profile Send private message Visit poster's website
Mr. Business



Joined: 04 Dec 2006
Location: Hiding

PostPosted: Fri Feb 09, 2007 7:37 am        Reply with quote

Shit, I understand what maybe two or three of the code examples do. Someone who understands both code and music should help this man, because I am out of my league. Music and sound are things that I know all of nothing about.
_________________
Taking a break.
Unfilter / Back to top 
View user's profile Send private message Visit poster's website
Mr. Business



Joined: 04 Dec 2006
Location: Hiding

PostPosted: Fri Feb 09, 2007 8:33 pm        Reply with quote

!= wrote:
Mr Business, you are approaching it from the wrong side.

Yeah, that's why I gave up. When I don't even understand the basic necessity of the language, it's pretty much time to hang up the gloves.
_________________
Taking a break.
Unfilter / Back to top 
View user's profile Send private message Visit poster's website
Quick Reply
 Attach signature
 Notify on replies

Display posts from previous:   
Post new topic   Reply to topic    selectbutton Forum Index -> GBF 120% All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group