robots.thoughtbot.com Archives - 25 February 2017, Saturday

  • Mastering the Vim Language

    robots.thoughtbot.com 24 Feb '17, 12am

    From the Boston Vim Meetup , Chris Toomey talks about mastering the Vim language. Vim’s core is the amazing command mappings and text objects that allow for countless combinations to define precise edits. Learn how to master the built-in commands, motions, and text objects, and even h...

  • Neat 2.0 Building the future of floated Sass grids

    robots.thoughtbot.com 22 Feb '17, 12am

    As I have worked on the web, I have always been fascinated with grid systems. While I have used and contributed to quite a few libraries, they have never quite met my needs. More often than not, these libraries behave unpredictably, use things like nth-child selectors, and dump huge a...

  • Balance

    Balance

    robots.thoughtbot.com 21 Feb '17, 12am

    Balance is great example of how viewers give physical dimensions to non-physical things. Balance is usually described as how “heavy” elements feel to the viewer according to how elements are arranged. For displaying text, it’s best to provide a comfortable experience for the user to f...

  • How to manage your Python projects with Pipenv

    robots.thoughtbot.com 20 Feb '17, 12am

    This approach works fine but sometimes it can be a juggling act, as you have to manually install or remove packages with particular versions, and remember to regularly update the requirements.txt file, in order to keep the project environment consistent. Especially when there are Pyth...

  • Back to Basics: SOLID

    robots.thoughtbot.com 19 Feb '17, 8pm

    In the above class we have a single command interface that processes commission payments for deals. At first glance the class seems simple enough, but let’s look at reasons we might want to change this class. Any change in how we calculate commissions would require a change to this cl...

  • Emacs as a Python IDE

    robots.thoughtbot.com 17 Feb '17, 12am

    From the New York Emacs Meetup , Drew Werner shows how, with a little effort, Emacs can be a powerful, multi-language IDE with code completion, documentation lookup, and more. Using Python as our language, we will show how to use the the auto-complete, epc, and jedi.el libraries to cr...

  • Android Interpolators: A Visual Guide

    Android Interpolators: A Visual Guide

    robots.thoughtbot.com 16 Feb '17, 12am

    Each interpolator is applied to an identical pink dot in a vertical list. All of the dots have the exact same animation set on them except, of course, for their interpolator. As you can see in the screenshot above, the dots are all labeled with their respective Interpolator class name...

  • Validation, Database Constraint, or Both?

    robots.thoughtbot.com 15 Feb '17, 12am

    The validations provided by Rails are extensive. They cover presence, uniqueness, format, numericality (sic), and more. For any given constraint on your data it’s quite often possible to construct a one-line validates statement composed of the provided validators that protects your ap...

  • Form and Space on the Web

    Form and Space on the Web

    robots.thoughtbot.com 14 Feb '17, 12am

    We occupy three-dimensional space. Sometimes it’s fun, sometimes it’s dangerous, but that is where we live and it influences how our brains are accustomed to interacting with the world. In fact, we’re so accustomed to it that we will subconsciously assign fake three-dimensional attrib...

  • How to Skim a Pull Request

    robots.thoughtbot.com 13 Feb '17, 12am

    After years of this we have each developed a few tricks to find problematic areas when reviewing our first pull request on a legacy codebase. And so I present to you an unexplained, incomplete, and arbitrarily grouped list of keywords that will cause us to read your Rails code more wi...

  • Reaction to Executive Order 13769

    robots.thoughtbot.com 10 Feb '17, 8pm

    On January 27th, the executive branch of the United States issued an executive order banning the people of seven predominantly Muslim countries from entering the U.S. This order has resulted in the detainment of hundreds as they arrived at airports, denies safety to refugees, traps th...

  • Investment Time

    robots.thoughtbot.com 10 Feb '17, 8pm

    thoughtbot is a consulting company. We design and develop software for our clients four days per week, typically Monday through Thursday. For almost a decade, we have dedicated Friday each week to “investment time”, unstructured self-directed time undedicated to client work. Here’s ho...

  • Block Web Crawlers with Rails

    robots.thoughtbot.com 10 Feb '17, 12am

    require "rails_helper" describe "robots.txt" do context "when not blocking all web crawlers" do it "allows all crawlers" do get "/robots.txt" expect(response.code).to eq "404" expect(response.headers["X-Robots-Tag"]).to be_nil end end context "when blocking all web crawlers" do it "bl...

  • Learning by helping

    Learning by helping

    robots.thoughtbot.com 09 Feb '17, 12am

    Over the past year, I’ve been learning Elm . I did the usual things when learning a new language: Go through the tutorial Build a lot of toy projects Read blog posts Subscribe to the $LANGUAGE-Weekly newsletter One of the biggest spikes in my knowledge came from an unexpected source. ...

  • The Fundamentals of Color

    Color

    robots.thoughtbot.com 08 Feb '17, 9pm

    Color is such a fundamental part of how humans understand the world that we often overlook how it is processed and why it influences us. The how Humans perceive a small part of the electromagnetic spectrum through our eyes as light , on a scale of frequencies which we call color . Lig...

    Related:
    1. Color robots.thoughtbot.com 07 Feb '17, 12am
  • Let Vim Do the Typing

    robots.thoughtbot.com 08 Feb '17, 12am

    From the New York City Vim Meetup , George Brocklehurst shows Vim’s various built-in completion mechanisms. This will allow us to let Vim do the typing, writing fewer typos and faster! Check out more meetup presentations, editor tips/shortcuts, lightning talks, AMA’s, behind the scene...

  • Color

    robots.thoughtbot.com 07 Feb '17, 12am

    Color is such a fundamental part of how humans understand the world that we often overlook how it is processed and why it influences us. The how Humans perceive a small part of the electromagnetic spectrum through our eyes as light , on a scale of frequencies which we call color . Lig...

    Related:
    1. Color robots.thoughtbot.com 08 Feb '17, 9pm
  • Companion Objects Are Real Objects Too

    robots.thoughtbot.com 06 Feb '17, 12am

    For as long as there have been Android devices, there have been Android developers programming in Java. Or at least, that was the case until 2011 when Jetbrains announced they were developing a new statically typed programming language for the JVM. And if it’s good enough for the JVM ...

  • Product Confidence: What is it and how to achieve it?

    robots.thoughtbot.com 03 Feb '17, 6pm

    Six months ago a coworker noticed I kept using the phrase “product confidence” throughout design critiques and discussions. It got me thinking, what does product confidence mean? My initial thought was that product confidence is a function of white space, type, and colors that support...

  • Running Project Mix Commands from Any Directory

    robots.thoughtbot.com 03 Feb '17, 12am

    $ MIX_EXS=linters/mix.exs mix deps.get Running dependency resolution... Dependency resolution completed: bunt 0.1.6 credo 0.5.3 * Getting credo (Hex package) Checking package (https://repo.hex.pm/tarballs/credo-0.5.3.tar) Using locally cached package * Getting bunt (Hex package) Check...

  • Swift Talk: Comparing RxSwift and ReactiveSwift

    robots.thoughtbot.com 02 Feb '17, 12am

    In June 2016, Chris Eidhof and Florian Kugler (of objc.io fame) started a new Swift screencast series called Swift Talk . The format is simple: for 15 to 20 minutest each week, two experienced programmers pair-program, problem-solve and refactor together. The result is some excellent ...

  • Special Sale on Upcase and RubyTapas

    robots.thoughtbot.com 01 Feb '17, 6pm

    If you’re going to be writing Ruby in 2017, I have some good news: Upcase has partnered with Avdi from RubyTapas to offer a killer bundle for Ruby developers. For the next few days, you can get a full year of access to RubyTapas and Upcase for just $399 . Since this would normally cos...

  • Hound Introduces Style Guides for Organizations

    robots.thoughtbot.com 01 Feb '17, 12am

    Hound checks style on GitHub pull requests for 138 projects at our company on a daily basis. We also have a style guide for the whole company . If we want to enforce a style across all our projects we have to copy and paste the same guide into each of our projects. That is a lot of co...

  • The Disciplines of Web Design

    The Disciplines of Web Design

    robots.thoughtbot.com 31 Jan '17, 12am

    Fundamentally, the web is a content delivery system. In the early days of dial-up modems and green-on-black monochrome monitors, text was all we could deliver with any kind of speed. We listened to the sweet song of the 2400bit/s modem, tried to make the best pixel art that we could, ...

  • Tropos For Android

    robots.thoughtbot.com 31 Jan '17, 12am

    A long time ago, in a galaxy far, far away we released Tropos for iOS : a simple weather conditions app. Today, from this galaxy, I am thrilled to announce that we have released Tropos for Android. Backstory & Design Tropos was designed with a single question in mind: “What does it fe...

  • Product Confidence: What is it and how to achieve it?

    robots.thoughtbot.com 30 Jan '17, 12am

    Six months ago a coworker noticed I kept using the phrase “product confidence” throughout design critiques and discussions. It got me thinking, what does product confidence mean? My initial thought was that product confidence is a function of white space, type, and colors that support...

  • Vim Splits - Move Faster and More Naturally

    robots.thoughtbot.com 29 Jan '17, 11pm

    Most of us are Vim users and have tweaked our favorite editor for speed and convenience. See thoughtbot’s dotfiles . One of my favorite tools is the window split. Here is a quick splits overview and configurations to use them more effectively. Photo credit: Andrew Ressa on Flickr The ...

  • Emacs For Writers

    robots.thoughtbot.com 27 Jan '17, 12am

    From the New York Emacs Meetup : Jay Dixit , a science writer whose work has appeared in The New York Times , Rolling Stone , and Psychology Today , discusses how he uses Emacs as a non-programmer and how Emacs has made him a more productive writer, editor, and researcher. Check out m...

  • Configuring an Elm App with Environment Variables via webpack

    robots.thoughtbot.com 25 Jan '17, 12am

    Often times applications require configuration values which don’t belong in the app or version control. Keeping config separate from code is one of the principles of a 12-Factor app. When writing Ruby/Rails I tend to reach for the dotenv gem and not give this much more thought. An Elm...

  • How Do You Decide When a Design is "Finished"?

    robots.thoughtbot.com 24 Jan '17, 10pm

    When dealing with code, it’s usually apparent when it’s time to move on to the next feature or wrap up the project. Once the code works and it’s written well you can typically call it a day. In design however, drawing that line can be tricky and has the tendency to be very subjective....