Programming - Good Practice - Names
Well, there I saw a comment on terms in English. The truth is that I also gives me much to put the terms in English. As for the language to use, both in the code, as in the models, it is my opinion that we should primarily consider the audience you are targeting. That is, if my development team is composed primarily of individuals who speak English we propose to use names or notations in English, as some may speak English but most speak English, understand?. The use English, is right when the customer is English speaking and our code is the property (outsourcing), or "stakeholders" (no direct translation into English, but it is something like the concerned people puts silver, etc) are English speaking.
En cuanto al código, algunas buenas practicas no dicen nada del lenguaje pero sugieren (En lo que recuerdo.no?) para:
- Constantes : nombres descriptivos, completamente escritos en mayúsculas remplazando los espacios es blanco con guiones bajos .
- Variables : nombres descriptivos de la misma. En java , se utiliza la notación " camelCase " donde se escribe todo junto y cada palabra comienza con una mayúscula menos la primera. Y no se suelen utilizar prefijos. En el caso de php se utiliza las notación que incluye guiones bajos (no recuerdo bien el nombre, is a little complicated). Var_name Ahem. Moreover, unlike Java, are commonly used prefixes. For example: obj_nombre_variable to refer to that variable is an object.
- Methods: similar to variables, but do not use prefixes for both php and java. its name is the verb + object structure . Example publicarNoticia (java) or publicar_noticia (php). With the exception of access methods to attributes or properties that whether or must have the structure getPropiedad (), setPropiedad (TipoPropiedad property), isPropiedad ().
- Classes: Names camelCase in singular and begin in uppercase, for Java and PHP5, C + +, etc.. Php4-In can be written in lowercase.
- Interfaces: the names must be written camelCase with the first word capitalized and be adjectives (PHP5, java). For example, publishable, votable, etc.
- Packages (php5, java). The names are lowercase words separated by periods. and its structure is as follows: dominio.alreves. [company / team / project]. nombrepaquete . For example if the site is for www.mipagina.com and work in the company could be com.mipagina.arosoft.utilidades
arosoft
Finally The names, depending on the layer architecture in which it is located, is another matter, to develop later. But it could anticipate that if a class that will be part of a service layer in a presenter of an MVP or something, ie an intermediate layer in coding could have the name of a gerund. For example: Publishing and every method that implements a use case have the same name as the tab for application written in CamelCase, to facilitate monitoring and functional testing of it.
Greetings, again I hope you wake up some ideas.
Friday, August 7, 2009
Skelaxin Can You Get High
A war that is changing its course
Finally this war that began in times beyond my conscience seems turn its course. For the first once in a lifetime, I believe that the university might not win. Black birds circling their potential.
That what I started when I bent my face yet, is coming to an end. It is no longer carrying out the wishes of a mother or Penant soul of a father who watches over the happiness and future of your child. This is not a promise. This is not the respect he gives the word that precedes my name, or a printed paper with an extra zero. This is not the pressures that grandparents, relatives, friends, relatives, etc, have on me around a table.
This is a war that neither Pirro himself had been willing to fight. Where were on the road, a great affection, unborn child, accompanied by a parent, a dream unfulfilled, a race abandoned. Soldiers who were counted as tears, dreams, sleepless nights, fellow travelers, have lagged behind for holding a flag.
But war is coming to an end! Is changing course.
only remains the mother of all battles, that would define everything. The all or nothing. And I'm more prepared than ever, experience has nurtured me, I drank from her tits to be chubby, my armor so bright in the sun and the moonlight, my short sword and hangs evenly and my horse through a storm.
you have left to you?
only your rags dyed embarrassment your bruising, your fists so many times I knew grinding against bone, which broke my gut, now make footprints on the floor with your knees. You are left alone in your castle, for one to one your armies have fallen.
If I am to celebrate the day they fall!
No, my friend, not my enemy. We keep the right to respect. The respect we saved those things that sculpt your soul on the basis of education rather spartan and sadistic. But life took care of both ocupásemos two different sides in this desert where there is nothing to gain and much I lost. There is the mountain that has to pay, will fight for it. With time and only over time, drink in your name, laugh with nostalgia of the great battles and remember sacrifices. But your day will be another day in my life, and this has been your credit.
you smile, but will become sordónica ironic, for your era has ended and now mine begins.
Finally this war that began in times beyond my conscience seems turn its course. For the first once in a lifetime, I believe that the university might not win. Black birds circling their potential.
That what I started when I bent my face yet, is coming to an end. It is no longer carrying out the wishes of a mother or Penant soul of a father who watches over the happiness and future of your child. This is not a promise. This is not the respect he gives the word that precedes my name, or a printed paper with an extra zero. This is not the pressures that grandparents, relatives, friends, relatives, etc, have on me around a table.
This is a war that neither Pirro himself had been willing to fight. Where were on the road, a great affection, unborn child, accompanied by a parent, a dream unfulfilled, a race abandoned. Soldiers who were counted as tears, dreams, sleepless nights, fellow travelers, have lagged behind for holding a flag.
But war is coming to an end! Is changing course.
only remains the mother of all battles, that would define everything. The all or nothing. And I'm more prepared than ever, experience has nurtured me, I drank from her tits to be chubby, my armor so bright in the sun and the moonlight, my short sword and hangs evenly and my horse through a storm.
you have left to you?
only your rags dyed embarrassment your bruising, your fists so many times I knew grinding against bone, which broke my gut, now make footprints on the floor with your knees. You are left alone in your castle, for one to one your armies have fallen.
If I am to celebrate the day they fall!
No, my friend, not my enemy. We keep the right to respect. The respect we saved those things that sculpt your soul on the basis of education rather spartan and sadistic. But life took care of both ocupásemos two different sides in this desert where there is nothing to gain and much I lost. There is the mountain that has to pay, will fight for it. With time and only over time, drink in your name, laugh with nostalgia of the great battles and remember sacrifices. But your day will be another day in my life, and this has been your credit.
you smile, but will become sordónica ironic, for your era has ended and now mine begins.
Wednesday, August 5, 2009
Ca Glory Holes Glory Holes In Riverside Ca?
This summary is not available. Please
click here to view the post.
Sunday, August 2, 2009
Low Isee Results Middle Level
The partial commissions tomorrow will be at 10:00 am in the classroom practical. The partial commissions night will be at 20:00 practical in the classroom.
The Recuperatorios is 02 September.
Subscribe to:
Comments (Atom)