- https://medium.com/by-vinicius-reis/repository-pattern-n%C3%A3o-precisa-ser-chato-principalmente-com-laravel-d97235b31c7e
- https://medium.com/by-vinicius-reis/laravel-em-profundo-01-wtf-is-service-provider-a9bd817c4a7d
- https://medium.com/by-vinicius-reis/rip-mvc-obitu%C3%A1rio-b4b6e090d2ef
- https://medium.com/by-vinicius-reis/al%C3%A9m-do-mvc-pt-01-qual-o-problema-do-mvc-e615160f1100
- https://medium.com/by-vinicius-reis/al%C3%A9m-do-mvc-pt-02-camadas-a9745d29c8fc
- https://medium.com/by-vinicius-reis/trabalhando-com-servi%C3%A7os-no-javascript-864310cf386c
- https://blog.codecasts.com.br/vue-js-n%C3%A3o-%C3%A9-um-angular-simpificado-6394c18cc689
- https://blog.codecasts.com.br/ecossistema-js-01-plataformas-7a611608b58
- https://blog.codecasts.com.br/ecossistema-javascript-parte-04-transpilers-734f77422316
- https://blog.codecasts.com.br/codecasts-behind-the-curtains-setup-e-ferramentas-1fe58692d8ad
Testar é uma das práticas mais importantes do desenvolvimento de software, a famosa frase: está pronto, agora só falta testar
não soa muito bem quanto se está trabalhando em um projeto sério onde erros podem afundar um projeto. Ter em mente que é preciso testar o software é um diferencial muito grande entre os desenvolvedores, pois isso reafirma que ele se preocupa com a qualidade do mesmo. Atualmente existe várias
formas de testar;
- Teste unitário => aqui é verificado cada cada pedaço do software validando se ele executa conforme foi projetado
- Teste de integração => aqui as unidades individuais são combinadas e testadas em grupo, tendo como objetivo verificar falhas na integração das unidades
- Teste do sistema => aqui todo o software é testado com o propósito de avaliar se o sistema está de acordo com os requisitos
- Teste de aceitação => aqui o sistema já está pronto e o usuário está usando ele e verificando se ele está suprindo as suas necessidades e seguindo o processo de negócio
Dentre as ferram
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
/** | |
On your package.json just put `"npm start": "node server.js"` and deploy your application to heroku | |
**/ | |
'use strict' | |
const express = require('express') | |
const app = express() | |
const PORT = process.env.PORT || 8000 |
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
'use strict' | |
const express = require('express') | |
const Analytics = require('./src/index') | |
const app = express() | |
const PORT = process.env.PORT || 8000 | |
app.get('/api', (req, res) => { | |
const username = req.param('username') |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/home/ronaiza/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="bira" |
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
'use strict'; | |
/** | |
* @ngdoc directive | |
* @name myapp.directive:forceLowerCase | |
* @description | |
* # forceLowerCase | |
*/ | |
angular.module('myapp') | |
.directive('forceLowerCase', function ($parse) { |
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
/* | |
Enquanto iterators personalizados são uma ferramenta muito útil, sua criação requer uma programação cuidadosa devido à | |
necessidade de manter explicitamente seu estado interno. Generators prove uma alternativa poderosa: ele permite definir um | |
algorítmo por meio da escrita de uma simples função que pode manter o seu próprio estado. | |
Um generator é um tipo especial de função que trabalha como uma fábrica para iterators. Uma função se torna um generator quando | |
contém um ou mais expressões construtoras e se usa a sintaxe ``function*`` | |
*/ | |
function* idMaker(){ |
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
/* | |
Iterators | |
Um objeto é um iterator quando ele sabe como acessar os items de uma coleção um por vez enquanto mantém o endereço da posição | |
atual da sequencia. Em JavaScript um interator é um objeto que prové o método next() que retorna o próximo item da sequencia | |
esse método retorna um objeto com as sequintes propriedades: done e value. | |
*/ | |
function makeIterator(array){ | |
var nextIndex = 0; |
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
➜ ~ git c | |
cat-file -- provide content or type information for repository objects | |
check-attr -- display gitattributes information | |
check-ref-format -- ensure that a reference name is well formed | |
checkout -- checkout branch or paths to working tree | |
checkout-index -- copy files from index to working directory | |
cherry -- find commits not merged upstream | |
cherry-pick -- apply changes introduced by some existing commits | |
citool -- graphical alternative to git commit | |
clean -- remove untracked files from working tree |
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
'use strict'; | |
const Calc = require('./../Calc'); | |
const chai = require('chai'); | |
const expect = chai.expect; | |
describe('name of file - Calc', ( ) => { | |
it('description of the test - sum should return 4', (done) => { | |
let resultSum = Calc.sum( 2, 2 ); | |
expect( resultSum ).to.be.equal( 4 ); |