Skip to main content
"...if you're into that whole brevity thing"
Source Link

This is the code (other parts of the extension are omitted for claritybrevity):

This is the code (other parts of the extension are omitted for clarity):

This is the code (other parts of the extension are omitted for brevity):

Notice removed Draw attention by Marc
Bounty Ended with Sᴀᴍ Onᴇᴌᴀ's answer chosen by Marc
edited tags
Link
Tweeted twitter.com/StackCodeReview/status/1344161302902616066
Notice added Draw attention by Marc
Bounty Started worth 100 reputation by Marc
Improve description
Source Link
Marc
  • 5.7k
  • 2
  • 14
  • 35

Improving a project Project builder for Stack Overflow (Codestrap)Google Chrome Extension

In the process of learning JavaScript, I built a Google Chrome extension. It works but as I am adding more features the code is quickly getting duplicated, so I'm looking for ways to improve it.

The buttonIf you run the code snippet and click CREATE, an alert shows the resultJSON that I need to sendwill be sent to the serverbackend. The

The JSON represents a project containing: a name, a type, and a boolean "isPrivate". The project_type is a lowercase string with this format: language-[build tool]-[framework]. For example: languagejava-build toolgradle-frameworkspringboot. For example: java-gradle-springboot. Every project has a name, a language and a boolean "isPrivate" or simply java. Other fields dependsDepending on the language, a project can have additional fields.

My plan is to add more languages and configurations. Any comments are welcome, thank you!


Side note: you can download Codestrap here if you want. It creates a project in your GitHub repo and opens it in Gitpod.

I developed it because after some time on Stack Overflow answering questions I wantedMy plan is to: add more languages and configurations. Any comments are welcome.

  1. quickly start up a dev project to test my answer (less than 3 clicks)
  2. do everything in the browser (Repl.it is cool but adding frameworks is not straightforward)

Besides that, can be used to play around with new languagesThe complete extension is available here. It creates a project in your GitHub repo and frameworksopens it in Gitpod.

Improving a project builder for Stack Overflow (Codestrap)

In the process of learning JavaScript I built a Google Chrome extension. It works but as I am adding more features the code is quickly getting duplicated, so I'm looking for ways to improve it.

The button CREATE shows the result that I need to send to the server. The project_type is a lowercase string with this format: language-build tool-framework. For example: java-gradle-springboot. Every project has a name, a language and a boolean "isPrivate". Other fields depends on the language.

My plan is to add more languages and configurations. Any comments are welcome, thank you!


Side note: you can download Codestrap here if you want. It creates a project in your GitHub repo and opens it in Gitpod.

I developed it because after some time on Stack Overflow answering questions I wanted to:

  1. quickly start up a dev project to test my answer (less than 3 clicks)
  2. do everything in the browser (Repl.it is cool but adding frameworks is not straightforward)

Besides that, can be used to play around with new languages and frameworks.

Project builder Google Chrome Extension

In the process of learning JavaScript, I built a Google Chrome extension. It works but as I am adding more features the code is quickly getting duplicated, so I'm looking for ways to improve it.

If you run the code snippet and click CREATE, an alert shows the JSON that will be sent to the backend.

The JSON represents a project containing: a name, a type, and a boolean "isPrivate". The project_type is a lowercase string with this format: language-[build tool]-[framework]. For example: java-gradle-springboot or simply java. Depending on the language, a project can have additional fields.

My plan is to add more languages and configurations. Any comments are welcome.

The complete extension is available here. It creates a project in your GitHub repo and opens it in Gitpod.

Source Link
Marc
  • 5.7k
  • 2
  • 14
  • 35
Loading