Skip to content

Instantly share code, notes, and snippets.

@dummied
Last active May 8, 2017 20:23
Show Gist options
  • Save dummied/5b0f9e073cbd311cac28 to your computer and use it in GitHub Desktop.
Save dummied/5b0f9e073cbd311cac28 to your computer and use it in GitHub Desktop.
Contributed by the indy.rb community
  1. Sum an array of numbers
  2. Implement your own version of Enumerable#collect
  3. Write a function that finds all the duplicate words in an abritrary amount of text
  4. Do FizzBuzz: "Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”."
  5. What's the difference between a class and a module?
  6. Implement HashWithIndifferentAccess
  7. Show two ways to render a list of Users’ names given class User > ActiveRecord::Base
  8. Why is CSRF important?
  9. Implement a job that finds all Users who are overdue and create a file containing that information (Bonus question, this)
  10. Sketch out database/model schema for a blog w/ comments, authors, tags
  11. write a function that takes an int and prints the roman numeral version
  12. write a function that takes a string and returns the number of unique letters
  13. Write a function that return the Fibonacci sequence to a number of iterations.
  14. Write a function that returns the factorial of a given integer
  15. For a user model with a firstname and lastname, implement a fullname method in any way you would like.
  16. When might you use a mixin as opposed to inheritance?
  17. What is polymorphism and when might you use it?
  18. Add any new method to the String class.
  19. What might be a problem with including callbacks in your model?
  20. What path does a web request take through a Rails application?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment