27 Sep '14, 8am

I'm new to Ruby, can you take a look at this script? via /r/ruby

I recently just started learning Ruby (and programming FWIW), and I wrote my very first functioning script that actually do something useful. It's here: primenumber.rb What this script do is fairly simple, it ask for a number and output if that number is a prime number or not. However, I think the code looks kinda ugly and "naive". Can anyone suggest how can I improve it? Another problem is if the user intentionally input a large prime number (10 digits and more) the script would take a long time to run, can we somehow improve this? Thanks in advance! I'm enjoying learing Ruby so far.

Full article: http://www.reddit.com/r/ruby/comments/2hlqb8/im_new_to_ru...

Tweets

Why most startups use Ruby on Rails

blog.stickystamp.com 27 Sep '14, 11am

At Stickystamp we use Flask entirely for our backend. I don't really have a solid explanation behind the choice yet, apart...

New Post! Can you learn Rails before learning R...

justinweiss.com 23 Sep '14, 10am

Can you learn Rails before learning Ruby? You can, for a little while. But as your app grows past the REST, generated-scaf...

@thomasthetaxi any chance you can look at my fo...

londontaxi.proboards.com 29 Sep '14, 4pm

This Board Hosted For FREE By ProBoards Get Your Own Free Message Board!

ALERT ☆★☆ #Job #Washington - Lead Ruby on Rails...

ziprecruiter.com 28 Sep '14, 2am

We are looking for a world class web developer to join our growing team to get everyone in the country to switch to clean ...

The new issue of @BARISTAMAGAZINE is out! This time I take a look at #EcoFriendly coffee roasting.

The new issue of @BARISTAMAGAZINE is out! This ...

baristamagazine.com 01 Oct '14, 6pm

Barista Magazine digital is a complete, online version of the entire issue of Barista Magazine! Whether you're using a com...

Lets Take Another Look At The Air Jordan 4 ‘Columbia’ Remaster -

Lets Take Another Look At The Air Jordan 4 ‘Col...

kicksonfire.com 25 Sep '14, 3pm

by1rxr2siziknxfmyzwi z3jzmrqofm3vcpj52mgf kk1wjadm9c0u8amfpcub iamgisfynxqnffgxrolv k3h1nz1r9uhqvfzzxprw gb3yqwix2bqerzf22...

Mynewsdesk is hiring a Ruby on Rails #Developer...

mynewsdesk.theresumator.com 24 Sep '14, 11am

Are you a brave, open, web enthusiast with an interest for the world of PR and digital media and want to join a growing Sa...

Can you learn Rails before learning Ruby?

rubyflow.com 23 Sep '14, 3pm

Can you learn Rails before learning Ruby? You can, for a little while. But if you want to learn enough Ruby to master Rail...

@chukwueh Hi, we do not have a store open. Howe...

jdsports.co.uk 29 Sep '14, 1pm

British Indian Ocean Territory Brunei Darussalam Bulgaria Burkina Faso Burundi Cambodia Cameroon Canada Cayman Islands Cha...

Why Ruby on Rails is in Such High Demand via @trybloc #rubyonrails #ruby #rails

Why Ruby on Rails is in Such High Demand via @t...

blog.bloc.io 22 Sep '14, 4pm

Are you thinking about switching careers and becoming a developer? We researched the job market for Ruby on Rails develope...

Take a look at the "Desert Camo" Custom 6s

twitter.com 29 Sep '14, 3pm

To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content,...

Ruby off Rails

jemaddux.com 24 Sep '14, 12am

– A task management tool that allows you to namespace tasks and run them with Ruby it is Ruby’s alternative to make. A sim...

Learn to Code! Free CodeSchool from New Relic [...

newrelic.com 30 Sep '14, 2pm

What is Code School? Code School is an online learning platform that teaches a variety of programming and web design skill...

IO in Ruby

robots.thoughtbot.com 01 Oct '14, 7am

Since everything on a Unix-like system is a file, we can open an IO stream to a text file in the same way we would open a ...

How Long Would It Take to Mine Bitcoin by Hand?

How Long Would It Take to Mine Bitcoin by Hand?

singularityhub.com 30 Sep '14, 5pm

Bitcoin is a decentralized, digital currency. It was invented by a mysterious individual known by the handle, Satoshi Naka...