TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

30 minutes to make a collaborative paint with Play2, Canvas and WebSocket

45 点作者 gren大约 13 年前

2 条评论

rkalla大约 13 年前
Gaetan, excellent demo. You covered 3 technologies that work wonderfully together: Play! 2.0, WebSockets and Canvas. Fortunately the usage of each was all straight forward but you married them together into a creative demo app that didn't require black-magic in any of the implementations.<p>I've never worked with Canvas before but was surprised/pleased to see how it feels a lot like working with Java2D when rendering a 2D context (strokes, lines, joins, etc.) -- I felt the same about WebSockets, definitely had a "It is that easy to use them? Nice!"<p>Scala on the otherhand... I'll happily concede that I am possibly a lost-cause when it comes to Scala (14 years of Java will do that do you, and C/C++ before that). When you went to that Hub impl on the server side, a small tear rolled down my cheek caused by brain-pain trying to feel my way through that Scala code (nothing wrong with your code, I just don't like the way Scala looks/feels).<p>Thanks again for putting this all together and sharing.
评论 #3693835 未加载
评论 #3694030 未加载
dkhenry大约 13 年前
Aside from not being able to see the video due to a missing-plugin. The demo is really neat.
评论 #3693285 未加载
评论 #3693597 未加载