Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 06-14-2012, 04:56 PM   #1
Baseband Member
 
Join Date: Jun 2012
Posts: 79
Default Binary

I just recently learned binary, and I'm wondering what I can possibly to with it. I learned it to impress my friends, but now I want to put it to use, anyone know of it's uses?
__________________

Scyere is offline   Reply With Quote
Old 06-14-2012, 05:50 PM   #2
Site Team
 
celegorm's Avatar
 
Join Date: Sep 2006
Posts: 10,713
Send a message via AIM to celegorm
Default Re: Binary

I learned Binary 4 years ago in school and short of using it to explain some low-level networking stuff have only used it to read my binary clock. I would say an x to binary and vis-versa would be nice but there are so many of those on the internet already it's kind of pointless IMO.
__________________

__________________
"as a fanboy i refuse to admit it and will pull countless things out of my butt to disprove it"

Team Thelegorm! Total Kills: 21 (i iz in uor profile, editsing your sigz)
celegorm is offline   Reply With Quote
Old 06-18-2012, 07:21 AM   #3
Site Team
 
berry120's Avatar
 
Join Date: Jul 2009
Location: England, UK
Posts: 3,425
Default Re: Binary

Sometimes when programming it helps when you need to bit-fiddle integers (since most languages represent them in binary.) Most common case for this is when you're reading back information from a serial port (USB or RS232) - it's often encoded in some way that needs a bit of bit fiddling to extract the values you want.

Other than that, it's the *way of thinking* that helps more than the actual act of learning binary. You can traverse a (balanced) binary tree for instance by incrementing a number in binary and then reading it as an encoded form of the path through that tree - say if a digit is 0 you go left, if it's 1 you go right. Make the number of digits as long as the depth of the tree and hey presto, you've got an easy way of calculating all available paths in an encoded form.

Think of it as another tool in your arsenal of thinking outside the box
__________________
Save the whales, feed the hungry, free the mallocs.
berry120 is offline   Reply With Quote
Old 06-19-2012, 10:45 AM   #4
Beta Member
 
Join Date: Apr 2012
Location: United States
Posts: 2
Default Re: Binary

I only had experience on assembly language before, and it's really not difficult to handle it. It had similar functionality as C language, only thing need to remeber is that there are only limited variables that you can use and some variables are register for system use.
firstStep is offline   Reply With Quote
Old 06-19-2012, 10:58 AM   #5
Site Team
 
berry120's Avatar
 
Join Date: Jul 2009
Location: England, UK
Posts: 3,425
Default Re: Binary

Quote:
Originally Posted by firstStep View Post
I only had experience on assembly language before, and it's really not difficult to handle it. It had similar functionality as C language, only thing need to remeber is that there are only limited variables that you can use and some variables are register for system use.
Binary != Assembly
__________________
Save the whales, feed the hungry, free the mallocs.
berry120 is offline   Reply With Quote
Old 06-19-2012, 11:08 AM   #6
Fully Optimized
 
jmacavali's Avatar
 
Join Date: Jun 2009
Posts: 4,867
Default Re: Binary

There are only 10 kinds of people in this world. Those who can read binary and those who can't.


Sorry couldn't resist. Beyond that I don't know anything impressive to do with it.
__________________

__________________
****************************************
Don't take life too seriously -- no one gets out alive. Plus, who wants to arrive to the hereafter in pristine condition wearing a suit and tie?
I want to slide in sideways, worn out, used up, hair a mess, clothes tattered, & screaming, "Whooo! What a ride!"
****************************************
jmacavali is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 10:47 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0