Which version of this Ruby code would you prefer to see in your codebase?
def properties_names_hash out = {} properties.each do |property| out[property.name] = property.original_name end out end
or
def properties_names_hash…
My first programming jobs started when I was 19. However, this wasn’t my first contact with the IT market. It’s only now that I realise that I was a a CTO when I was 13 years old!
I’m currently trying to evaluate an idea — let’s call it Single Threaded Development, where a single team…
Sometimes you would like to define a method which takes an optional argument, but the programmer might pass nil. And your code needs to distinguish between the value not being provided (default value) and nil. How can it be achieved?
nil
Around a month ago, I worked on a task, which required a more dynamic frontend behavior. I worked on a component with 2 selects and 2 date pickers and depending on what was…
In last day, I started using RubyMine once again for my Ruby/JavaScript programming. It lets me plug one of my favourite tools for JavaScript development, which is EsLint. It not only let me keep…
Distractions are bad. Distractions make you dumber. Eliminating distractions is impossible. We can try to contain them instead of eliminating them.
Offline sandwich is a way to structure your workday in a way that you put distractions into their boxes, thus giving yourself…
I don’t need to tell you why brushing your teeth and going to a dentist with a regular time manner is an important thing.