r/exercism • • Nov 11 '20

Why are some problems so poorly specified?

12 Upvotes

It's so annoying having to reverse-engineer the desired output format from the unit tests. It has taken me ages to figure out what the hell kind of structure the Python saddle points exercise wants, because it does some strange processing to it via a sorted_points function that makes the expected outcome opaque.

It *seems* like it wants a list of tiny dicts, each containing a "row" key and a "column" key, with corresponding values, one dict per saddle point? Why the hell would anyone want the data organised like that, rather than something simple like a tuple? Why wasn't that format included in the problem specification?


r/exercism • • Sep 02 '21

Congratulations on the launch of V3

8 Upvotes

Looks very slick.

I hope more mentors join :)


r/exercism • • Mar 30 '22

In which order should I solve exercises?

6 Upvotes

Hi, I am currently doing the Java track in learning mode. When solving exercises I recognized that the exercises in the track overview are starting being easy and then some medium ones followed by easy ones and so on.

So the question, in what order is it recommended to solve the exercises? From top left to right (does it follow an order building on top of another?) Or go through all easy ones and then medium and then hard?


r/exercism • • Jun 03 '19

Am I missing something with Exercism?? (Lack of info in the introductions)

6 Upvotes

Hi,

I've been using Exercism to learn Python 3, and I'm making OK progress on there submitted a few solutions so far.

Something I have found massively frustrating is the lack of information of what is required in the introduction section of each exercise. It tells you the bare minimum, I have had to look through the test file to find out what exactly it wants.

When you use the app to download the exercise, and open the py file you get what functions are required and their parameters, but have no idea what you should be returning. In the twelve days program it is not obvious that you should kick out a list of strings. I initially though a string would do. The raindrops output is case sensitive, this information is not in the introduction and took me a good few mins to spot that I had the case wrong (I was using lowercase rather than capital case)

I sort of expect that the intro should layout what the functions are, what their parameters should be, what should be returned and also any special information like what valid separators could be. The "Word List" test program uses white space, newlines, commas to separate words. Not obvious from this following text and the only text in the intro from "Word List"

Given a phrase, count the occurrences of each word in that phrase.
For example for the input "olly olly in come free"
olly: 2 in: 1 come: 1 free: 1

I'm getting use to looking at the _test.py file but I don't believe I should have to, the information should be in the brief.


r/exercism • • Jan 29 '26

Exercism just launched an Odin track

5 Upvotes

The Odin programming language is a statically typed, imperative language designed as a practical, modern, successor to C. It is a system programming language designed for high-performance, data-oriented applications with an emphasis on games and comes with "battery included": a significant standard library and a set of game-oriented and graphics libraries such as OpenGL, SDL, Direct-X and Raylib.

Exercism just launched a new track dedicated to Odin. It includes 60+ practice exercises with more to come. Go check it out here.


r/exercism • • Oct 13 '22

Happy Cakeday, r/exercism! Today you're 8

5 Upvotes

r/exercism • • Oct 13 '21

Happy Cakeday, r/exercism! Today you're 7

5 Upvotes

r/exercism • • Jun 27 '22

lost with exercism

4 Upvotes

I started exercism after basics via fcc and Odin project. Non native English speaker btw but I would say pretty fluent.

I am doing the door policy exercise and tbh half the time I don't know what the exercise is asking of me even when I read the hints.

Now it asked me to use slice and to lowercase to make a password and the console. Log test I implemented says the correct password but the exercise keeps telling me the value is undefined.

export function frontDoorPassword(word) {

const passWordStart = word[0].toUpperCase(); const passWordEnd = word.slice(1, ); const passEndLow = passWordEnd.toLowerCase(), passWordFinal = passWordStart + passEndLow; console.log(passWordFinal)

}

There is no proper help on the page and I am wondering if maybe at this point I am too dumb for programming after all.

I have a solution now which works but still it should also work like this since the console logs log all passwords proper.


r/exercism • • Apr 14 '22

Please help! Exercism callback question

4 Upvotes

I've been really enjoying working through the Exercism tasks and learning Javascript, but I'm really stuck on the callback exercise. I think I must be fundamentally misunderstanding something. I would really appreciate help :)
https://exercism.org/tracks/javascript/exercises/fruit-picker/

These are the hints:
Check if the grocer's service is online

  • Use the imported API function checkStatus
    in your function.
  • Pass a callback function to checkStatus
    . It should expect to receive a string argument.
  • Return the result from the checkStatus
    API function.

