Question

  • Creator
    Topic
  • #4008562

    What is the best way to make the code clean and unique?

    by demyanko.s ·

    Tags: ,

    I’m just starting to write applications for IOS, yet I don’t really understand how to write unique code for each. To avoid repeating parts of the code between two applications. Found this service apprefactoring(dot)com on the Internet, did someone work with it? What can you advise?

    • This topic was modified 2 weeks ago by Avatar photokees_b.
    • This topic was modified 2 weeks ago by Avatar photokees_b.

You are posting a reply to: What is the best way to make the code clean and unique?

The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our Community FAQs for details. All submitted content is subject to our Terms of Use.

All Answers

  • Author
    Replies
    • #4008593
      Avatar photo

      Reply To: What is the best way to make the code clean and unique?

      by kees_b ·

      In reply to What is the best way to make the code clean and unique?

      Each application has it’s own code. But, depending on the OS, you can put common functionality in a shared file, like a .dll in Windows. An app, however, has all code it needs. You can’t share code between different apps, for the simple reason that it should work on a phone without having to download and install another app.

      Refactoring is done inside an application. It makes sense to have only one place for functionality that is executed on different places. Makes changing it much more reliable.
      https://en.wikipedia.org/wiki/Code_refactoring tells more.

      • This reply was modified 2 weeks ago by Avatar photokees_b.
      • This reply was modified 2 weeks ago by Avatar photokees_b.
    • #4008669
      Avatar photo

      DEBATEABLE!

      by rproffitt ·

      In reply to What is the best way to make the code clean and unique?

      Let’s say I have shared code between apps. This could make maintenance easier but runs the risk that I would break the other apps if I make changes to the shared code.

      Also, if you touch the shared code, doesn’t it follow you have to regression test all apps that use that code?

      Frankly, with two apps I might consider some but not all code to be shared between the apps.

      It’s a design choice and mine was to put shared code in a deep freeze state. We NEVER refactor that code because the Regression Testing costs TIME and MONEY. Your academic folk tend to want to dismiss TIME and MONEY until it’s their TIME and MONEY!

Viewing 1 reply thread