Welcome, Guest. Please login or register.

Author Topic: Looking for advice on which web language to use  (Read 9633 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Looking for advice on which web language to use
« Reply #14 on: February 23, 2008, 03:06:26 PM »
Quote
Speelgoedmannetje wrote:
I guess you know how to program object oriented?

Yes. When I wrote my GP2X GridWars clone that was all object oriented (C++).

Quote
Speelgoedmannetje wrote:
And you have learned about software design patterns?

I know what they are, but I have never used one. I don't like the idea of trying to make my game fit in to a template.

Quote
Speelgoedmannetje wrote:
When you can you know it won't be much of a problem :-)

Depends on whether I can understand the pattern :lol:

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Speelgoedmannetje

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 9656
    • Show only replies by Speelgoedmannetje
Re: Looking for advice on which web language to use
« Reply #15 on: February 23, 2008, 03:50:16 PM »
Quote

motorollin wrote:
Quote
Speelgoedmannetje wrote:
And you have learned about software design patterns?

I know what they are, but I have never used one. I don't like the idea of trying to make my game fit in to a template.
It's not template based, it's making use of ways to program. Ways which already have been thought out by experienced programmers.
Like the pattern Model-View-Controller
And the canary said: \'chirp\'
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Looking for advice on which web language to use
« Reply #16 on: February 23, 2008, 04:31:13 PM »
OIC. I would be interested to see how an online game communicates with the back-end and keeps synchronised. Any ideas when I can get information on design patterns for things like this?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Looking for advice on which web language to use
« Reply #17 on: February 23, 2008, 04:35:53 PM »
Hmm, I wonder if this would be any better than JavaScript:

http://en.wikipedia.org/wiki/AJAX

"A primary characteristic is the increased responsiveness and interactivity of web pages achieved by exchanging small amounts of data with the server "behind the scenes" so that entire web pages do not have to be reloaded each time there is a need to fetch data from the server."

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Speelgoedmannetje

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 9656
    • Show only replies by Speelgoedmannetje
Re: Looking for advice on which web language to use
« Reply #18 on: February 23, 2008, 05:12:19 PM »
Quote

motorollin wrote:
OIC. I would be interested to see how an online game communicates with the back-end and keeps synchronised. Any ideas when I can get information on design patterns for things like this?

--
moto
I'd use (and have used) a threaded method in combination with observer/observable implementation.
And the canary said: \'chirp\'
 

Offline Speelgoedmannetje

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 9656
    • Show only replies by Speelgoedmannetje
Re: Looking for advice on which web language to use
« Reply #19 on: February 23, 2008, 05:12:59 PM »
Quote

motorollin wrote:
Hmm, I wonder if this would be any better than JavaScript:

http://en.wikipedia.org/wiki/AJAX

"A primary characteristic is the increased responsiveness and interactivity of web pages achieved by exchanging small amounts of data with the server "behind the scenes" so that entire web pages do not have to be reloaded each time there is a need to fetch data from the server."

--
moto
But then I think Java is more common than Ajax.
Not sure though...Hm, well, it seems to be so.
And the canary said: \'chirp\'
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Looking for advice on which web language to use
« Reply #20 on: February 23, 2008, 05:27:15 PM »
Quote
Speelgoedmannetje wrote:
I'd use (and have used) a threaded method in combination with observer/observable implementation.

It's really the establishment of a connection between the client and the server and exchanging information between them which I am unsure about.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Looking for advice on which web language to use
« Reply #21 on: February 23, 2008, 05:45:24 PM »
Quote

motorollin wrote:
Hmm, I wonder if this would be any better than JavaScript:

http://en.wikipedia.org/wiki/AJAX

"A primary characteristic is the increased responsiveness and interactivity of web pages achieved by exchanging small amounts of data with the server "behind the scenes" so that entire web pages do not have to be reloaded each time there is a need to fetch data from the server."

--
moto


Yes AJAX would be perfect for this application... and the Logic language behind AJAX is JavaScript... That's where the J in AJAX comes from... Trust me, despite my ineptitude with German girls, I'm rarely wrong :-)


Anyway, don't you have some music homework to be doing? ;-)

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Looking for advice on which web language to use
« Reply #22 on: February 23, 2008, 05:48:10 PM »
Quote
bloodline wrote:
Anyway, don't you have some music homework to be doing? ;-)

