[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Ask a guy who just deleted 3k lines of code by accident anything.

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 48
Thread images: 4

File: 20161003_225941.jpg (3MB, 5312x2988px) Image search: [Google]
20161003_225941.jpg
3MB, 5312x2988px
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.
>>
File: 1351905541897.jpg (18KB, 500x461px)
1351905541897.jpg
18KB, 500x461px
>>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
>>
File: 1434848392735.jpg (52KB, 640x640px) Image search: [Google]
1434848392735.jpg
52KB, 640x640px
>>57167799
> not using source control
>>
>>57169432
Because he is a retard.
Thread posts: 48
Thread images: 4


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.