|
If it's under source control, its not really gone, is it? But it's still like lopping off a limb, or something. There's always that little voice in the back of one's head "But what if I need it, later?"
"A little song, a little dance, a little seltzer down your pants"
Chuckles the clown
|
|
|
|
|
Some times when I visit museums, I feel like a teenager: I walk around among all that age old stuff, asking, "Why does anyone spend resources on keeping all this old sh*t? Some of the utensils (or whatever they are), not even the museum guides can tell what they are for! If you throw it all away, noone would really be affected (except the museum guides)."
As long as there is the slightest chance that the code will be taken into use in the future: Sure, you can keep a copy in a source control system. But some code is just dead forever. Who would ever need the driver code for a Fastrand drum? ("A device for storing angular momentum", according to one dictionary.) Even if you wrote your own DOS driver for an 8" floppy disk: You don't have the hardware for it today. If you find some old 8" floppies, you have to go to some specialist data recovery company to have it read, if a all possible.
Another aspect: How many source control systems have I been through in my professional life? About half a dozen different ones. For most of them, I could probably dig up some code to run it on today's hardware, but that is only because a few people still use them. If I want to look at the code 30 years from now, chances are that it doesn't matter if the software is unavailable, because it is stored on an obsolete medium. Or the other way around: It doesn't matter if the medium is obsolete, because you have no software for that kind of device anyway. I've got files on 7-track half-inch tape reels, 8" floppies in a non-IBM format (different low-level formatting), DCT-300 and DCT-100 tape cassettes, two different Travan tape formats, 8 track punched paper tape and punched cards. I keep them to show people the medium, not the stored information. You can't that easily show your (grand)kids what a - now defunct - source control system looks like
So, be honest to yourself: Realize that these files will never, ever have any sort of value in the future. Do not tuck them away in your attic, when there is no reason at all to do so.
Religious freedom is the freedom to say that two plus two make five.
|
|
|
|
|
Never throw anything away.
At times I'll change an extension, e.g. from .c to .c! so it won't get accidently compiled. Recently I have also zipped up some code I don't want to pollute my builds.
P.S. I'm also spending some time searching for a snippet of code (C) I'm sure I wrote a while back, but I probably don't have a copy of it. I wound up writing a new version of it on Friday, but I want to know what the old version was.
modified 25-Aug-24 11:44am.
|
|
|
|
|
PIEBALDconsult wrote: I want to know what the old version was.
Ask the NSA; they probably have a copy somewhre.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
My view
This weekend I finished finally migrating some 30 year old Modula 2 code into c++. To keep track of everything (having the history of source code and the target code consistent), I added the Modula 2 code (< 10MB ) also to the repository.
I know, I'm a nitpicker, but I have no problem with that
modified 25-Aug-24 12:28pm.
|
|
|
|
|
I always found it very satisfying to delete code that was no longer needed because of refactoring.
|
|
|
|
|
I was about to write very same, but you beat me to it.
I must "admit" that I have saved a few files of source code, some of them more than 45 years old, but that is mostly for "The Weird and The Wonderful" kind of use. Especially if the file is in some now-abandoned language, such as Snobol or APL, I may enjoy taking a look at the old code and ask myself (noone else cares : "Why didn't we preserve that mechanism in modern languages? And that one?
Religious freedom is the freedom to say that two plus two make five.
|
|
|
|
|
don't delete it. You will regret it one day. archive it for future reference. bytes are cheap.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
I predict that in about two weeks you're going to post about how you wish you had saved it this code because suddenly you had a need to look at it again.
|
|
|
|
|
Wordle 1,163 4/6*
🟨⬜⬜🟨🟩
🟩⬜🟩⬜🟩
🟩🟨🟩⬜🟩
🟩🟩🟩🟩🟩
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
⬜⬜🟩⬜🟩
⬜⬜🟩🟨🟩
🟩🟩🟩🟩🟩
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 1,163 5/6*
🟨🟨⬛⬛🟩
⬛⬛🟩🟩🟩
🟩⬛🟩🟩🟩
🟩⬛🟩🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,163 4/6
🟨⬛⬛⬛🟩
🟩🟨🟩⬛🟩
🟩⬛🟩🟩🟩
🟩🟩🟩🟩🟩
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
Wordle 1,163 3/6
⬛🟨🟩⬛🟨
🟩🟨🟩⬛🟩
🟩🟩🟩🟩🟩
Jeremy Falcon
|
|
|
|
|
Wordle 1,163 5/6
⬜⬜⬜⬜🟩
🟩⬜⬜⬜🟩
🟩⬜🟩⬜🟩
🟩🟨🟩🟨🟩
🟩🟩🟩🟩🟩
Within you lies the power for good - Use it!
|
|
|
|
|
Wordle 1,163 4/6*
🟨⬜⬜🟨🟩
🟩⬜🟩⬜🟩
🟩🟨🟩🟨🟩
🟩🟩🟩🟩🟩
An argument can be made that I actually solved it in 3.
|
|
|
|
|
I just read this, about someone comparing to C to Zig...
Let's say that Zig is a walk with your beautiful girl on a sunny park. You know it's gonna be nice. And C is like... I don't know... like snorting cocaine from a knife with THAT friend who is a terrible influence. If things go well, the rush is incredible and you think "Nah, screw my girlfriend, this is so much better", but there's also a medium risk you suffer from a crash, paranoia, anxiety, pain in the chest, etc. Seasoned devs/drug fiends will know more or less how much they can take without suffering the consequences, but as a newcommer you are not as safe as them. Oh man... that's just gold.
Jeremy Falcon
|
|
|
|
|
No C is like your wife/SO/partner/whatever, solid, dependable and has got your back.
Zig is like the new girlfriend; an exciting experience, new, fresh, exhilarating but you're wondering; will it last, will they stick with me?
Will they put up with all my BS?
Had to add that last bit.
A home without books is a body without soul. Marcus Tullius Cicero
PartsBin an Electronics Part Organizer - Release Version 1.4.0 (Many new features) JaxCoder.com
Latest Article: EventAggregator
|
|
|
|
|
Perfect Mike
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Bad news, I was wrong about the $21.1M in funding. Here's their 2024 financials. Given the fact they're brand new, IMO they're doing good. But there's only one full-time person working on it. There are over 900 contributors on GitHub, but still... one full-timer.
Given its traction, I'm sure it'll grow, but now I gotta wonder just how long that growth will take. Can't really wait years to start the app in hopes it hangs around.
Jeremy Falcon
|
|
|
|
|
Yeah with only a single full-timer you gotta wonder how long he can hang on.
Contributors are fine but someone has to lead the project.
It's a shame gus it looks like it's a decent language with a lot of potential but it all comes down to users.
If no one uses it, it ain't goin nowhere.
Hope it all works out.
A home without books is a body without soul. Marcus Tullius Cicero
PartsBin an Electronics Part Organizer - Release Version 1.4.0 (Many new features) JaxCoder.com
Latest Article: EventAggregator
|
|
|
|
|
This reminds me of the history of Gitea (Git server project on GitHub), this was forked from Gogs:
Quote: While Gogs was open-source, its repository was controlled by a single maintainer, which limited community input and development speed. In response to these limitations, the Gitea developers decided to fork Gogs in November 2016, creating a community-driven development model. Gitea had its official 1.0 release in December 2016. Gitea - Wikipedia[^]
|
|
|
|
|
Fo sho, and it's a nice project. It's just so early that using it right is a tiny gamble. I mean worst case I'd have to rewrite the app, which would reeeeaallly suck. But that would be the worst case.
Jeremy Falcon
|
|
|
|
|
Jeremy Falcon wrote: Zig
You misspelled C#.
|
|
|
|
|
PIEBALDconsult wrote: C# You misspelled Java.
Jeremy Falcon
|
|
|
|