Tag Info

New answers tagged

3

The short answer is that Java web developers, as a whole, seem to be happy with the tools/frameworks they currently have, and do not prefer the Rails way of working enough to make such an effort worthwhile. Feel free to start a project if you think it would help. The Java platform has many frameworks for doing web development, some provided by Sun/Oracle, ...


0

Because java it self providing some technologies for servers like JSP, Servlet. but in ruby no such technology exist. It does have Networking capability it up to us how we use it. That what Ruby on rails developers did. Java developers does not require any framework but ruby developers do for FAST Development's And Oracle itself providing support for JSP and ...


1

Your first way is probably the best for a one-time deal. If you need to do this a lot, I would add an implicit map method to Either that gives you the API you want: object EitherUtils { implicit class ImprovedEither[A, B](e: Either[A, B]) { def map[X, Y](fa: A => X, fb: B => Y): Either[X, Y] = { e.fold(a => Left(fa(a)), b => ...


0

Personally, a rewrite sounds more efficient to me, but if you need to do it in stepwise pieces I would suggest you take the following approach: Move your existing database code to use Slick (you'll probably need wrappers around it to shield your existing code from too many changes). Next, integrate Play into your runtime and use Silhouette for ...


1

I think the safest way to do this is for the long-running process to listen to a socket. Once the short process is done, it connects to that socket, sends over any relevant information, and disconnects. Socket communication to localhost should never fail, so this should not introduce any meaningful risk. Sockets are better than using files to synchronize ...


1

Blame the designers of B! The choice to use a pair of parentheses to delimit conditions is not specific to Scala, but is common to all languages based on C-syntax, including Java, C++, C# and even JavaScript. Those languages are based on C-syntax simply because it is familiar to many developers. And C inherited this syntax from its predecessor B (which like ...


6

Scala is designed not only to be interoperable with its host platform technically, but also socially, i.e. it is designed to be familiar to existing programmers of the host platform. And on almost all the host platforms that the Scala community could potentially be interested in (JVM, CLI, ECMAScript, Objective-C/Core Foundation/Cocoa, Unix, Windows), the ...


5

The parentheses don't only delimit where the condition starts; they also indicate where it ends. You're right that technically, only the right parenthesis is necessary to resolve ambiguity. But language designers are aesthetically motivated, and having only one of a matched pair of characters would look just awful. There are languages which delimit the end ...


1

I don't buy the argument that the JVM is not as good to manipulate JSON than Node. The JVM is filled with a lot of really fast JSON parsers, Jackson being one of them. As a bonus it handles streaming json as well. Look at the project before making an opinion. Your problem is fairly common, you want to connect to a firehose of social data, via an actor, pass ...



Top 50 recent answers are included