| Off Topic > Off Topic |
| Programming Megathread |
| << < (70/241) > >> |
| Hawt:
is ruby on rails good for websites? or is there a better one |
| ZSNO:
--- Quote from: Glass Joe on January 22, 2016, 04:04:04 AM ---so are you all gonna ignore the main point of my post or --- End quote --- TBH you might have more luck in the Game Design thread. I've only ever done a game loop once, so I don't really have any advice. --- Quote from: Hawt on January 22, 2016, 07:43:57 PM ---is ruby on rails good for websites? or is there a better one --- End quote --- What are you planning on doing? |
| Foxscotch:
--- Quote from: Hawt on January 22, 2016, 07:43:57 PM ---is ruby on rails good for websites? or is there a better one --- End quote --- if you want to use ruby that is probably your best option if you don't care about the language, there are other choices too, like Python with Django or Flask, or Node with Express (I think there are more full-featured frameworks for Node too?) even PHP may be a reasonable option if you hate yourself there's also Java and C#, but I've never even touched any of those web frameworks, so I don't have anything useful to say about them |
| Headcrab Zombie:
--- Quote from: Foxscotch on January 22, 2016, 08:59:26 PM ---there's also Java and C#, but I've never even touched any of those web frameworks, so I don't have anything useful to say about them --- End quote --- C#/.NET is lovey, but requiring a windows OS may be an inconvenience for some |
| Jairo:
people good with python, please assist: import random name1 = ['Suleiman', 'Osman', 'Bayezid', 'Mehmed', 'Orhan', 'Murad', 'Selim'] name2 = [] name3 = [' the Magnificent', ' the Lawgiver', ' the Conqueror', ' the Terrible', ' the Stammerer', ' the Fair', ' the Great', ' the Silent'] for x in range(10): name2.append(random.choice(name1)) name2[x] = 'Sultan ' + name2[x] # check if name has already been stored before, if yes then apply regnal numbering for y in range(3): name2[random.randint(0, 9)] = random.choice(name2) + random.choice(name3) print('\n'.join(name2)) I'm trying to make an ottoman lineage/dynasty generator part of a dynasty's naming convention comes down to regnal numbering (Elizabeth I, Mehmed II, Pope Gregory VII). how would I go about doing that in python? I think what I need is for a loop to compare each list index to see what is what and where is where, but I'm not sure how to actually implement that in other words, if my code outputs (example): Sultan Mehmed Sultan Suleiman Sultan Mehmed I want it to instead say: Sultan Mehmed I Sultan Suleiman Sultan Mehmed II sorry for my lack of intuition when it comes to explaining this but any help is appreciated |
| Navigation |
| Message Index |
| Next page |
| Previous page |