SedRick's Corner

Ruby on Rails Developer
Recent Tweets @sedrickcz
Posts I Like
Who I Follow

thoughtbot:

Back in January, Ruby Hero Sandi Metz introduced her rules for developers in an episode of Ruby Rogues Book Club.

I encourage you to listen to the podcast or read over the transcript.

The day that the discussion of these rules started at thoughtbot, we were about to start a new project….

findinggaby:

eggsie:dirkstridersironicgirlfriend:smuppetdong:legnaangel:scarabeus:onceaspoiler:fluent-in-lesbianism:

Only tumblr can give me feels about math…

^

why.

crying.

I feel like this could accurately describe some ships I’ve shipped.

Fucking math feels

And whats even worse is regular ol’ intersecting lines

They meet once and grow farther apart forever.

image

That awkward moment when you start shipping lines.

I think it’s time that I step away from the computer…

(via arcellant)

Scrum you say? :)

Ok, Ruby is great and cool. I want to be part of the cool kids on the block. 

So my first visit will be:

http://www.codeschool.com/courses/try-ruby

Great website with great tutorials and interactive sandbox, where I can test all code with access to pdf slides and interactive help.

All available tutorials here:

http://www.codeschool.com/courses

After couple hours spent with CodeSchool you should pay a visit to Ryan Bates’

http://railscasts.com

Excellent screencasts website with various types of themes from beginners to experts.   

I think a combination of CodeSchool and Railscasts is a great way to start with Ruby(on Rails). If you complete most of Ruby and Ruby on Rails tutorials you will be able to create your own website or app with all advantages of Ruby on Rails very easy and very fast.

And if you want to know more:

image

nidhiart:

pillow talk - one of my favorite times of day is when i talk and laugh with you before we drift into dreams.

My work desk

Hi guys. This is my simple voucher code or hash generator in Ruby on Rails.

  1. First we need to create a function for generating random string hash or codeimage
  2. Hey here it’s our code. I think it’s a good idea to check if this code exists in our DB. The probability that we generate the same code is small, but possible. image
  3. Now we wrap it up to get_hash functionimage

And that’s it. I hope it helps someone. Bye

P.S.: We can also create chars array like that:

chars = (0..9).to_a + (‘a’..’z’).to_a + (‘A’..’Z’).to_a