Tags Authors About Us
Tejas Bubane

    bundle add command

    Ruby’s bundler introduces a new command to add a gem to the Gemfile.

    Tejas Bubane  –  Aug 19, 2017  –  bundler

    Separate gitconfig for work and play

    Use conditional config to separate gitconfig for work and personal projects.

    Tejas Bubane  –  May 10, 2017  –  git gitconfig

    Create Custom Exceptions in ES6

    Creating elegant custom exceptions is easy with ecmascript classes.

    Tejas Bubane  –  May 9, 2017  –  ecmascriptbabelexception

    ES7 class properties

    class properties in ES7 can be used to write elegant React components.

    Tejas Bubane  –  Feb 13, 2017  –  ecmascriptbabelwebpackreactjs

    Understanding Ruby's &method

    Method#to_proc - just like Symbol#to_proc

    Tejas Bubane  –  Jan 1, 2017  –  rubysymbolprocmethodmetaprogramming

    Symbol-to-proc in Ruby

    Understand how array.inject(&:+) works.

    Tejas Bubane  –  Dec 31, 2016  –  rubysymbolprocmetaprogramming

    Pgcli - better command line interface for postgres

    Today I came across pgcli. It is a database console for postgres with syntax highlighting and more importantly autocompletion!

    Tejas Bubane  –  Nov 18, 2016  –  postgrescliautocompletion

    Using ActiveModel::Dirty for tracking changes

    ActiveRecord comes with a mechanism to track changes to your model with ActiveModel::Dirty. Lets put it to some use.

    Tejas Bubane  –  Sep 26, 2016  –  rubyrailsactiverecordactivemodel

    Chisel Refactoring

    Last night I was watching Sandi Metz’s podcast on Bikeshed and one question in the QnA striked me.

    Tejas Bubane  –  Jul 14, 2016  –  refactoringcleancode

    Speedy array operations with Ruby 2.4

    Ruby 2.4 has optimized Array#min and Array#max methods. Here are some benchmarks.

    Tejas Bubane  –  Jun 20, 2016  –  rubyruby-2-4

    RSpec predicate matchers

    Rspec has a pretty handy feature called predicate matchers to test predicate methods on your classes.

    Tejas Bubane  –  Jun 13, 2016  –  rspec

    Sass mixins as functions

    Sass mixins are pretty handy if you want to re-use same snippet of css at multiple places. But did you know they can act like functions as well?

    Tejas Bubane  –  Jun 11, 2016  –  sass

    Use Rails Enums carefully

    ActiveRecord enums are really handy but they can be equally evil if not used properly.

    Tejas Bubane  –  Jun 9, 2016  –  activerecord

    Spying with Rspec

    Spying is used to assert if a method has been called, here we will see how to use spies with Rspec.

    Tejas Bubane  –  Jun 8, 2016  –  rspec

Copyright © 2022 Cybrilla Technologies