Re:Ask HN: What code samples should programmers read?
by nstart on Monday June 05, 2017 @09:38AM
(#14487479)
I had a fun one recently. Just the other day in fact. The elastic beanstalk cli from aws was refusing to accept my branches when I tried to refer to a code push from a codecommit repo. Turns out branches with / in it can't be used because it conflicts with the way the cli parses its parameters.
Basically it expects a parameter along the lines of
codecommit/RepoName/branchName
And then it splits the string and if there are more than 3 items as a result it returns from the function saying invalid value.
I had to correct it to use it myself but I found it fascinating since it suddenly made the somewhat mystical innards of aws seem a little more human. At least that's how I felt :D.
Basically it expects a parameter along the lines of
codecommit/RepoName/branchName
And then it splits the string and if there are more than 3 items as a result it returns from the function saying invalid value.
I had to correct it to use it myself but I found it fascinating since it suddenly made the somewhat mystical innards of aws seem a little more human. At least that's how I felt :D.