csdojo-defaang / defaang

A website that will curate recently-asked interview questions from FAANG+. Currently inactive. Check out: https://github.com/ykdojo/OpenStream
MIT License
506 stars 120 forks source link

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

Open adilwahla opened 1 year ago

adilwahla commented 1 year ago

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)

ykdojo commented 1 year ago

@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?

adilwahla commented 1 year ago

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 ?

ykdojo commented 1 year ago

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:

adilwahla commented 1 year ago

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

ykdojo commented 1 year ago

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

adilwahla commented 1 year ago

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

ykdojo commented 1 year ago

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

adilwahla commented 1 year ago

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