Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde
A new UN antiterrorism convention has made it a felony to distribute or possess any version control software. This includes diff and patch tools which are classed as "weapon components." Even backups are viewed with suspicion

github and BitBucket have both been seized by the government and will be e-shredded. Richard Stallman fled to Uruguay with a secure USB drive containing the last stable release of RCS.

How will we adapt to this new world?

Adbot
ADBOT LOVES YOU

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde
After the first six months, everyone's got their system. Every time I have to work on a section of code, the first thing I do is copy it out to a separate file and work it into its own function. Then I shunt around the old code to make sure tests pass before deleting it. In a day I might create a dozen of these new files. It looks like a transaction log if you squint at it. That's OK with the government as long no one tries to automate it. We still have IDEs, thank goodness, or we'd never be able to find the code to work on.

Pete prefers the "copy on write" approach. He tacks on a 6-letter random suffix each time he supersedes a file. Navin wouldn't stop editing files on the share drive. The manager tried to set it up so he would only have write permission on Tuesdays, but that backfired because he just used that day to nuke people's last week of work.

Tiny Bug Child
Sep 11, 2004

Avoid Symmetry, Allow Complexity, Introduce Terror
before the porn company got big i used a vim plugin to just auto-ftp stuff directly to the server whenever i saved it and version control was naming stuff "butt_gallery.old.php". tbh i kind of preferred it to git

ADINSX
Sep 9, 2003

Wanna run with my crew huh? Rule cyberspace and crunch numbers like I do?

please post butt_gallery.php

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde

Tiny Bug Child posted:

before the porn company got big i used a vim plugin to just auto-ftp stuff directly to the server whenever i saved it and version control was naming stuff "butt_gallery.old.php". tbh i kind of preferred it to git
how long did you keep the old files

polyester concept
Mar 29, 2017

Tiny Bug Child posted:

before the porn company got big i used a vim plugin to just auto-ftp stuff directly to the server whenever i saved it and version control was naming stuff "butt_gallery.old.php". tbh i kind of preferred it to git

i still do this for static sites that i've been maintaining for 10+ years

Bored Online
May 25, 2009

We don't need Rome telling us what to do.
sourcefile.java
sourcefile2.java
sourcefilelegit.java

Radio Paranoia
Jun 27, 2010

It is now safe to turn off your computer.
i'll just keep coding on the server like I normally do :downs:

Khym
Jun 11, 2002
I write code by myself forever and rsync it to the server. I never make mistakes so who needs the old files? Actually keep everything in one file. I publish code in tarballs on my irc channel and that's it. I am the version-control-less future.

Also everything is written in common lisp because gently caress you.

Mr SuperAwesome
Apr 6, 2011

im from the bad post police, and i'm afraid i have bad news
i'd covertly distribute usb sticks with the source code of git in

gently caress da police

Mr SuperAwesome
Apr 6, 2011

im from the bad post police, and i'm afraid i have bad news
actually im stealing this thread idea but %s/version control/encryption

Silver Alicorn
Mar 30, 2008

𝓪 𝓻𝓮𝓭 𝓹𝓪𝓷𝓭𝓪 𝓲𝓼 𝓪 𝓬𝓾𝓻𝓲𝓸𝓾𝓼 𝓼𝓸𝓻𝓽 𝓸𝓯 𝓬𝓻𝓮𝓪𝓽𝓾𝓻𝓮
mmm, how about no

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde
the new trend in software development offices is a full-length board of slots that hold cardboard slips containing the names of files. Anyone who wants to work on a file must take the slip first. Devs must "show their slips" in every morning status meeting.

to reduce contention, the new rule is that every file can contain only one function. predictably this leads to code going unfactored possibly forever

Gazpacho fucked around with this message at 18:29 on May 26, 2017

Tiny Bug Child
Sep 11, 2004

Avoid Symmetry, Allow Complexity, Introduce Terror

Gazpacho posted:

how long did you keep the old files

i just looked and some literally still exist

Cat Face Joe
Feb 20, 2005

goth vegan crossfit mom who vapes



this would not be a concern to me as i am not a computesman

Asymmetric POSTer
Aug 17, 2005

i dont understand how git works lol

