Letters are most effective when the letter writer can speak to a student's academic strengths and preparedness for graduate study. If you are considering asking me (Dr. Wolsiefer) for a letter of recommendation, first consider what specific examples I can provide of your readiness for graduate school. Did you earn strong grades on specific assignments? Did you receive especially positive feedback based on certain behaviors or skills? Did you regularly attend class, pay close attention, and engage with the material? If you can't answer these questions in the affirmative, my letter of recommendation probably won't help you get into graduate school!
Unless there are extenuating circumstances I am unlikely to write a strong letter if you demonstrated behaviors that are typically undesired for graduate students (e.g., late assignments, academic integrity violations, frequent class absences, or poor grades). I'm also unlikely to be able to write a strong letter if I don't know you very well, academically (for example, if you've only had one large lecture class with me and we didn't have much interaction). If I don't feel I am able to honestly write you a strong letter, I may tell you that! It doesn't mean you aren't prepared for graduate school, it just means that I may not be the best person to provide evidence that you are.
If you do think I can write a strong letter, please do the following at least 1 month before your first application deadline (sooner is better):
Send me an email requesting that I write a letter and explaining why you think I'd be able to write a good one (saying you enjoyed my class is really nice to hear, but doesn't mean I'd be able to write a strong letter about YOU).
Send a list of the schools and programs you plan on applying for along with their application deadlines.
Tell me what classes you took from me and the semesters/years you took them (same if you worked in my lab).
Give me specific examples of ways you demonstrated readiness for graduate school.
Here are some websites that have good advice about asking for letters of recommendation.