× Register Login What's New! Contact us
Salah for programmers?
HeartHijab.com | Hijab Sale
Results 1 to 3 of 3
  1. #1
    fschmidt's Avatar
    Join Date
    Dec 2010
    Gender
    Male
    Religion
    Other
    Posts
    234
    Threads
    20
    Reputation
    757
    Rep Power
    46
    Likes (Given)
    46
    Likes (Received)
    81

    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.
    2 | Likes azc, cinnamonrolls1 liked this post
    Salah for programmers?


  2. Report bad ads?
  3. #2
    azc's Avatar
    Join Date
    Jan 2016
    Gender
    Male
    Religion
    Islam
    Posts
    5,077
    Threads
    256
    Reputation
    18951
    Rep Power
    29
    Likes (Given)
    631
    Likes (Received)
    1835

    Re: Salah for programmers?

    SubhanAllah. May Allah swt guide you to right path . Ameen
    1 | Likes cinnamonrolls1 liked this post
    Salah for programmers?

    Allah (swt) knows best

  4. #3
    cinnamonrolls1's Avatar
    Join Date
    May 2017
    Gender
    Female
    Religion
    Islam
    Posts
    1,111
    Threads
    52
    Reputation
    1627
    Rep Power
    8
    Likes (Given)
    1346
    Likes (Received)
    588

    Re: Salah for programmers?

    This is impressive!

  5. Hide
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, 02: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, 07: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