January 1, 2015 by Daniel P. Clark

When to use Ampersand and/or Colon with Proc, Map, and Inject

So with Ruby permitting Procs called on Objects I’ve found sometimes a Colon Method will work, and sometimes you need a Ampersand Colon Method.  For example, when I map &:upcase on a list of strings it works. [“a”,”b”,”c”].map(&:upcase) # = > [“A”, “B”, “C”] But if I try without the Ampersand I get: [“a”,”b”,”c”].map(:upcase) #…

Continue Reading »

Image Provided By: www.StockMonkeys.com

December 31, 2014 by Daniel P. Clark

Do it for the puzzle!

Have you considered how much you enjoy a “good challenge”?  Do you recall as a child some one challenging your ability to do something?  Often it’s in our nature to say within ourselves “Challenge Accepted”.  We can use this nature for good. If you run, do you run for exercise, distance, time, or something else? …

Continue Reading »

December 27, 2014 by Daniel P. Clark

“Assume Everything Will Break” Development

In Ruby, and Ruby on Rails, the community is very big on Test Driven Development (TDD). This is good! And it’s especially important when working with a team. But what patterns will you develop in buidling a huge Rails application on your own without tests? Well I’d like to call it “Assume Everything Will Break…

Continue Reading »

December 26, 2014 by Daniel P. Clark

Free Travis CI for your Open Source project

So as I was poking around and looking at Travis CI and I noticed they give their service for free to open source projects.  This is cool!  Give your project more credibility by using it. So what is Travis CI?  Well it’s basically a tool to run your software tests within several environments and give you…

Continue Reading »

December 9, 2014 by Daniel P. Clark

Ruby & Ruby on Rails Methods for Discovery Part 1

When I program I see it as both an art and a challenge.  The art is in the how.  The challenges I see as detective work.  The answer is unknown as of yet, and it’s your job to sleuth it out.  A detective hunts down the clues until an answer is found.  Yes, that is…

Continue Reading »

August 4, 2014 by Daniel P. Clark

Create a Game Instance in Rails

So you need to load a class instance in Rails for your visitors to play your game. But Rails generally is a static website with static database lookups. So for this we’re going to assign a class instance to a game room. First let’s generate our project; we’re going to start with a prebuilt devise/bootstrap…

Continue Reading »

August 1, 2014 by Daniel P. Clark

Manual Polymorphic Creation in Rails

Finding documentation online to do this was pretty much a no go.  The answer I’ve provided here was grasped from hints given on many websites of what could be done but without anything I could really sink my teeth into. What this code allows you to accomplish is to create a belongs_to/has_many relationship to something…

Continue Reading »

June 6, 2014 by Daniel P. Clark

Characteristics That Attract

Every person should seek to become the best they can be. One fairly obvious trait that is attractive is confidence.  We people love to see confidence; so much so that we seek to follow it.  Why is that do you suppose?  What does the image of confidence exude?  Confidence seems to be an indicator of…

Continue Reading »

Termination Notice

June 5, 2014 by Daniel P. Clark

Don’t check your email before…

…you go to bed. Yes, just as I was about to go to bed to sleep I decided to check my e-mail.  It was there I found a Termination Notice for my storage unit.  I knew I was about one month late with payments, but then my eyes saw the following “The Auction will be…

Continue Reading »

Value

May 17, 2014 by Daniel P. Clark

Freelancer; What’s your price?

In this day and age price point is a big question for many; both for those who are new in the field, and even the veterans who make an effort to stay up to date with the trends. What it comes down to are these factors: Market Research, Supply vs Demand, Quality, Niche, Qualifications, Estimated…

Continue Reading »

Page 9 of 11
1 7 8 9 10 11
1 7 8 9 10 11