You are not logged in.
Pages: 1
I have a passion for programming. I'm self-taught, though I have had some intro classes in uni (as CS is my major) which covered material I already taught myself. I did a lot of programming in high school, when I had a lot of time. Since I graduated, I began working full time (to pay for college) and going to school full time. I'm currently just doing gen ed classes, so I have very little spare time to program. The little programming I do is creating little scripts on lunch breaks to help me at work.
I think it's funny now that I'm actually majoring in computer science, I spend less time with the subject. However, I would like to keep working on small projects.
What I am noticing is, due to my frequent lapses in writing programs, I forget how I implemented things and end up re-implementing things.
Does anyone have any tips on working on projects which grow to be large when having very little time to spend on those projects?
Offline
When I write a peace of code that is particularly compex or just easy to forget/loose. I will simplify the concept
and save it as a snippit to my github Gist. <-- Code snippits
It's normal to forget how to do those little things.
Recently this little bit of code slipped my mind and ended
up costing me most of the day to remember.
setAttribute(Qt::WA_X11NetWmWindowTypeDesktop);
resize(QApplication::desktop()->size());
void MainWindow::resizeEvent(QResizeEvent *event)
{
//
wallpaper = wallpaper.scaled(QApplication::desktop()->size());
}
void MainWindow::paintEvent(QPaintEvent *event)
{
//
QPainter p(this);
p.drawPixmap(QPoint(0,0), wallpaper);
}
This happens when I don't get enough sleep.
Last edited by zester (2011-09-07 02:35:28)
Offline
This happens when I don't get enough sleep.
Hey - happens to me when I'm wide awake!
Commented code is king - tired or not extensively commenting your code will make life a whole lot easier when you come back to it later. A well structured central repository to store all your custom snippets is pretty essential too
Offline
I think it's funny now that I'm actually majoring in computer science, I spend less time with the subject.
When your hobby becomes your work, it's not surprising that you spend less time on the hobby outside of work.
Offline
Pages: 1