- DDD – Introdução a Domain Driven Design - Daniel Cukier 📖 ⭐
- Desmistificando o DDD - Grazi Bonizi 📖 ⭐
- Destilando um domínio com DDD - Grazi Bonizi 📖 ⭐
- DDD Aplicado – Case Qualyteam - Grazi Bonizi 📖
- Complexidade Acidental
- Introdução a Domain-Driven Design - Maicon Pereira
▶️ ⭐ - Big Ball of Mud - Brian Foote and Joseph Yoder 📖 ⭐
- Big Ball of Mud - Felipe de Freitas Batista 📖
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
| require 'faker' | |
| require 'benchmark' | |
| def generate_groups | |
| (1..1_000).map do |id| | |
| { id: id, name: Faker::Educator.primary_school } | |
| end | |
| end | |
| def generate_users(groups_ids) |
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
| require 'benchmark' | |
| def sum_range_using_for_loop(min, max) | |
| range = (min..max) | |
| sum = 0 | |
| for n in range | |
| sum = sum + n | |
| end |
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
| # spec/system/support/login_helpers.rb | |
| # See this blog post for setup guide: https://evilmartians.com/chronicles/system-of-a-test-setting-up-end-to-end-rails-testing | |
| module LoginHelpers | |
| def login_as(user) | |
| # Craft session cookie to make request authenticated (to pass even routing constraints) | |
| # Compilation of these: | |
| # - https://dev.to/nejremeslnici/migrating-selenium-system-tests-to-cuprite-42ah#faster-signin-in-tests | |
| # - https://turriate.com/articles/2011/feb/how-to-generate-signed-rails-session-cookie | |
| # - https://github.com/rails/rails/blob/43e29f0f5d54294ed61c31ddecdf76c2e1a474f7/actionpack/test/dispatch/cookies_test.rb#L350 |
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
| # backup | |
| docker run -v [volume]:/volume --rm loomchild/volume-backup backup - > [backupfile.tar.bz2] | |
| # restore | |
| cat [backupfile.tar.bz2] | docker run -i -v [volume2]:/volume --rm loomchild/volume-backup restore - |
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
| module Pokecli::EntityFormatters | |
| class Pokemon | |
| Unslugify = ->name { name.tr('-', ' ').capitalize } | |
| StatFormatter = ->stat { "#{stat[0].capitalize}: #{stat[1]}" } | |
| def self.render(response) | |
| new(response).render | |
| end | |
| def initialize(response) |
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
| class Calc | |
| def sum(a, b) | |
| a + b | |
| end | |
| def multiply(a, b) | |
| a * b | |
| end | |
| end |
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
| My Dotfiles | |
| brew install fzf | |
| brew install xclip | |
| brew install autojump |
EMOJI CHEAT SHEET
Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.
People
😄