CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2009
    Posts
    24

    Best way to automate some of my programming?

    I'm wondering if there is a way to automate some of the programming I do. I'm somewhat of a newbie at programming, so not really sure where to start, but at my work, there are times where I'll have to write some code that seems like it could be somewhat automated.

    For instance, when I create a new variable, there are three lines of code I have to add to the same place in the same three files. I'm wondering if I could have something that sorta runs on top as a front end and I simply tell it to add a variable called 'temp', and then it will automatically write in the code in those three specific places.

  2. #2
    Join Date
    May 2012
    Location
    Bonn, Germany
    Posts
    43

    Re: Best way to automate some of my programming?

    If you have to do such repetitive tasks it is often a sign of a bad software design.
    But without further details it's hard to tell.
    Of course you could use a scripting language such as Python to generate your code, I did this too.

  3. #3
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Best way to automate some of my programming?

    For instance, when I create a new variable, there are three lines of code I have to add to the same place in the same three files.
    Huh ? Don't really understand what you are doing...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured