[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prayer time



Ahmad Twaijry writes:
 > -----BEGIN PGP SIGNED MESSAGE-----
 > Hash: SHA1
 > 
 > Al Hamdlla Ala Al Salamh Nadim :)
 > 
 > I have selected a code from  kacst people for 4 reasons
 > 
 > 1- Very easy to read the code (functions documented).
 > 2- Support all prayers algorithms
 > 3- open source :)
 > 4- C++
 > 5- Easy to include it to any program
 > 
 > anyway I have CVS it to itl project and insh'a Allah when I done from
 > the GUI (I will include the most important Islamic cities) I will send
 > it to the Islamic website and the newspaper .
 > 
 > 

Salaam,

 But just like Orwell's "All libraries are equal but some libraries
are more equal than others" ;) , the following are some advantages of
my own "prayert.c" code over "prayer.cpp".  Some of those were wripped
from a feature list that I wrote for my Windows app, so please excuse
the marketing tone in my voice. ;)

++ It's written in ANSI C and works well on Windows and Linux. Duh! 

++ The calculation code takes into account the location's Height above
   Sea level, as well as different Ishaa and Fajr Angles, and different
   Ishaa and Fajr intervals (90, 120 minutes as in the case of the
   Um-Al-Qura method)

++ Better support for countries with Extreme latitudes using different
   options (7 calculation options in total).

++ Calculates Tomorrow's al-Fajr prayer Today! This is actually
   useful for showing the "next salat" time in your app.

++ It was designed to be a back-end of a separate Windows app, so it
   does have that stand-alone-library look and feel.

++ The actual code is smaller in size. Also, unlike "prayer.cpp", it
   compiles perfectly with no errors or warnings.

++ The code is clean and well structured. (for me at least :)


And some disadvantages:

-- no Eid prayer calculations.


Some problems in both pieces of code:

+- No Daylight Saving Time (DST) handling. 



Regards,

- Thamer Mahmoud