Some patterns here for reference:
Probably the simplest pattern is Value Object - PORO(plain old ruby object) that provides methods that return values:
class User def initialize (full_name:, email:) @full_name = full_name @email = email end attr_reader :full_name, :email def first_name full_name.split(" ").first end def last_name full_name.split(" ").last end end
Take a break, play a game! Tetris
index.html. Double click on
index.htmland see the result.
Today I saw an interesting comment on Hacker News, three years old thread made it to today’s digest.
Guys were discussing interviews and different processes that are used by companies.
I liked what user YCode wrote:
... Keep a daily journal of what you work on. Nothing fancy, just stop by once a day religiously and add a few notes on what you did, what meetings you attended, who you spoke with, etc... Save your evaluations and especially any award packages you or your team might get submitted for. At least where I work both are your supervisor's attempt to make you look as good as possible. Then, when you're job hunting review your notes and bullets and collect the ones that sound the best and perhaps ones that have numbers assigned to them (size, savings, productivity, etc..) ...
But also it’s helpful as a reminder for what we are doing and what we have achieved. Sprint notes are gone when you are changing company and will be too detailed to re-read, but a good old notebook (digital or real) is good to have. I will try to build a new habit.
Do you know about The GitHub Arctic Code Vault?
The GitHub Arctic Code Vault is a data repository preserved in the Arctic World Archive (AWA), a very-long-term archival facility 250 meters deep in the permafrost of an Arctic mountain. The archive is located in a decommissioned coal mine in the Svalbard archipelago, closer to the North Pole than the Arctic Circle. GitHub will capture a snapshot of every active public repository on 02/02/2020 and preserve that data in the Arctic Code Vault.
Because I didn’t.
I noticed a new badge on my github profile and was surprised to learn that this blog was stored in Arctic Code Vault. Something I leave for future generations 😅. That made me happy!
When you are procrastinating, go and redesign your blog. Or watch some conference talks and learn something. Or pair-program with somebody. There will be the satisfaction of something achieved at the end of the day.
Today T.I.L. became dark. 🎨
Quick list how to create simple Ruby project with minitest:
It happens to me, that I can work and then I have an urge to google something or I reminded to do something. And push it away doesn’t work. I cannot keep focused because I absolutely need to check if something is available on amazon, to track and order, check if plants are watered, you name it. And all those things can wait, but still, 😅 I want to do it know
What surprisingly worked well: “distracting list”!
I just created a note where I put all those minor things for later. Guess the trick is that it is written and saved and I don’t need to “keep that in memory”
I needed to create a nested array(2d array, matrix). Usually, I do: