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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a lesson about Strings #186

Closed
aromeronavia opened this issue Mar 21, 2016 · 6 comments
Closed

Create a lesson about Strings #186

aromeronavia opened this issue Mar 21, 2016 · 6 comments
Labels
discussion Elixir School discussion enhancement An enhancement to Elixir School content new lesson An completely new lesson (not a translation)

Comments

@aromeronavia
Copy link
Contributor

Suggesting to create a lesson about Strings in Elixir, starting from:

  1. how do they work
  2. simple operations and manipulation
  3. how are they handled inside the BEAM
  4. Etc.

If you need some help with that, please let me know! 馃槃

@pjhampton
Copy link
Contributor

Great idea, @setzer777! And thanks for the suggestion.

I am currently working on an Elixir Natural Language Processing library as part of my PhD (it's currently private on my github) and I have been looking into this for quite sometime.

Maybe we could work together on this lesson together?

@aromeronavia
Copy link
Contributor Author

Great @pjhampton! I bet functional programming have helped you a lot with your project 馃槢

Of course! Let's just split the lesson into sections and then we can start to work :)

@pjhampton pjhampton added enhancement An enhancement to Elixir School content new lesson An completely new lesson (not a translation) labels Mar 21, 2016
@doomspork
Copy link
Member

馃挜 Teamwork ftw!

@aromeronavia
Copy link
Contributor Author

@doomspork @pjhampton
I propose this sections for the lesson:

  1. Strings in Elixir: Explain what's the deal with strings in Elixir, about their binary-ty and stuff haha
  • Graphemes
  • Codepoints
  1. Common functions:
  • downcase/uppercase
  • length
  • split
  • at
  • contains
  • to_char_list (this is gonna be interesting...)
  1. String manipulation
  • iterate a string
  • replace characters
  1. A simple exercise:
    I have two exercises in mind.
    • Check if two words are anagrams (kinda easy)
    • Check if a word is a palindrome (harder)

I just have this at the moment, let's fulfill the lesson! :)

@pjhampton
Copy link
Contributor

Supercool @setzer777!!

Do you have Slack? If not sign up here: https://elixir-slackin.herokuapp.com/

We have our own channel #elixirschool where we can chat about this further 馃樃

@pjhampton pjhampton added the discussion Elixir School discussion label Mar 22, 2016
@nscyclone
Copy link
Member

PR #224 was merged today. I think this issue can be closed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Elixir School discussion enhancement An enhancement to Elixir School content new lesson An completely new lesson (not a translation)
Projects
None yet
Development

No branches or pull requests

4 participants