Copy and Paste code from one module to another without adding dependency of source module
250
Views
7
Comments
New
Service Studio

We are expecting a solution, to not take dependency of source application but it will have only pure code with errors.

In this case we can avoid unnecessary dependencies. Or we can ask user as a confirmation when paste the code like,  "Do you want to copy only code or with full dependency?". 

This will solve many problems.

Thanks. 

Yes , It may be helpful ! .

Regards

Yeah, I can see what you are getting at, but keep in mind copy/pasting code is not the  best approach in software development. Reusability should be the focus.

However not the best approach it is very used!

Dear @Daniël Kuhlmann,

We have different application uses different middleware API's. In-order to make it independent we are following this approach.

Anyhow we promote re-usability only.

@Aravind M got it!

Excellent approach. I've had some troubles because of this. It could have an advanced option when "pasting", asking if you want to add the dependencies or not.


+1

@Aravind M Good Idea!!

whenever we paste something from one module to another, 

  • I might be expecting one popup having list of dependencies by choosing among those list.
    • This popup must be integrated with architecture dashboard to show what happens if we add this dependency (It might be circular or side reference or good practice.....).
  • Two buttons will be shown paste with dependencies and paste without dependencies (Scaffolded on current module).