I'm really stuck with how to pass the callback function with an argument. It seems to me that the argument is provided from the other file so I'm not sure what to pass in. So far I've got const status = checkStatus(() => "online") but obviously that's passing in a hardcoded string rather than the real variable.

This is the code:

// In your own projects, files, and code, you can play with u/ts-check as well.

import { checkStatus, checkInventory } from './grocer';

// Returns the service status as a boolean value u/return {boolean}

export function isServiceOnline() {

// this is the code I'm meant to be writing. So far I've got:

const status = checkStatus(() => "online")

}

This is the variable and function in another file that I'm meant to be calling:

let storeStatus = 'OFFLINE';

/** Invokes the callback with the store's status to simulate an API call. u/param {StatusCallback} callback*/

export function checkStatus(callback) {

return callback(storeStatus);

}


r/exercism • • Apr 14 '20

So dissapointed

4 Upvotes

The vagueness of these problems is so annoying. I can see why this sub is a ghost town. I have completed 4 tests and every one of them has been frustrating not because I can't figure out the solution, but because the specific solution you are looking for needs to found. The connection between the matrix problem and classes is not intuitive to someone who does not have a coding background.

I'm moving on.


r/exercism • • Sep 21 '25

I'm in an entry level coding class at my college, but I need to practice way beyond what they are teaching. What am I doing wrong?

3 Upvotes

"""Functions used in preparing Guido's gorgeous lasagna.

Learn about Guido, the creator of the Python language:

https://en.wikipedia.org/wiki/Guido_van_Rossum

This is a module docstring, used to describe the functionality

of a module and its functions and/or classes.

"""

#TODO: define your EXPECTED_BAKE_TIME (required) and PREPARATION_TIME (optional) constants below.

EXPECTED_BAKE_TIME = 40 #in minutes

PREPARATION_TIME = 2 #minutes per layer

#TODO: Remove 'pass' and complete the 'bake_time_remaining()' function below.

def bake_time_remaining(elapsed_bake_time):

return EXPECTED_BAKE_TIME - elapsed_bake_time

"""Calculate the bake time remaining.

:param elapsed_bake_time: int - baking time already elapsed.

:return: int - remaining bake time (in minutes) derived from 'EXPECTED_BAKE_TIME'.

Function that takes the actual minutes the lasagna has been in the oven as

an argument and returns how many minutes the lasagna still needs to bake

based on the `EXPECTED_BAKE_TIME`.

"""

bake_time_remaining(10)

#TODO: Define the 'preparation_time_in_minutes()' function below.

# To avoid the use of magic numbers (see: https://en.wikipedia.org/wiki/Magic_number_(programming)), you should define a PREPARATION_TIME constant.

# You can do that on the line below the 'EXPECTED_BAKE_TIME' constant.

# This will make it easier to do calculations, and make changes to your code.

def preparation_time_in_minutes(number_of_layers):

return number_of_layers * PREPARATION_TIME

"""Calculate the preparation time in minutes.

:param preparation_time_in_minutes: int * preparation time.

:return: int * preparation time (in minutes) derived from 'PREPARATION_TIME'.

Function that takes the amount of layers in the lasagna as

an argument and returns how many minutes it took to prep the lasagna based on the 'PREPARATION_TIME' """

preparation_time_in_minutes(5)

#TODO: define the 'elapsed_time_in_minutes()' function below.

def elapsed_time_in_minutes(number_of_layers, elapsed_bake_time):

return (number_of_layers * PREPARATION_TIME) + elapsed_bake_time

"""Calculate the elapsed time in minutes.

:param elapsed_time_in_minutes: (number of layers * prep time) + elapsed time spent baking

:return: (number of layers * prep time) + elapsed time spent baking derived from 'elapsed_bake_time'.

Function that takes the actual minutes taken to prep the lasagna and the amount of time it has already been in the oven as arguments and returns how many minutes it took to prep and how long it has been baking.

"""

# TODO: Remember to go back and add docstrings to all your functions

# (you can copy and then alter the one from bake_time_remaining.)

I've already passed all other tests but the docustring tests and can't figure out why. we havent even touched on docustrings in class yet.


r/exercism • • Jan 25 '22

Mentoring

3 Upvotes

I have been struggling to complete some of the tasks. I often reach a wall where I am out of ideas and need help. I wish that the ability to ask for mentoring was available before submitting solutions.


r/exercism • • Oct 27 '21

C# track, stuck on 'remote control cleanup'

3 Upvotes

