Search:

Type: Posts; User: Kerr

Search: Search took 0.12 seconds.

  1. Replies
    9
    Views
    1,870

    Re: What is the best way to avoid duplicating code?

    Ok :). I use methods, of course. Trying to use them whenever a peace of code is used in more then one place. It is just hard to figure out how to do it (organizing the code and all, like should this...
  2. Replies
    9
    Views
    1,870

    Re: What is the best way to avoid duplicating code?

    Are you talking about methods when you say functions? Sorry, sometimes I get stuck on words :P.
  3. Replies
    9
    Views
    1,870

    Re: What is the best way to avoid duplicating code?

    Yeah, its just that I have no experience with writing modular code.
  4. Replies
    9
    Views
    1,870

    Re: What is the best way to avoid duplicating code?

    Do´h. Now why didnt I think of that, lol?!?!

    Anyway, it was more or less meant as an example. Have had this issue before. The issue with duplicate code, that is. Like when you have two or more...
  5. Replies
    9
    Views
    1,870

    What is the best way to avoid duplicating code?

    Hi all.

    I have several times encountered this problem, but now I want to get to the bottom of it. Basically, if you have two methods that looks almost completely the same, aside from maybe one...
Results 1 to 5 of 5