Getting started with Hello World in Node.js


Getting started with Hello World in Node.js
http://ift.tt/2s0Hi1G

Submitted June 06, 2017 at 11:09PM by zeal_kaiser
via reddit http://ift.tt/2rQVbih

Advertisements

Simple Express and socket.io Chat with login


Simple Express and socket.io Chat with login

Dear Reddit,

I am currently designing a very small game for my friends and I. It is basically a chat where each line is parsed to detect keywords that will perform some actions.

It is nothing fancy but I'm using that to learn real-time javascript.

I've followed the multiples online tutorials that describe a basic web chat using Socket.io and Express. The next step is to allow each user to login with a password so that nobody could play in place of an other person.

I found lots of content that uses various libraries but they are all more or less outdated.

Could you help me make a very simple authentication?

Thank you!

Submitted June 06, 2017 at 11:24PM by Oripy
via reddit http://ift.tt/2sOIiCo

Rest your mind. Let’s play. Write shortest possible way to achieve array of number 3 with array length length 90 Result array should be like [3, 3, 3, 3, …]


Rest your mind. Let’s play. Write shortest possible way to achieve array of number 3 with array length length 90 Result array should be like [3, 3, 3, 3, …]

I will post my code later, so it won't affect your ideas. Btw, it's 33 symbols.

Submitted June 06, 2017 at 10:50PM by IDCh
via reddit http://ift.tt/2szRXgO