alldaynba's People
alldaynba's Issues
Project 3 Feedback
Project Strengths
- Creative problem solving by accessing NBA data via their in-house API. And nice job on not getting shut down in the process. ๐
- Great use of a rake task to run dynamic API queries based on the day and store that data into your database.
- Excellent work on the
calculate_probability!
method. It's fairly impressive to dive into your own data analysis of any kind. - Nice use of
scope
to pulltodays_games
from the database!
Growth Opportunities
- Project Planning: Next time you're working on a project, make sure to plan out details beforehand, like which API data you need and how you'll define your database relationships. It helps to start with clear, precise user stories that define the value proposition, and wireframes that depict how users will interact with your site.
- Naming Conventions: Your naming is all over the place. You can't control the format of API params or data, but ALWAYS use
snake_case
in Rails for any variable names, method definitions, etc. that you have control over. - Primary/Foreign Keys: You're using the "NBA ids" as primary and foreign keys, and that can be really confusing to other developers. Stick to the Active Record ids unless you have a compelling reason to do otherwise.
- Routes & Controller Methods:
- These do the same thing - pick one.
- This controller method doesn't exist.
- games#show isn't very RESTful, since it appears to be an alternate view for
@allGames
. Theshow
action should always relate to a single instance of any given resource. - Remove any controller methods you're not using.
- Views: The random spacing in the views is very confusing, and it makes the code hard to follow.
- Testing: You have an excellent method on the
Game
model for calculating probability, and it deserves a test. ๐ - To Get Ready for Deploy:
- README: Add a
README
file explaining a little about your project, the technologies you used, and how another developer could run the project locally. Follow the Project 3 Guidelines. - Gem Groups: The
bootstrap-sass
gem is in thedevelopment
group. Make sure to move it out, so the gem can work in production. - Postgres Database: Change your database from SQLite to Postgres. You can follow this Heroku guide.
- Schedule Rake Task: You'll need to schedule your
todays_games_info
rake task to run every day on Heroku. Read about the Heroku Scheduler.
- README: Add a
- User Interactivity: You did an awesome job sorting through API data and displaying it in a meaningful way. The main thing I see that's missing from this app is an element of user interactivity. Push yourself to dive deeper into Rails by implementing users. Sign up / log in could be optional, but maybe it unlocks additional features, like "watching" specific games or the ability for users to make their own win predictions.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.