Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Add Run Code Links in existing code snippets #36

Closed
Bhupesh-V opened this issue Apr 10, 2019 · 22 comments · Fixed by #611
Closed

Add Run Code Links in existing code snippets #36

Bhupesh-V opened this issue Apr 10, 2019 · 22 comments · Fixed by #611
Labels
beginner-friendly Beginner friendly issues enhancement New feature or request good first issue Good for newcomers

Comments

@Bhupesh-V
Copy link
Owner

Add Runnable links of the code below the example.
Use link name Run Code which links to a Online C++ complier conatining the example code.
Use Rextester as the Online C++ Compiler (If you have a better suggesstion please comment).

Follow below steps to generate the Run Code Link.

  1. Go to Rextester
  2. Copy or write the example code.
  3. Run the code (hit F8) , see if you face any problems
  4. Save the code with the followng title format
    <algo_name>_30-Seconds-of-C++
  5. A permanent link will be generated , copy that
  6. Submit a PR which contains the Run Code Link just below the example.

Comment any doubts, suggesstions.

@Bhupesh-V Bhupesh-V added good first issue Good for newcomers beginner-friendly Beginner friendly issues enhancement New feature or request labels Apr 10, 2019
@Bhupesh-V Bhupesh-V changed the title Add Live Run Links in existing code snippets Add Run Code Links in existing code snippets Apr 10, 2019
@sdmg15
Copy link
Contributor

sdmg15 commented Apr 11, 2019

Yes I think it's good.
And I think the fact that you want to create a separate file for each code snippet is not that too good. I think it's better to have all in on place + run-able code link.

Another point is that I think we need to make the code uniform (Either using std:: or not, but warning before ) and prefer using predefined algorithm

@Bhupesh-V
Copy link
Owner Author

Bhupesh-V commented Apr 11, 2019

Another point is that I think we need to make the code uniform (Either using std:: or not, but warning before ) and prefer using predefined algorithm

I guess using std:: would be rather safe than using namespace std; what do you suggest ?

@Bhupesh-V
Copy link
Owner Author

Yes I think it's good.
And I think the fact that you want to create a separate file for each code snippet is not that too good. I think it's better to have all in on place + run-able code link.

Yeah you are right , I would remove the extra directories of different headers

@sdmg15
Copy link
Contributor

sdmg15 commented Apr 11, 2019

Yes I suggest putting std::

@vsin12
Copy link

vsin12 commented Oct 1, 2019

Are any of these tasks still available ? I am new to open-source and would like to start contributing.
I see that this issue is open, but I do not see any run-code links missing.

@Blahblahblahsomething
Copy link

Is this issue still open?

@Bhupesh-V
Copy link
Owner Author

@vsin12 @Blahblahblahsomething you can contribute sample code and give a PR in the snippets directory.
see some examples on how to add sample code

@Blahblahblahsomething
Copy link

Thank you.

@Harshwp
Copy link

Harshwp commented Oct 6, 2019

Is this issue still open? I would like to contribute

@akhilkh2000
Copy link

Is this issue still open?

This was referenced Oct 25, 2019
@ashwanirathee
Copy link

Is this issue still open?

@Bhupesh-V
Copy link
Owner Author

Is this issue still open?

Yes

@marcinky
Copy link

marcinky commented May 30, 2020

Hi! It looks like this issue is still open. I'm a newbie who would like to contribute. I'll review this thread - it looks like you have directed us to contribute sample code and give a PR in the snippets directory. I'll give it a go.

@YersiniaP
Copy link
Contributor

Hello there, I am also new to OS and would like to contribute to this project. As per the instructions, I will get the example code to run using Rextester and paste the permanent link below the snippet before submitting a PR.

@marcinky marcinky mentioned this issue Jun 5, 2020
@alkatrivedi
Copy link

alkatrivedi commented Jun 12, 2020

I want to work on this project. May I?

@dbejanishvili
Copy link
Contributor

onlinegdb seems to have compilers that work with functions, some of which rextester doesn't have support for.

@mouryac9
Copy link
Contributor

I would like to work on this issue.

@destrophix
Copy link

I would also like on work on this issue.

@AlexMunozPino
Copy link

Hey! I would like to work on this issue as well

@aditi-goyal-257
Copy link

I would like to contribute, is this issue still open?

@AryanNayak
Copy link

Hey, can I contribute to the issue?

@abhishekd358
Copy link

Hey, I already Submitted a pull request regarding the rotate_copy algorithm.Now I want to add heap_sort in algorithm . Can you assign the issue to me ? .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
beginner-friendly Beginner friendly issues enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.