Bitcoin Forum

Bitcoin => Project Development => Topic started by: viziano on December 12, 2016, 10:37:52 PM



Title: JavaScript/node.js..
Post by: viziano on December 12, 2016, 10:37:52 PM
For winter break I want to start learning JS and its frameworks.
The main reason is to make some BTC casino ideas I have a reality..

The question here,is JS ok for simple BTC casinos,like dice roll or whatever?
As,I know Bustabit.com is writen in JS's frameworks correct?


Title: Re: JavaScript/node.js..
Post by: MartinL on December 12, 2016, 11:07:46 PM
Correct, bustabit uses JavaScript both on the back end and on the front end. Many companies use JavaScript to build applications at much greater scale than most (all?) Bitcoin casinos are. What concerns do you have about it?


Title: Re: JavaScript/node.js..
Post by: BuySomeBitcoins on December 18, 2016, 06:09:41 PM
You can do everything with JS.

Buysomebitcoins.com is written at 100 % on NodeJS (Server / Client side)


Title: Re: JavaScript/node.js..
Post by: viziano on December 18, 2016, 06:31:28 PM
You can do everything with JS.

Buysomebitcoins.com is written at 100 % on NodeJS (Server / Client side)
Damn,that site actually looks pretty good.
It really motivates me to start learning JS asap  ;D


Title: Re: JavaScript/node.js..
Post by: SparkedDev on December 19, 2016, 03:14:52 AM
Check out freecodecamp.com they will teach you almost everything you need to know.
Also you can find free stuff on udemy and reddit.

Your also going to have to learn some game theory for the odds and timings.
I would recommend php tho with nginx handles those numbers really quickly.


Title: Re: JavaScript/node.js..
Post by: BuySomeBitcoins on December 19, 2016, 03:44:17 AM
Check out freecodecamp.com they will teach you almost everything you need to know.
Also you can find free stuff on udemy and reddit.

Your also going to have to learn some game theory for the odds and timings.
I would recommend php tho with nginx handles those numbers really quickly.

I do not think mathematics are an issue with NODEJS, with the opensource libraries from Facebook, Google and Microsoft, you can do almost everything with a few lines of codes thank's to theirs SDKs.

PHP is robust but it is a pain to debug and use with all the updates, dependencies and versions.


Title: Re: JavaScript/node.js..
Post by: mr.bitcoinerf11 on December 19, 2016, 03:49:56 AM
i would pay you 60$ btc if you make me one ;D


Title: Re: JavaScript/node.js..
Post by: SparkedDev on December 19, 2016, 04:16:35 AM
Check out freecodecamp.com they will teach you almost everything you need to know.
Also you can find free stuff on udemy and reddit.

Your also going to have to learn some game theory for the odds and timings.
I would recommend php tho with nginx handles those numbers really quickly.

I do not think mathematics are an issue with NODEJS, with the opensource libraries from Facebook, Google and Microsoft, you can do almost everything with a few lines of codes thank's to theirs SDKs.

PHP is robust but it is a pain to debug and use with all the updates, dependencies and versions.


Well it depends because any language can change hugely so all depends you just need to make sure it can scale with whatever you choose to make.


Title: Re: JavaScript/node.js..
Post by: ComboChris on December 19, 2016, 04:42:08 PM
Yep, most btc casinos are written in JS


Title: Re: JavaScript/node.js..
Post by: razoor on December 21, 2016, 01:45:36 PM
When you learn it, let me know. I may have a job for you.


Title: Re: JavaScript/node.js..
Post by: BuySomeBitcoins on December 21, 2016, 05:15:46 PM
When you learn it, let me know. I may have a job for you.

There are lots of people who master Js, why wait ?
OP will need to practice for months before workig on a standart project


Title: Re: JavaScript/node.js..
Post by: razoor on December 21, 2016, 05:44:05 PM
When you learn it, let me know. I may have a job for you.

There are lots of people who master Js, why wait ?
OP will need to practice for months before workig on a standart project

Do you know anyone?

Who is talking about waiting? Always better to know someone just in case.


