New answers tagged

0

I don't know the structure of your domain, or what other domain objects you have, but have you thought deeply about how you are structuring your code. At some level it makes sense that you or I could create a book. Creating a book isn't the same as publishing one. For example, I could write a memoir and never get it published. With that in mind, would it be ...


1

If the business requires that you store an additional field/column of data, then there are essentially three possibilities: You modify the code to require the new field but don't touch the old data. This effectively renders the existing data inaccessible which is not likely to be accepted by the business. You write the reading code such that it can handle ...


4

So do we need to increment the build number when the source code changes? No, you need to increment it when you build the application. Build numbers increment per build. That's why it's called a build number. Generally speaking, builds refer to compilations done by a dedicated build agent, and it does not include any local compilation a developer may do on ...


0

You increment the build number each time a different build is seen outside your computer. For example, if you give a new build to QA it you increase the build number. If you are an automatic build system, you increase the build number. Yes, if you change the compiler, you treat that as a change of your source code. The idea is that any two builds outside ...


4

In a typical setup, build numbers are used when you have a central server that builds your software (often as part of a Continuous Integration pipeline). Those builds are then done periodically and/or when a change in the repository is detected. In such a setup, the build number is provided by the build server and will increase for each build that the server ...


0

If you're using a VCS and don't mind linking versioning to it, maybe you can try something like this: // build.gradle.kts - root project subprojects.forEach { val foo = `java.io`.ByteArrayOutputStream() exec { commandLine = listOf("git", "rev-list", "--abbrev-commit", "-1", "HEAD", "--", ...


-1

because you have multi-branches, each pipeline in each branch increment individual. e.g: branch dev has 72 builds, beanch master includes 18 builds


3

the language considers String from "string 1.0" a different type from String from "string 1.1" Well, you found a major flow in the language you're designing. Types should be identified by their namespace. As soon as the namespace is kept unchanged between versions, a consumer would use string.String independently if the type is actually ...


Top 50 recent answers are included