using Scala to implement a life chat application [closed] - scala

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am very new to scala and am trying to learn what are the benefits of scala over other languages . for my practice I like to implement a small live chat.
I picked scala because of its Acor Model to handle concurrency part of the live chat app.
But I like to learn that is there any disadvantage of using scala for developing a live chat ?
what is a better alternative ?
thanks

A chat service is almost the “hello, world” example of what is great about the actor model of concurrent processing! While Scala ships with scala.actor, they are somewhat deprecated and you should be looking at Akka.
The blog post “Getting started with Scala, Akka and Sbt: the chat example” gives a pretty good worked example of a simple chat server and how to build and test it.
The followup comment you've had notes Play. Play is a web framework which is actually implemented in terms of Akka. Play is perhaps the next place you should look if you want to take your command-line chat server onto the web.

Lift also uses a chat application as it's hello world. If you'd like to go from Akka's command-line example to a web application example, check it out. You can follow this tutorial to build it yourself.

Related

What's the Best Way to Develop a Simple and Affordable App to Break Into the Industry? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 days ago.
Improve this question
I'm a former professional software developer. I've been out of programming (doing ecommerce and marketing) for nearly 20 years, and I'd like to try getting back into software development.
I'm looking for advice on how to create a very basic and simple but useful application that I can own and promote. I'm hoping that this app will serve as a proof of concept for building more advanced apps. I'd like to be able to publish the app on my website and also make it available for iPhone and Android users through the respective app stores.
Does anyone have advice on how to do this?
Specifically, I'm trying to answer these questions:
What is the best, easiest language and framework to use for building a simple web or mobile application?
Any suggestions on what kind of utility the app should provide: e.g. calculator, weather update, unit converter, crypto, etc.?
Thanks in advance.
In 2000, I was the lead developer (pretty much the only developer for the first six months) for a company called Communitect. We were one of the first companies to create apps that used text messaging for bank transactions. We wrote most of the code in Java with a MySQL database, and our code ran on Apache Tomcat.
The company struggled because we were a bit ahead of the curve and ended up chasing a lot of squirrels.
I'm not looking to do something so innovative this time. I'd like to just make my own version of a digital mousetrap and see how the process works for building up its popularity.

Best practices for building a chat app? (REST vs Websockets) [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed last year.
Improve this question
As the title suggests, I'm building a simple chat app in Node/Express + React, and I'm using socket.io to get real time updates.
However, other than the chatting itself, rest of my app is very basic (registering, signing in, creating rooms etc), and while it's definitely doable to make all those requests just socket emits, it feels like bit of an overkill.
So I was thinking of creating a regular REST API for that stuff and outsourcing it into a separate file, then creating another file just for the chatting function itself, where I'd use socket.io, but I'm afraid that it may seem a bit unprofessional, or leave an impression that I don't know how to use sockets well enough.
Key point: When finished, this app will be posted to my portfolio, so I'm not very concerned about what just "can work", but rather what's the best and cleanest way to do it? Should I switch everything to sockets and use them even for basic fetching of lists and stuff? Or is it better practice to mix the two, and use REST for, well, the rest?
In my experience, To mix the two is the best way to do that.
I did that in many projects and it worked well.
I surely think that modularity is the best way to make code clean and qualified.
So, to use both of regular REST API and websocket is more professional.
Thank you.

How to build my own mesos framework? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am sorry about this question but I am new to mesos and I am curious to know, how should I go about building my own mesos framework. Any step by step guide or good resources would be much helpful.
You should start with docs. There is whole Developing Mesos Frameworks section about developing own framework.
New approach in developing frameworks is to use HTTP API which provides more features (like reverse offers) so definietely read about scheduler and executor HTTP API.
Of course taking a look on other frameworks will be good point to start. Depending on your need this could be Aurora, Fenzo, Marathon. Whole list is here
There is a framework to build Mesos frameworks called Mesos-starter.
If you want to use native API there are official bindings for C++, Python and Java but there are unofficial bindings for other languages like Go, JS or Clojure.

what the technology to create a real time application? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
i wanna to know what the technology must i do when i want to create an application like:
real time application ?
multiplayer in game ?
sometimes i'm read this article keep alive.
what is that support in socket TCP ?, i'm already read server push but is many example work under HTTP, how about in TCP like create a socket TCPServer and TCPClient.
There isn't just one "go-to" technology for making real-time / multiplayer gaming applications. You have to understand a multitude of different programming realms like graphics manipulation, threading, networking(TCP,etc). I would say it would be good for you to pick up a book on game development and design at your local library, bookstore or on the web. You also want to decide where and how you want to run the game. If you are going for a desktop application you are probably going to want to use a language like Java or C++/C#. For web applications Java and Flash are historically the way to go, and there is even a growing case for games written primarily in javascript (presumably with a .NET/PHP back-end).
If you want to jump right in you might try a framework like Unity which I believe is based on Microsoft's .NET framework. This tool has a lot of things built into it which would help you get started.
I know that is not a lot of specific information but hopefully it points you in the right direction.

Scala, Lift Setup [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to get into Scala and the lift framework, but since there is alot of confusion for me as a PHP programmer. So I got some questions to help me get started.
I want to setup a webserver that runs the lift framework with a Mongo DB backend where do I begin?
What is Apache Tomcat?
What is Jitty?
Is Comet an technology (protocol, design pattern?) or is it an project like Lift?
How can I setup Lift in Mac Os x as development enviroment, I understand I need Eclipse so I have downloaded it but what then? I don't understand how to install Scala.
The Lift wiki has a lot of information to get you started, and I would encourage you to join the mailing list. Where you will find many answers to questions already asked and you can of course ask more :)
Best luck using lift!
Try these series of tutorials http://blog.pboos.ch/2011/03/lift-tutorial-1-dev-environment-setup/