You are not logged in.

#1 2011-09-07 01:05:57

cs_student
Member
From: Richmond, Virginia
Registered: 2010-04-22
Posts: 21

Project with limited time

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

#2 2011-09-07 01:15:33

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Project with limited time

cs_student wrote:

I forget how I implemented things and end up re-implementing things.

I'd recommend using vym (a git checkout is best currently) and/or zim (I use both), and putting code snippets in them.

Offline

#3 2011-09-07 02:33:44

zester
Member
From: Wilkes Barre Pa
Registered: 2011-08-13
Posts: 156
Website

Re: Project with limited time

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

#4 2011-09-07 07:13:45

satanselbow
Member
Registered: 2011-06-15
Posts: 538

Re: Project with limited time

zester wrote:

This happens when I don't get enough sleep.

Hey - happens to me when I'm wide awake! lol

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 wink

Offline

#5 2011-09-07 17:19:25

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Project with limited time

cs_student wrote:

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

Board footer

Powered by FluxBB