Post
Back to the topic of speed
I'm not very good with writing Ruby map methods - they just haven't quite sunk into my head. It seems unnatural and awkward for me to think about creating arrays in this way.
And these are the times in my life where I realize I'm staring at a wall that I need to overcome.
So Stackoverflow - being the mecca of all things code-related in my opinion - allows me to post a question:
How would you improve this:
``` lang-rb time =Time.now @time=[]@time.push((time-1.week).strftime("%m-%d"),(time-6.days).strftime("%m-%d"),(time-5.days).strftime("%m-%d"),(time-4.days).strftime("%m-%d"),(time-3.days).strftime("%m-%d"),(time-2.days).strftime("%m-%d"),(time-1.day).strftime("%m-%d"),(time).strftime("%m-%d"))