最好的Web应用程序开发语言,为宾果游戏场景编写客户端/服务器应用程序 [英] Best web app developing language to write a client/server app for Bingo game scenario

查看:68
本文介绍了最好的Web应用程序开发语言,为宾果游戏场景编写客户端/服务器应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好,

我有以下方案要开发。



让我们从断言开始我在Web开发方面经验不足,我更专注于桌面编程,但这可能是一个优势,因为我对任何解决方案都没有偏见。



建模的场景就是这样。我们需要创建一个基于Web的应用程序,其中 应该与每个移动操作系统和设备兼容 (或者至少与其中的大部分兼容)。

这个应用程序应该主要给用户 在宾果游戏比赛期间购买广告牌的可能性



这款宾果游戏是真实的,在宾果游戏厅播放,而不是在网上播放,但是大厅的顾客将能够通过他们的设备(平板电脑,智能手机)连接到专用的无线网络,以便进入他们在一个窗口买的广告牌,并在宾果游戏比赛中看到他们检查了多少个广告牌,他们是否做了cinquina(一条线,五条连续)或一个宾果游戏(完整的广告牌,15个数字) )。



为了给出一点建模布局,我想最好的解决方案就是这个。

- 服务器角色:服务器向客户端发送有关匹配的一些信息,例如范围可以播放的广告牌,实时提取的数字等等;它从每个客户那里获得他们购买的广告牌范围;它播放广告牌,我的意思是在球提取过程中,它标记了客户为该匹配收到的广告牌上的相应数字,并将此信息发送给相应的客户;最后,如果他们得到cinquina或宾果游戏,它会向相应的客户发出信号。

- 客户角色:客户端是基于Web的应用程序,它从服务器接收有关的信息宾果游戏匹配,它向服务器发送客户购买的广告牌,它向客户显示提取球,广告牌中标记的数字以及客户赢得cinquina或宾果游戏的事件。



我想把广告牌的重量只给服务器检查而不是分发给客户端,因为在这个阶段我真的不知道作为客户端工作的设备的多样性如何在这种情况下给出延迟广告牌检查应该从服务器移动到客户端。最重要的要求是,在每种情况下,每个动作都应该实时发生,或至少以最小延迟发生,不超过1.5-2秒。



现在我的问题很简单,很难回答:哪种编程语言最适合这种情况?

我知道有很多编程语言,即使我知道主要语言为这种特殊情况将是 ASP.NET,php,Java(也许是HTML5)



我包括这个列表中的HTML5因为它非常适合跨平台开发和移动世界,即使它使用(如果我理解正确)javascript来执行脏工作。



我将这个问题留给您考虑。你应该随意提出一切建议,甚至是我与你谈过的小模特的变化,但最重要的问题始终是与编程语言相关的问题。

感谢您的大力支持。 />
Nino

Good morning,
I have the following scenario to develop.

Let's start from the assert I have low experience in web development, I am more focused towards desktop programming, but this could be an advantage, because I have no prejudices towards any solution.

The scenario to model is this. We need to create a web-based application which should be compatible with every mobile os and device (or at least with the most of them).
This app should mainly give to the user the possibility to ckeck the billboards he bought during a match of bingo game.

This bingo game is real, played in a bingo hall, not on the web, but the customers of the hall will be able, through their devices (tablet, smartphones) to connect to a dedicated wireless network in order to enter the billboards they bought in a window and to see during the bingo game match, how many numbers of their billboards had been checked and if they did cinquina (a line, five in a row) or a bingo (the full billboard, 15 numbers).

In order to give a little modeling layout, I imagined that the best solution should be this.
- server role: the server sends to the clients some information about the matches, for example, the range of billboards that could be played, the extracted numbers in realtime, and so on; it gets from each client the range of billboards they bought; it "plays" the billboards, I mean during the balls extraction, it marks the corresponding numbers on the billboards received by clients for that match and it sends this information to the corresponding clients; finally, it signals to the corresponding clients if they scored cinquina or bingo.
- client role: the client is the web-based application which receives from the server the information about the bingo matches, it sends to server the billboards the customer bought, it shows to the customer the extracting balls, the marked numbers in the billboards and the event if the customer won cinquina or bingo.

I thought to give the weight of billboards checking only to server rather than distributing to the clients because in this phase I don't really know how the diversity of devices that work as clients could give delays in the case that the billboards checking should be moved from server to client. The most important requirement is that, in every case, every action should happen in real-time, or at least with minimum delay, not more than 1.5-2 seconds.

Now my question is as simple, as difficult to answer: Which is the best programming language to model this scenario?
I know that there are many programming languages, even if I know that the main languages for this particular situation would be ASP.NET, php, Java (and maybe HTML5).

I include HTML5 in this list because it is very well oriented to cross-platform development and to mobile world, even if it uses (if I understood correctly) javascript in order to do the "dirty job".

I leave this question opened to all your considerations. You should feel free to suggest everything, even changes in my little modeling I talked to you, but the most important question is always the one related to the programming language.
Thanks for your great support.
Nino

推荐答案

嗨Nino,



简而言之,没有正确回答问题哪种模型最好的编程语言。有些人可能会说Node.js,Ruby,Python ......或任何其他语言,但我的建议是坚持使用你最熟悉的编程语言 - .NET或Java(就像你写的那样熟悉使用桌面应用程序)。



使用 HTML5用于客户端Web应用程序以及用于构建动态Web应用程序的众多 JavaScript框架之一的。我不知道Bingo游戏是如何工作的,但是对于基本风格的桌子你应该没问题。也许使用一些Canvas或SVG来获得高级图形,但这一切都取决于你的需求。



因为你的网络应用需要实时通信,我建议你使用 WebSockets 。有关移动浏览器的支持,请参阅 caniuse.com 。还有许多JS包装器,如果客户端浏览器不支持WebSockets,它将尝试使用其他技术作为后备。

使用现有库并且不要尝试重新发明!



还要注意真实环境 - 你的办公室在一个Wifi接入点上有少量客户端是不一样的一个人就50个人!#!y Wifi。



我不是故意冒犯你,但从你的问题来看,这对你来说是非常具有挑战性的成功完成这个项目。



希望这会有所帮助,祝你好运。
Hi Nino,

Just in short, there is no right answer to question „Which is the best programming language to model this scenario". Some may say Node.js, Ruby, Python ... or any other language, but my recommendation is to stick with the programming language you know best – .NET or Java (as you wrote you are familiar with the desktop apps).

Use HTML5 for client web app plus one of the many JavaScript frameworks for building dynamic web apps. I dn’t know how the Bingo game works, but you should be OK with basic styled tables. Maybe use some Canvas or SVG for advanced graphics, but it all depends on your needs.

Because your web app will need to communicate in real time, I would suggest you to use WebSockets. See the caniuse.com for support in mobile browsers. There is also many JS wrappers, that will try to use other technologies as a fallback if WebSockets are not supported by client browser.
Use existing libraries and don’t try to reinvent the weel!

Also be aware of real environment – your office with small amount of clients on one Wifi access point is not the same as 50 people on one sh@#!y Wifi.

I do not mean to offend you, but from your question it looks that it will be very challenging for you to successfully complete this project.

Hope this helps and good luck.


这篇关于最好的Web应用程序开发语言,为宾果游戏场景编写客户端/服务器应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