Omnimaga

General Discussion => Other Discussions => Miscellaneous => Topic started by: Matrefeytontias on March 03, 2014, 06:12:36 pm

Title: Metaphore about programming
Post by: Matrefeytontias on March 03, 2014, 06:12:36 pm
So I thought of that today.

Let's say a computer program is a mountain. To finish writing the program, we must reach the top of the mountain. There are several treasures hidden everywhere in the mountain, those are optimizations. In order to make it we have different means of transportation, the programming languages.

For example, Python is a good car. It can go fairly fast and reach the top rather quickly, but you will miss a lot of treasures going that fast.

C is like a good bike. It can go nearly everywhere. Nearly. It will take a lot more time to get to the top, but you'll find many more treasures on your way if you look well.

And then ASM is your good old feet. You will take forever to get to the top, but you can really go anywhere and find each and every treasure of the mountain. It takes ages, but the result is usually worth it.

But there's more than that. There are an infinite number of mountains, but they usually share common tracks. So for example, you can get off your bike and do a small part of the travel by feet - inline ASM -, but you can't get out and push the car.

Also, habits apply here too. If you feel like you're familiar enough with a part of the track, you can attempt doing it walking instead of riding a bike. However, you usually will stay in the bike path and just grab some treasure you see from the road, not seeing that there are ways you couldn't take on your bike that you can now follow by feet, and thus you miss many treasures.

So yeah. Thought of that today.
Title: Re: Metaphore about programming
Post by: MGOS on March 05, 2014, 01:10:23 pm
Nice one, matref :)
However it isn't considered that collecting all the treasures makes the program better and not only the programmer happier :D
Title: Re: Metaphore about programming
Post by: Streetwalrus on March 05, 2014, 01:25:43 pm
Yeah good one. I totally agree with this description. Also, Axe is sorta between C and ASM. Maybe a high end mountain bike ? :P
Title: Re: Metaphore about programming
Post by: Sorunome on March 06, 2014, 08:11:22 pm
Nice metaphore, fits kinda well. Seems like I'm too stupid to walk :P
Title: Re: Metaphore about programming
Post by: The_King on March 07, 2014, 12:21:04 am
The concept is good though learn metaphore as metaphor

just helping to keep the spelling rite :)
Title: Re: Metaphore about programming
Post by: Juju on March 07, 2014, 01:26:37 am
Yep, nice metaphor here.
Title: Re: Metaphore about programming
Post by: blue_bear_94 on March 07, 2014, 02:20:55 am
TI-89 Basic is like stilts. It takes you longer than Assembly to get to the top, and you can't reach any treasures.
Title: Re: Metaphore about programming
Post by: Sorunome on March 07, 2014, 05:19:22 am
What is Brainfuck then? *.*
Title: Re: Metaphore about programming
Post by: Siapran on March 07, 2014, 05:29:02 am
java is the underground.
you can go to certain places very easily. everything is well-documented. everyone can use it for a fair price.
however, you usually end up spending as much time walking to your destination because the stations are strategically placed to suit the most, and you don't see anything because you're underground.
Title: Re: Metaphore about programming
Post by: Eiyeron on March 07, 2014, 05:30:21 am
Java : Easy mode (just look at the JVM libs already installed), can go only where someone had been (JVM).


EDIT : ninja'd. Darn you Siap!
Title: Re: Metaphore about programming
Post by: Hayleia on March 07, 2014, 07:15:05 am
Axe is like TNT. After a RAM Clear, there is no mountain remaining :P
Jk, I'd say it's like having moutain rollers (and muscles if you want to get high faster, or a long stick) because you sometimes can act as if on foot, but you can also roll.