Author Topic: Programming Analogies  (Read 25001 times)

0 Members and 1 Guest are viewing this topic.

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Programming Analogies
« on: September 20, 2011, 06:25:29 pm »
Hey, anyone know any good programming analogies?

http://www.bytebrothers.org/programm.htm

and here's another good one: http://agoln.net/archives/36
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



Offline boot2490

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 607
  • Rating: +54/-36
    • View Profile
    • Boot2490's Stuff
Re: Programming Analogies
« Reply #1 on: September 20, 2011, 06:43:06 pm »
Assembly: Shoot yourself in the {666F6F74}

That is actually "foot" in hex.

I come up with these all the time. My mom is crazy when it comes to inappropriate jokes or internet humor. I have to censor the whole internet like the examples in the second link. Here:
Mom: What is a trollface? (after I pointed it out on a sign)
Me, thinking about real meaning and how she would react, trying to tone down the meaning of trolls so she won't ban me from the internet,
Me: There are people on the internet that are called trolls. Sometimes they elongate arguments just to be mean.
*this is where she would make a generalization of the internet, that although true, i dont want her to make so I say:
 The trollface is a caricature of these trolls, showing how ridiculous they are.
And that is how you censor the internet so it is mom-appropriate.
« Last Edit: September 20, 2011, 06:51:51 pm by boot2490 »
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler For Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Programming Analogies
« Reply #2 on: September 20, 2011, 06:47:58 pm »
Assembly is more along the lines of:

Machine the gun yourself, carve some molds for the bullets, cast the bullets, load the propellant yourself, assemble the gun, and finally shoot yourself in the foot. Machine code has you mining the materials for all of this yourself :P
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline boot2490

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 607
  • Rating: +54/-36
    • View Profile
    • Boot2490's Stuff
Re: Programming Analogies
« Reply #3 on: September 20, 2011, 06:52:49 pm »
Binary is like initiating the creation of the universe first.
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler For Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Programming Analogies
« Reply #4 on: September 20, 2011, 07:31:20 pm »
Nah, it's exactly the same as in assembly, except you can't call the gun a gun. It's more along the lines of 01010100 01101000 01100101 00100000 01000111 01100001 01101101 01100101.




Offline boot2490

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 607
  • Rating: +54/-36
    • View Profile
    • Boot2490's Stuff
Re: Programming Analogies
« Reply #5 on: September 20, 2011, 07:33:08 pm »
If you use the same decompression method as windows calc :P
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler For Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Programming Analogies
« Reply #6 on: September 20, 2011, 07:35:21 pm »
TI-BASIC: Nerf(foot)




Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Programming Analogies
« Reply #7 on: September 20, 2011, 07:50:18 pm »
Well, we can't forget runer's great analogy:

You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.

Comparing asm to anything else.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Programming Analogies
« Reply #8 on: September 20, 2011, 07:54:23 pm »
Well, we can't forget runer's great analogy:

You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.

Comparing asm to anything else.

And then furthering that analogy, with the calculators, the statue is so small that it makes a big difference, but with languages like C++ , sometimes the statue can be so large that not only does it take an exuberant amount of time to build the statue with the 1x1, but it's also a lot harder to see the difference between the 12x12.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Programming Analogies
« Reply #9 on: September 20, 2011, 08:55:22 pm »
z80 Assembly:
Let's try this one more time...
-RAM Cleared-
F***!
« Last Edit: September 20, 2011, 08:55:33 pm by yeongJIN_COOL »
Sig wipe!

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: Programming Analogies
« Reply #10 on: September 20, 2011, 09:06:51 pm »
Programming is like making furniture.

Java: buying wood, supplies, and tools from IKEA and assembling from a manual.

ASM: carving a chair out of a tree with a pocket knife

Machine Code: same as ASM, but without the pocket knife
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: Programming Analogies
« Reply #11 on: September 20, 2011, 10:36:55 pm »
Does anyone carve furniture using a pocket knife? ;)
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Programming Analogies
« Reply #12 on: September 20, 2011, 10:42:03 pm »
does anyone even program in machine code?

Xeda uses hex pretty regularly and most assembly programmers will dip into it when a good assembler is either not available or the processor has some unsupported opcodes.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Programming Analogies
« Reply #13 on: September 20, 2011, 11:02:07 pm »
ASM is actually easier for some problems than Higher languages :P
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Programming Analogies
« Reply #14 on: September 20, 2011, 11:05:49 pm »
I actually get to thinking in Asm instead of Axe sometimes when coding in Axe, and thus my code can sometimes become a weird mixture of Axe and Asm. :P