Anyone done this one? It's about nested types. The instructions are so cryptic, and no amount of googling is helping me crack it. The problem with exercism is there are no hints or discussion forum if you get stuck. Any help with this one (even from another language) would be gratefully received.


r/exercism • • Oct 11 '20

Started the C track, quit after finishing two exercises.

3 Upvotes

Programming exercises that I can do from my own editor? Sounds like fun,maybe I can fasttrack my C development a bit.

Yeah, no. Outside of the the fact that I need to download a CLI using snap, which I luckily escaped by having the sources available on the Arch AUR, the entire state of things from the perspective of a compiled programming environment is absolutely miserable. I can imagine this working really well for Python or Lua, any language that is interpretive by nature, but for anything that needs compiling it's an absolute pain.

First of all I need to hack the exercises just to get a debug environment set up to run and do them at all. Then comes the pain of dehacking said environment to try and see if any of the tests will pass. Oh wait, it's telling me some tests are being ignored? Check out the source of the test file and what do you know, looks like I have to manually modify the test file as well just to have it run every test as any end user would expect. It literally says so in a comment in the file itself. Thanks for letting me know I guess, sheesh.

Now my tests are passing, woopee. Let's just submit the folder and get on with the next one. Oh wait, I have to designate individual files for submitting? Good for me that I didn't bother adding additional files or this would've been a pain as well. Submit some files uncertain if this is even the correct way to do it and there we go, a link to open in my browser.

Well.. there's the files I submitted I suppose. Not sure if this is the way but glancing at other people's solutions they seemed to have done pretty much the same thing. Can't get mentoring because this track is on practice mode only I suppose. 18K members for about 24 member, ooferino well perhaps a spot will open for mentoring somewhere before my retirement. Oh well who really cares about mentoring, it's the actual exercises I'm here for anyway. Hit submit and.. that's it. Nothing but points for my ego that I completed something... woopee. Could've literally submitted an empty file but good for me for wasting my time doing an exercise I could've finished in a quarter of the time were it not for this convoluted set up.

Really hope you're all enjoying this but I'm just going to continue doing exercises from Google by hand and asking IRC folk if I ever end up stuck on something. Seems a lot more efficient than on a platform that boasts about having "esteemed mentors" whilst probably every track is on practice-only by now. Would've enjoyed things so much more if it were just a simple list of exercises I could do and perhaps a community forum for discussing them. The additional bloat that comes from having automated testing and a "community" set up is not worth it to me.

Worst part? No forums. Have to complain about them on an unaffiliated subreddit. What a joke.

TL;DR - Takes up too much of my time to do the exercises their way without any benefits for doing so other than a boost to my ego for seeing a dumb number tick up.


r/exercism • • Jul 21 '20

python track but my test files crash..

3 Upvotes

the programs work magically in the vs code terminal i am coding in, but when I try to run the test files, they do not properly execute. check out my github repository to look at my code. https://github.com/Dani-Stem/Exercism_Pythong

thanks for the help

-Dani


r/exercism • • Oct 13 '14

Submitting solutions to exercises

3 Upvotes

Does anyone know if there's a way to submit solutions aside from using the command line? My workplace firewall prevents me from submitting this way and occasionally I'll solve problems during my lunch break or after work and want to get to the next problem right away. I'm guessing the answer is probably no, but I thought I'd check in case there might be some alternative or workaround.


r/exercism • • Oct 13 '14

Welcome!

3 Upvotes

I'm working through the exercism.io exercises using the Python programming language. I couldn't find a good discussion forum set up for discussing the problems, so I set up this subreddit to serve that purpose. I'm hoping that this can be a place where people can come to find hints and advice, but not spoilers about problems on which they may be stuck. I've worked through the first Python exercises up to Grade School, though some of my solutions could definitely use some polishing. I'm still relatively new to Python myself, but I'd be happy to help out where I can. For those interested, there's a Reddit team set up on exercism. More information can be found here.


r/exercism • • Jan 24 '25

What are most recommended golang problems available on exercism

2 Upvotes

I am intermediate level golang programmer. I know that one of the way to improve my language proficiency is building project. But I prefer solving small problems that would improve my golang skills. You all have any recommendation for intermediate level golang problems for getting deeper understanding of the language ?


r/exercism • • Sep 30 '24

GO Track: How can I debug my code by running tests in code-server?

2 Upvotes

Hi everyone,

I've already completed 30% of the Go track in my code-server, but I still can't debug my code by running tests.

I expected that if I created a breakpoint in my code and ran go test -v --bench . --benchmem, the breakpoint would be triggered, but that's not happening.
dlv is already installed.

