scp94373
8 months ago  Karma: 157
Solidity or JavaScript?

Hey,

I'm currently in the process of writing a game however a question has popped up in my head.

A while back I started writing my game in Solidity (i.e the characters, names, stats etc.) and I had completely forgotten. I was just going to use JavaScript to manipulate how the site/game looks etc.

I recently found my old .sol files whilst I was just planning on how to write the game in javascript (i.e the same thing, characters, names, stats etc.) but then came up with the question on, is there really a difference between Solidity and Javascript on how the game will handle, so should I carry on writing as much as my game as possible in Solidity and for those bits I cannot do, write in Javascript. Or should I just use Solidity to handle the backend of the game (for example, the process of managing money, rewards, payment etc.)?

Any ideas?

Thanks,

Sam

en
game development
#question
scp94373
8 months ago  Karma: 157
Solidity or JavaScript?

Hey,

I'm currently in the process of writing a game however a question has popped up in my head.

A while back I started writing my game in Solidity (i.e the characters, names, stats etc.) and I had completely forgotten. I was just going to use JavaScript to manipulate how the site/game looks etc.

I recently found my old .sol files whilst I was just planning on how to write the game in javascript (i.e the same thing, characters, names, stats etc.) but then came up with the question on, is there really a difference between Solidity and Javascript on how the game will handle, so should I carry on writing as much as my game as possible in Solidity and for those bits I cannot do, write in Javascript. Or should I just use Solidity to handle the backend of the game (for example, the process of managing money, rewards, payment etc.)?

Any ideas?

Thanks,

Sam

en
game development
#question

3 ANSWERS
shaun_mcintyre
8 months ago Karma: 98

HUGE difference! Solidity really cannot perform any sort of graphical application because smart contracts are just too dang slow! You cannot program a web page in solidity or a client application in solidity. I prefer to think of Solidity as a back-end language... let it handle storing the data such as stats for individual characters (which could be tokenized if you like via ERC-721) and let javascript make everything look pretty!

HUGE difference! Solidity really cannot perform any sort of graphical application because smart contracts are just too dang slow! You cannot program a web page in solidity or a client application in solidity. I prefer to think of Solidity as a back-end language... let it handle storing the data such as stats for individual characters (which could be tokenized if you like via ERC-721) and let javascript make everything look pretty!

adamskrodzki
8 months ago Karma: 956

Think

Solidity -> Backend

Javascript -> Frontend

Business logic - It depends :)

Think

Solidity -> Backend

Javascript -> Frontend

Business logic - It depends :)

scp94373

Thank you, I've decided that I will be writing the characters etc in Solidity as they will need to be put on the blockchain as ERC tokens. But anything that I can do on JavaScript, I will.
Thanks!

Jan 17 '19 at 4:22 pm
ramanantt12355
5 months ago Karma: 0

Solidity is programming language similar to c++ and database type and used to write truffle and Dapps applications using solidity. It is easier to learn in 4 weeks , if you know OOP concepts

Solidity is programming language similar to c++ and database type and used to write truffle and Dapps applications using solidity. It is easier to learn in 4 weeks , if you know OOP concepts

Earn tokens by posting and answering questions about blockchain!
Karma to eth
YOUR ANSWER