Last Chance
Dec 31, 2004

index.php.OLD
index.php.OLD2
index.php.new1
index.php.FINALFORSURE

Khym
Jun 11, 2002

mishaq posted:

i dont understand how git works lol

easy dude it's just a DAG of repositories as designed by captain linux

ConanTheLibrarian
Aug 13, 2004


dis buch is late
Fallen Rib
my system is to duplicate the function im going to work on and comment out one copy

make the necessary changes to the other copy and move the commented out code below all the working stuff


all the history is in one convenient to search file!

dragon enthusiast
Jan 1, 2010
can you call IT and tell them the lock file broke again

MeruFM
Jul 27, 2010
we already have this in the office.

i see files like
script.new
script.new2
script.old
script.new.old

also get spammed by people trying to sudo in production servers

JewKiller 3000
Nov 28, 2006

by Lowtax
begin;
alter function foo rename to foo_old_20170526;
create function foo ...
commit;

qkkl
Jul 1, 2013

by FactsAreUseless
I would never delete code, and just add differently named functions that are copies of existing functions that differ by one line. Then I will add configuration options that specify which functions should be used and when. This way the functionality of the software can be changed on the fly with just a configuration change. No re-compiling or restarts required.

Last Chance
Dec 31, 2004

qkkl posted:

I would never delete code, and just add differently named functions that are copies of existing functions that differ by one line. Then I will add configuration options that specify which functions should be used and when. This way the functionality of the software can be changed on the fly with just a configuration change. No re-compiling or restarts required.

wow my eye actually twitched reading this gj

Shaggar
Apr 26, 2006

qkkl posted:

I would never delete code, and just add differently named functions that are copies of existing functions that differ by one line. Then I will add configuration options that specify which functions should be used and when. This way the functionality of the software can be changed on the fly with just a configuration change. No re-compiling or restarts required.

I think that's just javascript

JewKiller 3000
Nov 28, 2006

by Lowtax

qkkl posted:

I would never delete code, and just add differently named functions that are copies of existing functions that differ by one line. Then I will add configuration options that specify which functions should be used and when. This way the functionality of the software can be changed on the fly with just a configuration change. No re-compiling or restarts required.

this is actually a thing in cs research https://en.wikipedia.org/wiki/Dynamic_software_updating

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde
interesting link but what qkkl described is something much much worse

ConanTheLibrarian
Aug 13, 2004


dis buch is late
Fallen Rib

lol that theres a big formal page on something that is piss easy to do with an interpreted lang

Maximum Leader
Dec 5, 2014
just comment out old code nbd

French Canadian
Feb 23, 2004

Fluffy cat sensory experience
you say this like it's a hypothetical scenario

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

Tiny Bug Child posted:

i just looked and some literally still exist

if your gimmick doesn't preclude you from using functions, i bet some of those _old.php files include the only working copy of some functions and are actively in use

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde

qkkl posted:

I would never delete code, and just add differently named functions that are copies of existing functions that differ by one line. Then I will add configuration options that specify which functions should be used and when. This way the functionality of the software can be changed on the fly with just a configuration change. No re-compiling or restarts required.
Sorry to break the theme but in my current job there was a particular function, the purpose of which was to map some user choice to any of several internal rule sets based on the current input. Every 6 months a new choice of mapping rules was proposed, in the form of "what we do now but ____" and that would also apply to future mapping rules. The implementing developer would add an if statement that checked if the user choice was in some defined set and also check some predicate on the input, and go down a different code path if so while leaving the existing code untouched.

After just three years of this, trying to reconstruct the code path that applied to a particular choice was hopeless and we were shipping bugs because of it. Finally I said, "yo, those blocks of code that we either execute or don't? those look kinda like subroutine calls " and refactored the whole mess accordingly.

Gazpacho fucked around with this message at 18:27 on May 27, 2017

Stymie
Jan 9, 2001

by LITERALLY AN ADMIN

Cat Face Joe posted:

this would not be a concern to me as i am not a computesman

same i have a real job op

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde

Stymie posted:

same i have a real job op
OK as long as it pays for your anime habit i guess

Adbot
ADBOT LOVES YOU

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

I've never used version control, op

  • Locked thread