same-encoder icon indicating copy to clipboard operation
same-encoder copied to clipboard

Multiple Region Codes

Open gabewehrle opened this issue 7 years ago • 3 comments

Added functionality for multiple region codes. See server.js example for syntax. I left some debug stuff behind. I'll remove that and upload a new version

gabewehrle avatar Jun 09 '18 16:06 gabewehrle

Cleaned up and reuploaded the files

gabewehrle avatar Jun 09 '18 16:06 gabewehrle

I appreciate the PR! But I can't merge it as is; the tests haven't been updated to account for the modified behavior, and are consequently failing. There are also no new tests to verify that the newly added behavior functions correctly.

I'm also curious what motivated the choice of semicolon-separated values on the region member. That seems like it'd be a headache to manage, compared to having region be (or be able to be) an array of objects, with each object representing a single region.

aaron-em avatar Jun 18 '18 18:06 aaron-em

That's alright! I just came across your project while looking online, and thought I'd add that functionality for myself, then realized I could upload it. I'm new to GitHub and the system you were using to build/run the code. I'm just a self taught java developer. I made the region member a separated list of values because it was the easiest thing for me to write. I wasn't sure how you were defining then accessing different elements, so I just wrote something quick and dirty in my spare time. I appreciate the reply! Sorry I didn't look into updating the tests.

Gabe

On Mon, Jun 18, 2018, 2:34 PM Aaron Miller [email protected] wrote:

I appreciate the PR! But I can't merge it as is; the tests haven't been updated to account for the modified behavior, and are consequently failing. There are also no new tests to verify that the newly added behavior functions correctly.

I'm also curious what motivated the choice of semicolon-separated values on the region member. That seems like it'd be a headache to manage, compared to having region be (or be able to be) an array of objects, with each object representing a single region.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aaron-em/same-encoder/pull/9#issuecomment-398152553, or mute the thread https://github.com/notifications/unsubscribe-auth/ASy-ARS2CkMecUtkKwd_BOAUF61jumNKks5t9_KwgaJpZM4UhZF9 .

gabewehrle avatar Jun 18 '18 19:06 gabewehrle