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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Realtime Chatroom Built with Laravel and VueJS

53 点作者 azazqadir将近 8 年前

2 条评论

cwyers将近 8 年前
From the article that this code is from:<p>&gt; In today’s article, I am going to create a chatroom using Laravel 5.4, Pusher and VueJs. Since these tools are popular and almost every developer has heard of them, I will skip the theoretical introductions and discussions and go straight to the fun part.<p>I, uh, I don&#x27;t think almost every developer has heard of them. Even making the names links would help.
评论 #14545468 未加载
Jaruzel将近 8 年前
I must be so old.<p>I spend all day sitting on an IRC style &#x27;chatroom&#x27; with a bunch of friends, that was written about decade ago.<p>It uses a combination of javascript (&#x27;ajax&#x27;) on the client side, and crappy ASP on the backend (because the only server at the time that was available was a Windows server).<p>The comms is very simple asynchronous polling and formatting&#x2F;parsing javascript. In fact the only updates over time have really been all client side to take advantage of new browser features. It works through firewalls and proxies (which websockets <i>still</i> do not) - basically anywhere you can see a modern webpage.<p>My rambling point is... you don&#x27;t need all these frameworks to push a message to a server, and fetch back a list of new ones. In fact for low volume handful-of-users chat traffic <i>you don&#x27;t even need a database</i> (gasp!).<p>I know we should all avoid re-inventing the wheel where possible, but are you (not &#x27;you&#x27; the OP, but &#x27;you&#x27; the fictional reader) really a web developer, if all you are doing is gluing ever changing frameworks together ??
评论 #14545420 未加载
评论 #14547059 未加载
评论 #14545584 未加载
评论 #14545797 未加载
评论 #14545458 未加载
评论 #14548915 未加载
评论 #14545523 未加载