csdojo-defaang/defaang

[FEATURE] Embedding an online compiler/IDE into defaang for question submissions

adilwahla opened this issue · 8 comments

Description

I would like to embed online compiler where almost major types of languages could be coded to compile the faang interview questions. fAANG do have many many question year/mon wise even with time stamps my question is how would that be managed? obviously we should introduce feature where people can code & that code must be filtered for syntax or runtime errors (if any) and must pass test cases before submit
Proposed Solution
jdoodle
Using the JDoodle compiler we can write our code in C, C++, Java, and in many more programming languages, and then we can embed and easily run that program in our webpage by giving standard inputs, and we can give command line arguments also.

Screenshot (29)

@adilwahla thank you so much for this.

This would be really cool, but I'd like to see if there are potentially other solutions for it.

I'm sure there are other online programming judging platforms, some of them open source. Any ideas?

I was surprised while searching yes there are many many options available that are open source
✨ Simple, free and open-source online code editor.
for instance just check out this one
found from this Repository

checkout how it looks like ide.judge0.com
should i start working on getting things in line to integrate ?

judge0 looks good! Not sure if there are comparable alternatives though.

However, at this point, I think we still have a lot of unanswered questions:

  • How is it going to be integrated exactly?
  • WIll defaang looks more like Leetcode or are we going to stick with more general questions (like Glassdoor)?
  1. I think its pretty clear answer to first question about integration Lets suppose we agreed to integrate ide.judge0.com
    we will use API to integrate in DEFAANG checkout
    https://rapidapi.com/judge0-official/api/judge0-ce/
    Checkout Helping demo on medium here

  2. we will focus on being something different than leetcode+glassdoor but obviously some basic things like compiler are must required. I have vision that we will focus too on system design+ behavioral Rounds but later on once defaang is mature enough since leetcode+glassdoor lack them

this is how compiler might look in defaang https://balsamiq.cloud/sl024zz/p4ykgot

@adilwahla sounds good. Perhaps we should focus first on compiling a solid list of interview questions then?

sure, speed up accepting questions with strict filter( manually may be) to ensure questions are out of real interviews ( maintain uniqueness ) till then we will end up with compiler integration should we start it side by side?
DEFAANG WILL BE A GREAT WAY TO PREPARE INTERVIEW WITH ROAD TO OPENSOURCE

Starting it side by side might actually be ok. Perhaps we can start it as a separate branch to see how it goes?

sure, I think this might be a wonderful idea
I'll be waiting anxiously :) when to start !