RetroBytes Portal

Programming => Other Games & Projects => Topic started by: flash on November 20, 2009, 06:56:29 pm

Title: Flash is learning C!
Post by: flash on November 20, 2009, 06:56:29 pm
Oh Joy!  :'(

I jest!

Started learning C for the benefit (hopefully) of future developments with my beloved team, and to be honest (take note Sokky) it is not as bad as I had thought! I have a small demo of what I have been up to working fine (so far) and have been playing and learning since.
It is hard when you come from an ASM background to work with something that is totally alien in respect of syntax and the hows & whys of what is going on behind the scenes - but not impossible (not by a long chalk).
For a GL Basic, Blitz, etc coder, I cannot see how it would be that hard to slip into?

But, I digress.

I just wanted to make a post (mostly because I am suprising myself) on how hard C coding is. It isn't for C itself. Certainly some elements of C++ scare the fucking tits off me, but C does have a logic that can be fathomed with a bit of appliance.

Oh well, I will keep you all updated on my progress.

2010 could be a wonderful year!

(2012 looks a bit creepy though  :'( )

EDIT: As I learn things that may be important to anyone wanting to learn (in keeping with the flow of this most loved of forums 'he he') I will post my findings here and my failures. It may become an interesting read or a dead topic.. who knows or dares to dream?
Title: Re: Flash is learning C!
Post by: Lobo on November 20, 2009, 10:06:34 pm

Started learning C for the benefit (hopefully) of future developments with my beloved team...

Tear! Oh, man..fuck the biz, we do it for the kids.  ;)

Glad to see you're getting it, I always use to say.."Martha, this boy gets it". And yes, 2010 is gonna be officially 'The Year of the Horace" and as for 2012, what's creepy about that? You talking about that Maya calendar nonsense?
There is an explanation for it...they didn't have enough space on the calendar to carve 2013 so no worries.
So simple.
Title: Re: Flash is learning C!
Post by: flash on November 20, 2009, 10:22:57 pm
so, you are saying that we have another fucking year!!

Woop!

You are my savior!! :)
Title: Re: Flash is learning C!
Post by: Lobo on November 20, 2009, 10:29:19 pm
Technically speaking, add a year, remove a month, it's all the same really.
Title: Re: Flash is learning C!
Post by: flash on November 20, 2009, 10:32:12 pm
Ok God!

(Flash types from understair cupboard)
Title: Re: Flash is learning C!
Post by: Lobo on November 20, 2009, 10:44:42 pm
Seriously, you can come out of bunker now and continue C classes upstairs.
I hear some tea is on the way as well.  ;)
Title: Re: Flash is learning C!
Post by: flash on November 20, 2009, 11:18:00 pm
Phew!

Well.. You can never be too careful!
Title: Re: Flash is learning C!
Post by: Lobo on November 20, 2009, 11:24:19 pm
.. who knows or dares to dream?

 :) You really crack me up sometimes, buddy. I can almost see a dude with stache in a stadium,  yellow pants and Superman tee singing that line.  ;D
Title: Re: Flash is learning C!
Post by: Sokurah on November 20, 2009, 11:57:18 pm
Started learning C and to be honest (take note Sokky) it is not as bad as I had thought!
For a GL Basic, Blitz, etc coder, I cannot see how it would be that hard to slip into?

You're probably right. All it takes is a solid effort and not too many distractions and then I'll come automatically.
...if I can teach myself Z80 I should be able to learn C too. And it's a lot easier to find reference these days.

Just have to finish everything else first.  :-[
Title: Re: Flash is learning C!
Post by: Lobo on November 21, 2009, 12:01:10 am
...solid effort and not too many distractions and then I'll come automatically.

 :)
Title: Re: Flash is learning C!
Post by: Sokurah on November 21, 2009, 12:06:30 am
Whoops, FFS (Fat Finger Syndrome)

I meant to say "then it'll come automatically" but I'm sure you know that.

...because coming doesn't happen automatically - that takes a bit of work. :P
Title: Re: Flash is learning C!
Post by: Lobo on November 21, 2009, 12:14:28 am
Whoops, FFS (Fat Finger Syndrome)

I meant to say "then it'll come automatically" but I'm sure you know that.

...because coming doesn't happen automatically - that takes a bit of work. :P

Indeed, it's all in the wrist.  ;)
Title: Re: Flash is learning C!
Post by: flash on December 03, 2009, 12:09:43 am
OK, I am still learning C!

So far, I have learnt that it is called C because the language it is based on was called B.

See, Who said you can't teach me anything? :)
Title: Re: Flash is learning C!
Post by: sverx on December 03, 2009, 07:36:12 am
So far, I have learnt that it is called C because the language it is based on was called B.

Btw, do you know why it was called 'B' ?  ;)

Title: Re: Flash is learning C!
Post by: flash on December 03, 2009, 07:38:05 am
Perhaps there was a language called 'A' LOL
Title: Re: Flash is learning C!
Post by: sverx on December 03, 2009, 01:22:28 pm
Perhaps there was a language called 'A' LOL

Well, actually there was, but it seems it has no relation with 'B' and 'C'. This might be interesting: http://people.ku.edu/~nkinners/LangList/Extras/search.htm

Title: Re: Flash is learning C!
Post by: flash on December 03, 2009, 02:17:09 pm
Well, following that list, it looks like Algol was the first in the line that led to C

(A)lgol
B
C

Well, it does follow perhaps?
Title: Re: Flash is learning C!
Post by: sverx on December 04, 2009, 07:19:59 am
well... I didn't find any evidence (lol) of connection between Algol and B... did you?

Title: Re: Flash is learning C!
Post by: flash on December 04, 2009, 07:35:02 am
Sort of,

Click 'B[1]' "B was the predecessor of C, Derived from BCPL" >

'BCPL' "A British systems language, a descendant of CPL[1] and the inspiration for B[1] and C." >

'CPL[1]' which states,
"A very complex language, syntactically based on ALGOL 60, with a pure functional subset. Provides the ..where.. form of local definitions. It is a strongly typed language, but it has a "general" type enabling a weak form of polymorphism. Functions may be defined as either normal or applicative order. Typed array and polymorphic list structures. List selection is through structure matching. Partially implemented on the Titan (Atlas 2) computer at Cambridge. It led to the much simpler BCPL. " >

'ALGOL 60' "In an era dominated by IBM computers and FORTRAN programming, ALGOL 60 offered a portable alternative. It was small and elegant, the first language to be described in BNF. It was block-structured ("begin...end"), nested, and recursive.

So! perhaps that is where the 'A' comes from
Title: Re: Flash is learning C!
Post by: sverx on December 04, 2009, 09:40:44 am
Wow! You know, HK is writing a game that might interest you ;)

Title: Re: Flash is learning C!
Post by: flash on September 22, 2010, 11:36:52 pm
Flash is still learning C++

I now know what a ; does...

Next is the == compare...

Phew!
 :)  ;)
Title: Re: Flash is learning C!
Post by: headkaze on September 23, 2010, 06:51:51 pm
Comon Flash, don't be so modest ;)
Title: Re: Flash is learning C!
Post by: spacefractal on September 23, 2010, 09:12:13 pm
I mean I saw about half years ago some code about your secret game you have learned abit more about it, hehe  :).

Now Apple have axed any code restrictions (apart now code download from net), we should convert the whole game to Assembly, but I think its to late now :-D
Title: Re: Flash is learning C!
Post by: flash on September 23, 2010, 09:14:40 pm
Bugger!

I could not remember ASM now, my mind is full of squiggly brackets LOL