XIO

xWire

Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.

Exercism - Latest topics

Latest topics

Failing tests due to invalid type?

Hi everyone! I’m getting an unexpected result when I submit my solution to the Armstrong Numbers exercise. When I run it locally on my machine, it seems to work fine, but some test are still failing and I don’t really understand why: is( is_armstrong_number(153), T, # True "Three-digit number that is an Armstrong number" ); # Failed test 'Three-digit number that is an Armstrong number' # at /mnt/exercism-iteration/t/armstrong-numbers.t line 28. # +-----+--------+-------+-----+ # | GOT | OP |…

Objective-C "transpose" exercise does not meet written spec

The instructions say: If the input has rows of different lengths, this is to be solved as follows: - Pad to the left with spaces. - Don’t pad to the right. I implemented this as written, and got a slew of error messages. After some painful research (just try to get lldb to display a multi-dimensional C array!) it turned out tests provided require that the input is always left-justified, and spaces at the end of the line of the transposed text are trimmed. 2 posts - 2 participants Read full topic

Adding a maintainer to the Roc track

Hi team, Could you please add @lukewilliamboswell (that’s both his Exercism and Github handle) to the Roc track maintainers, and remove @bsassoli ? Luke is one of the main Roc contributors, and he has been helping a lot on the Roc track too, so it would really be helpful if he could approve PRs (plus he’s in my time zone, so it would speed up approval of my PRs). Bernardino seems to have left the Roc community. GitHub Build software better, together GitHub is where people build software. More…

Bump to .NET 11?

F# is on .NET 10. Since VB is already on .NET 11 and C# has .NET 11 PRs drafted with minimal hiccups, I figured I could bump F# to .NET 11 as well. If nothing else, then students just need a single .NET SDK version for all three tracks. 1 post - 1 participant Read full topic

Deletion of my exercism and Jiki account

I want to delete my account on both exercism and Jiki. But I use the exercism account to log into Jiki. So the question is: if I deleted my exercism account would the one on Jiki get deleted as a result? Because on Jiki I can’t navigate on the screen to see if there is a delete option as the screen stays stuck on the side and it doesn’t let me scroll to check the other options. 1 post - 1 participant Read full topic

Yet another post on learning tracks

I feel a bit guilty about raising this, after being quite unreliable about pushing things through to completion (apologies again to the Kotlin and C maintainers). I was curious to see what was bubbling under the surface, so for all live tracks (not yet Sather) I made a count of how many concepts are merged on GitHub, and whether learning mode is enabled on the website. Even for live learning modes, this often over-estimates the number of concepts visible to students: they have to be paired with…

Linter launched!

When you submit a solution, Exercism will now run the gdlint tool and report findings. Some of those linter warnings might be too much and need disabling. Broadly speaking, I think the linter provides useful, valuable feedack. Let me know your thoughts! 1 post - 1 participant Read full topic

Add the "matrix" practice exercise?

Title: Add the “matrix” practice exercise? Hi! The “matrix” exercise (8 canonical cases) is in problem-specifications but not in the Bash track. I would like to add it. Proposed CLI: bash matrix.sh <matrix> {row|column} <index> The matrix is one string with newlines between rows and spaces between numbers. The tests pass it like $'1 2\n3 4'. The canonical property is the second argument, and the canonical index (1-based) is the third. The output is the numbers of that row or column on one line,…

Icon needs kebab-case

One of the website-icons is two_product_production_decision.svg, a factory with smoking chimneys. I would like to use it for a new concept exercise, but configlet lint requires kebab-case instead of snake_case. I propose renaming two_product_production_decision.svg to two-product-production-decision.svg Only the achived Z3 track used the icon, and it likewise would have needed kebab-case. 3 posts - 2 participants Read full topic

Binary-search: stub function signature doesn't match the tests

The Zig binary-search stub declares binarySearch with a usize target and a []const usize slice, but the tests call binarySearch(T, target, items) with a comptime element type (i4, u16, isize, etc.), so they don’t compile against the stub. Suggested stub signature: pub fn binarySearch(comptime T: type, target: T, items: []const T) ?usize Happy to open a PR for this if you’d like. I’ll wait for a go-ahead first. Zig 0.17.1 4 posts - 2 participants Read full topic

Game of Life test data formatting

The Game of Life exercise currently formats test data on a single line, for example: @test gameoflife([1 0 1; 1 0 1; 1 0 1]) == [0 0 0; 1 0 1; 0 0 0] but as we’re dealing with a matrix, it would be more convenient to see the matrix visually as a 2d matrix: matrix = [1 0 1 1 0 1 1 0 1] expected = [0 0 0 1 0 1 0 0 0] @test gameoflife(matrix) == expected 3 posts - 2 participants Read full topic

Exercise Test Suite Generator Templates

The Racket track recently added a JinJa2-based test suite generator (thanks Isaac!), and we’re currently writing exercise-specific templates for each practice exercise. To coordinate this effort, here’s a tracking table of what’s been done to date and what still needs to be done. Drafted Exercise Claimed accumulate allergies bank-account bowling circular-buffer clock diamond difference-of-squares dnd-character etl flower-field food-chain grade-school grains grep hello-world high-scores house…

[Feature request]enable spellcheck on text boxes

I don’t know how any of these works, but usually on generic html text boxes, I can enable & use my web browser’s (Mozilla Firefox) spell check with a right click, like so: …but on a typical exercism text input field (e.g. mentor/mentee chat, comments, etc.) this option vanished completely As an ESL goblin who can’t help misspelling every third word, to be able to see and automatically correct typos in my text would be a huge QoL improvement. (despite admitting I have no idea what’s going on…

Exercise specifications, or lack thereof

Hi all. For a bit of context, I am an experienced programmer, but fairly new to the Exercism platform. To get a feel for the place I joined the tracks for some languages I already know reasonably well, and have been working through some of the exercises. One thing I noticed immediately in the Bash track is the lack of a detailed specification for each exercise. It appears they only consist of the generic template text used by all tracks for that exercise. Now, with the C track, for example, the…

Syncing exercises whose canonical data doesn't fit the track's API

I’m bringing the Scala track’s practice exercises in line with problem-specifications (exercism/scala#488): the test suites are generated from the canonical data, and the code is written in Scala 3. Most exercises only need the missing cases added. A few don’t fit the track’s API, so I split them out into their own issues and checked how the Java and Kotlin tracks handled them. The guiding idea for these is to follow what is idiomatic in Scala, rather than copy the JVM neighbours one-to-one:…

Forth: test cases for definitions that use built-in words

I’d like to propose two new cases for the forth canonical data. I opened a PR for this before discussing it here, which was the wrong order, sorry. This thread is the proposal. The gap The suite checks that a definition keeps the meaning its words had when it was defined, but only when those words are user-defined: : foo 5 ; : bar foo ; : foo 6 ; bar foo → [5, 6] Nothing checks the same rule when the body uses a built-in word. A solution that expands user-defined words at definition time, but…

Feedback on examples given in learning exercise "Robot Revolution"

I just finished “Robot Revolution” on the Julia learning track, tasks 2-4 use in their examples the line orientmatrix = initialize([[-1,1],[1,0],[-1,-1]]); I spent quite a bit of time trying to figure out what the function initialize() is, suspecting some builtin function, a way to construct a matrix from a vector or something like that - it was only at the end after muddling through 2 and 3 with quite a bit of trial and error and ignoring the example in favour of the test data I realized it is…

Affine cipher: drop the markdown comment and atbash reference

Proposal: drop the comment and Atbash reference in the Affine Cipher markdown file. The comment was added as a “comment” by @kotp 5 years ago and doesn’t show up in the rendered HTML. - Although all monoalphabetic ciphers are weak, the affine cipher is much stronger than the Atbash cipher, because it has many more keys. - - [comment]: # ( monoalphabetic as spelled by Merriam-Webster, compare to polyalphabetic ) 6 posts - 3 participants Read full topic

Concept exercise test cases are huge

I’m working through the concept exercises, which has been a lot of fun, but there is one thing that I don’t like: the amount of test cases being used. With practice exercises, each test cases should introduce something new, not be a variant of an earlier test case. I found this is not always the case with concept exercises. Take the cater-waiter exercise, which has huge numbers of test cases, most of which are just there for exhaustiveness: tests | 29 54 5 88 1.8s 1. clean ingredients | 21 21…

Updating track to .NET 11

.NET Blog – 10 Nov 26 Announcing .NET 11 - .NET Blog .NET 11 is here with C# 15, faster developer tools, runtime and library improvements, and new capabilities for web, mobile, desktop, and AI apps. Upgrading the track to .NET 11 is pretty straightforward since VB doesn’t receive new language features so we’re frozen at Visual Basic 17.13. 5 posts - 2 participants Read full topic

Should grade-school follow the canonical contract?

The Scala grade-school exercise tests 7 cases, while problem-specifications has 20. The gap can’t be closed just by adding cases: the track’s School behaves differently from the spec. add returns Unit. The spec expects true when a student is enrolled and false when they are rejected (5 cases check this). Duplicates are accepted. The spec rejects a student added twice, whether to the same grade or to another one. Today grade(2) can return Vector(Blair, James, James, Paul). grade(n) keeps…

How should series report invalid input?

The Scala series exercise tests 3 of the 11 canonical cases. Five of the missing ones are error cases, and the exercise has no way to report an error: input canonical Scala today slices(6, "12345") error: slice length cannot be greater than series length List() slices(0, "12345") error: slice length cannot be zero undefined slices(-1, "123") error: slice length cannot be negative undefined slices(1, "") error: series cannot be empty List() (the suite asserts this) Fixing this changes the…

Add a concept for Duration and Period

Problem The datetime concept covers LocalDate, LocalDateTime and formatting, but it does not cover amounts of time. Duration, Period and ChronoUnit.between() do not appear anywhere in the concept docs. The recently added beauty-salon-regulars exercise (#2944) also lists Duration and Period as out of scope. As a result, students who meet date arithmetic in practice exercises (gigasecond, swift-scheduling, ledger) either do the arithmetic by hand or run into the classic pitfalls of the API:…

Test failure in Assembly Line excercise

Hello everyone. I’m a noob just starting out on the jq track and i’m having problems understanding why my code won’t pass these tests in the “assembly line” exercise. I even went to community solution and tried copying the code of a published solution to see if it was a problem with my code, but even that solution (seen in the screenshot) gives the same error messages on all tests for the first task. For reference I’m doing everything in the online editor. Does anyone have any idea what is…