log-parser improvements

オープン
#1,162 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
elixir
領域
documentation

調査の方向性

log-parser の演習と issue で参照されている初期の PR を確認し、その後、analyzer が AST 内の正規表現のデリミタをどのように保持するかを調べます。tag_with_user_name/1 周辺で提案されているデリミタと補間正規表現の変更を評価し、選択した学習ステップ、例、および analyzer によって検証される期待事項が定義された時点で、演習が完了したものとします。

索引モデルが issue の本文から書いたものです。

説明

There are some improvements to this exercise proposed in the initial PR that got postponed so we can see how the exercise is doing first and maybe collect more improvement ideas first.

Exercise doesn't teach that different delimiters can be used for regular expressions

Maybe add a step that involves parsing several / and ask them to use another delimiter for readability. Can be checked via the analyzer because the delimiter is kept in the AST.

Exercise doesn't teach about compiling regex with variable content

I wanted to add some step that would require an interpolated regex with escaping a variable, but I couldn't come up with anything thematic that wouldn't be better done with String.starts_with?.

How about adding a step to tag_with_user_name/1?
Maybe something like bolding the user names whenever they are mentioned without "User"?

LogParser.tag_with_user_name("[INFO] User Alice created a new project.")
# => "[USER] Alice [INFO] User Alice created a new project"
LogParser.tag_with_user_name("[INFO] User Alice created a new project. Alice has a reputation of 643.")
# => "[USER] Alice [INFO] User Alice created a new project. **Alice** has a reputation of 643."
主要言語
Elixir
スター
665
フォーク
415
平均マージ
13時間 3分
マージ済み PR(30日)
12

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

exercism/elixir のほかの issue

exercism/elixir の issue をすべて見る

似ている issue

Elixir の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。