Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for __blackjack__
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Answer | — |
A: Program freezing in `post_comments_to_lemmy` function due to potential infinite loop There is no infinite loop. If the dictionary is a string, it is simply skipped. If all dictionaries are strings, than all elements of the finite list are skipped, and the function returns without posting anything. So either the program hangs in the `postcommenttolemmy()` function, that we don't ... (more) |
— | 10 months ago |
Answer | — |
A: Generating nested repeating values with JSON Generator Instead of nesting this in another loop, you could simply calculate the value of `"code"` from the value of `index()`. It's the remainder of the division by 25: ```json [ '{{repeat(100)}}', { "id": "{{index()}}", "name": "{{random('long', 'string', 'with', 'name', 'values')}}... (more) |
— | 11 months ago |
Answer | — |
A: Why are commas not needed for modulo string formatting when printing? It is, as you said, an operator so it doesn't make any sense to place a comma somewhere between the operator and the two operands. The first operand is the template string, and the second operand is the tuple with the values to format into the template string. The `print()` function gets one argume... (more) |
— | about 1 year ago |