RSS

Improving my developer workflow


From time to time, I look around the web to see what there are for new tools or add-ons to improve my workflow as a developer.  Last night I found two really awesome things!!!!

I am a big fan of HAML, SASS and trying to get on the CoffeeScript bandwagon …  That being said, I work on legacy applications and find myself converting HTML to HAML and CSS to SASS.  There are some great free sites out there they will do these conversions.  Then I found Rails Magic Clipboard package for Sublime Text.  From their site:

Sublime text plugin to convert CSS, HTML or JavaScript in the clipboard to SASS, CoffeeScript or HAML on your screen

What? Seriously??  This kicks ass.  I now can copy a HTML page, change the page to .haml and paste the same code in as HAML code!!  Kudos to @nmdowse !!

The next thing is just an app for your Mac.  One way to improve your workflow is to use shortcuts.  Alias’s or keyboard shortcuts or whatever.  Enter CheatSheet. It is easy to install, now I can just go to one of my applications (like Sublime Text), hold down the CMD key and boom!  A popup of the main shortcuts available.  No need for 50 different cheat sheets now!!

 
Leave a comment

Posted by on December 10, 2014 in Ruby on Rails

 

Deploy Ruby on Rails Tutorial (link)


As someone that finds it hard to make the time to post regularly, I am totally impressed with this tutorial for setting up a Rails server:

Props to Ruby Tree Software !!!

Deploy Ruby on Rails Tutorial

 
Leave a comment

Posted by on December 10, 2014 in Ruby on Rails

 

Best Resources for Beginners


Bob Roberts:

Good list. I have never seen BaseRails before.

Originally posted on The Self Taught Developer:

Ever since I began my Ruby On Rails journey I have followed countless Rails tutorials on countless websites. Sometimes I learned a lot, sometimes I came away just as confused as I had been before. If I could do it all over again I would narrow it down to a few handful of websites that have helped me tremendously on my Rails journey.

The following websites/tutorials are in the order they should be completed.

Getting Started with Rails – This should have been my first tutorial. Incredibly simple and helpful. Do not move on from this tutorial until you have memorized most of the code.

Rails Girls Guides – This is one site I plan on re-visiting. It has many short tutorials perfect for the beginner. When you’re just beginning Rails, it’s important to keep it simple. Keep to the basics. Open up your text editor and re-type code over…

View original 103 more words

 
Leave a comment

Posted by on December 10, 2014 in Ruby on Rails

 

Rails Best Practices


Bob Roberts:

A couple of these tricks I wasnt aware of like the find_each. Thanks for the write up ;)

Originally posted on Rails Best Practices:

With the fast pace of today’s agile development industries, we know how important it is to complete a project on time. We also recognize the importance of other factors such as flexibility and readability & most important performance of the application.

 Many times even experienced developers do not consider above points, which wont impact during initial stages of application, but will raise problems when the data in application grows exponentially and enhancement is to be done for existing application.

 Below are some best practices in Ruby on Rails, which should be considered at time of development in Rails framework.

 * Use Eager Loading (Prevent N + 1 queries)

 Most of the time new Rails developer not use eager loading of object in Rails.

 Eager Loading is highly recommended at the time of development in Rails.

It mainly resolved the common issues like N + 1 queries.

We can detect the N…

View original 1,165 more words

 
Leave a comment

Posted by on September 11, 2014 in Ruby on Rails

 

From Capistrano 2.x to 3.x


Bob Roberts:

I have been putting off on upgrading Capy. There were a lot of changes between 2 and 3. I will have to try this out (if I get brave enough!!)

Originally posted on Silicon 9 East:

This guide describes upgrading from capistrano version 2.x to 3.x. In our company we use capistrano to deploy rails 3 & 4 applications on test- and production-server. Our servers run with apache and passenger gems apache module.

Why Upgrading To Capistrano 3.x

Well it is some work and you need to change a lot, this is true. The following reasons nevertheless convinced me to dive into this adventure:

  • Cap 3 has out of the box multistage support
  • As far as I know cap 2 support has ended. Last cap 2 gem update was 4. July 2013. The documentation of cap 2 (see) is referred to as “legacy” documentation.
  • Cap 3 has a cleaner, more intuitive config file content structure and uses a news simpler DSL.

Let’s Upgrade!

Now that I have your attention and hopefully have convinced you that upgrading to cap 3 is totally worth your time and effort…

View original 727 more words

 
Leave a comment

Posted by on September 3, 2014 in Ruby on Rails

 

RailsBridge Phoenix – Ruby on Rails for Women


OK, everybody, it is time for us to give back to the Ruby/Rails community that has made many of us a enjoyable and profitable life….

We at Socialwhirled have decided to sponsor and host a RailsBridge event in Phoenix (http://railsbridge.org/) the 19th and 20th of September.

From their site:

We teach people to code because we believe that the people making technology should accurately reflect the diversity of those using it.

We want to push for all kinds of diversity in tech: gender, race, sexual orientation, ability, and class. Women were the first population we focused on, but aren’t the last.

We value acceptance, enthusiasm, and hard work. The RailsBridge community thrives on optimism and a love for making great things.

What’s a RailsBridge Workshop?

Our most well-known efforts are free weekend workshops where women learn Ruby on Rails from volunteers. The students at our workshops range from folks who are completely new to programming to QA engineers and professional developers who want to learn Rails. During the Installfest (usually on a Friday evening), we get students’ laptops setup with the requisite technologies. The next day, we break into small group based on experience level and build a web app! (When we aren’t teaching Ruby and Rails, we teach HTML & CSS.)

Here is what we need:

Volunteers to assist in teaching as well as TA’ing.  I think we will need about 8 people that can teach a class using their curriculum and assistants to help attendees that are stuck.

Attendees to attend.  Spread the word to friends, strangers, social media, etc…

I will post the links as soon as I have them setup.  All social media should use the #railsbridge and #railsbridgeaz hashtags.

Most of us learned form others so lets return the favor.

Questions, comments, suggestions, want to volunteer, email me at broberts@socialwhirled.com

 
Leave a comment

Posted by on August 20, 2014 in Ruby on Rails

 

DRY Social Media Links


Bob Roberts:

Nice idea. You could go one step further and have the social_media as a variable in your controller.

Originally posted on PareidoliaX:

I went a little crazy with social media links last night. I wanted to make a nice nav element full of them. First I found a great github repository and site for the images called simpleicons.org.

With all those great icon options I ended up wanting to make nine links but I wanted to keep things DRY so I used an array and a loop. I was pretty pleased with the result.

_footer.html.erb
1

This code is available…

View original 9 more words

 
Leave a comment

Posted by on August 20, 2014 in Ruby on Rails