-
You will need rails 6 installed. GoRails is the best resource I have found to date.
-
You will need the heroku cli tool installed.
-
You will need NodeJS installed: https://nodejs.org/en/download/
"Em outras palavras, todas as classes complicadas devem ser divididas em classes menores, responsáveis por um comportamento específico, facilitando o entendimento e a manutenção da base de código." https://rubygarage.org/blog/solid-principles-of-ood
Probably the most well known principle, and one that should try to adhere to most of the time.
Let's say you have this code:
- Dynamic Dispatch
- Dynamic Method
- Ghost Methods
- Dynamic Proxies
- Blank Slate
- Kernel Method
- Flattening the Scope (aka Nested Lexical Scopes)
- Context Probe
- Class Eval (not really a 'spell' more just a demonstration of its usage)
- Class Macros
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
| # Json API Tests | |
| # Para o código abaixo funcionar temos que configuras seguintes GEMS: | |
| # gem 'rspec-json_expectations' # Utilizado no helper include_json | |
| # gem 'json_matchers' # Utilizado pelo helper match_response_schema ... | |
| require 'rails_helper' | |
| RSpec.describe "Customers", type: :request do | |
| describe "GET /customers" do |
Texto original em Inglês: https://gist.github.com/rondy/af1dee1d28c02e9a225ae55da2674a6f
- FWIW: Eu não produzi o conteúdo apresentado aqui (o esboço do livro de Edmond Lau). Acabei de copiar e colar de algum lugar da Internet, mas não me lembro qual é exatamente a fonte original. Também não consegui encontrar o nome do autor, por isso não posso lhe dar os devidos créditos. *
- Por Edmond Lau
- Altamente recomendado: +1:
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
| ## GAE | |
| From GcpAppEngineServiceSample SELECT latest(flex.cpu.Utilization), latest(flex.cpu.ReservedCores) WHERE entityName LIKE 'integration-auth.%' | |
| From GcpAppEngineServiceSample SELECT latest(system.memory.UsageBytes), latest(system.Instances) WHERE entityName LIKE 'integration-auth.%' | |
| From GcpAppEngineServiceSample SELECT latest(system.memory.UsageBytes / 1e9), latest(system.Instances) WHERE entityName LIKE 'integration-auth.%'/B | |
| ## Transactions | |
| From transaction select count(****) where appName = 'Integration Auth (Production)' | |
| from transaction select count(*) where appName = 'Integration Auth (Production)' timeseries | |
| from transaction select count(*) where appName = 'Integration Auth (Production)' timeseries compare with 1 week ago | |
| from transaction select count(*) where appname = 'Integration Auth (Production)' timeseries facet request.method |
OlderNewer