@Value // Lombok annotation.
// Generates all private final fields, an all-args-constructor,
// getters (no setters), toString(), etc...
class User {
Moved there: https://github.com/joebew42/learning-javascript
interface GameRulesOutputBoundary | |
void moveSouthSucceed() | |
end | |
interface GameRulesInputBoundary | |
void parse(message) | |
end | |
class GameRules implements GameRulesInputBoundary | |
def init(GameRulesOutputBoundary outputBoundary) |
interface GameRulesInputBoundary | |
void moveSouth() | |
end | |
interface GameRulesOutputBoundary | |
void moveSouthSucceed() | |
end | |
class GameRules implements GameRulesInputBoundary | |
def init(GameRulesOutputBoundary outputBoundary) |
Continuous Integration (CI) is an important practice every team should adopt in order to detect defects and errors early and solve integration problems easily. Roughly speaking we may say that CI is a practice that allows the growth of solid software by giving greater confidence to the developers and better products to the final customers.
The concept behind CI is fairly simple: the codebase is owned by several developers that continuously integrate their changes to a common version control system. For each integration the system runs a predefined set of tasks automatically; these tasks may vary from running all the tests to building all the components.
- Your class can be no longer than 100 lines of code.
- Your methods can be no longer than five lines of code.
- You can pass no more than four parameters and you can’t just make it one big hash.
- When a call comes into your Rails controller, you can only instantiate one object to do whatever it is that needs to be done. And your view can only know about one instance variable.
You can break these rules if you can talk your pair into agreeing with you.
#!/bin/bash | |
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"% |
# MODEL | |
class Case < ActiveRecord::Base | |
include Eventable | |
has_many :tasks | |
concerning :Assignment do | |
def assign_to(new_owner:, details:) | |
transaction do |