PDA

View Full Version : Damn It!!


davepermen
12-05-2005, 03:09 PM
I just got my notebook overheating and thus freezing (what a combination!!) while refactoring over 2 hours on some piece of code, wich i finally got really happy about.. and guess what? to not touch the old code, and refactor in some test environment, i started new projects, wich of course are unsaved and only save if i want to (wich i never planned to, as i just could reinsert the refactored code into my old projects).

and yes, there aren't any files in those temp-folders.. all the rewriting, restructuring, and cleaning up on the (working) mess.. gone.. and i hate such rework..


oh my.. i go to sleep.. now i'm really depressed.

just had to get that out of my heart now. good night

eddie
12-05-2005, 03:35 PM
Ack, fun.

Normally I try to keep two working copies of things out of source control on my machine, one that's for crazy large changes, and one for small stepping. That way I can save as much as I want, without running into that risk. :)

Also handy is if you use branching so you can fold it back into the mainline if things go well, or scrap it if you realize what you did was absolutely crazy. :)

Anyhow, I'm sure none of these will console you now, but my deepest sympathies. Lost code is never good.

davepermen
12-05-2005, 03:38 PM
well, it was just two hours.. but i was so proud and chilled out somehow, and was just starting the last and final test, to be able to sleep well afterwards..


and, heck, it was just two console apps communicating over tcp with eachothers on 127.0.0.1... why the heck did it had to lock up?!!? :D


now i can't get to sleep anymore.. grmbl.

eddie
12-05-2005, 03:59 PM
Sounds like some driver's having a bad day. :)

Alex
12-05-2005, 05:13 PM
Maybe you can recover the data if you don't touch anything and use a tool that restores deleted data. AFAIK data can be restored even if it has been overwritten with random garbage several times...

Alex

monjardin
12-05-2005, 07:25 PM
It sounds like his changes were in RAM, not on the disk. Good luck getting that back =(

dave_
12-06-2005, 02:49 AM
Talking about refactoring... Does anyone know any good refactoring tools? I've tried Ref++ but thats only a 30 day trial. Are there any free alternatives?

eddie
12-06-2005, 08:56 AM
I tried Ref++ but didn't find it fantastic.

Personally, I just use VisualAssist, and gVim. :) It's apparently pretty hard to do good tools in C++.

roel
12-06-2005, 09:20 AM
does vs 2005 not have some refactoring features? for c# for sure, what about c++?

davepermen
12-06-2005, 10:49 AM
no clue about c++, but i'm definitely liking the ones for c#.. i ___VERY__ often use the renaming feature :D

Luminion
12-06-2005, 10:57 AM
Now that sounds like fun :)

Onikhaosifix
12-06-2005, 11:25 AM
Now that sounds like fun :)

It's not fun.

davepermen
12-06-2005, 12:40 PM
depends on what he replies to.. if he replies to the renaming and such, yeah, that is fun. if he replies to the original topic, then no, it isn't..

couldn't yet get bothered to redo my work again .. :D