-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework test-words into "test" namespace #102
Conversation
Putting it all in a namespace is a GREAT idea. Ron might even add it to the libs such that we could do I do like your naming ... until you get the the names of the actual tests themselves and then it gets all arcane and Perl-ish: I'm expecting Exercism to be around long after I'm dead. It'd be nice for subsequent maintenance programmers not to have to scratch deep furrows in their heads trying to work out what we've done. |
I am of two minds about this. More verbose names are easier to grok. On the other hand, students are expected to quickly learn words like
Terseness is built into the language. All that to say, I could go either way. |
@softmoth, care to jump in? |
I think I prefer the brief names. I feel a bit guilty about it, but not too much. The "test:maps-equal" name isn't sufficiently specific, as it doesn't mention the type of values being compared. Terse names make it less painful to spell out the specific types. But I like Perl, so my preferences may be biased. 😁 Tim |
I also like Perl. And others like SNOBOL4 and klong (the latter another hyper-terse language). For argument sake let's see if i can pull @ronaaron and @Caraciola into the discussion, otherwise we'll have to go to the other forum. |
Maybe explain to me what the notation means and I'll be more sympathetic. The < and > aren't saying less than and more than are they? |
Why not variations on |
Hello there; I much prefer the discussion be moved to the 8th forum, where a wider audience can give valuable input.
Best regards, |
Conversation may continue at https://8th-dev.com/forum/index.php/topic,2745.0.html |
I feel that we're getting close |
Looking good. I'm still not convinced that |
I intend to use Ron's utils/test and harness, and the type-agnostic equal? predicate. |
This latest commit will fail, this change to use the utils/test lib and harness.8th (as demonstrted on the forum) requires changes to the testing instructions EIGHTLIB=./libs 8th -f harness.8th or instructions to the student to copy the ./libs/utils/test file to their 8th installation (or provide the test lib to them in the installation instructions). This will be a large change to the track. I'd appreciate comments. The |
Yes I like the It is a large change but it brings us into line with what the vendor uses. And we're wanting people to take the skills they learn on Exercism into the outside world, so using vendor tools makes for a better outcome long-term. |
I am having second thoughts about it though. How long will it take for Also, if we distribute "utils/test" with the exercise, we have to tell people to set the EIGHTLIB environment variable for Windows and Mac and Linux. I'm circling back to our test_words.8th file, but with simplified testing words:
I like our test case output, colourized, with a summary of passed-skipped-failed |
The simplified test words look good. Given the present unknowns, and the time-cost of the changes, I'm happy for you to go ahead on the course you've just outlined. |
Looking back at your other questions:
|
Hmm, you have a high opinion of CLI users. I'm generally more of a "get it and forget it" guy, unless a package manager util tells me there's a new version available.
That's not my experience: 25.1 8th libraries, include files, and your code
|
@axtens @softmoth I think I've pounded it into a shape I'm content with. Let me know if I've chiseled away too much. Main takeaways
|
Regarding |
I swear, that wasn't working earlier... |
It looks great. That |
Following http://forum.exercism.org/t/pr-for-sieve-exercise/7500/7
This is a mostly-rewritten test-words file (for the sieve exercise).
It's got:
As I mentioned in the forum, the new word names may be too short for newbies.