From: Josh Cheek Date: 2011-10-05T09:00:58+09:00 Subject: Re: Calculating prayer times --20cf307f32540a509f04ae81e743 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Oct 4, 2011 at 1:02 PM, Dwayne Henderson wrote: > Hello! > > Does anybody know of a cleaner, more beautiful way of calculating prayer > times than this https://gist.github.com/1ce3aecf39eef59e9223? > > It's a rewrite of prayertime.rb, although I don't think it looks any > better. > People tell me that calculating prayer times is crazy confusing and > irrational and therefore simply ugly by nature, but I refuse to believe > this. There's gotta be a better way? > > I don't mind the code consisting of more lines if that means it's more > structured and easier to read by beginners, as opposed to shorter but more > cryptic and dense looking. > > --Dwayne > You'd probably get more help if your question was more general. As is, I'm not a Muslim, so I have no idea what the actual problem even is. I glanced at the code, but there were foreign words in it, so I figure it'd take a lot of effort to figure it out. A preliminary guess would be that it has something to do with time zones, but then looking at the code I see it has something to do with seasons, so who knows. If you can express it in a general enough sense that everyone can understand it, then the chances of finding help will increase significantly. --20cf307f32540a509f04ae81e743--