Git Product home page Git Product logo

henryvw / stoic_penknife Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 86.19 MB

Stoic Penknife - A Rails web application to practice ancient Greek and Roman Stoic philosophical technologies of the soul

Home Page: http://www.stoicpenknife.com/

Ruby 59.11% JavaScript 0.34% HTML 1.57% SCSS 2.07% Haml 36.85% Shell 0.06%
philosophy stoicism ancient-greek ancient-rome cbt cognitive-behavioral-therapy rails ruby ruby-on-rails stoic

stoic_penknife's Issues

Write helpful, well-written ReadMe

  • What is important to write here?
  • How do other well-written ReadMes explain their projects? What are ReadMes that I like that can give me inspiration?

Fix Exercise Controller Specs

Even though I won't write any more Controller Specs and will write Feature / Integration Specs, I want just one Controller Spec for Exercises.

(It's still useful to have some knowledge of Controller Specs for legacy applications)

Advanced Patterns - Service/Action Objects: Controllers - Introduce form or action models

Create "action objects" also called "service objects"... if the save method gets really complicated.

Google / research "form objects", "action objects", "service objects", "repository pattern"

Create folder structure:

models/forms/
models/views/
models/actions/or models/services/

Create classes that basically manage the forms, put all the logic there instead of in the views. These also have the advantage of being able to write unit tests.

The app doesn't really need this stuff right now, but where can I use it to practice these patterns?

  • Look for accepts_nested_attributes - that would be a place to refactor into a form object

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.