There's few things as fun as a multiplayer notepad that wasn't intended to be an actual chat, before it's invaded by bots and spammers. Congrats on the fella that tried to paste an ascii art version of Pepe the Frog.
Deno Deploy Demo: a multi-datacenter chat, client+server in 23 lines of TS
21–30 of 49 posts
Re: Deno Deploy Demo: a multi-datacenter chat, client+server in 23 lines of TS
#22Nice, I like how short and simple it is. The title seems to imply it runs on multiple datacenters. How does it sync messages between those?
Re: Deno Deploy Demo: a multi-datacenter chat, client+server in 23 lines of TS
#23Deno is such a nice little scripting tool. I've been using it for devops glue and scripts lately. Native typescript, easy-as-pie dependency management. its great!
Re: Deno Deploy Demo: a multi-datacenter chat, client+server in 23 lines of TS
#24Re: Deno Deploy Demo: a multi-datacenter chat, client+server in 23 lines of TS
#25There's few things as fun as a multiplayer notepad that wasn't intended to be an actual chat, before it's invaded by bots and spammers. Congrats on the fella that tried to paste an ascii art version of Pepe the Frog.
code for pepe is now available: https://gist.github.com/mishushakov/eb281f8edbb7e2bd2e6580de...
Re: Deno Deploy Demo: a multi-datacenter chat, client+server in 23 lines of TS
#26Nice, I like how short and simple it is. The title seems to imply it runs on multiple datacenters. How does it sync messages between those?
I believe the BroadcastChannel implements the server-side distributed messaging.
class BroadcastChannel
return `system('ircd')`
end
Only three lines! :DRe: Deno Deploy Demo: a multi-datacenter chat, client+server in 23 lines of TS
#27Deno is such a nice little scripting tool. I've been using it for devops glue and scripts lately. Native typescript, easy-as-pie dependency management. its great!
DNS wasn't created with security in mind, so to say Deno is secure because it uses a permissions system while relying directly into DNS for imports to me sounds weird.
Re: Deno Deploy Demo: a multi-datacenter chat, client+server in 23 lines of TS
#28What I really like about this is that you open the dependency in a web browser and see the human readable source code. No transpiling! https://deno.land/std/http/server.ts
Re: Deno Deploy Demo: a multi-datacenter chat, client+server in 23 lines of TS
#29Deno is such a nice little scripting tool. I've been using it for devops glue and scripts lately. Native typescript, easy-as-pie dependency management. its great!
Personally I do not like the fact that it puts too much trust into DNS. DNS wasn't created with security in mind, so to say Deno is secure because it uses a permissions system while relying directly into DNS for imports to me sounds weird.