Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8377105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:34:49+00:00 2026-06-09T15:34:49+00:00

I scratched my head for two weeks trying to compute something based a variable.

  • 0

I scratched my head for two weeks trying to compute something based a variable.

It turns out I set the variable earlier to solve temporarily another problem and never went back to correct it.

Normally, I try to mark up code with //ToDo ‘s to remind me to remove the temporary variable.

In this case, I didn’t mark it since I was skipping around trying to fix more than a few things. (I couldn’t figure out what was going on so I was trying all sorts of stuff!)

How do you mark temporary variables that you wish to remove later?

  1. Do you instantiate them as private at the top of the class?
  2. Mark them inline with something like //Delete Me Later

What’s is the best practice for marking variables that you need to delete later?

(short of having a really organized brain of course…)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T15:34:51+00:00Added an answer on June 9, 2026 at 3:34 pm

    Instead of commenting to every single idea / recommendation, I thought I would answer and then have you vote on this answer.

    First, thank you very much for sharing your processes and ideas. I really appreciate it.

    I think there are a number of factors in play that should be driven by the desire to avoid making stupid mistakes or suffering from ones you have already made. I made one (of many.)

    Let’s just assume that version control and team reviews trump all; however beyond version control (assuming that you committed crappola to your good code):

    • @Deprecated is very good. It seems to glare at you. We all need glaring. Hopefully we can see the forest through the trees.

    • To me, diffs are onerous since I frequently make sweeping changes but it is a great suggestion that works in many cases.

    Some notable things:

    Since I am usually sole developer, I rely on ToDos. They’re easy to use. I have an informal rating system with the todos. For example, something that really needs to be cleaned up looks like this:

    //TODO * Might be a future crash here // where one star is something I really have to clean up before I ship. 
    //TODO *** Can some lines be trimmed from this view adapter?
    

    Multiple stars are arbitrary and perhaps even optional. I keep cycling through them. @BriGuy37 – that was an interesting thought. @Sriram – that was interesting too – setting up tags under certain conditions.

    In my case, I didn’t dox the //TODO and it burned me.

    Biggest rule perhaps out of all of this is:

    Unitize your work in a manner that you don’t make stupid errors like this. Know what changes you’re making and when. Keep calm.

    Thanks again! It’s great to pick up best practices from the community to incorporate in your work!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to work out in my head the best way to structure a
This one is a real head scratcher for me... var matches = Regex.Matches(<p>test something<script
I am trying to play a sound when my wheel is scratched(DJ Turn Table)
I've been banging my head against a brick wall for nearly two days on
What I thought was going to be a simple problem turns out to be
I ran into a real head scratcher recently while trying to debug an issue
I am trying to set up a filter system for a small shop I
I'm trying to learn some PHP, and I've been banging my head against this
I was trying to get my head around jQuery's Ajax. I have a page
I'm trying to have that code working but I still scratch my head... $nomListe

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.