Title: Re: JavaScript/node.js..
Post by: Patatas on December 21, 2016, 05:55:11 PM
Check out freecodecamp.com they will teach you almost everything you need to know.
Also you can find free stuff on udemy and reddit.
Not really!The learning material on freecodecamp is limited to newbies and web development rookies,not for advanced stuff.Their react/mongodb tutorials are still in WIP.I believe developing a casino is a not a first time project,one needs to know the in's and out's of the Stack they will be building their projects on.If you're a first time learner,freecodecamp is undoubtedly the best source.

our also going to have to learn some game theory for the odds and timings.
I would recommend php tho with nginx handles those numbers really quickly.
PHP is widely used but learning and implementing it with Python/Django would prune out so much unwanted lines of code.


Title: Re: JavaScript/node.js..
Post by: jooj on December 21, 2016, 08:26:19 PM
You can do everything with JS.

Buysomebitcoins.com is written at 100 % on NodeJS (Server / Client side)

So,we can development any application with JS. what example application we can build other than dice and casinos etc..

 but I wonder how can use database with JS? I know that we must use PHP to recorder users data and other data as well! 


Title: Re: JavaScript/node.js..
Post by: BuySomeBitcoins on December 21, 2016, 11:13:20 PM
You can do everything with JS.

Buysomebitcoins.com is written at 100 % on NodeJS (Server / Client side)

So,we can development any application with JS. what example application we can build other than dice and casinos etc..

 but I wonder how can use database with JS? I know that we must use PHP to recorder users data and other data as well! 


A Database has nothing to do with nodeJS.

I use MongoDB for buysomebitcoins.com - but all databases engines works with any language.

Databases are independents.


Title: Re: JavaScript/node.js..
Post by: nemgun on December 22, 2016, 03:10:02 PM
You can do everything with JS.

Buysomebitcoins.com is written at 100 % on NodeJS (Server / Client side)

So,we can development any application with JS. what example application we can build other than dice and casinos etc..

 but I wonder how can use database with JS? I know that we must use PHP to recorder users data and other data as well!  


A Database has nothing to do with nodeJS.

I use MongoDB for buysomebitcoins.com - but all databases engines works with any language.

Databases are independents.

Right, and if you need a database for a small project, use REDDIS DB, if you need advanced features like user auth, or large data management/storage, use MongoDB or MariaDB, Mysql is near deprecated i think because most of the devs advises to use maria or mongo.
Regarding what can be done with JS or NODE, well, you can do everything, just take the time to think about you want to realise your idea, do some deep fetching in NPM, and you will be able to realise everything you can imagine :D


Title: Re: JavaScript/node.js..
Post by: trigger1975 on December 22, 2016, 03:55:40 PM
Right, and if you need a database for a small project, use REDDIS DB, if you need advanced features like user auth, or large data management/storage, use MongoDB or MariaDB, Mysql is near deprecated i think because most of the devs advises to use maria or mongo.

if you need a db, check which one fits your need.  Mongo, Redis or Maria are great DB engines, but might not fit your needs.  Maybe your small project would work better a small SQLite3 DB.  Check your requirements before you stick to an engine as it's a pain in the ass to switch the DB engines later.


Title: Re: JavaScript/node.js..
Post by: nemgun on December 22, 2016, 04:01:27 PM
Right, and if you need a database for a small project, use REDDIS DB, if you need advanced features like user auth, or large data management/storage, use MongoDB or MariaDB, Mysql is near deprecated i think because most of the devs advises to use maria or mongo.

if you need a db, check which one fits your need.  Mongo, Redis or Maria are great DB engines, but might not fit your needs.  Maybe your small project would work better a small SQLite3 DB.  Check your requirements before you stick to an engine as it's a pain in the ass to switch the DB engines later.
That's true, but as of maria mongo mysql, there is no problem as the structure is generally the same, even for the commands. Now if you start with reddis, it is a true pain in the ass because it is a complete different system, reddis is more like nidejs, it is in json format, that's why i think it is best suited for you, but you can also use sqlite and jsonencode the commands.


Title: Re: JavaScript/node.js..
Post by: convertekk on December 22, 2016, 04:04:22 PM
i would pay you 60$ btc if you make me one ;D

A joke right ?


