Skip to content

Instantly share code, notes, and snippets.

@viktor1190
Last active October 27, 2016 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viktor1190/4b2c3e90ef5559cbd485 to your computer and use it in GitHub Desktop.
Save viktor1190/4b2c3e90ef5559cbd485 to your computer and use it in GitHub Desktop.
Es una simple estructura de comentarios que uso para mantener la legibilidad del codigo en mis proyectos, especialmente para android, la idea con esto es dividir el código en secciones donde puedas ubicar de manera fácil cada componente de la clase y al mismo tiempo mantener una homogeneidad
public class MiClase {
// =============================================================================================
// CONSTANTES
// =============================================================================================
public final String LOG_TAG = getClass().getSimpleName();
private static final int WINDOW_TITLE = R.string.windows_label_mi_clase;
// =============================================================================================
// ATRIBUTOS
// =============================================================================================
// =============================================================================================
// CONSTRUCTORES
// =============================================================================================
// =============================================================================================
// GETTERS & SETTERS
// =============================================================================================
// =============================================================================================
// [ACTIVIDAD|SERVICIO] CICLO DE VIDA
// =============================================================================================
// =============================================================================================
// HERENCIAS DE CLASE, @OVERRIDE
// =============================================================================================
// =============================================================================================
// EVENTOS (EVENT BUS)
// =============================================================================================
// =============================================================================================
// METODOS
// =============================================================================================
// =============================================================================================
// METODOS PRIVADOS
// =============================================================================================
// =============================================================================================
// CLASE ANIDADA
// =============================================================================================
// public class ClaseAnidada {
//----------------------------------------------------------
// CLASE ANIDADA: CONSTANTES
//----------------------------------------------------------
//----------------------------------------------------------
// CLASE ANIDADA: ATRIBUTOS
//----------------------------------------------------------
//----------------------------------------------------------
// CLASE ANIDADA: CONSTRUCTORES
//----------------------------------------------------------
//----------------------------------------------------------
// CLASE ANIDADA: GETTERS & SETTERS
//----------------------------------------------------------
//----------------------------------------------------------
// CLASE ANIDADA:, HERENCIAS DE CLASE, @OVERRIDE
//----------------------------------------------------------
//----------------------------------------------------------
// CLASE ANIDADA: METODOS
//----------------------------------------------------------
//----------------------------------------------------------
// CLASE ANIDADA: METODOS PRIVADOS
//----------------------------------------------------------
//----------------------------------------------------------
// CLASE ANIDADA: SUB-CLASE
//----------------------------------------------------------
// }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment