× Register Login What's New! Contact us
Salah for programmers?
Results 1 to 2 of 2
  1. #1
    fschmidt's Avatar
    Join Date
    Dec 2010
    Gender
    Male
    Religion
    Other
    Posts
    211
    Threads
    16
    Reputation
    505
    Rep Power
    44
    Likes (Given)
    36
    Likes (Received)
    61

    Salah for programmers?

    Report bad ads?

    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
    Last edited by fschmidt; 07-16-2017 at 06:41 AM.
    1 | Likes azc liked this post
    Salah for programmers?


  2. Report bad ads?
  3. #2
    azc's Avatar
    Join Date
    Jan 2016
    Gender
    Male
    Religion
    Islam
    Posts
    3,335
    Threads
    157
    Reputation
    15168
    Rep Power
    23
    Likes (Given)
    448
    Likes (Received)
    1222

    Re: Salah for programmers?

    SubhanAllah. May Allah swt guide you to right path . Ameen
    Salah for programmers?

    Allah (swt) knows best

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

When you create an account, we remember exactly what you've read, so you always come right back where you left off. You also get notifications, here and via email, whenever new posts are made. And you can like posts and share your thoughts. Salah for programmers?
Sign Up

Similar Threads

  1. Any expert programmers?
    By Kiro in forum General
    Replies: 42
    Last Post: 06-12-2016, 11:29 PM
  2. salah
    By islam123271 in forum Worship in Islam
    Replies: 5
    Last Post: 03-28-2015, 01:20 PM
  3. Any web programmers on here?
    By syed1 in forum General
    Replies: 3
    Last Post: 01-28-2012, 01:32 PM
  4. FOR ALL U PPL, programmers please help
    By jannat in forum Education Issues
    Replies: 3
    Last Post: 01-06-2010, 10:04 PM
  5. Programmers and Network admins
    By mohsen1985 in forum Education Issues
    Replies: 4
    Last Post: 06-29-2009, 06:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
create