Per-Developer vs Per-Usage Subscription
1. What is KSLOC?
2. What is the difference between Per-Usage and Per-Developer licensing?
Per-Usage licensing means that you are purchasing one subscription which can be shared by many repositories. The price depends on the number of Source Lines Of Code (SLOC) to which you apply PostSharp. So you can get started by adding PostSharp to a large team and project without the initial high investment.
You can have unlimited number of developer working with the license, as long as the size of the code to which you apply PostSharp does not exceed the number of KSLOC you purchased. If that happens, you can purchase additional number of KSLOC at anytime.
Check below to find out how many KSLOC you should buy.
Per-Developer licensing means that the subscription is bought for one or more users. There are no limits to the number of KSLOC.
3. Which type of licensing is the best for my team?
- There are a lot of developers on your team but you want to start using PostSharp on a small project or component.
- Your team wants to build a component using PostSharp that other people will use, and you don’t want them to have a PostSharp license.
- You want to start small as you cannot estimate how big your project will become.
- You are not sure how many developers in the team will be using PostSharp.
- You are just starting with PostSharp and you don’t want to have big commitment until you test it works for you.
- You have fixed or predictable number of developers who are going to build code enhanced by PostSharp.
- Your company has strong privacy and security requirements and cloud-based licensing is not acceptable for you.
- Your company is simply more comfortable with a traditional per-developer licensing model.
4. I want to buy Per-Usage subscription, how many KSLOC should I buy?
- Download and run PostSharp SLOC Counter. PostSharp counts 1 line per declaration and per debugging step.
- Apply the usage factor. Customers typically add aspects to 10-20% of their code, except for logging, where this factor can be 100%.
- Remove 1000. Every subscription comes with 1 KSLOC for free.
Example. You have a solution Foo.sln where Visual Studio Code Metrics compute 18 KSLOC. Using PostSharp SLOC Counter, you figure out that PostSharp sees only 10 KSLOC (that’s fine, the rest are probably comments, namespace statements, and so on). You’re likely to add aspects to 20% of this code, that’s 2 KSLOC. 1 comes for free, so you need to purchase 1.
Don’t worry if you get it wrong. You can increase your usage at any time without penalty.
5. I want to buy Per-Developer subscription, how do I know how many seats I need?