Repository navigation
Folha de Estilo
| Data | Versão | Descrição | Responsável |
|---|---|---|---|
| 13/03/2016 | 1.0 | Criação do Documento | Jonathan Rufino |
-
Every variable must have their names in english;
-
Every branch, commit and issue must be written in english;
-
The variable names must be written on “camelCase” rule, with significant names:
float thisIsAVariable;- The function names must be written on “camelCase” rule, with significant names:
void methodOne;- The class names must follow the CamelCase rule:
class MyClass;- The constant names must be written with capital letters, separating the words with ‘_’:
const int NUMBER_PEOPLE;- It must be used double quotation mark ("") instead of single quotation mark ('') in all possible cases:
askClientName = "Escreva o nome do cliente: ";- It must be used on the following cases:
if(valueTotal == valueMonth && valueMonth == valueDa)void rankingEnade(int value)- It must open the keys on the below line:
if(valueTotal == valueMonth && valueMonth == valueDay) {
// Do Something
}float calculatesProfit(int days) {
// Do Something Else
}class SchoolEnade {
// To Do
} - It must be put a blank (' ') on the following cases:
5.1. Conditionals (after if and between the variables):
if(schoolBase > schoolCompare)cleanFields(allFields, personEnterprise)5.3. When you use the character ‘&’ to indicate parameter passing by reference, it must be put ‘&’ along with the variable name
void schoolDepartmentRanking(int &referenceVariable)// This method is responsible to calculate ENADE's grades /* This method is responsible to show ENADE's grades
* with University's Name, University's City and
* University's State */(valueMonth * amountMonth) / (quantityEmployees)
(“The month value is” + valueMonth);- It must not exist a blank character after parenthesis or double quotation mark:
strWarning = (“Type Again:”);- There should not be an extra line break between a function declaration and the begining of the code:
if(quantityProduct == quantityStorage) {
// ToDo
}- There should be an extra line break between programming blocks:
for(estado = 0; estado < numeroEstadosPais; estado = estado + 1) {
// ToDo
}
for(escola = 0; escola < numeroEscolaEstado; escola = escola + 1) {
// ToDo
}- There should be a line break between the parameters of the builders:
public Client(String name,
String cpf,
String telephone,
String age,
Address address) {
// Constructor
}- There should be a line break after the header of a class
/**********************************************************
* File: GestaoEmpresa.java
* Purpose: Main menu of the program.
**********************************************************/
public class GestaoEmpresa {
// Class declaration
}- Every function must have an explanatory comment block in english starting with ‘/’ and ending with ‘/’:
/* This function calculates the profit
* of the month in the sales department */- Every block has an explanatory comment
// This sum calculates the amount of money spent on a given time period- Every file must have a header containing one line with the name of the file and another with the purpose of the file:
/************************************************
* File: JuridicalClient.java
* Purpose: JuridicalClient class implementation.
*************************************************/💯 Documento de Visão
👍 Especificação Suplementar
👍 Glossário
💯 Modelagem de Caso de Uso
💯 Especificação de Caso de Uso
* Lista de Itens de Trabalho
* Plano de Desenvolvimento de Software
👎 Plano de Medição
💯 Regras de Negócio
💯 Contrato de Operações
👎 Plano de Iterações
💯 Diagrama de Caso de Uso
* Diagrama de Sequência
💯 Modelo de Domínio
* Deployment Diagram
💯 Diagrama Arquitetural
!!! Caderno de Arquitetura
💯 Diagrama de Classe
💯 Folha de Estilo
💯 Plano de Gerenciamento de Configuração
💯 Projeto de Banco de Dados
💯 Documento Finalizado
👍 Documento a Melhorar
👎 Documento Incompleto