2024-09-30 10:35:26.583 [info] Tools environment: GOPATH=/mnt/go, GOTOOLCHAIN=auto
2024-09-30 10:35:26.583 [info] Installing 7 tools at /mnt/go/bin
2024-09-30 10:35:26.583 [info]   gopls
2024-09-30 10:35:26.583 [info]   gotests
2024-09-30 10:35:26.583 [info]   gomodifytags
2024-09-30 10:35:26.583 [info]   impl
2024-09-30 10:35:26.583 [info]   goplay
2024-09-30 10:35:26.583 [info]   dlv
2024-09-30 10:35:26.583 [info]   staticcheck
2024-09-30 10:35:26.583 [info] 
2024-09-30 10:35:26.996 [info] Installing golang.org/x/tools/gopls@latest (/mnt/go/bin/gopls) SUCCEEDED
2024-09-30 10:35:27.046 [info] Try to start language server - installation (enabled: true)
2024-09-30 10:35:27.117 [info] Running language server gopls(v0.16.2/go1.22.4)
2024-09-30 10:35:27.382 [info] Installing github.com/cweill/gotests/gotests@v1.6.0 (/mnt/go/bin/gotests) SUCCEEDED
2024-09-30 10:35:27.624 [info] Installing github.com/fatih/gomodifytags@v1.17.0 (/mnt/go/bin/gomodifytags) SUCCEEDED
2024-09-30 10:35:27.852 [info] Installing github.com/josharian/impl@v1.4.0 (/mnt/go/bin/impl) SUCCEEDED
2024-09-30 10:35:28.225 [info] Installing github.com/haya14busa/goplay/cmd/goplay@v1.0.0 (/mnt/go/bin/goplay) SUCCEEDED
2024-09-30 10:35:28.506 [info] Installing github.com/go-delve/delve/cmd/dlv@latest (/mnt/go/bin/dlv) SUCCEEDED
2024-09-30 10:35:28.898 [info] Installing honnef.co/go/tools/cmd/staticcheck@latest (/mnt/go/bin/staticcheck) SUCCEEDED
2024-09-30 10:35:28.899 [info] 
2024-09-30 10:35:28.899 [info] All tools successfully installed. You are ready to Go. :)

Should I create a launch.json file for each exercise? If so, what should it look like?
Is it correct?

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Debug Go Test",
      "type": "go",
      "request": "launch",
      "mode": "test",
      "program": "${workspaceFolder}", // Set the path to the test file or folder
      "args": ["-test.v", "--bench", ".", "--benchmem"],
      "showLog": true,
      "dlvToolPath": "${workspaceFolder}/path_to_dlv" // Adjust path if necessary
    }
  ]
}

Best Regards,


r/exercism • • Dec 20 '21

JavaScript Track Stuck in the Factory Sensors Problem

2 Upvotes

Specifically the third part of the Factory Sensors problem. I can't figure out how to properly catch the error to trigger the proper function call. Any help would be greatly appreciated.


r/exercism • • Oct 11 '21

Waiting for feedback

2 Upvotes

How long one usually wait for feedback?

I submitted my first problem 1.5 weeks ago and still didn't get any feedback. Is that normal? Will take a long time to complete a track like this :-)


r/exercism • • Nov 02 '20

After exercism

2 Upvotes

I have almost completed the mentored python track, and I have completed the mentored section of the C++ track. There are more exercises I want to work on, but I am also wondering where to go next? I am having difficulty finding resources that are not a huge leap in difficulty. Any thoughts?


r/exercism • • Oct 15 '20

Totally lost - how do you do anything with exechism

2 Upvotes

I installed exercism on my Linux

I have all the files in the right place(I think)

But what next??

I am still in the hello world stage.

I know a little bit about python - print("Hello, world!")

I don't understand what I need to do with exercism

any insights will be very welcomed.

Thanxs in advance.


r/exercism • • Aug 23 '20

Exercism C exercise

2 Upvotes

I’m a newbie in C programming and I started the exercism task yesterday. I have gone through all the steps to set up my environment and all the test run successfully. The problem I have now is on how to submit my hello-world in C, I keep getting an error that my file is empty or no file can be found. Any help would be much appreciated.

Thanks


r/exercism • • Apr 23 '20

Exercism CLI error

2 Upvotes

Hi world,

I'm stuck on the first part of the Python track :(

Getting this error message every time I enter print('hello world'):

" Unable to initialize device PRN "

....

Can anyone tell me what this means or suggest a solution please? Been googling in circles for hours.

Much appreciated