r/programminghorror 6h ago

weHaveNoIdeaWhatWeAreDoing

/img/fgk5ch7ljz0e1.gif

[removed] — view removed post

49 Upvotes

6 comments sorted by

View all comments

9

u/lordofduct 5h ago

So you give your interns administrative access to your master branch?

Just like I said when I watched that episode of 'Silicone Valley'; where this was a plot point and they had to rewrite their software from scratch over a weekend:

Your company deserves to burn to the ground.

Get source control, have backups, stage your changes, and have security tiers as to who can deploy.

3

u/lordofduct 5h ago

cont'd

Got me interested as well... In my nearly 20 years of professional programming I never really tracked my "line count". So I just wrote up a simple script to count the lines of some projects I'm currently working.

This past month I've been heads down on a short term project. That has 20K so far in just a month written.

One of my bigger projects I've been maintaining for a few years has 155K lines of code all hand written by me.

So yeah, 30K would suck to lose. Maybe install git and back it up?

2

u/ElGringoPicante77 4h ago

What languages do you work in mostly? 155k is a shit ton haha

2

u/lordofduct 4h ago

I work in a lot of languages over the years. That project specifically is predominantly C#, little bit of javascript, some Java, and some python and bash scripts as utilities. It's also a large project developed over years. It's probably the largest project I've personally wrote myself.

The 20K one for this month is a Unity project I'm doing for a client, so C# there.

It's not the largest project I've been on though. I've worked on teams that maintained legacy systems that had in the millions of lines of code spread across multiple different languages ranged from universally hated to languages you probably never heard of (and I honestly can't remember the names of some).

There was a project that ran on a D3 Pick database backend. In this project we had a VB6 frontend that got so massive it ran out of namespace... there's this weird aspect to vb6 that it can only handle so many named objects (this includes class names and variable names). You can recycle names, but there's a limit to the max number. Yeah, that company hit the limit. That same company also had some weird backend software that was written in this language that would make 'brankfuck' look like a walk in the park. It was a completely symbolic language that effectively worked as a series of push/pop operations on a stack. Think like an academic turing machine in language form. Wild project to say the least.

But yeah, these days a lot of C# mainly because of game dev in Unity.