I'm not sure how this relates to my response.
You stated "we can develop the exact same apps if we want". That is untrue.
These are inserted when you save a driver or app that include a library file, added at that point and left in the code as-is. The Library feature is a really great addition to the toolkit for developers, IMHO.
No, include files are not "added... and left in the code as-is". "Every code line is suffixed by something like "// library marker namespace.name, line #
".)" Just read the documentation (It's not documented, but it is mentioned in the forums, and I've tested it myself.)
he Library feature is a really great addition to the toolkit for developers, IMHO.
There are several shortcomings, and combined, I personally find includes to be worthless. First, the comments are not without issue. As pointed out to the devs, this prevents multiline code. I have a dictionary that is about 25 lines. It'd be absurd to do all of it in one line. So.... I'm supposed to copy it between apps, but then turn around and use includes?
Second, it has to be the first line of a file, which usually isn't a big deal, but rather defeats the point of shared libraries. I can't say I've checked if include files can include files, but not being able to control when/if files are loaded makes it not a true "library" system. You can't do a conditional include.
Third, you can't test if an include file exists. I haven't tested what happens if it doesn't, but... You can't do error control.
Fourth, the code is appended at the end. Again, probably not a big deal usually, but as per the first point, it should be whereever an include statement is placed. Third, the libraries aren't added with the code files, thereby making the libraries pretty useless, since they can't be installed with an app. At best you save a bit of copying pasting, and even that depends on how you manage code releases.
The last point leads to another issue with hubitat, which isn't a built in app installation system. End users must copy paste, or whatever. If there were some sort of package installer, then it would need to support coping include files.
It's great Hubitat released the otherwise internal functionality to us. But don't confuse the charity and sense of sharing with "promoting development".