Giter Club home page Giter Club logo

artbot's People

Contributors

cloverharvest avatar jtam11 avatar mbd-s avatar morgansharif avatar nathanallen avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

artbot's Issues

document how to setup app / run the server

Make sure to document both how to setup the application (secret keys, seed tasks, etc) as well as how to run the thin server. Two months from now you'll be trying to remember yourself!

redundant .alert-error style

The .alert-error class has 3 different styles assigned to it, across these files:

Due to the default behavior of the asset pipeline, all three of these files are loaded/applied to every page on your site, meaning likely only the style in application.css.sass is being applied. Given that this is a site-wide style, and not resource-specific, it makes sense to keep it in application.css.sass

refactor artbot.rb

You're in a good position to refactor artbot.rb.

One thing that stands out is that every message hash shares the same type and channel:

{
  type: 'message', # always the same
  text: "https://slack-artbot.herokuapp.com/arts/#{@@current_art.id}", # this changes
  channel: data['channel'] # always the same
}

One approach would be to use the merge method to establish some defaults, i.e.:

defaults = {"default": "info"}
config = {"specific": "data"}

defaults.merge(config) # {"default": "info", "specific": "data}

This allows you to both set, and override default configurations.

As you go through, keep in mind Sandi Metz rules: https://robots.thoughtbot.com/sandi-metz-rules-for-developers

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.