codemastercpp's blog

By codemastercpp, history, 4 years ago, In English

Hello CF,

Update:

Just after releasing it I got busy and stopped working on it, but recently have made some changes:

  • Rooms are now using 128-but UUIDs, so no actual chances that anyone can invade ur room without your knowledge. Your previous rooms will still be usable tho

  • Large Code, Input and Output are supported now

  • Font Size is editable now

  • When a user joins a room, syncing is fixed

  • Live code sharing has been improved and now multiple people can write on different lines, but very fast typing and typing on same line can still cause issues :catThink:

  • Deployment procedure is also very easy now, so any changes in future will be refelected very soon in the actual website

So Yeah, in end it is much more usable alone than it is with many people in same room. Anyways, that's the update.


So recently I've been working on a little project which I think might be useful in CP as well, so this blog is to showcase it, it's open-source so if you like it, you can contribute as well.

Link: http://discode.southeastasia.cloudapp.azure.com/

Github: https://github.com/prince776/discode

Discode platform allows you to create rooms where you can code in an online IDE(Very similar to Sublime Text) and everyone who joins the room can see ur code live, they can also collaborate. There are also optional voice rooms that you can join for better collaboration. So some features of discord with live coding, hence discode.

This is an example of a room, as you can see a very similar setup to many sublime text users, so if your setup is not working or you're on a different system, you can code very easily here, c++ is C++ 17 so no worries. Hence I'm posting it here.

This is totally anonymous, so no need to sign up or anything just to compile code online, anyone can join any room, create any room, run any code, with no restrictions.

Your room history, theme, and language choice are stored for a better experience, but it's on the front end. Only the contents of the room are saved in a DB so you can access them later on.

Do try it and tell how you liked it, voice rooms don't work on firefox yet because navigator.mediaDevices is annoying, so if you know a fix, pls contribute.

P.S: This project might be the reason for my recent -150 delta:sadge:

  • Vote: I like it
  • +98
  • Vote: I do not like it

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by codemastercpp (previous revision, new revision, compare).

»
4 years ago, # |
  Vote: I like it +8 Vote: I do not like it

This is really cool but I can randomly invade into anyone's room by just changing the number in the link!!

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +10 Vote: I do not like it

    Yes, that's intended, I can add support for private rooms but that'd require signup and stuff which I think most people are not interested in doing,

    • »
      »
      »
      4 years ago, # ^ |
        Vote: I like it +4 Vote: I do not like it

      Or instead of requiring people to signup, you could setup password protected rooms such that only the room id is not enough to join the room.

»
4 years ago, # |
Rev. 2   Vote: I like it +1 Vote: I do not like it

Amazing Project!

Minor Bug: Copy Room Link not working, when clicked, it copies //room/1

Suggestions:

It allows us to create multiple rooms with the same room name. Is this supposed to behave this way with duplicate entries? Though, I would understand since your URL is based on a number that keeps incrementing, and not based on the room name.

However, I feel a system with random alpha-numeric addition (slug) to the URL, like Google Meet or any URL shortener, (instead of the incrementing number approach, because right now, we could simply put any number below the current room number, and we can get access to the code and voice conversations), will help maintain privacy and no disruption or deletion of code.

Simply because the generated URL will be difficult to guess. And this way you might not need a way to authenticate a user, since the link will be only shared with the trusted users.

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +2 Vote: I do not like it

    Yes, I'll fix it soon, it happened because I changed base url during deployment

    I really like this next suggestion, will do it. orz

»
4 years ago, # |
Rev. 2   Vote: I like it +13 Vote: I do not like it

Thank you for such an amazing project. I learnt so much while coding with my peers and a stranger with great sense of art.

Art
»
4 years ago, # |
  Vote: I like it -7 Vote: I do not like it

Omg, Wow! Amazing work cmc saar.

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +8 Vote: I do not like it

    Thanks shahrorz saar, also thanks for not destroying my website immediately

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by codemastercpp (previous revision, new revision, compare).