Giter VIP home page Giter VIP logo

redditex's Introduction

Redditex

Elixir port of example GO tutorial: geddit. Redditex retrieves the most recent headlines from a given subreddit. redditex is a runnable example assuming you have Elixir installed.

Design

Redditex mostly replicates the behavior found in the Go tutorial exceptions being

  • Redditex Item structure does not remap number of comments, instead it uses the same field name found in the Reddit JSON response

  • Errors throw a system halt

Comparison

Both version are great examples for highlighting language features.

With the Elixir version was a exercise for my own personal learning. I borrowed heavily from teachings found in the excellent Programming Elixir book by Dave Thomas. By porting the Go application, I found Elixir

  • significantly different paradox for programming. The concepts around pattern matching and pipelines are extremely powerful and work well with this problem.

  • well suited to interfacing with HTTP APIs via the HTTPoison library.

  • even with the added complexity of functional programming, the solution felt more straight forward than the Dart port.

redditex's People

Contributors

billc avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.