tarigwaemir: (my head hurts)
[personal profile] tarigwaemir
Haste Street on the Feast of St. Francis Xavier

You know, I wrote some of my first LJ posts while waiting for programs to finish running on a UNIX shell, while working on a bioinformatics project in a biophysics lab way back in high school. Now I can say I've truly come around full circle because here I am, writing LJ posts while waiting for my Perl script to finish running.

What's changed between then and now:

- This time, I actually understand my project.
- I also know more UNIX commands and have managed to teach myself how to program in Perl.
- I presumably know more biology as well.
- I'm not working with protein sequences.
- I actually have people who answer my stupid questions.

What hasn't changed:

- I still get headaches from staring at the computer screen for too long.
- I still don't have much contact with my advisor.
- I'm still doing everything by SSH connections to a remote computer.

I probably should go to sleep because I have to give a presentation tomorrow, but I really want to get this data parsed properly so I can finally get around to generating scatter plots tomorrow.

Lessons I've learned about coding the hard way (i.e. I refused to listen to good advice and had to find out for myself):

- When you repeatedly get errors about uninitialized variables or array references when you clearly did remember to initialize them, it probably isn't a problem with your syntax or programming logic but rather with your input file.
- Along those lines, always check the input files before you run the code.
- As nice as it is to have your program work as a tidy little black box, having it print its status to standard output occasionally can be extremely helpful, especially so you don't have to wait for your big unwieldy code to finish runnning before realizing that it wasn't doing what it was supposed to.
- Avoid the temptation to have everything run in one script because you might find yourself waiting forever each time you rerun it, even though you only really need one subsection of it. After all, that is why we have wrappers and subroutines.

All the code I've written so far is probably extremely bulky and inefficient, but I've stopped caring about aesthetics for the moment. CS majors, you may throw your tomatoes at me now. My programming structure definitely reflects the way I think...I wonder if I'll become a more efficient thinker if I become a better programmer.

And now my script's finished running so off I go.

Yours &c.

sleep

Date: 2007-12-03 01:11 pm (UTC)
From: [identity profile] mercurysblood.livejournal.com
Yay self-taught coder!

This CS major will not throw tomatoes at you for reasons you stated.

Re: sleep

Date: 2007-12-03 08:31 pm (UTC)
troisroyaumes: Painting of a duck, with the hanzi for "summer" in the top left (Default)
From: [personal profile] troisroyaumes
Haha, thanks. ^_^ Oh so you studied (are studying?) both CS and linguistics? That's pretty awesome.

(no subject)

Date: 2007-12-03 10:06 pm (UTC)
From: [identity profile] mercurysblood.livejournal.com
YOU are awesome. ^_^

(no subject)

Date: 2007-12-03 01:59 pm (UTC)
love_archived: (Default)
From: [personal profile] love_archived
Wow, self-taught coding = WIN. I only managed to learn HTML that way--CSS is beyond me (I lack the patience). I'm surprised you don't do a homework swap with a CS major to check your code. (Sorry about the edit. Being able to edit comments has spoiled me irredeemably, it would seem.)
Edited Date: 2007-12-03 02:00 pm (UTC)

(no subject)

Date: 2007-12-03 08:34 pm (UTC)
troisroyaumes: Painting of a duck, with the hanzi for "summer" in the top left (Default)
From: [personal profile] troisroyaumes
Heh, CSS is actually not that bad, though I do agree that it's hard to find the motivation to learn it if you can live without it.

I'm not doing anything really advanced though. It's similar to what I've done before in MATLAB and Visual Basic; the major difference is the syntax. Can't do a homework swap with a CS major because this is actually my rotation project, not an assignment for a class. ^_^;; I do have plenty of people to pester with questions though, not to mention several reference books and Google.

(no subject)

Date: 2007-12-11 01:04 am (UTC)
From: [identity profile] owari.livejournal.com
::randomly floats in::

Present for you~! (http://tristefic.livejournal.com/44717.html)

Enjoy. ♥

Profile

tarigwaemir: (Default)
tarigwaemir

April 2009

S M T W T F S
   123 4
5678910 11
12131415161718
19202122232425
2627282930  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags