Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Norbert Melzer
    @NobbZ
    ;)
    Robert Hopman
    @roberthopman
    haha
    had to google that
    Norbert Melzer
    @NobbZ
    Gr├╝ndlichkeit or diacretic marks?
    It feels odd to write two languages in a single sentence ;)
    Robert Hopman
    @roberthopman
    diacretic marks :)
    good remark
    linkin-park
    @linkin-park
    are you in IRC ?
    i dont use GUI a lot
    Norbert Melzer
    @NobbZ
    I've heard there's an IRC-bridge for gitter.im somewhere, but I do not use it, as I've heard from people that use it, that it has a lot of bugs as soon as you enter more than one bridged rooms.
    Aside of that, I do often hang out in freenoded#erlang
    linkin-park
    @linkin-park
    ah!
    thanks @NobbZ
    Alexander Schaefer
    @iamschaefer
    I was hoping to solve this with a map of functions, then pattern matching and applying the correct one. Any ideas how to do it? I commented with more detail. http://exercism.io/submissions/ac8fe42af49d4997889a2d1b34b19f45
    Evan Gatchell
    @greygatch

    im having trouble running rebar3 after installation on my mac:

    escript: exception error: undefined function rebar3:main/1

    Norbert Melzer
    @NobbZ
    @greygatch I've never seen this happen. Also I have not a Mac or ever used one, therefore my ablity to help is limited. How did you install rebar?
    Katya Sorok
    @katyasorok
    I was doing exercise ProteinTranslations and had an idea how to shorten a string first for evaluation:
    def of_rna(rna) do
    rna
    |> String.split(["UAA","UAG","UGA"])
    |> List.first()
    Anyone thinks it is totally wrong as approach?
    Dominic C
    @VirtualDOMinic
    @katyasorok when you say "shorten a string" do you mean split it into the codons for evaluation?
    I'm only a few lessons into exercism elixir myself, so am far from an expert (and you could well know more than I do) so don't take any suggestions I make as definitely correct
    If I'm understanding you correctly, you plan to put all the possible codons into your String.split?
    Dominic C
    @VirtualDOMinic
    After a quick look (so, again, there may be better approaches) I think I'd do the following:
    String.split(~r/[ACGU]{3}/, include_captures: true, trim: true)
    I'm using regex to match any 3-letter combo of A, C, G or U. I include the captures so I don't just get empty results in my list, and I'm trimming to remove the empty results at the beginning and end. See here for more info if you haven't used these features before! https://hexdocs.pm/elixir/String.html#split/3
    Dominic C
    @VirtualDOMinic
    @katyasorok Really sorry, just looked at the question readme in more detail, and have realised you're asking about how to account for the stop codons! Your approach seems sensible to me, but hopefully someone with more experience can weigh in :)
    Katya Sorok
    @katyasorok
    @VirtualDOMinic I am not sure it is a good idea to find those combinations first and as soon as i find one to cut out the rest of a string. In fact I am pretty sure this approach was wrong because the string stayed as a string without division for chunks of 3 therefore I could cut out the wrong thing.
    @VirtualDOMinic unless the search for String.split(["UAA","UAG","UGA"]) is going in set of three from the beginning and moves up after first three to next three to check the next set of three. I am not sure how split function works in that sense.
    Dominic C
    @VirtualDOMinic
    That's a really good point @katyasorok . Hopefully I'll have a chance to finish my attempt this weekend and then I can tell you what I decided to do
    In that case, maybe it does make more sense to run the String.split I posted above first, and then you could recursively go through the List of codons that's been generated and tell it to terminate either when there's nothing left, or when the Head (i.e. the codon being "processed") matches one of those codons
    I'm sure there's a way to implement it in the function you feed Enum.map or something as well, if you'd prefer to avoid the recursive option. Again, I'm just a beginner myself, so there may well be better ways
    Katya Sorok
    @katyasorok
    I think that in elixir there is a better way to create chunks of three. chunk_every(enumerable, count) but string had to be turned into a list first ( to be enumerable) I have not explored this idea yet
    @VirtualDOMinic I think that in elixir there is a better way to create chunks of three. chunk_every(enumerable, count) but string had to be turned into a list first ( to be enumerable) I have not explored this idea yet
    @VirtualDOMinic I am a beginner as well. This exercise is marked "easy"))))
    Dominic C
    @VirtualDOMinic
    No idea if either way is "better", but good suggestion! If you do explore that idea, I think you could use String.codepoints to make it enumerable
    Or you could use Regex.scan on the string, but then would need to List.flatten the result
    I think there are probably 5-10 perfectly fine ways to solve this!
    Joey Figaro
    @joeyfigaro
    Hey all
    Norbert Melzer
    @NobbZ
    Hi @joeyfigaro!
    Joey Figaro
    @joeyfigaro
    Yo @NobbZ!
    You guys have favorite interactive elixir courses? Noticed a handful of the exercism learning resources either 404'd or were paid. And were mostly books and videos.
    Norbert Melzer
    @NobbZ
    I definitely do not have such a thing, but for the 404s, it would be nice if you could open an issue at GitHub.com/exercism/elixir
    Joey Figaro
    @joeyfigaro
    Can def. do that. :100:
    Viddya Sagar Verma
    @vid2010
    @katyasorok [h|t] = String.split(["UAA","UAG","UGA"]) just take head(h) as a first element.
    Azeezzzz
    @Azeezzzz
    I'm new to erlang and i wish to learn more about it through exercises on sequential programming and concurrrency. Can anyone please point me to the right direction?
    Azeezzzz
    @Azeezzzz
    I installed exercism but I'm clueless how to put my solutions into the website, Advice pls??
    Norbert Melzer
    @NobbZ
    Hi @Azeezzzz! Just use exercism submit to submit your solution.
    Norbert Melzer
    @NobbZ
    @Azeezzzz I want to say that I received your email, but I prefer to keep the discussion in the chat. It usually provides a much quicker feedback loop.
    Norbert Melzer
    @NobbZ
    @Azeezzzz I'm usually available during UTC+1 office hours (8 to 17 in UTC). Though asking in exercism/support might give you quicker feedback as there I'm not the only active user, but there is also another one, usually active around when I'm not anymore :) Still there is a huge gap in covering the asian time zones. Therefore I think it would be best to open up an issue at github.com/exercism/exercism. Please also provide the command you are using to submit, as well as the output you see when doing so.
    Azeezzzz
    @Azeezzzz
    thank You @NobbZ
    Wingless-Archangel
    @Wingless-Archangel
    Hi all
    Norbert Melzer
    @NobbZ
    Hi!