Yes sir.... ;-)
Though if I'm honest, I'm a bit demotivated in that area at the moment :-(

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Looking for advice on which web language to use
« Reply #23 on: February 23, 2008, 06:09:08 PM »
Quote

motorollin wrote:
Quote
bloodline wrote:
Anyway, don't you have some music homework to be doing? ;-)

Yes sir.... ;-)


Hahahahahha

Quote

Though if I'm honest, I'm a bit demotivated in that area at the moment :-(


I quite understand, I remember a great phrase... Professional means doing what you usually enjoy even when you don't want to...

Though by that token... I'm pretty musch a professional at every thing I do :-D

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Looking for advice on which web language to use
« Reply #24 on: February 23, 2008, 06:33:35 PM »
That's a good quote - so true! The problem is that your advice and suggestions have given me a lot to live up to! And unfortunately when I know something is going to be difficult or beyond my (current) abilities, I tend to lose motivation and give up prematurely. I've always been an underachiever... :roll:

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Looking for advice on which web language to use
« Reply #25 on: February 23, 2008, 08:31:12 PM »
Quote

motorollin wrote:
That's a good quote - so true! The problem is that your advice and suggestions have given me a lot to live up to! And unfortunately when I know something is going to be difficult or beyond my (current) abilities, I tend to lose motivation and give up prematurely. I've always been an underachiever... :roll:


I can assure you, there is nothing that I have suggested which is beyond your abilities... you just need to devote some time to it. Set aside an hour tomorrow with your keyboard and sequencer and have a bit of a play... even if your first efforts sound a bit forced, that's good because you know you are doing it right, then you just need to develop that! :-)

Offline Speelgoedmannetje

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 9656
    • Show only replies by Speelgoedmannetje
Re: Looking for advice on which web language to use
« Reply #26 on: February 23, 2008, 10:40:23 PM »
Actually, Bloodline, what are you so much against Java?
And the canary said: \'chirp\'
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Looking for advice on which web language to use
« Reply #27 on: February 23, 2008, 11:53:23 PM »
Quote

Speelgoedmannetje wrote:
Actually, Bloodline, what are you so much against Java?


Very good question! The answer is manifold... And as such would take ages to explain... but I can summarise... I think it's inefficient, the problems that the original specification tried to solve don't exist any more and as such the focus is wrong. It tried to be between a VM and an Operating system... which makes it not very good at either... The Java VMs use a lot of CPU time... The JITs generate very slow code... When running Java on mobile devices, the battery life is severely reduced. Java is an ecosystem in it's own right... it keeps itself from the host system. Java Byte Code is not well suited to modern computer system, I think in the the last decade or so a better ByteCode could be developed... Hell 68K code running on Bernie's UAE JIT is more efficient!

For the purpose of Internet, JavaScript is much better... Though the DOM is a bit of a mess... fortunately, HTML 5 should fix all the problems :-)

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Looking for advice on which web language to use
« Reply #28 on: February 24, 2008, 08:17:03 AM »
Quote
bloodline wrote:
I can assure you, there is nothing that I have suggested which is beyond your abilities...

Hmm, ok if you say so :-)

Quote
bloodline wrote:
you just need to devote some time to it. Set aside an hour tomorrow with your keyboard and sequencer and have a bit of a play... even if your first efforts sound a bit forced, that's good because you know you are doing it right, then you just need to develop that! :-)

I actually have something in mind for a synth bass part, including the instrument. But you said it's best not to focus on sounds yet. Am I allowed to make an exception in this case? :-) And if I do my music homework, can I play with AJAX please? ;-)

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline uncharted

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1520
    • Show only replies by uncharted
Re: Looking for advice on which web language to use
« Reply #29 from previous page: February 24, 2008, 09:34:02 AM »
Quote

bloodline wrote:
Quote

Speelgoedmannetje wrote:

For the purpose of Internet, JavaScript is much better... Though the DOM is a bit of a mess... fortunately, HTML 5 should fix all the problems :-)


I've seen first hand that the above simply isn't true in many cases.  HTML 5's jam tomorrow is not really a convincing argument, especially when the track record of the major player's adoption of internet standards is so dire.