Skip to content
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

Implement new Concept Exercise: dynamic-dispatch #558

Open
angelikatyborska opened this issue Jan 28, 2021 · 4 comments
Open

Implement new Concept Exercise: dynamic-dispatch #558

angelikatyborska opened this issue Jan 28, 2021 · 4 comments
Labels
concept-exercise Adding or improving a concept exercise help wanted 🤝 v3 Related to Exercism v3 x:action/create Work on something from scratch x:knowledge/intermediate Quite a bit of Exercism knowledge required x:module/concept-exercise Work on Concept Exercises x:size/large Large amount of work x:type/content Work on content (e.g. exercises, concepts)

Comments

@angelikatyborska
Copy link
Contributor

angelikatyborska commented Jan 28, 2021

Getting started

Please please please read the docs before starting. Posting PRs without reading these docs will be a lot more frustrating for you during the review cycle, and exhaust Exercism's maintainers' time. So, before diving into the implementation, please read up on the following documents:

Goal

The goal of this exercise is to replace rpn-calculator-output as the exercise that teaches dynamic dispatch (https://elixir-lang.org/getting-started/typespecs-and-behaviours.html#dynamic-dispatch). rpn-calculator-output should be modified to depend on dynamic-dispatch instead of teaching it. Make sure to reuse part of that exercise's introduction.

Learning objectives

Out of scope

?

Concepts

  • dynamic-dispatch

Prerequisites

Depends on the story.

Exercises

Add dynamic-dispatch as a prerequisite of forth.

Resources to refer to

https://elixir-lang.org/getting-started/typespecs-and-behaviours.html#dynamic-dispatch

Implementing

Since dynamic dispatch depends on the existence of a few modules with the same function, we might want to provide that in the boilerplate instead of having the student implement those too.

Help

If you have any questions while implementing the exercise, please post the questions as comments in this issue.

@angelikatyborska angelikatyborska added concept-exercise Adding or improving a concept exercise v3 Related to Exercism v3 labels Jan 30, 2021
@angelikatyborska angelikatyborska added x:action/create Work on something from scratch x:knowledge/intermediate Quite a bit of Exercism knowledge required x:module/concept Work on Concepts x:module/concept-exercise Work on Concept Exercises x:size/massive Massive amount of work x:type/content Work on content (e.g. exercises, concepts) x:size/large Large amount of work and removed x:module/concept Work on Concepts x:size/massive Massive amount of work labels Jun 11, 2021
@angelikatyborska angelikatyborska changed the title [v3] Implement new Concept Exercise: dynamic-dispatch Implement new Concept Exercise: dynamic-dispatch Sep 28, 2021
@apoorv-2204
Copy link

apoorv-2204 commented Aug 14, 2023

Hi is issue still open to pick?

@angelikatyborska
Copy link
Contributor Author

@apoorv-2204 Yes, nobody started working on this yet.

@zxdsc
Copy link

zxdsc commented Jul 6, 2024

Hello!

The link under resources leading not to where it expected. Is there still a thing in Elixir such as dynamic-dispatch?

@angelikatyborska
Copy link
Contributor Author

@zxdsc This link https://hexdocs.pm/elixir/Kernel.html#apply/3 ? Yes, that's exactly the function that allows you to do dynamic dispatch in Elixir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concept-exercise Adding or improving a concept exercise help wanted 🤝 v3 Related to Exercism v3 x:action/create Work on something from scratch x:knowledge/intermediate Quite a bit of Exercism knowledge required x:module/concept-exercise Work on Concept Exercises x:size/large Large amount of work x:type/content Work on content (e.g. exercises, concepts)
Projects
None yet
Development

No branches or pull requests

3 participants