Download Stable | Download CI Builds |
---|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Pessoa { | |
private Departamento departamento; | |
public Pessoa(Departamento departamento) { | |
this.departamento = departamento; | |
} | |
// RESPEITA a Lei de Demeter | |
public String obterNomeChefeDaEquipe() { | |
return departamento.obterNomeDoGerente(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WAIT | |
const wait = (ms: number): Promise<void> => new Promise((resolve) => setTimeout(resolve, ms)); | |
//await wait(1000); // waiting 1 second | |
// IS WEEKDAY | |
const isWeekday = (d: Date): boolean => d.getDay() % 6 !== 0; | |
//isWeekday(new Date(2022, 2, 21)); // -> true | |
//isWeekday(new Date(2021, 2, 20)); // -> false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Larisse Rodrigues | |
Marcel Pontes | |
Miguel Muller | |
Taís Amanda | |
*/ | |
package main | |
import ( |