<?php
public function get_usd_value($date)
{
...
PHP What is bad in this code?
by https://www.google.com/accounts/o8/id?id=AItOawk89fkb9x-moiNmY07jOpKHwIT1tUTiK6M,
August 17, 2010 15:53,
2 refactorings, tagged with php, array, array string loop each
select = []
joins = []
%w[first second third forth].each{ |semester| joins << ":pdp_#{semester}_semester"; (1..5).each{ |n| select << "pdp_#{semester}_semesters.objetive_#{n} AS #{semester}_objetive_#{n}" }}
...
Ruby Arrays, loops, strings...
Can this be done in one line?
I know that variable naming...