Решение на Четвърта задача от Николай Добромиров

Обратно към всички решения

Към профила на Николай Добромиров

Резултати

  • 0 точки от тестове
  • 0 бонус точки
  • 0 точки общо
  • 0 успешни тест(а)
  • 0 неуспешни тест(а)

Код

REPOSITORY = 'http://github.com/ndobromirov/ruby-retrospective-1'
# Defining a class function
# Understand how to monkey-patch different classes
# Array#each_cons
# Array#count
# Hash with default value on missing key ( Hash.new <value> )
# Pluses of reusing existing code
# Using static methods
# Understand that the naming convention for functions and variables is snake case: long_variable_name
# Using Object#send
# Usign Enumberable#map
# Using Enumerable#map(&<symbol>) way of using the function
# Using Enumberable#select
# Using String#lines
# Using Enumberable#all?
# Using Array(<value>) to wrap someting as an array
# Using `"%s" % value` syntax for binding and formatting variables into strings.
# Using mixins ( a little at least )
# The difference between super and super() - first calls the parent method with the same arguments
# Implementing simple class hierarchies
# Using the Hash#fetch method with a default value

История (1 версия и 0 коментара)

Николай обнови решението на 13.11.2011 22:09 (преди над 12 години)

+REPOSITORY = 'http://github.com/ndobromirov/ruby-retrospective-1'
+
+# Defining a class function
+# Understand how to monkey-patch different classes
+# Array#each_cons
+# Array#count
+# Hash with default value on missing key ( Hash.new <value> )
+# Pluses of reusing existing code
+# Using static methods
+# Understand that the naming convention for functions and variables is snake case: long_variable_name
+# Using Object#send
+# Usign Enumberable#map
+# Using Enumerable#map(&<symbol>) way of using the function
+# Using Enumberable#select
+# Using String#lines
+# Using Enumberable#all?
+# Using Array(<value>) to wrap someting as an array
+# Using `"%s" % value` syntax for binding and formatting variables into strings.
+# Using mixins ( a little at least )
+# The difference between super and super() - first calls the parent method with the same arguments
+# Implementing simple class hierarchies
+# Using the Hash#fetch method with a default value