/* */

PDA

View Full Version : Salah for programmers?



fschmidt
07-16-2017, 02:13 AM
I spent today trying to understand salah. As a programmer, I naturally want an algorithm. Below is what I came up with. Can someone verify that it is correct?

Code:
function salah(rakats)

    stand

    "Allahu Akbar" raise hands
    
    for rakah = 1 to rakats do

        stand, hands on chest
        
        "Bismillahir rahmanir rahim. Al hamdu lil lahi rabbil 'alamin. Arrahmanir rahim. Maliki yawmiddin. Iyyaka na'budu wa iyyaka nasta'in. Ihdinas siratal mustaqim. Siratal ladhina an'amta'alaihim, ghairil maghdubi'alaihim wa lad dhallin. Amin"

        if rakah <= 2 then say other verse
        
        "Allahu Akbar" raise hands
        
        hands on knees
        
        3X "Subhana Rabbiyal Adhim."
        
        "Sami'Allahu liman hamidah" raise hands

        stand
        
        "Rabbana lakal hamd."
        
        "Allahu Akbar" bow
        
        3X "Subhana Rabbiyal A'la."
        
        "Allahu Akbar" sit
        
        "Rabbighfir li."
        
        "Allahu Akbar" bow
        
        3X "Subhana Rabbiyal A'la."
        
        "Allahu Akbar" sit

        if rakah==2 or rakah==rakats then

            "At-Tahiyyatu lillahi was- Salawatu wat-Tayyibatu. As-Salamu ' alaika ayyuhannabiyyu wa rahmatullahi wa barakatuhu. Assalamu 'alaina wa’ala ibadil-Lahis -Salihin ash hadu al-La ilaha il-Lal lahu wa ash hadu anna Muhammadan abduhu wa rasuluhu."

        end

    end

    "Allahumma salli 'ala Muhammadin Wa 'ala ali Muhammadin Kama sallaita 'ala Ibrahima wa 'ala ali Ibrahima wa barik 'ala Muhammadin wa 'ala ali Muhammadin Kama barakta ' ala Ibrahima Wa ' ala ali Ibrahima Fil a'lamina Innaka hamidun Majid."

    "Allahumma inni a'udhu bika min adhabi jahanam wamin adhabil qabri wamin sharri fitnatil mahya wal mamat wamin sharri fitnatil masihid dajjaal."

    turn right "Assalamu alaikum wa rahmatullah"
    turn left "Assalamu alaikum wa rahmatullah"

end
Reply

Login/Register to hide ads. Scroll down for more posts
azc
01-12-2018, 12:45 PM
SubhanAllah. May Allah swt guide you to right path . Ameen
Reply

cinnamonrolls1
03-17-2018, 11:53 AM
This is impressive!
Reply

Hey there! Looks like you're enjoying the discussion, but you're not signed up for an account.

When you create an account, you can participate in the discussions and share your thoughts. You also get notifications, here and via email, whenever new posts are made. And you can like posts and make new friends.
Sign Up

Similar Threads

  1. Replies: 42
    Last Post: 06-12-2016, 11:29 PM
  2. Replies: 5
    Last Post: 03-28-2015, 01:20 PM
  3. Replies: 3
    Last Post: 01-28-2012, 01:32 PM
  4. Replies: 3
    Last Post: 01-06-2010, 10:04 PM
  5. Replies: 4
    Last Post: 06-29-2009, 06:05 PM
British Wholesales - Certified Wholesale Linen & Towels | Holiday in the Maldives

IslamicBoard

Experience a richer experience on our mobile app!