Title: Re: JavaScript/node.js..
Post by: nemgun on December 22, 2016, 04:08:13 PM
Check out freecodecamp.com they will teach you almost everything you need to know.
Also you can find free stuff on udemy and reddit.

Your also going to have to learn some game theory for the odds and timings.
I would recommend php tho with nginx handles those numbers really quickly.

I do not think mathematics are an issue with NODEJS, with the opensource libraries from Facebook, Google and Microsoft, you can do almost everything with a few lines of codes thank's to theirs SDKs.

PHP is robust but it is a pain to debug and use with all the updates, dependencies and versions.


PHP will soon be deprecated, nodejs is far better with a better environment and it doesn't require a lamp to work. Plus javascript is the best one if you want to make "live" website as php is static, the main problem for js is that it can be decoded and de-uglified, however, this may be solved by node's workflow.


Title: Re: JavaScript/node.js..
Post by: trigger1975 on December 22, 2016, 04:40:46 PM
PHP will soon be deprecated, […]

MySQL is nearly deprecated, PHP will soon be deprecated?  What's next?  C?

Do you have any type of source for this or is it more a "feeling"?

And arguments on programming language like "it's best!" are odd.  There is always a problem and at least one programming language fitting to solve your problem.  It always just depends on your requirements, your goal, your problem you are going to solve, etc.


// alex


Title: Re: JavaScript/node.js..
Post by: Patatas on December 22, 2016, 05:24:42 PM
PHP will soon be deprecated, nodejs is far better with a better environment and it doesn't require a lamp to work. Plus javascript is the best one if you want to make "live" website as php is static, the main problem for js is that it can be decoded and de-uglified, however, this may be solved by node's workflow.
That's correct.PHP is not updated frequently and slowly the backend stack is moving to internet's favourite JavaScript for Backend operations.But that doesn't make PHP useless or inefficient (PHP is till the most widely used back-end framework),it all depends on your application requirements.


Title: Re: JavaScript/node.js..
Post by: nemgun on December 23, 2016, 11:22:13 AM
PHP will soon be deprecated, […]

MySQL is nearly deprecated, PHP will soon be deprecated?  What's next?  C?

Do you have any type of source for this or is it more a "feeling"?

And arguments on programming language like "it's best!" are odd.  There is always a problem and at least one programming language fitting to solve your problem.  It always just depends on your requirements, your goal, your problem you are going to solve, etc.


// alex

C is aleready deprecated, c c++ c#, all of these are deprecated, you shall have a look at js, this language is skyrocketing, easier to use, quicker to code, user friendly, environment friendly, plus with the new V8 engine, it is as fast as C, and some times, it is faster.


Title: Re: JavaScript/node.js..
Post by: razoor on December 23, 2016, 11:25:47 AM
PHP will soon be deprecated, […]

MySQL is nearly deprecated, PHP will soon be deprecated?  What's next?  C?

Do you have any type of source for this or is it more a "feeling"?

And arguments on programming language like "it's best!" are odd.  There is always a problem and at least one programming language fitting to solve your problem.  It always just depends on your requirements, your goal, your problem you are going to solve, etc.


// alex

C is aleready deprecated, c c++ c#, all of these are deprecated, you shall have a look at js, this language is skyrocketing, easier to use, quicker to code, user friendly, environment friendly, plus with the new V8 engine, it is as fast as C, and some times, it is faster.

Are there any tests showing it's faster than C?

Do you know some programmers who are offering their services?


Title: Re: JavaScript/node.js..
Post by: nemgun on December 23, 2016, 11:45:33 AM
PHP will soon be deprecated, […]

MySQL is nearly deprecated, PHP will soon be deprecated?  What's next?  C?

Do you have any type of source for this or is it more a "feeling"?

And arguments on programming language like "it's best!" are odd.  There is always a problem and at least one programming language fitting to solve your problem.  It always just depends on your requirements, your goal, your problem you are going to solve, etc.


// alex

C is aleready deprecated, c c++ c#, all of these are deprecated, you shall have a look at js, this language is skyrocketing, easier to use, quicker to code, user friendly, environment friendly, plus with the new V8 engine, it is as fast as C, and some times, it is faster.

