radicalism
Re:Browsers barely care what HTTP status code your web pages are serve...
on Friday August 11, 2023 @04:25AM (#37086358)
> I will just leave you with the most adorable 404 page anyone has ever seen: https://diopitt.org/pray/amen
In the context of your comment, I was amused by how my own ad-blocker failed to properly show the (image on the) 404 page, since it is loaded from a different domain :D
Re:Falsehoods programmers believe about undefined behavior
on Tuesday November 29, 2022 @05:25AM (#33785798)
> Different screen readers are notoriously inconsistent though.
In other words, UB!
Re:12 requests per second: A realistic look at Python web frameworks
on Friday February 19, 2021 @03:16AM (#26190785)
It would return the same value, but the approach to obtain it would be different.
`user` would be a property defined as a User object on the Book model, so accessing `book.user` will cause the framework to fetch the entire user model (even if we then only fetch the id).
On the other hand, `book.user_id` is the auto-generated database column, generated to make the above property definition possible. But since this `user_id` is directly defined on the book object, there is no need to query the user table.