14,586 karma · joined Oct 20, 2012 (14y ago) · 6,295 submissions
comment 14h ago · link · parent
If c++ added something like fstring’s or C#’s $ string then I would be able to use that functionality in my multi million line code base, and as a language feature the compiler can do more with it than it can do with a random function call.
comment 6d ago · link · parent
If I go on to the main retailers online and buy any PC hardware there’s an incredibly high likelihood it works with windows, and if I buy a peripheral it will work on a Mac. The reason that I don’t use Linux at home is because not using it entirely eliminates that problem from life
comment 1w ago · link · parent
My MacBook Pro “just works”, and has a terminal and a clear favourite package manager (homebrew) that means it doesn’t get in the way. It’s alive when I want to use it, I just open/close the lid. It shares clipboard and browser state between my phone and Mac even on different browsers (safari/firefox). I’ve bought one every 6 years (my last one being an M1 Mac which is still snappier than the 64 core 256GB workstation that I have at my desk in work). It’s also no more expensive than a matching spec XPS, or Samsung phone
comment 1w ago · link · parent
comment 1w ago · link · parent
Could you not shelve?
The only _real_ footgun that I hit on the semi regular is that if a changelist is only deleted files, getting the head revision number is slightly difficult. This also applies to an undo of an add. But this is only a problem for people scripting p4.
> If your architecture is siloed by contributor and you are using perforce’s limits instead of code reviews / pull requests to constrain your workflow
I’m not really sure what you mean here, sorry. P4 has had a “fine” review tool (swarm) for years and years - it’s on par with if not slightly better than the GH PR view. IDEs (well jetbrains at least) have excellent integrations that let you review in editor.
> But practically if you are engineered the way it sounds like you are, the reality is you probably would spend almost no time resolving merge conflicts.
By design git will have more merge(s). You force the resolution of the branches to merge time, and branches are mandatory. Deciding how you resolve that (merge vs rebase vs squash) is something that I don’t ever particularly want to have to explain to someone who just wants to update a small PR, but it’s effectively required to understand, and you require everyone who works on your project to understand the differences. My gut also says if I asked around the last team I worked with that used git, I’d get about 50% correct answers.
comment 1w ago · link · parent
A few years back, my project was about 2.5TB and had people checking in every 30 seconds or so, 24/5. It needs to be usable by artists so it needs to be dead simple. It also allows for workspace mappings so user A can have all the art, B can have the source and C can have both. With streams this is manageable from the server side too.
You can do “partial updates” so say folder A is at CL 123, and folder b is at 125. This lets you do nice things like have toolchains in one place, or view latest art in old code changes or vice versa.
It also has very solid permissions, support for sharing paths between projects (like submodules except they work). The centralised workflow suits most places that use it too.
Plus, realistically if you’re paying a salary of even $50k, $600/year for the most important tool is worth it.
comment 1w ago · link · parent
> Git’s issue is not that DVCS is bad. It’s just that P4 workflows work better for binaries
I think that git is a good DVCS, but that a DVCS is way overkill for most forms of software development. The complexity that is paid for that is paid by every single person who uses the tool. I don’t think it’s binaries, I think it’s the centralised workflow is just better for many/most teams. I can count on one hand the number of times I have worked with multiple remotes, or pulled from a teammate’s branch without going via a forge.
> Git LFS is tacked on, Git's locking support is crap, the culture of git is not to build helper plugins like P4 so no one does it
Could not agree more here.
> Distributing P4 to multiple offices is a pain in the ass and it really does need a lot of hardware to keep things going
Understatement of the decade! It’s an absolutely enormous, completely unfulfilling task. IIRC, we ran 3 edge servers and an extra pull through proxy at my last job for 100 people, and we spent about $6k/mo on the hardware alone on AWS.
comment 1w ago · link · parent
If you use git LFS, you turn git into a centralised vcs but still pay the pride for it being a dVCS. If you use a side channel, you’ve gone way off the deep end IMO.
P4 has many problems (not least the $1700/seat/year cost) but if you can stomach that plus having someone maintain it (which is a real job, and someone has to do it), I think it’s way more suitable for pretty much every company out there, particularly in games. It’s not purely the best, technically the best, designed for modern use, but it has the best failure modes. I could (and have) sit down with someone for 15 minutes with perforce and shown them what to do and probably have them go for 2 years without another question on it, even if they’re not a programmer. It’s excel if git is a relational database.
comment 1w ago · link · parent
I can count on one hand the number of times I’ve had to reconcile offline work in the last 18 months, which is the equivalent of every merge commit in git.
comment 1w ago · link · parent
I am an app developer. Our front end is a C++ application (a game), our backend is a dotnet application. We also have an admin portal. A single feature, including deployment touches C#, C++, JavaScript, opentofu, AWS, windows, Linux (maybe macOS), docker, MySQL, redis, caddy, git, bash, plus all of the libraries and individual tools they call through too. Every single one of those has its own quirks and sharp edges. If I spent my working hours (40h) knowing each of those tools to a professional level, I wouldn’t have enough time to work on the app.
comment 1w ago · link · parent
> if you know the test cases for your code
IME, most gameplay code is not tested, it’s done by feeling. Quick iteration cycles on feeling, is super important, and most of these sorts of projects have 30+ second boot times (way longer in the days of hard drives instead of SSDs)
comment 1w ago · link · parent
It’s just not possible to end up in that state with something like P4. My current company has >1000 people, most of whom are non-technical (artists, designers) pushing every day, and even when I worked at places with 30 people, the amount of time I spent training people on “click get latest revison, and double click to submit” was absolutely dwarfed by “I followed the git setup instructions but I can’t push my changes”
comment 1w ago · link · parent
I actually think git and the DVCS madness is a good example of complexity for the sake of complexity. Ending up in a detached head state through a seemingly normal series of commands, and then being able to continue working and have a very difficult resolution (compared to how you go there in the first place) that requires you to know how git works is a perfect example.
On the flip side, again in P4, you get latest and that’s it.
comment 1w ago · link · parent
I ended up emailing HR to get an answer, and I’m reasonably certain my employer pays workday 500k+ per year for me to not be able to use the damn thing.
comment 2w ago · link · parent
The articles point us mostly right but this isn’t new to the AI age.
> None of them could tell me the cost of a decision that got reversed six months later.
Absolutely everyone in a game studio knows that the cost of a bad decision scales with the number of people working in the project, and all the good leads know the decisions that are easy to revisit. There’s only two terminal decisions in a game project (IME - I’d love to know if there’s another). Not finding the fun, and scaling too early.
> Headcount grew from roughly 100 people in 2015 to around 400 by 2019
Skull and bones shipped in 2024. Pandemic notwithstanding, this checks the “scaled too early” box
comment 2w ago · link · parent
comment 2w ago · link · parent
comment 2w ago · link · parent
comment 2w ago · link · parent
There are plenty of software projects that are managed to an incredibly high standard professionally - OpenBSD, PostgreSQL, Curl all come to my mind pretty much immediately. Linux is probably the closest thing to "skyscraper" development and has been going for 35 years at this point.