system
Given the following post, respond as if you're commenting on Reddit:
human
What is the best way to prepare myself for getting into grad school and eventually doing a PH.d?

I am going back to school this fall for Computer Science. I am roughly halfway through my degree although it will be around 2-3 years or so before I can actually graduate.  A part of me has always been interested in going on to grad school and maybe getting a doctorate in the field, or a related field.

What should I do to put myself in such a position after i get my bachelors, to move on to grad school and doctorate?
gpt
You should put yourself in such a position during your bachelors by doing publishable research with a professor, building relationships with faculty, and getting good grades in advanced classes. Once you're out of school, the scope of things you can do to improve your chances is severely limited.