- Joined
- Jul 6, 2010
- Messages
- 46
- Reaction score
- 1
Hi, What programming language need to I learn for creating 2D web based games?
Last edited:
Well most people could answer that question adequately.
For me, I'd pick the following mumbo-jumbo: Jade (html), Stylus (css), Coffeescript (javascript) for client side and node.js + mongodb for server and NOT develop on windows. Basically you do need all those components but I don't know if they're necessarily the most newbie friendly. So probably html+css+javascript+php+sql is just fine although I have an aversion towards doing anything at all with PHP. But it's probably easiest to get started with from level 0 and as you won't need a thick backend it's fine.
edit:
Still pondering... is node.js totally mainstream among newbies already?
To me the best thing is the speed at which I can get a simple backend up and running from scratch. With npm (node package manager) downloading and managing 3rd party libraries which are plentiful is easy so typically when you need anything you'll just google for a library.I'm it's kinda offtopic as we are argumenting over possible technologies which in this case are close to unlimited, yet I'm sorry Negata I really god damn sceptial of node.js - it's like forcing JavaScript to be a back-end language, I know i should be open to new technologies so I do enjoy stuff like Bootstrap, less.css or other, but JavaScript on back-end is something that does not speak to me, could you like thow few arguments from your experience that could at least convince me to give it a try, like biggest advantages of it in a pill, something that other languages are incapable of or that can be done blastly fast in node.js which would take me ages in PHP.
Thanks in advance.
To me the best thing is the speed at which I can get a simple backend up and running from scratch. With npm (node package manager) downloading and managing 3rd party libraries which are plentiful is easy so typically when you need anything you'll just google for a library.
I'm fairly strong at using Coffeescript on the client side so when I switch to server code I don't need to make a context switch at all because the server is in the same language. It's easier on the brain. Sometimes you may require configuration variables both on client and server side, well when they're written in the same language you don't have to repeat your code but instead include the same configuration file on both sides.
Usually not a concern to me as I mostly deal with prototyping and software with small user bases, but in some cases you may appreciate node's quick response times to requests and ability to handle a great number of them at once. While neglible for full page loads, it's ace for ajax calls and websocket connections.
It feels good and I like writing in Coffeescript. I might not like it as much if I wrote plain JS though.
Using just jQuery means still writing JS. If I had to type JS without Coffeescript now I'd kill myself. Too much noise in JS...Plain JS is not an option, abandoned it years ago in favor of jQuery. Having same language on both side ( front to back ) sounds tempting and scarry at same time.
Not entirely true. In the context of thick client applications which I mostly deal with anyway majority of requests are passing JSON data back and forth as models get updated. That's something you can't cache.Response time & heavy load can be dealt easily just by adding memcache and nginx as a reverse-proxy, in extreme cases load balancer is perfect solution.
Using just jQuery means still writing JS. If I had to type JS without Coffeescript now I'd kill myself. Too much noise in JS...
Not entirely true. In the context of thick client applications which I mostly deal with anyway majority of requests are passing JSON data back and forth as models get updated. That's something you can't cache.
Using just jQuery means still writing JS. If I had to type JS without Coffeescript now I'd kill myself. Too much noise in JS...
Not entirely true. In the context of thick client applications which I mostly deal with anyway majority of requests are passing JSON data back and forth as models get updated. That's something you can't cache.