Coder Social home page Coder Social logo

python-p3-translating-from-orms-to-sqlalchemy-lab's Issues

Getting Started Instructions

Canvas Link

https://learning.flatironschool.com/courses/6049/assignments/195260?module_item_id=439018

Concern

When the instructions inform a student to start work with canvas instructions and test feedback it tells the student to complete work in the lib file when the repository has an app file.

Additional Context

I envision students looking for a lib file and not finding it and not sure of what to do (event though the working python files in lib and app are the same).

Suggested Changes

I would change the instructions in the canvas lesson/read.me from lib to app.

new_from_db solution

Canvas Link

https://learning.flatironschool.com/courses/6049/assignments/209225?module_item_id=482537

Concern

The solution to the new_from_db method seems a little odd to me. My impression is that it simply grabs and returns the first row in the database, and that's all it can do. However, the instructions in the tests make it seem like it should be used in a more general manner - takes a database row and creates and returns a dog instance.

Furthermore, does it even make sense to include this method in this lab? Doesn't the use of SQLAlchemy mean that we don't actually need this "new from db" method since we can use .all, .first, or a list comprehension in conjunction with a query to convert our query results into python objects?

I understand that the idea is to rewrite the same methods from the previous ORMs lab to demonstrate the difference, but I think the inclusion of this method is a little misleading / confusing. It might be more helpful to deliberately skip this method and talk about why it's been skipped - i.e., that using SQLAlchemy makes this method unnecessary. The current solution doesn't really seem like it illustrates any important concept other than how to pass this test. I could be missing something important though! Thanks!

Additional Context

No response

Suggested Changes

No response

Passing tests without using given args

Canvas Link

https://learning.flatironschool.com/courses/6049/assignments/209225?module_item_id=482537

Concern

Couple of things here that could be confusing for students:

  • I'm able to pass the final test without having to use the dog argument.
  • The new_from_db function starter code only has one argument of session being passed in, but on initial run of the tests, it says that it expects 2 args, but only received one. Should the starter code for this function also include the second argument like the other functions in this lab? I could see how this could be confusing for students if they were coming in thinking that most of the arguments are made for them.
  • Should there be any mention that they would need to import Dog from models? Maybe including a hint or a reminder that they would need to do so could help with this.

Just some thoughts.

Additional Context

No response

Suggested Changes

No response

Arguments for tests need to be revisited

Canvas Link

https://learning.flatironschool.com/courses/6329/assignments/239716?module_item_id=563719

Concern

The create_table() test passes an engine argument that isn't in the templated function. had to add the engine argument in to get the test to pass. The lab specifically says the function body for this test should be composed with more than one line of code, but once you add the engine argument, you pass the test with only one line

the update_breed() template function in dog.py includes a dog argument that is unused

Additional Context

No response

Suggested Changes

No response

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.