Archive for the 'Programming' Category

poem in code

Sunday, December 31st, 2006

ِAnother thing different from “code poet” and “poem code” is called “poem in code” this may be confusing a bit at first but you shouldn’t be .

“poem code” is the code written in a poetic way.
“code poet” is the programmer writing in that way.

if you encounter a piece of poem written in a program source code or in the program comment this is just a “poem in a code” and has no relation at all in making that code a “poem code” .
a “poem code” is a piece of code have some characteristics making it an outstand of other code.and the existence of poems in a code doesn’t make that code itself a “poem code” .

i believe it is a way to make the programmer expresses himself to the world “here come mr….”
if you have ever used “wordpress” and opened the default theme css file you will find some piece of poem written at the end of file

/* “Daisy, Daisy, give me your answer do. I’m half crazy all for the love of you.
It won’t be a stylish marriage, I can’t afford a carriage.
But you’ll look sweet upon the seat of a bicycle built for two.” */

this programmer is at ease when writing his code , he enjoys his work as an artist creates a painting he wants to make us share his feeling, and feel that a file of code is an enjoyable read
in another way also i see that this principle my be used in further prospect.

it can be a way to represent my culture ,favorites and thinking to others and hence open a way of communications between programmers all over world.

so an Arab programmer for example can write in his program code file the following in the comment.

“دع عنك لومى فإن اللوم إغراء و داونى بالتى كانت هى الداء”

but i must warn that there are restricted rules must be taken if anyone uses that way he should never put any content regarding religion ,Intolerance , violence , sexuality,Racism
or anything hurts people feelings..if this prospect would be given concern i think these rules should be put as a base to measure a code’s acceptance and level.

code poet

Sunday, December 31st, 2006
code probably u have heard that expression before and neglected it by the thought that some technophobe is trying to draw a surreal image over programming or you have never heard of it before.

this term came to existence from the idea that there is a tie between poet and programming and this idea didn’t find a wide acceptance and made waves of debates till this moment.
by reading further in that approach i found myself totally admiring and completely believer of it and am not exaggerating if i said that at my first steps in programming i thought of it as poet but i couldn’t believe someone will assure that later !

the conclusion of the approach is that programming language is like the human language in that it is a way of expressing the man s’ ideas , some people object to that by saying that a programming language is a machine language understood only by the computer but this is not true.actually the computer cannot read any program unless it is compiled first to binary code the form which it can understand and deal with , and that make us come to the fact that the only ones can understand a programming language are programmers themselves..so it is a language between programmers and they use it to express their ideas to reach something they want.

coming to the definition of a poem..a poem is a creative way to express your ideas in an exceptional and extraordinary use of the language making it more pretty, and here is our part comes , also the code poem is an exceptional and extraordinary use of the programming language which makes it more beautiful than ordinary code written in the same language.

if you are a programmer you have for sure passed some beautiful pieces of code that made you stand by it long wanting to know how they did it and how can you do your own that way finding yourself thinking that you are really using a pretty tool to program and you can participate in showing this prettiness to world..you have encountered at that moment a “code poem”.

code can be written not just correct and efficient but also in an artistic way make it enjoyable to read and write..and the one who writes such code is called “code poet” he is a high level programmer.

i believe that next decade will show more of this science and the rules of making it.
am sure you would like that article that helped me rethink in that expression , it is wonderful



CodePoet