4
votes
4answers
1k views

Temperature converter that seems to violate SRP

I've written this class for two purposes (I think only this fact shows that this code violates SRP): convert weight from one unit to another and to represent them accurate or not accurate. So class ...
1
vote
0answers
58 views

Date and time columns conversion to Time(WithZone)

I got 2 columns representing a date and a time. {dateproc: '2012-03-23', horproc: '2000-01-01 16:15:23 UTC'} Both are read as a TimeWithZone by rails. I need to ...
14
votes
5answers
5k views

Use of a regex stored inside yaml file

I installed settingslogic and in the configuration file I put the regex for the email as follows ...