|
So DRYing up code is supposed to be good thing right? There was a situation in one of the projects I was working on where there were certain models/entities that were more-or-less the same except the context in which they were being used. That is, Every...
Started by Chirantan on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
If DRYing....
I think, we should be DRYing up code that is repeated and has single responsibility with a responsibilty of its own.
From what I understand, if DRYing up code is causing loss of simplicity, we are doing something terribly wrong.
|
|
Have written some RoR sites in the past, but never bothered too much at DRYing up my views as it's only ever been me looking at the code.
Just starting a new site, that is likely to be a collaboration, and need help
I call this line multiple times in ...
Started by Nick on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Try application_controller.rb
How about a method on the Rider class that just returns the name?
def name person = Person.find_by_id( @person_id ) if !person.nil? return person.name end return nil end
used as
<%= rider.name %>
or, you could use ... .
|
|
Drying off!
6 Attachment(s) Mrs R out the shower and drying herself off (or making herself more wet!), hope you all enjoy!
Started by Rob136 on
, 13 posts
by 13 people.
Answer Snippets (Read the full thread at chubbyparade):
Yummmy!! You have got to love watching a woman pleasure herself! Thanks for posting her! She is a very sexy woman Very hot pictures... .
I'd like to help her get wetter Once she is wetter i would LIKE to dry her off again
Stunning Body Wish I was there.
|
Ask your Facebook Friends
|
Who makes the fast drying silicone?
Permatex? Who? Has anyone tried is it any good?
Started by R347GT on
, 15 posts
by 12 people.
Answer Snippets (Read the full thread at yellowbullet):
Call them !!!
http://www.ferrea.com/hylomar.php Re: Who makes the fast drying silicone?
Are you using it as a sealer drying silicone?
Hylomar is some great....
Re: Who makes the fast drying silicone?
Ferrea has some kick ass stuff, ..
|
|
Hi
Which drying towel do people recommend nowadays?
Thanks
Started by by Flint on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at ttforum):
On top I think by quite some margin I use this:
http://www.cleanyourcar.co.uk/washing-and-drying/drying-towels/chemical-guys-wooly-mammoth-drying-towel/prod_1003.html
The car has more luxuries than I do Bliss drying towel ....
|
|
ACM Question:
Simulations involving service times and queues are fairly routine despite using statistical distributions to generate data of interest. Most physical systems are far more complex.
Given
Weight of a Towel Surface Area of Towel Dryer Volume...
Started by ojblass on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
This could be a good starting point for you: http://documents.wolfram... .
Anytime you see some nonlinearity, it is best to model it using neural networks .
In the past, I used neural networks to solve problems which cannot be solved by purely emperical evidence .
|
|
Drying the roof of the box
How are some ways you all go about drying the roof of your xBs?
I currently have to use the stepstool and take about 2 cloths to push off the water from the roof, ring out the cloth and repeat. Then I go back with some dry ...
Started by micmac on
, 20 posts
by 10 people.
Answer Snippets (Read the full thread at clubxb):
:)
i just use one of the chami clothes....
Takes out the step stool part of it.
Get it lowered a lot.
They sell them at auto zone, and theyre about $15 .
Actually they make a Squeegie type tool that is designed for it and it doesnt hurt your paint at all .
|
|
I have code similar to:
number_to_currency(line_item.price, :unit => "£")
littering my views in various models. Since my application deals only in GBP (£), should I not move this into each of my models so that line_item.price returns the string as ...
Started by Gav on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Eg
def quid(price) number_to_currency(price, :unit => "£"....
You could save some key strokes by defining your own helper in application_helper.rb (so it is available to all views) .
Number_to_currency is a view helper, so it is not available in models .
|
|
I have a simple c++ struct that is extensively used in a program. Now I wish to persist the structure in a sqlite database as individual fields (iow not as a blob).
What good ways are there to map the attributes of the struct to database columns?
Started by dirk on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
The other extreme would be to merge it all into one column, depending on how you are going to use the data stored... .
The easiest approach would be one column per attribute, that may or may not be appropriate for your application .
Hard to answer in general.
|
|
Right, before anyone bollocks me, I have searched but all the threads seemed to date back to 2009, and maybe the game has moved on a bit by now?
So, what's the general consensus on the best drying towel currently available? I had one of the big blue ones...
Started by andrewparker on
, 14 posts
by 14 people.
Answer Snippets (Read the full thread at mk5golfgti):
So, what's the general consensus on the best drying towel currently available? I had one of the big blue ones but I think radiator drying it has ruined it and it is leaving fibres all over the car/elite-wonder-drying-towel-24-x3....
|