Are there any tests showing it's faster than C?

Do you know some programmers who are offering their services?
This test is about speed : https://www.linkedin.com/pulse/algorithmic-performance-comparison-c-javascript-java-malyshev
This test isn't about speed, but CPU usage : http://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=node&lang2=gpp
Here for PHP : http://www.hostingadvice.com/blog/comparing-node-js-vs-php-performance/
and here to stay tuned : http://v8project.blogspot.com/
Soon, node will override all the languages, even now, JAVA doesn't stand agains him, the last one is C, but as you can see in the second link, the CPU usage is lower then C, it explains why the difference is so high because when C uses 80+% of CPU JS uses only 1%.
The next step is to make JS use the CPU and other hardware, and they aleready started.


Title: Re: JavaScript/node.js..
Post by: trigger1975 on December 23, 2016, 01:54:46 PM
PHP will soon be deprecated, […]

MySQL is nearly deprecated, PHP will soon be deprecated?  What's next?  C?

Do you have any type of source for this or is it more a "feeling"?

And arguments on programming language like "it's best!" are odd.  There is always a problem and at least one programming language fitting to solve your problem.  It always just depends on your requirements, your goal, your problem you are going to solve, etc.


// alex

C is aleready deprecated, c c++ c#, all of these are deprecated, you shall have a look at js, this language is skyrocketing, easier to use, quicker to code, user friendly, environment friendly, plus with the new V8 engine, it is as fast as C, and some times, it is faster.

Did you already tell the core-devs that they are using a dead language?  lol.  Obviously you have no glue, what you're talking about.

//alex


Title: Re: JavaScript/node.js..
Post by: nemgun on December 23, 2016, 03:00:34 PM
PHP will soon be deprecated, […]

MySQL is nearly deprecated, PHP will soon be deprecated?  What's next?  C?

Do you have any type of source for this or is it more a "feeling"?

And arguments on programming language like "it's best!" are odd.  There is always a problem and at least one programming language fitting to solve your problem.  It always just depends on your requirements, your goal, your problem you are going to solve, etc.


// alex

C is aleready deprecated, c c++ c#, all of these are deprecated, you shall have a look at js, this language is skyrocketing, easier to use, quicker to code, user friendly, environment friendly, plus with the new V8 engine, it is as fast as C, and some times, it is faster.

Did you already tell the core-devs that they are using a dead language?  lol.  Obviously you have no glue, what you're talking about.

//alex

Oh no, C is not dead, he is just dying, D is comming, JAVA is high, JS is skyrocketing, needless to talk about the other languages. They will for sure swap to the other languages as a lot of altcoins are doing it, they are developing new cores based on different technologies, NXT JAVA, LISK JS, WAVES both JAVA and JS, there is even a project who made a full node in the browser !!


Title: Re: JavaScript/node.js..
Post by: trigger1975 on December 23, 2016, 03:41:56 PM
Oh no, C is not dead, he is just dying, D is comming, JAVA is high, JS is skyrocketing, needless to talk about the other languages. They will for sure swap to the other languages […]

OS kernel development in NodeJS … Linus is for surely eager to do that … lol

//alex


Title: Re: JavaScript/node.js..
Post by: nemgun on December 23, 2016, 04:49:10 PM
Oh no, C is not dead, he is just dying, D is comming, JAVA is high, JS is skyrocketing, needless to talk about the other languages. They will for sure swap to the other languages […]

OS kernel development in NodeJS … Linus is for surely eager to do that … lol

//alex

you can't even imagine how :D
i think that people finally understood that the next gen computers won't need predefined classes to work, and this is the major difference between JS and JAVA C, think of it this way :
C and JAVA:
you need two separate files to define a class, plus then you need functions, you need to explicitly declare them ....
JS:
simply create functions and use them ...

how could it be easier ? computers are getting more intelligent, so the language is going to be easier to handle and code.


Title: Re: JavaScript/node.js..
Post by: viziano on December 26, 2016, 11:20:53 AM
Thanks for replying guys!
I guess I'm gonna start with JS and its frameworks.
Planing to start intense learning on my school break,which is 3 weeks..

Thanks again for helping  ;)