1. Mentoring euphoria on Exercism

If anyone wants to have a go at it, you'll need to create a presence on Exercism. And, if I remember correctly, you need a certain amount of kudos-points. If that does happen to you, let me know.

https://exercism.org/mentoring/external_requests/c8e80616ecdc4f9a99e344e55848a05f is the link to my go at the Raindrops task.

-Bruce

new topic     » topic index » view message » categorize

2. Re: Mentoring euphoria on Exercism

I just signed up so I need to earn 20 rep before I can mentor. I will take a look around and try to contribute to this. Not sure how much time I can give, but it will be some.

-Greg

new topic     » goto parent     » topic index » view message » categorize

3. Re: Mentoring euphoria on Exercism

I'm going to ask for a special dispensation of rep for you so that you can mentor. What user name did you choose for yourself?

-Bruce

new topic     » goto parent     » topic index » view message » categorize

4. Re: Mentoring euphoria on Exercism

Meanwhile @petelomax has enough rep (having contributed 4 tasks)!

new topic     » goto parent     » topic index » view message » categorize

5. Re: Mentoring euphoria on Exercism

axtens_bruce said...

I'm going to ask for a special dispensation of rep for you so that you can mentor. What user name did you choose for yourself?

Same as here and GitHub, ghaberek.

-Greg

new topic     » goto parent     » topic index » view message » categorize

6. Re: Mentoring euphoria on Exercism

I've asked on your behalf for a rep boost. Will let you know when it comes.

new topic     » goto parent     » topic index » view message » categorize

7. Re: Mentoring euphoria on Exercism

axtens_bruce said...

Meanwhile @petelomax has enough rep (having contributed 4 tasks)!

Fair enough. I don't even remember doing that. I joined the Go track a year ago and have only just now started that. I really should start a Phix track.

You'll have to tell me what to do.
If I click on your link and then https://exercism.org/tracks/euphoria/exercises/raindrops I get a 404.
If I click on the register as mentor link, Euphoria is not listed (nor is OpenEuphoria).
If I go to https://exercism.org/profiles/petelomax/contributions those 4 contributions all 404.
You should probably chase that, and check whether any of your own contributions have gone 404.

new topic     » goto parent     » topic index » view message » categorize

8. Re: Mentoring euphoria on Exercism

petelomax said...
axtens_bruce said...

Meanwhile @petelomax has enough rep (having contributed 4 tasks)!

Fair enough. I don't even remember doing that. I joined the Go track a year ago and have only just now started that. I really should start a Phix track.

I've just asked in the Exercism discord how to add you. I expect, given that the track hasn't been launched, that you need to marked as "maintainer" somehow.

-Bruce

new topic     » goto parent     » topic index » view message » categorize

9. Re: Mentoring euphoria on Exercism

Greg you have been rep boosted. Not sure about Pete, tho.

-Bruce

new topic     » goto parent     » topic index » view message » categorize

10. Re: Mentoring euphoria on Exercism

@ghaberek and @petelomax have both been given the "mentor" attribute. I'll go and flag some things for mentoring.

new topic     » goto parent     » topic index » view message » categorize

11. Re: Mentoring euphoria on Exercism

axtens_bruce said...

@ghaberek and @petelomax have both been given the "mentor" attribute. I'll go and flag some things for mentoring.

Can you give me a the TL;DR of mentoring? I see your "raindrops" code. What now?

-Greg

new topic     » goto parent     » topic index » view message » categorize

12. Re: Mentoring euphoria on Exercism

ghaberek said...

Can you give me a the TL;DR of mentoring? I see your "raindrops" code. What now?

So the student wants to know how to be a better Euphoria programmer. You look at the code, stifle a yawn, stifle a face-palm, and then carefully suggest remediation. Give links to resources. You're not giving them the answers. You're walking alongside.

So Pete had a go at mentoring and suggested

You could use "result &=" instead of result = result &" (times 3) 
 
Were this Phix I'd probably also suggest for nr in {{3,"Pling"},{5,"Plang"},{7,"Plong"}} do.. 

From that I used &= and approximated the Phix with

include std/text.e  
include std/math.e  
 
public function raindrops( atom n ) 
    sequence result = "" 
    sequence rules = {{3,"Pling"},{5,"Plang"},{7,"Plong"}} 
    for i = 1 to length(rules) do 
        sequence rule = rules[i] 
        if (mod(n, rule[1])) = 0 then 
            result &= rule[2] 
        end if 
    end for 
    if length(result) = 0 then 
        result = sprintf("%d", n) 
    end if 
    return result 
end function 

The full Mentoring blurb is here: https://exercism.org/docs/mentoring

-Bruce

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu