[英]Best web app developing language to write a client/server app for Bingo game scenario
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. 让我们从断言开始,我在Web开发方面经验不足,我更专注于桌面编程,但这可能是一个优势,因为我对任何解决方案都没有偏见。
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). 我们需要创建一个基于Web的应用程序,该应用程序应该与每个移动操作系统和设备 (或至少与其中的大多数) 兼容 。 This app should mainly give to the user the possibility to check 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). 这款宾果游戏是真实的,在宾果游戏厅播放,而不是在网络上播放,但是大厅的顾客可以通过他们的设备(平板电脑,智能手机)连接到专用的无线网络,以便进入他们购买的广告牌在一个窗口中,在宾果游戏比赛中看到,他们检查了多少个广告牌,如果他们做了cinquina(一条线,五条连续)或一个宾果游戏(完整的广告牌,15个数字)。
In order to give a little modeling layout, I imagined that the best solution should be this. 为了给出一点建模布局,我想到最好的解决方案应该是这个。
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. 最重要的要求是,在每种情况下,每个动作都应该实时发生,或者至少以最小延迟发生,不超过1.5-2秒。
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 ). 我知道有很多编程语言,即使我知道这种特殊情况的主要语言是ASP.NET,PHP,Java(也许是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". 我在这个列表中包含了HTML5,因为它非常适合跨平台开发和移动世界,即使它使用(如果我理解正确)JavaScript来执行“脏工作”。
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. 您应该随意提出一切建议,甚至是我与您交谈过的小模型的变化,但最重要的问题始终是与编程语言相关的问题。
Your main question is whether to develop a native app (for Android, iOS, etc) or a web site that is optimised for mobile usage. 您的主要问题是是否开发本机应用程序(适用于Android,iOS等)或针对移动设备进行了优化的网站。 I think the latter is fine, in which case yes, you are looking at an HTML5 solution. 我认为后者很好,在这种情况下是的,你正在寻找一个HTML5解决方案。 Any language or framework can do this - the language is used on the server to produce HTML, and there is no "best" one. 任何语言或框架都可以这样做 - 在服务器上使用该语言来生成HTML,并且没有“最佳”语言。 They all have strengths and weaknesses. 他们都有优点和缺点。 .NET, PHP, Java, Ruby, Python, and several others! .NET,PHP,Java,Ruby,Python和其他几个! Take your pick. 随便挑选。
To improve speed you could encourage customers to connect to public wifi at the bingo hall, and to reduce latency you could even have your web server on-site. 为了提高速度,您可以鼓励客户在宾果大厅连接到公共wifi,并减少您甚至可以在现场使用Web服务器的延迟。 A simple update strategy would involve JavaScript and AJAX, but look into Web Sockets, they are much more lightweight, and are useful for continuous update situations. 一个简单的更新策略将涉及JavaScript和AJAX,但是看看Web套接字,它们更轻量级,并且对于连续更新情况很有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.