News for hackers. Stuff that matters.
Re:GitHub Actions is my new favorite free programming tool [... by ccleve on Thursday December 19, 2019 @01:55PM (#21837957)
I have spent the last two days fighting with these new Github tools. I've been trying to do a simple Hello-World Maven app, built on Github Actions and deployed to Github Packages. It does not work.

Github documentation is a disaster. They leave out critical parts. They don't provide examples. Everything they write is terse, confusing, and incomplete.

They have short little articles on how to do things, and for each sub-task they have a link to docs somewhere else. This would be fine, except the links don't point to anything useful.

To give an example: they say you can use the Github API to talk to Github Packages, but the link goes to their generic GraphQL documentation. They don't point to any reference material on the actual calls to the packages service. If it exists, I can't find it.

If you go to the main page in your account for Github Packages, it says that all you have to do is this:

mvn deploy -Dregistry=https://maven.pkg.github.com/mycompany -Dtoken=GH_TOKEN

That is just straight-out wrong. It does not work.

Seriously, Github, you need to fire your documentation team and hire some people who know how to write. Perhaps you should hire people who have actually used your tools to write the docs. Or just provide some freakin' working examples.

Re:GitHub Actions is my new favorite free programming tool [... by clarkbw on Thursday December 19, 2019 @06:00PM (#21840164)
Sorry you've been fighting this. We're actively working on the documentation as well as improving the setup workflows for Actions which should alleviate lots of this pain.

Those one line snippets are likely going to be taken down, most systems are too complicated for those to work. It looks nice for a couple package systems but that Maven one is obviously flawed.

I'd be happy to help you dig through whatever you're trying to do; I'm @clarkbw on twitter. I'd also love another set of eyes on the changes to the setup-java action, specifically getting Maven authentication to work well.

https://github.com/actions/setup-java/pull/29

(I'm the PM heading up the Packages project at GitHub)

Re:GitHub Actions is my new favorite free programming tool [... by nmerz on Friday December 20, 2019 @06:10AM (#21843241)
I am fighting with packages, too. My desire to move a package to another repo still is unanswered. No help via forum or my support requests.

https://github.community/t5/How-to-use-Git-and-GitHub/Move-N...

Re:GitHub Actions is my new favorite free programming tool [... by sniuff on Friday December 20, 2019 @08:01AM (#21843814)
They cannot move packages. They were able to delete packages in one repository and we were able to push to a new repository. The support responded every day US time.
Re:GitHub Actions is my new favorite free programming tool [... by mehrdadn on Thursday December 19, 2019 @11:39PM (#21841747)
Hi there! Could I also ask for some documentation on the proper way to get a Windows CI system that has popular software (like Clang, MSYS2, etc.)? I know you can install these via NuGet, but it has a habit of failing a ton randomly (503 server error or other random stuff) and having to install each tool on every build slows things down a ton. I assume there must exist images that already have these? (This has been a mystery for me to figure out. I don't know if it's relevant, but I'm not a Docker user.)
Re:GitHub Actions is my new favorite free programming tool [... by jhasse on Friday December 20, 2019 @06:46AM (#21843409)
wxFormBuilder uses GitHub Actions for its MSYS2 Windows build: https://github.com/wxFormBuilder/wxFormBuilder/tree/master/....
Re:GitHub Actions is my new favorite free programming tool [... by mehrdadn on Friday December 20, 2019 @07:07AM (#21843519)
Oh man, I forgot I tried numworks/setup-msys2 earlier but I ran into some issue. I think my IP address was blocked or something for some bizarre reason (I wasn't doing anything funny...), but I'll give it a shot again, thanks.
Re:GitHub Actions is my new favorite free programming tool [... by ComputerGuru on Thursday December 19, 2019 @02:14PM (#21838187)
I am with you on this. It seems to be a new trend: “show users how to do a hello world” which was disregarded in the past... but somehow that turned into “instead of providing real documentation” rather than “in addition to.”

It’s not just GitHub. There’s a language I (and the rest of HN) love that has adopted “story format” for documentation but is missing real, hard technical documentation apart from method-level codedocs. It’s nice for building momentum but it leaves you unable to find a central location with an architectural documentation of the system.

Re:GitHub Actions is my new favorite free programming tool [... by ReidZB on Thursday December 19, 2019 @02:45PM (#21838473)
I read an article[0] on HN[1] recently — it talks about the different types of documentation. To quote it directly:

"Documentation needs to include and be structured around its four different functions: tutorials, how-to guides, explanation and technical reference. Each of them requires a distinct mode of writing. People working with software need these four different kinds of documentation at different times, in different circumstances - so software usually needs them all."

I agreed with its premise — I've found things that only have "story format" docs (i.e. explanation / how-to guides) to be really frustrating. On the other hand, if all that's available is a deep and highly particular technical reference, it's really difficult to get started sometimes.

[0] https://www.divio.com/blog/documentation/

[1] https://news.ycombinator.com/item?id=21289832

Re:GitHub Actions is my new favorite free programming tool [... by Wowfunhappy on Thursday December 19, 2019 @03:10PM (#21838736)
What is the difference between a tutorial and a how-to guide?
Re:GitHub Actions is my new favorite free programming tool [... by keithnz on Thursday December 19, 2019 @04:44PM (#21839644)
if you read the link he gave, it has a really good description of each...

but to summarize...

A tutorial: - is learning-oriented - allows the newcomer to get started - is a lesson

A how-to guide: - is goal-oriented - shows how to solve a specific problem - is a series of steps

Re:GitHub Actions is my new favorite free programming tool [... by Already__Taken on Friday December 20, 2019 @06:53AM (#21843455)
And as an example, Don't list how to install node.js, npm packages and ENV settings in your HAPI server tutorial
Re:GitHub Actions is my new favorite free programming tool [... by jwhitlark on Thursday December 19, 2019 @03:18PM (#21838793)
Level of previous knowledge assumed, tutorials tend to be more "starting from zero", and scope, guides tend to have a narrower focus.
Re:GitHub Actions is my new favorite free programming tool [... by 77544cec on Thursday December 19, 2019 @04:51PM (#21839689)
A tutorial is to an integration test what a how-to guide is to a unit test.
Re:GitHub Actions is my new favorite free programming tool [... by tartoran on Thursday December 19, 2019 @11:07PM (#21841645)
Think of how tos as recipes for different scenarios
Re:GitHub Actions is my new favorite free programming tool [... by ben_jones on Thursday December 19, 2019 @02:17PM (#21838210)
Someone please tell the Google Cloud Platform teams this. So many hello world examples which reek of, "I was told to write documentation but I really hate writing documentation". I mean this in good faith, I think writing documentation for a product you don't actually use is a miserable experience and I hope they can find a better balance...

Writing documentation also seems to be a task you kick out to your junior developers that you'd rather not give more critical assignments to, which is backwards as can be.

Re:GitHub Actions is my new favorite free programming tool [... by whoisjuan on Thursday December 19, 2019 @04:39PM (#21839608)
If there's one documentation that I hate with my gut, that is GCP documentation. Like wtf is going on there. Just to give you an example of how horrible it is, just check their Vision documentation: https://cloud.google.com/vision/docs/

They have quick starts, tutorials and how-to-guides. How are even those things conceptually different at all?. And their reference is just a list of their methods like if I knew out of the box how to use your API. Like, what the heck. Just tell me how to talk to your API in simple terms. How hard is it?

"To use the CGP vision API there are two ways to authenticate and connect. 1) REST 2) SDKS" and then just explain to me how to do it simply.

Don't ramble like if this was the fucking Iliad. Go straight to the point and organize your information better.

Re:GitHub Actions is my new favorite free programming tool [... by nullspace on Thursday December 19, 2019 @05:24PM (#21839913)
It's possible that I'm jaded by non-existing documentation, but skimming over the docs in your link, this actually looks like an example of good documentation*

The API reference in particular you pointed to has a top-level description + linkable reference to each individual method / resource along with brief description. AND, for older versions, as well as a description of "objects" used in the API. I guess it would have been nice to also have a sandbox playground, like some of their other APIs do, but this one is fairly good?

Just curious, what's an example of great API in your mind?

*(possibly not in-depth enough, but I wouldn't be able to tell as a newbie).

Re:GitHub Actions is my new favorite free programming tool [... by styfle on Thursday December 19, 2019 @10:38PM (#21841549)
In this case, google cloud vision, it seems like the docs are fine. It’s the platform that’s confusing because it requires too much ceremony to get started.
Re:GitHub Actions is my new favorite free programming tool [... by chenhan on Thursday December 19, 2019 @10:23PM (#21841499)
GCP documentation is the worst I have come across so far. The GCP documentation seems to have multiple personalities. It is as if the different parts of the documentation were written by different teams in different corners of the company.

I have to often disregard the documentation and get into the gcloud (their Python-based CLI and API) to understand what the heck is going on and their CLI/API code is no good either. Layers and layers of abstraction in their code only to make some REST API calls. The amount of over-engineering and abstraction that is present in their Python code would put even Java SimpleBeanFactoryAwareAspectInstanceFactory developers to shame.

Re:GitHub Actions is my new favorite free programming tool [... by z3t4 on Friday December 20, 2019 @04:19AM (#21842735)
It's not their documentation that is bad, it's the architecture. Too many layers, and things glued together. Where you need to make additional abstractions just to make sense of it all, ending up with a million LOC just to copy something from A to B.

For example integrating support for Google Drive took months, where I ended up using a third party solution, and users are met with a big red warning about my app now being unknown. And the file system is laggy. Compared to integrating Dropbox which took three days and just works. Google Drive probably have thousands of pages of documentation. While Dropbox have one or two.

Re:GitHub Actions is my new favorite free programming tool [... by exikyut on Saturday December 21, 2019 @11:44AM (#21852031)
It's a moat.
Re:GitHub Actions is my new favorite free programming tool [... by shantly on Thursday December 19, 2019 @03:45PM (#21839065)
Android docs feel the same way, with a side of "eh, just make the interns do it".
Re:GitHub Actions is my new favorite free programming tool [... by te_chris on Thursday December 19, 2019 @02:40PM (#21838433)
Oh god yes, so frustrating
Re:GitHub Actions is my new favorite free programming tool [... by BurningFrog on Thursday December 19, 2019 @09:12PM (#21841213)
Being fairly new to Python the "story format" of the documentation is one of the most frustrating things.

"This package is really good. Here is an example. This feature is cool! This other feature solves a common problem. Here is a list of some of the functions."

Re:GitHub Actions is my new favorite free programming tool [... by nl on Friday December 20, 2019 @05:41AM (#21843109)
I agree with this.

I haven't done any substantial Java work in probably 8 years and I still miss the JDK docs.

Re:GitHub Actions is my new favorite free programming tool [... by paranoidrobot on Friday December 20, 2019 @12:22AM (#21841893)
I'm hitting the same problem a lot with a bunch of things.

Concourse CI is the one I'm running up against this today - I'm taking over a partially built installation which has all sorts of hard-coded config environment variables that I'm trying to figure out their purpose.

Their documentation has basic getting-started stuff[1], but doesn't list all the config variables and their use. It's open source, so I cloned the repo, but they don't directly reference the environment variables there, either.

Compare that to, say, Ansible's documentation - it exhaustively lists all the options[2] and what they're used for, with links to other related documentation.

[1] https://concourse-ci.org/concourse-web.html [2] https://docs.ansible.com/ansible/latest/reference_appendices...

Re:GitHub Actions is my new favorite free programming tool [... by vito on Friday December 20, 2019 @01:05AM (#21842015)
(Concourse co-creator/OSS lead here.)

Our CLI hasn't really aged well and that's something I'd like to address soon - probably going more in the direction of config files instead of flags/env vars. It'd be a lot easier to document with a proper schema. Thanks for the feedback and sorry the experience is still pretty rocky!

Re:GitHub Actions is my new favorite free programming tool [... by paranoidrobot on Friday December 20, 2019 @01:16AM (#21842052)
Awesome, thanks.

Honestly the whole application seems pretty good - but everything is focussed on more hello-world stuff, which is great for getting going on my machine - not so great for running it for real.

Whether you use environment vars or a config file, I don't mind - one benefit environment vars gives is that setting CONCOURSE_BIND_IP to the instance's IP is relatively simple, eg on AWS:

CONCOURSE_BIND_IP=$(curl http://169.254.169.254/latest/meta-data/local-ipv4)

If it's a config file then I need to update that before the application starts, which is more fiddling.

Re:GitHub Actions is my new favorite free programming tool [... by vito on Friday December 20, 2019 @01:42AM (#21842149)
Yeah that's a good point. There are definite trade-offs to going for only one or the other. If there's a nice way to support both without too much maintenance overhead, that'd be my preference. There are a few popular Go libraries which support that, like https://github.com/spf13/viper - which we'll probably consider switching to as part of a general CLI overhaul.

For a long time now we've been primarily focusing on the core design, concepts, and architecture at the expense of documentation and introductory material and outreach - we've never had a dedicated technical writer, so documentation is really best-effort. Now that the dust is settling on our roadmap I feel a lot more confident in increasing our focus on onboarding, operability, and developer/user experience in this coming year. :)

Re:GitHub Actions is my new favorite free programming tool [... by jpxw on Thursday December 19, 2019 @02:41PM (#21838445)
I assume you’re talking about Go here?
Re:GitHub Actions is my new favorite free programming tool [... by phodge on Thursday December 19, 2019 @04:30PM (#21839543)
Possibly Typescript. Try finding documentation for the bundled "Record" type. It seems you're supposed to just know how to use it already.
Re:GitHub Actions is my new favorite free programming tool [... by crooked-v on Thursday December 19, 2019 @04:45PM (#21839652)
Re:GitHub Actions is my new favorite free programming tool [... by STRiDEX on Thursday December 19, 2019 @06:42PM (#21840436)
I've heard the same typescript feedback from coworkers. Another commenter already linked to the official docs, I always link them to https://github.com/sindresorhus/type-fest#readme which has links and docs of the built in types and can be installed for more.
Re:GitHub Actions is my new favorite free programming tool [... by sli on Friday December 20, 2019 @01:06PM (#21846081)
I have yet to find a straight answer on how `declare` actually works in the Typescript docs. I had to go to Stack Overflow to learn what it's for.

The TS docs basically just say "use declare to declare [thing]" over and over, and it's only mentioned in the handbook on a page that doesn't seem to be listed in the handbook menu anywhere.[0] You have to search for it and wing it, because the search result for this just says "By Example." Notice that there is no article highlighted in the handbook menu on the left like there would be on any of the pages listed there.

[0]: https://www.typescriptlang.org/docs/handbook/declaration-fil...

Re:GitHub Actions is my new favorite free programming tool [... by toyg on Thursday December 19, 2019 @03:04PM (#21838668)
I wouldn't think so, docs in Go look very terse to me, not at all "story mode".

Maybe Rust or Clojure...?

Re:GitHub Actions is my new favorite free programming tool [... by shepmaster on Thursday December 19, 2019 @03:12PM (#21838753)
Rust has books [1] as well as the usual terse API docs [2], so that also seems unlikely.

[1]: https://doc.rust-lang.org/stable/book/

[2]: https://doc.rust-lang.org/std/

Re:GitHub Actions is my new favorite free programming tool [... by weberc2 on Thursday December 19, 2019 @03:07PM (#21838704)
Unless something has changed very recently, Go docs aren't story-format.
Re:GitHub Actions is my new favorite free programming tool [... by krick on Thursday December 19, 2019 @03:17PM (#21838785)
So, what's the language?
Re:GitHub Actions is my new favorite free programming tool [... by jrochkind1 on Thursday December 19, 2019 @06:08PM (#21840227)
I have had similar experiences with Github Actions docs, alas. Lots of pages linking to lots of other pages, none with much useful content. Keep thinking the content that will actually explain what the heck is going on is around the corner... then I realize I've wound up linked back to a page that was already in my history! Wasn't sure if the docs were assuming some kind of domain knowledge I didn't have (like maybe if I knew docker better, or had experience with circleci or something?) -- kind of reassured to hear it's not just me!

I haven't really tried to do anything with Github Actions, I start looking at the docs and think, nah, not ready yet.

It does seem like a powerful tool.

It turns out that good docs is hard and "expensive", can't be handled as an afterthought without actually investing time/resources. A powerful complex tool that took a while to develop is gonna need a similar significant investment in docs.

Re:GitHub Actions is my new favorite free programming tool [... by ethomson on Thursday December 19, 2019 @05:35PM (#21840001)
Product Manager for GitHub Actions here. Sorry that this was difficult for you - we're continuing to work on our documentation for both GitHub Actions and Github Packages (and how to use them together) and we'll make sure that we improve this.

For my Java project, I set up GitHub Packages as a server in my settings.xml, and then use:

mvn deploy -Dgithub.username=${{github.actor}} -Dgithub.password=${{github.token}} -s settings.xml

as a step in my GitHub Actions workflow.

I'm not super familiar with maven, so I'll talk with the Packages team about how we can improve the documentation here.

Re:GitHub Actions is my new favorite free programming tool [... by SahAssar on Thursday December 19, 2019 @06:39PM (#21840419)
I've converted our teams CI/CD to use github actions (from mostly running on AWS) at a large company since early in the beta, but we have also run into a lot of issues. Where can I report these issues and get a real answer? I don't mind getting told that a certain feature is on the backburner, I just want to know that someone has considered it.
Re:GitHub Actions is my new favorite free programming tool [... by ethomson on Thursday December 19, 2019 @10:38PM (#21841547)
The best place to report issues or request features is https://github.community/. The Product and Support teams both visit that regularly.
Re:GitHub Actions is my new favorite free programming tool [... by stevehawk on Thursday December 19, 2019 @05:59PM (#21840153)
Y'all might be better served by just throwing out a chunk of what you have. When my customer said they wanted to have automated deployments of their webapp to AWS (where branch name = subdomain.dev.customer.com) it took me waaay too long to set it up. It seemed like a lot of your docs would provide examples that were already outdated based on the product being in beta. I assume they're still wrong though because I wrapped up the project 2 days before you left beta and I remember thinking "holy crap, they were that close to being live and the docs were still that bad?"
Re:GitHub Actions is my new favorite free programming tool [... by stevehawk on Thursday December 19, 2019 @05:56PM (#21840120)
> Github documentation is a disaster. They leave out critical parts. They don't provide examples. Everything they write is terse, confusing, and incomplete.

Agreed. A lot of times they seemed to use the ole "make a blog post about X and we'll call it documentation" strategy that a lot of others seem to be employing as well. The net result is useless documentation that is often outdated by the time a product is live. However, that doesn't change the fact that it's still the top search engine result for the topic or the de facto page many link to within their own actual 'documentation'.

Re:GitHub Actions is my new favorite free programming tool [... by hinkley on Friday December 20, 2019 @12:17AM (#21841873)
There’s a really stupid simple partial fix for this but it seems to be non obvious to a lot of people.

And that’s to watch a coworker who hasn’t used it before try to follow your docs. Try again, and then pick another coworker. By then it should be good enough for the majority to follow, and you take the rest of the questions as they come. Put the first draft out and you’ll be swamped with complaints.

Re:GitHub Actions is my new favorite free programming tool [... by TheFiend7 on Thursday December 19, 2019 @06:04PM (#21840195)
While I do agree with you, I've found often times a good ol blog post with an example connecting some dots can be very productive.

But I do agree with you that it's very from from being an alternative, and instead should be used to supplement healthy documentation.

Re:GitHub Actions is my new favorite free programming tool [... by stevehawk on Saturday December 21, 2019 @12:44PM (#21852354)
I agree with that. I know I have also grown particularly jaded because I've read so many useless blogs as everyone is trying to push out their own Medium articles so they can get that hot new FAANG job.
Re:GitHub Actions is my new favorite free programming tool [... by kwhat4 on Thursday December 19, 2019 @02:10PM (#21838152)
I have had the complete opposite experience. Github actions was far easier to setup and get running than AWS CodePipeline or Jenkins. I must admit, I have not gotten down to the nitty gritty API level documentation, but for simple building & testing, it has been a godsend.
Re:GitHub Actions is my new favorite free programming tool [... by ccleve on Thursday December 19, 2019 @02:13PM (#21838176)
I did, in fact, get the build server to work. Posting the resulting artifacts to Github Packages has been the big problem.
Re:GitHub Actions is my new favorite free programming tool [... by jillesvangurp on Friday December 20, 2019 @02:24AM (#21842275)
Sounds a bit harsh. I managed to get a simple gradle build going a few weeks ago with very little work. I say, simple, but it actually uses docker compose to spin up Elasticsearch to run some integration tests (using the gradle docker compose plugin). This was shockingly easy and required no extra work since their ubuntu context already has that pre-installed. So, use ubuntu, checkout code, add Java, configure some caching (optional, but it helps), run build: https://github.com/jillesvangurp/es-kotlin-wrapper-client/bl...

Given that you are using maven, which can be a bit fiddly, might it be the case that some of your issues are with your build? E.g. the way maven deploy works is very dependent on how you set up the pom file.

Re:GitHub Actions is my new favorite free programming tool [... by ccleve on Friday December 20, 2019 @11:08AM (#21845138)
My build worked ok. It was the integration with Github Packages that failed.
Re:GitHub Actions is my new favorite free programming tool [... by cheesedoodle on Thursday December 19, 2019 @07:33PM (#21840754)
I agree! I'm trying to migrate an OSS project from circleci to GitHub Actions but fail configure probably one of the most common actions there is: build a (cmake/c++) project inside a custom docker image. There should be a an clear and concise example of this. Even a migration example would actually be expected if GitHub wants to quickly convert users from X service to their CI.
Re:GitHub Actions is my new favorite free programming tool [... by tracker1 on Thursday December 19, 2019 @02:30PM (#21838343)
It's kind of ugly, but I spend a bit of time using some node scripts to orchestrate a scheduled "nightly" build of an application package that does some relatively funky stuff. See the .github/workflows and scripts/ areas... again, it's hacky. Was trying to do something that wasn't very well documented by example strictly speaking.

You can probably use another scripting language to use the github interface.

https://github.com/bbs-io/syncterm-windows

Aside, you need to pass your github token in as part of your workflow config.

https://github.com/bbs-io/syncterm-windows/blob/master/.gith...

Re:GitHub Actions is my new favorite free programming tool [... by dawnerd on Friday December 20, 2019 @12:41AM (#21841956)
My gripe with actions was the big refactor/change they made so all the old examples and apps which show up in search are wrong now.

There's also a lot of things you should be able to do but are not apparent or clear - and yeah the documentation is a disaster

Re:GitHub Actions is my new favorite free programming tool [... by xtracto on Thursday December 19, 2019 @08:35PM (#21841047)
I did not get very far... I use Gitlab for personal projects and love their CI/CD process ... In my company we are using Github and were excited to start using these tools for CI/CD. But when I tried to do a simple CI action that took the code in the repo and ran npm install && npm test (simple .gitlab_ci.yml on gitlab) I could not find heads or tails on how to do it... wasn't clear if it was possible with Actions or if I need a third party like CircleCi or aws or what...
Re:GitHub Actions is my new favorite free programming tool [... by aassddffasdf on Thursday December 19, 2019 @02:17PM (#21838211)
Umm, GraphQL is a reflective API-- use 'introspection': https://graphql.org/learn/introspection/
Re:GitHub Actions is my new favorite free programming tool [... by munk-a on Thursday December 19, 2019 @06:12PM (#21840255)
This same sort of introspection and auto-discovery was an original tenant of REST that's mostly ignored these days and I'm happy for that - I've never seen this sort of thing work well because it assuming you're able to translate data points into unambiguous identifiers. So the company object has a name object, I might assume that's the name of the company, but what if it's the registration number of the company - does it include legal suffixes? Maybe it's the name of the majority owner and this company object is related to the stock market. Let's take a more fun example, some sort of grocery service that lists "price" does price include tax? Is it in USD? Is the price in dollars or cents? Are all prices in the same currency? Is the price the cost to the end user or the cost to fulfill inventory on a unit basis? Does the price include discounts - if there is a "price" and "sale_percentage" column then has the sale percentage already been applied - how does that sale_percentage work, is .2 for sale_percentage mean there is a 20% or 80% discount - considering it was built by programmers it'd probably mean an 80% discount but that's not what a layman would assume.

Introspection is not valid in place of documentation.

Re:GitHub Actions is my new favorite free programming tool [... by aassddffasdf on Monday December 23, 2019 @01:20PM (#21865714)
That all comes down to how well-designed the API is. Not all APIs are created equal but in the hands of a skilled designer, this functionality is priceless. Not only that but you can also look at the actual values to tease apart any meanings that seem ambiguous (but, once again, in the hands of a good designer those won't exist in the first place).
Re:GitHub Actions is my new favorite free programming tool [... by munk-a on Monday December 23, 2019 @02:45PM (#21866638)
I've seen a lot of "self-documenting" code in my time and it can be quite legible when starting in an organization that has good discipline... The issue is that there are always some weird edge cases and poorly named things that exist because "legacy" - in those cases a quick question should clear everything up, if you have access to someone in the know.

When it comes to APIs if you're eschewing documentation it's because (I hope) you are trying to minimize support costs and thus devs using the API won't have someone to ask questions of so those edge cases become mysterious and assumptions are made that may be wrong.

If you're designing an API that serves up items that may be on sale how would you name fields so that the price and possibly sale discount are unambiguous to read?

Re:GitHub Actions is my new favorite free programming tool [... by pc86 on Thursday December 19, 2019 @02:24PM (#21838274)
I don't think that's the point.
Re:GitHub Actions is my new favorite free programming tool [... by aassddffasdf on Monday December 23, 2019 @01:19PM (#21865702)
It's my point so what is your point?