Would someone please explain the following error from the Observed PIN kata: "Failed to process output. It is possible that too much data was written to STDOUT."
I have removed all console.log statements. I am using a cache to improve performance. If the cache gets too large, could that cause this error?
Thanks in advance.
Other versions of the kata weren't written by me, and I guess the translators didn't bother to modify the description with language specific instructions.
Hey hencethus, I tried for a while to incorporate the "last" method into my Primes class without using the "Array.prototype.last = fuction() {}" syntax as you did bc I just assumed that the intention of the kata was to find a way to incorporate the "last" method into the Primes class itself. I finally noticed that the example tests were simply using the "slice" method, so I submitted my program without a "last" method.
Anyway, is there a way to chain a method (such as "last") to a static method of a class?
Thanks for the kata and the memoization practice. This was my first memoizatin program!
My suggestion: The "For example" section of your description implies that we need a "last" method by showing the code pasted below. However, neither the example tests nor the final tests require this method.
Hey ryanq214, the back-tick symbol and the $ are part of template literals. The following is from Mozilla's MDN site: "Template literals are enclosed by the back-tick () (grave accent) character instead of double or single quotes. Template literals can contain place holders. These are indicated by the Dollar sign and curly braces (${expression})."
Just Google "MDN template literals" and it should be your first hit. This is not my solution, but I hope this helps.
Hey appleJax, I got a clue from the instructions of another cipher kata I just completed. For the other kata, titled Simple Substitution Cipher Helper (6 kyu), which was also authored by jacobb (the person who designed this kata), the instructions state, "If a character provided is not in the opposing alphabet, simply leave it as be." After I read this, I was able to complete both katas. This probably qualifies as having spoiler content, so I hope you get to read it before it disappears. I'm new to programming, so this "leave the unrecognized alone" rule may be common to ciphers...I don't know.
My solution is also getting this error, I had no problems completing sample tests.
Would someone please explain the following error from the Observed PIN kata: "Failed to process output. It is possible that too much data was written to STDOUT."
I have removed all console.log statements. I am using a cache to improve performance. If the cache gets too large, could that cause this error?
Thanks in advance.
Would someone please explain the following error: "Failed to process output. It is possible that too much data was written to STDOUT."
I have removed all console.log statements. I am using a cache to improve performance. If the cache gets too large, could that cause this error?
Since Primes.first() returns an Array, I think that'd be pretty tricky.
Yeah, I wrote this kata for Ruby, in which
last
is a built in method of the Array class: https://ruby-doc.org/core-2.2.0/Array.html#method-i-lastOther versions of the kata weren't written by me, and I guess the translators didn't bother to modify the description with language specific instructions.
Hey hencethus, I tried for a while to incorporate the "last" method into my Primes class without using the "Array.prototype.last = fuction() {}" syntax as you did bc I just assumed that the intention of the kata was to find a way to incorporate the "last" method into the Primes class itself. I finally noticed that the example tests were simply using the "slice" method, so I submitted my program without a "last" method.
Anyway, is there a way to chain a method (such as "last") to a static method of a class?
Thanks for the kata and the memoization practice. This was my first memoizatin program!
My suggestion: The "For example" section of your description implies that we need a "last" method by showing the code pasted below. However, neither the example tests nor the final tests require this method.
Hey ryanq214, the back-tick symbol and the $ are part of template literals. The following is from Mozilla's MDN site: "Template literals are enclosed by the back-tick (
) (grave accent) character instead of double or single quotes. Template literals can contain place holders. These are indicated by the Dollar sign and curly braces (${expression})."
Just Google "MDN template literals" and it should be your first hit. This is not my solution, but I hope this helps.
Hey appleJax, I got a clue from the instructions of another cipher kata I just completed. For the other kata, titled Simple Substitution Cipher Helper (6 kyu), which was also authored by jacobb (the person who designed this kata), the instructions state, "If a character provided is not in the opposing alphabet, simply leave it as be." After I read this, I was able to complete both katas. This probably qualifies as having spoiler content, so I hope you get to read it before it disappears. I'm new to programming, so this "leave the unrecognized alone" rule may be common to ciphers...I don't know.
hmmm