Ask a guy who just deleted 3k lines of code by accident anything.
Press Ctrl + Z
Why no backups or source control?
did you ctrl+z?
>>57167799
do you wear a skirt while coding
Are you glad you have all your code in source control, so that you can you can just restore the latest version?
>>57167799
why is your bread tiny
>>57167799
How do you feel?
Did you write it?
Why were you deleting things?
Do you really think 3k lines is hard to reproduce?
Are you a functional programmer?
My guess is:
Yes
You were making your code prettier.
Yes
No
>>57167826
No, I am a dysfunctional programmer
I deleted my production VPS a week ago or so by mistake. I understand you
>>57167812
its american bread
>>57167832
Ah. A web developer. No loss then.
I'm a code beginner, but isn't Github useful for shit like this?
>>57167853
Yes. Source control and backups are mandatory.
Nope, was a shitty java program to manage a beauty salon using csv as "database". It was an assignment.
>>57167847
>>57167853
Yes. Plenty. I recommend you start using a version control system even as a beginner actually. Not only because you're gonna delete stuff, it's an industry standard thing and it helps you stay organised. But also because it helps you get an overview of how your code grows which grants you greater insight into mistakes and where you're going right.
For larger projects. You don't have to have your homework in version control.
I recommend bitbucket.
>>57167807
this. i deleted a bunch of shit accidentally. just reset.
>>57167799
>>57167799
When that happened to me the last time I wrote a program that would scan the entire fucking partition for patterns that I knew were in the file, and dragged the fucker from fucking limbo into the realm of living again.
>>57167910
Nice idea. I would have just written it all over.
You took that "great software engineers delete as much code as possible" completely wrong.
>>57167799
at least you got dopples.
>>57167910
That must have felt incredible.
>>57167799
Do you think Ned Flanders is a big jerk?
>>57167910
Yep, I almost got it with foremost, but the code came back corrupted
>>57168068
>foremost
I tried it first with testdrive, which failed utterly. Because such data recovering tools have matching algorithms that may - MAY - work on images and stuff, but not on code.
That's why I did it manually, and it worked like a charm.
>>57168095
That fucker worked like a charm for mp3 midi jpg mov... even cpp (c code), but my java files came back all messed up
>>57167799
why not just bress C-/ ?
>>57167799
>3.29MB
wew
>>57168105
JPG and PNG - can confirm, but those often have checksums in them that makes it easy to check if a chunk is valid.
MP3 and MOV - only if they happen to be stored continuously, otherwise I had no luck.
Source code files - forget it.
>>57167853
Git, yes, github, no
>>57168149
Straight from my phone
>>57167799
svn revert?
Or are you not using version control?
Or were you an idiot and wrote 3k lines of code without commiting?
By the way, how do I zero the blanks on my ssd? If I ever need to retrieve something on the future, would be better to not have all the residue from the past
>>57168330
For this particular project I wasn't using git. I always use in group projects. This one was just I. My bad I guess
>>57168345
Learn how your file system works.
Create a map of areas of memory that are not allocated.
Make sure you haven't done a single mistake, because otherwise you most probably will break your entire partition.
????
PROFIT
Set those areas to zero.
>>57168476
I'll look in to it
>>57167799
why werent you using git or some other scm?
>>57167809
>>57167799
we need to know
How do I git with android development? I always just copy the file into a rar if I make significant progress.
>>57167799
Hi newfag. That's cute that you think 3000 is a lot of lines.
>>57169300
If your code does not suck ass, it IS a lot.
>>57169344
>lefewerlines==bettercode meme
Hi, newfriend.
>>57167799
why the fuck is there a hole in your hand
>>57169387
DWM is 2000 lines of code.
Why don't you write DWM for us real quick
>>57167799
> not using source control
>>57169432
Because he is a retard.