News for hackers. Stuff that matters.
Re:A project with a single 11,000-line code file by formerly_proven on Sunday April 03, 2022 @05:49PM (#30901060)
It always seemed surprising to me how some of the big Oblivion and Skyrim mods would get by with fairly few bugs despite there being no way to have automated tests and some of them having 10k lines of scripting (or much more in some cases) spread around dozens or hundreds of quests (quests in the CE engine are not just the quests you as a player see, but also a huge number of invisible quests because quest state machines and associated scripting is how scripting works).
Re:A project with a single 11,000-line code file by theobeers on Sunday April 03, 2022 @06:19PM (#30901293)
I think it makes sense. Modders get a kind of obsessive testing from their communities (including themselves) that devs in most commercial contexts couldn’t dream of. Skyrim mods are, if anything, correcting for bugs in the game.
Re:A project with a single 11,000-line code file by pnt12 on Monday April 04, 2022 @09:06AM (#30906165)
For a single modder, it may have to do with being a single developer, working on it over a long period of time and being a passion project.

For a while, I was the only developer working in a small module of a bigger project: I started the code base, discussed requirements with clients, implemented the needed features, tested the whole product end to end. I developed a very good instinct about it and about what any change would do, much better than any other project. My theory is that the code base matched my way of thinking, so thinking about it was pretty easy.

Re:A project with a single 11,000-line code file by smaudet on Monday April 04, 2022 @01:56PM (#30909823)
Fewer (in charge) developers makes for a more stable product - even open source products fair better when they have a long term maintainer versus ownership changes frequently.

The other thing is style - when used well, state machines don't require testing. There's nothing to test - either your machine works or it doesn't, there is no point testing state transitions because that is the fundamental job of the state machine. You may as well test that addition works.

Ofc, they must be used well - problems may be difficult or overly complex to model as a state machine or even set of state machines - the pattern excels for small problems, less for large ones.

Re:A project with a single 11,000-line code file by MauroIksem on Monday April 04, 2022 @12:56PM (#30908963)
This description has been life the last 4 years.
Re:A project with a single 11,000-line code file by Breza on Tuesday April 12, 2022 @10:29AM (#31003228)
What are you working on?
Re:A project with a single 11,000-line code file by lenkite on Wednesday April 06, 2022 @04:58AM (#30929955)
I have observed that bugs tend to be introduced when you have more than one person working on a project. Single person projects have very low bugs especially if the coder is experienced and follows simplicity + structured programming.