Bitcoin Forum

Other => Off-topic => Topic started by: BIGMERVE on May 30, 2013, 08:11:34 PM



Title: What type of coding is used in sites like Satoshi Dice?
Post by: BIGMERVE on May 30, 2013, 08:11:34 PM
I'm eager to learn how to make websites like Satoshi dice, Bitzino, or Pinballcoin.com. However, I don't even know where to start. I don't know anything about coding except for a little HTML and CSS. I don't even know if all the sites I just listed use the same code language.

Can someone point me in the right direction. Should I be learning PHP, python, or Java?


Title: Re: What type of coding is used in sites like Satoshi Dice?
Post by: theymos on May 30, 2013, 08:12:44 PM
Should I be learning PHP, python, or Java?

You can do that stuff with pretty much any programming language, though a dynamic language like PHP or Python will be easier.


Title: Re: What type of coding is used in sites like Satoshi Dice?
Post by: nelisky on May 30, 2013, 08:18:54 PM
PHP is a very common choice, one that I personally hate for no good reason :)

There's a lot of python behind DICEonCRACK, and pretty much everything I do these days that isn't performance critical, and it is certainly not a waste of your time learning it if you are serious about coding in general. Of course the same thing can be said for any language, like theymos hinted, I just have a personal bias towards python as the barrier of entry is quite low and the possibilities really high.


Title: Re: What type of coding is used in sites like Satoshi Dice?
Post by: BIGMERVE on May 30, 2013, 08:44:29 PM
PHP is a very common choice, one that I personally hate for no good reason :)

There's a lot of python behind DICEonCRACK, and pretty much everything I do these days that isn't performance critical, and it is certainly not a waste of your time learning it if you are serious about coding in general. Of course the same thing can be said for any language, like theymos hinted, I just have a personal bias towards python as the barrier of entry is quite low and the possibilities really high.

So is DICEonCRACK all PHP, or is there a need for database stuff like MYSQL?


Title: Re: What type of coding is used in sites like Satoshi Dice?
Post by: nelisky on May 31, 2013, 08:38:01 AM
So is DICEonCRACK all PHP, or is there a need for database stuff like MYSQL?

There is no PHP in DoC or anything else I do. I'm just saying it is something most people chose.

There is certainly a need for DBs, otherwise we wouldn't have a way to store the games or the results. You could, however, do without it with a little effort, but I would certainly not advise you to.


Title: Re: What type of coding is used in sites like Satoshi Dice?
Post by: matt_boyd on May 31, 2013, 02:50:24 PM
If you are looking some code for online btc gambling, I might be able to help you, pm me if you like.


Title: Re: What type of coding is used in sites like Satoshi Dice?
Post by: theymos on May 31, 2013, 03:57:57 PM
It's common to use a database abstraction layer, which allows you to do database stuff without writing SQL. (Though I prefer to deal with the database directly.)


Title: Re: What type of coding is used in sites like Satoshi Dice?
Post by: whiskers75 on May 31, 2013, 06:14:01 PM
Argh! Use Node.js - it's built for server-side applications.

EDIT: I run a gambling bot for CoinChat (see link in sig) and it's coded in Node.js without any DB.


Title: Re: What type of coding is used in sites like Satoshi Dice?
Post by: BIGMERVE on June 01, 2013, 12:19:50 AM
It's common to use a database abstraction layer, which allows you to do database stuff without writing SQL. (Though I prefer to deal with the database directly.)

Thanks for the help. Looks like I have a lot of learning to do. Should be fun.


Title: Re: What type of coding is used in sites like Satoshi Dice?
Post by: Zaih on June 01, 2013, 12:34:06 AM
Daunting stuff eh  ;D

Good luck, wish I could help. Looking forward to seeing another gambling site.