1
2
3
acts_as_nested_set
...

Ruby Refactoring of the location...

by Dmitry Polushkin, May 14, 2009 13:09, 1 refactoring, tagged with location selector

It's a Location selector, f...

832ed6ace46d61032151f4e1864c057f Talk

Ruby On Too many for loops

by Dmitry Polushkin, February 25, 2009 05:43

Why do you think is it bad?

832ed6ace46d61032151f4e1864c057f Talk
1
2
3
4
var next = false;
for (var i = 0; i < el.options.length; i++) {
  if (next) {
...

JavaScript Check next option in select...

by Dmitry Polushkin, January 25, 2009 15:04, 5 refactorings, tagged with select, options, increment, next

Could be written in plain j...

832ed6ace46d61032151f4e1864c057f Talk

Ruby On While loop to get unique value

by Dmitry Polushkin, January 22, 2009 10:06 Star_fullStar_fullStar_fullStar_fullStar_full

What about magic number '8'?

832ed6ace46d61032151f4e1864c057f Talk
1
%x[ls]

Ruby On Slurping popen

by Dmitry Polushkin, January 22, 2009 10:01
832ed6ace46d61032151f4e1864c057f Talk

Ruby On Conversion from the 2d arra...

by Dmitry Polushkin, October 22, 2008 18:21

Something like I have writt...

832ed6ace46d61032151f4e1864c057f Talk

Ruby On Conversion from the 2d arra...

by Dmitry Polushkin, October 22, 2008 14:24

@danielharan: is it faster ...

832ed6ace46d61032151f4e1864c057f Talk
1
res = path_without_calculation.scan(/\{(.*?)\}/).flatten

Ruby On Extract text between {} bra...

by Dmitry Polushkin, October 22, 2008 14:20 Star_fullStar_fullStar_fullStar_fullStar_full
832ed6ace46d61032151f4e1864c057f Talk

Ruby On Conversion from the 2d arra...

by Dmitry Polushkin, October 22, 2008 14:17

Thanks! Why no "to_h" metho...

832ed6ace46d61032151f4e1864c057f Talk
1
2
3
4
class Array
  def to_h
    hash = {}
...

Ruby Conversion from the 2d arra...

by Dmitry Polushkin, October 22, 2008 09:11, 7 refactorings, tagged with 2d array, hash, convert

Conversion from the 2d arra...

832ed6ace46d61032151f4e1864c057f Talk

Ruby On Open hours grouping

by Dmitry Polushkin, October 16, 2008 06:20

I have some idea how to imp...

832ed6ace46d61032151f4e1864c057f Talk

Ruby On Open hours grouping

by Dmitry Polushkin, October 16, 2008 06:18

@tmpr: You have an error in...

832ed6ace46d61032151f4e1864c057f Talk
1
2
3
4
WEEKDAYS = %w(mon tue wed thu fri sat sun)

dates = [
...

Ruby Open hours grouping

by Dmitry Polushkin, October 08, 2008 09:13, 4 refactorings, tagged with grouping, hours, weekdays

Actually I really don't kno...

832ed6ace46d61032151f4e1864c057f Talk