Home Authors Posts by Brian Plexico

Brian Plexico

16 POSTS 2 COMMENTS
Every three months I have to change my Windows password, which means I have to go into RubyMine and update my credentials to connect to our Enterprise GitHub server. Usually this is not a big deal because you simply go into the settings and update the password. But this time was not so easy! I tried to clear out all the...
Every so often, Patrick McKenzie, aka @patio11, will mention the blog post I wrote that was a small part in helping him get started down the path that has led him to becoming the person we all know today who is full of knowledge and insight for all things related to software development. Especially software development by small, independent...
RubyMine isn't vim but you can still use keyboard shortcuts to speed things up. Here are a few more of my favorite keyboard shortcuts. Shift + Esc Hides the last active window.  This is especially helpful when you want to hide the testing window or the project window so that most of your screen is only code windows Ctrl + Alt +...
Earlier today, I came across this post where screenwriter John August 'refactors' Katy Perry's recent single Roar . It is interesting to see how he goes through the process of coming up with better lyrics by trying several intermediate steps as well as trying to identify the true intention of the lyrics in the process. Hopefully you can get something from the post...
In the last post, I came across the line below that worked fine but I wanted to make it more compact and introduce some reusability for the future. The problem that needed to be solved was to take a three character string and convert it to a six character string by duplicating each of the characters while keeping the duplicated...
I recently came across a small Sinatra app called PixelHoldr that generates placeholder images for your site based on the options you pass in through the url. This is a handy little addition to a web developers arsenal so I decided to take a look at the code. There isn't a lot of code necessary to run the app but...
As a developer on the Windows platform, it's very difficult to stop reaching for the mouse but I've been trying to wean myself from the mouse as much as possible.  Here are a few of my favorite RubyMine shortcuts that have helped. Ctrl + W Selects the nearest word.  Repeatedly pressing them will select increasingly larger blocks of words. Ctrl + / Toggle...
The CategoryList class in Discourse provides a good opportunity to bring up an issue that you might come across often, which is that the method that needs refactoring is a private method.  In this case, the CategoryList#add_uncategorized method is private but is in need of refactoring to break apart the many different tasks the method is performing. This could be...
On many corners of the internet if you mention that you do Ruby on Rails development on Windows, you will immediately feel the earth shaking as the community starts laughing in unison and yelling at you to make the switch to a more Ruby-friendly platform. I haven't made the switch away from Windows, and yes, there are quite a few...
The latest class I came across in the Discourse code base provides a good opportunity to demonstrate the idea of "Tell, don't ask".  After seeing Sandi Metz's talk at Ancient City Ruby, I've been very conscious of limiting any type checks or a lot of conditionals that collect a bunch of different logic in one method. The starting point of...