Skip to main content
tokland's user avatar
tokland's user avatar
tokland's user avatar
tokland
  • Member for 13 years, 6 months
  • Last seen more than a month ago
19 votes

Is there a more succinct way to write this Ruby function?

15 votes
Accepted

Simplify test for divisibility by all numbers 1…20

15 votes
Accepted

Counting words / lines in Ruby

15 votes
Accepted

GCD of two numbers in Ruby

14 votes
Accepted

Separate numbers with commas

12 votes

Parse webpage and save fetched images to a directory

10 votes

Handling nil: Trying to avoid #try

10 votes

Finding maximum deviation

10 votes
Accepted

Drink order program

10 votes
Accepted

Method to count unread messages

10 votes
Accepted

Setting the default display name for my model

9 votes
Accepted

Summing the size/count of associations for multiple records

9 votes
Accepted

Rails controller method that conditionally filters results

9 votes

Determine a poem's rhyme scheme

8 votes

Coding style in Ruby format in an method and variable assign

8 votes
Accepted

Applying limit and offset to an array

7 votes
Accepted

Minimum coins algorithm in Ruby

7 votes
Accepted

Avoid printing attributes of the nil object in Rails

7 votes
Accepted

Deeply extract all used symbols from a hash of nested symbols in an array

7 votes
Accepted

Refactor code to solve the 'Line is too long' error in rubocop

7 votes
Accepted

The Genetic Code

7 votes
Accepted

Lowest Common Multiple of 1 to n in Ruby

7 votes
Accepted

Sort a list in Python

7 votes

Generating a random alphanumeric string succinctly and efficiently

7 votes
Accepted

Checking host status for clients on server

6 votes
Accepted

How do I generate a list of n unique random numbers in Ruby?

6 votes
Accepted

An abundance of ternary operators

6 votes

Refactor Ruby method for getting domain?

6 votes
Accepted

Counting letters in a text file

6 votes
Accepted

Nested trial and error in if-else condition

1
2 3 4 5
9