• Advertisement

Archived

This topic is now archived and is closed to further replies.

Newbie Programmers: 30 seconds of your time please...

This topic is 5495 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I''d like to know how many of you are learning to program but do not know the binary number system (so I can decide whether or not to include a short tutorial on it in a presentation I''m preparing). All I need is a yes or no response from as many of you as possible Thanks for your time

ai-junkie.com

Share this post


Link to post
Share on other sites
Advertisement
Theres already a binary tutorial on gamedev. You might wanna check it out before you duplicate it.

Share this post


Link to post
Share on other sites
im new to programming. i know of the binary number system, but i dont know it .

Share this post


Link to post
Share on other sites
Yes
01 10 11 100 110 111 1000 1100 1110 1111 10000 11000
1 2 3 4 5 6 7 8 9 10 11 12
1 2 3 4 5 6 7 8 9 A B C
thats right? right!

-----
Losec
-----

Share this post


Link to post
Share on other sites
quote:
Original post by Losec
Yes
01 10 11 100 110 111 1000 1100 1110 1111 10000 11000
1 2 3 4 5 6 7 8 9 10 11 12
1 2 3 4 5 6 7 8 9 A B C
thats right? right!

-----
Losec
-----

Maybe you do need the tutorial.

01 10 11 100 101 110 111 1000 1001 1010 1011 1100 1101 1110 1111 10000 10001 ...

:::: Lektrix ::::
[ Google || ACCU || BarrysWorld || E-Mail Me ]

Share this post


Link to post
Share on other sites
nah,

00000000
00000001
00000010
00000011
00000100
00000101
...


if you don''t know the hex and oct system, you probably don''t know the binary either...

Share this post


Link to post
Share on other sites
Ummmm, i dont even know what your talking about, heehee, so nope, not a clue.






P.S.

could some one tell me what Binary numbers are used for, if it wouldnt be to much trouble that is =)

[edited by - Mindless Thrall on February 7, 2003 11:35:57 AM]

Share this post


Link to post
Share on other sites
I thought they where jst talking about general binary

-----
Losec
-----

Share this post


Link to post
Share on other sites
no.
if u''re covering binary, might as well cover hexa and oct since conversion from the decimal to either of these two is simplified by using binary as intermediary. shortcuts are always nice

Share this post


Link to post
Share on other sites
I personally don''t think that learing binary is important to knowing how to program. A general intro my be nice but doing adding/subtraction, decimal to binary and binary to decimal conversions probably is not key to learing how to think thru a process like a programmer.

Share this post


Link to post
Share on other sites
I personally don''t think that learing binary is important to knowing how to program. A general intro my be nice but doing adding/subtraction, decimal to binary and binary to decimal conversions probably is not key to learing how to think thru a process like a programmer.

Share this post


Link to post
Share on other sites
"I personally don''t think that learing binary is important to knowing how to program."

I never said it was. It''s very important if you want to understand how a binary encoded genetic algorithm works though.






ai-junkie.com

Share this post


Link to post
Share on other sites
quote:
Original post by Aaron71771
I personally don''t think that learing binary is important to knowing how to program. A general intro my be nice but doing adding/subtraction, decimal to binary and binary to decimal conversions probably is not key to learing how to think thru a process like a programmer.


I''d have to disagree. Knowing binary and hexademical are key to programming ( octal is only useful if for some reason you like Linux ). Knowing binary allows you to do certain optimizations like value >> 1 instead of value / 2. Knowing binary can also be useful if you want to use bit flags on structures or use an integer to store status flags. There are many other reasons to know binary (and hex) but I don''t really feel like writing a long-winded dissertation right now.

-- Exitus Acta Probat --

Share this post


Link to post
Share on other sites
01010111 01101000 01100001 01110100 00100000 01101001 01110011 00100000 01100010 01101001 01101110 01100001 01110010 01111001 00111111

Share this post


Link to post
Share on other sites
Kordova, you had waaaay too much time on your hands to do that. And I obviously do too, since I spent the time to translate it.

[edited by - draqza on February 7, 2003 4:32:10 PM]

Share this post


Link to post
Share on other sites
well, for the >> over / speed advantage, its not so useful when you really get down to it as any compiler worth its salt will do that for you, and microoptimization is usually not going to help your software run noticably faster, in the end
binary is important to understand for use with masks, and because its useful to know whats REALLY happening behind the scenes from time to time, even if you dont need to mess with it

Share this post


Link to post
Share on other sites

  • Advertisement