r/SpecDrivenDevelopment • • 7d ago

Enterprise Applications

Who here is actually building business applications for companies?
I have the impression that most posts are from solo developers.

3 Upvotes

21 comments sorted by

2

u/scalorn 7d ago

I am using SDD to develop business applications. The biggest issue I see is a lack of what I consider a highly opinionated format, verification process, multiple developer processes, etc. I have been evolving out spec process as we go. Custom tooling, custom format, etc. Still lots of rough edges and I keep looking at what people have developed and always find rough edges I've already solved for my team of 4. I do find good ideas I absorb as well.

1

u/simasch 7d ago

I created the AI Unified Process https://unifiedprocess.ai
This is based on my 30 years working on business applications.

1

u/scalorn 5d ago

I'll dig into it. But first sniff makes me think more green field than brown field. Plenty of us old farts out there that have opinions :). Some of the things I have seen that don't pop out to me as addressed - Multiple developers. One of the things I kept running into was merge conflicts when multiple developers were editing specs. I solved it by shattering the spec into individual files. Each decision, open item, requirement, etc is a file with an id. i.e. REQ-0000001. Developers reserve ids for themselves - they can only conflict with themselves. You shouldn't edit a req, you should only supercede. This gives you a clear history of change over time. Full traceability - every line of code should trace back to the req(s) that generated it. If a req is superseded you automatically know you have to revisit this block of code to at least update the spec references, etc. Reqs should not override other reqs. Additive only. Constraints can limit where a set of reqs can apply to though. Think requirements around databases - DDB vs Oracle. Common requirements then constrained requirements specific to the database type. I'm not fully happy with what I have developed so far so not trying to push my version of SDD yet.

1

u/simasch 5d ago

Fair points, and I'm one of the old farts too (started with COBOL on the mainframe). 😉
Brownfield: You're right that the docs read greenfield. There is a reverse-engineering skill that pulls use cases and an entity model out of existing code, but I need to show that path better. Most of my customer work is actually modernization, so it matters to me.
Multiple developers: Partly solved, partly not. Use cases, test cases, ADRs and business processes are already one file per item, so two developers rarely touch the same file. But the requirements catalog and the open questions log are still single files, and that is exactly where conflicts happen. Your idea to reserve ID ranges per developer is simple and clever. I will steal that. 🙂
Supersede instead of edit: ADRs work like that (an ADR gets superseded, never changed). Requirements are still edited in place, and the history comes from Git. Release notes and change impact are built by comparing the specs against a Git tag. Your approach makes the history explicit in the spec itself, which is more robust. I see the cost in more files and more noise, but for a team it is probably worth it.
Traceability: Same goal. Code and tests carry UC/BR markers, and an impact analysis shows which use cases, rules and code a changed requirement touches. Linking every block straight to a REQ is finer-grained than what I do. I trace through the use case.
Constraints: There are constraints (C-xxx) in the catalog, but they are global. Using them to scope a set of requirements, like your DDB vs Oracle example, is a nice idea that I don't have.
Thanks for the detailed feedback. I'd be really interested to see your version when you're happy with it, even if it's rough. Feel free to DM me.

1

u/Iceon 5d ago

I have been working on this for the past year as well. And boy is it hard

1

u/AlternativeTurn9899 1d ago

do you mean that a single format to write specs and an established lifecycle around SDD does not exist yet? did you come across or even try anything that targets this problem? if so, could you share your experience?

1

u/scalorn 1d ago

In the end everything I found tackles aspects. Nothing I found I felt tackled the whole problem. To me it has to support brown field - existing applications evolving over years/decades. It has to support multiple developers in the system. It has to be very opinionated on format with tools to deterministically verify that what exists meets that format. It needs to fully trace from requirements to code and back. A piece of code that doesn't trace back to a requirement? error. A requirement where nothing traces to it? no code, no planned work, no open items or decisions around it? error. It should capture the major design decisions down to how your various layers are built. Top to bottom. I want a system to manage my stores inventory. Down to your using this kind of database, these are the table names, field names, indexes, access patterns, etc. We use a DTO/DAO layer that looks like this, etc. With AI this should be manageable. It covers everything. And when you want to change it you change it at the right level in the spec then regenerate/redesign what it impacts. All baked into the spec with the code falling out of it via small focused prompts to write the code. Think write this DTO class. Here are all the requirements for this class, the skeleton it should follow, etc. Nothing I have found comes close to covering the entire problem. I'm working from the bottom up currently trying to build a version of what I think it should be. No idea if my ideas will all work together. I see promise in it, but can't prove it yet.

1

u/0utkast_band 7d ago

It’s a very good question and a personal observation of mine, too. I am focused on improving teamwork around SDD. Did you have specific questions?

1

u/simasch 7d ago

No. I was just curious. I'm the creator of the AI Unified Process: https://unifiedprocess.ai
A SDD framework (not only) for business applications.

1

u/NorthNeedleworker818 1d ago

SDD is used by everyone in my org.

1

u/simasch 1d ago

And which SDD Tool are you using?

1

u/NorthNeedleworker818 1d ago

Bmad and openspec mostly

1

u/simasch 1d ago

What are your experiences with it? And how how do you treat requirements management and the specification process with the SMEs?

1

u/NorthNeedleworker818 1d ago

I am chief engineer at a fortune 250 company. I am very hands on experienced personally with the sdd toolkits. We handle requirements in various ways. It depends. Bmad prd’s are very useful.

1

u/simasch 1d ago

So you only cover the delivery process. Requirements engineering is not part of the process?

2

u/NorthNeedleworker818 1d ago

We dont use formal requirements engineering practices. Every team is a little different. We let them do their own thing. Even though it is a huge company... we are very informal. We just get stuff done. Our sme’s have been around for decades. So we have a lot of internal knowledge

1

u/simasch 1d ago

Thanks for the information. Did you also do reverse engineering into specs in existing systems?

2

u/NorthNeedleworker818 1d ago

We have some. I built a tool to do it that works pretty well. But our legacy code goes back 40 years so it is pretty hard. For lots of reasons… think of a product suite that has hundreds of c programs that rely on a proprietary ancient flat file btree database. Where hundreds of contactors have made changes to them over that time. It’s crazy stuff

2

u/NorthNeedleworker818 1d ago

And all that code was written hastily without any tests!

→ More replies