Monofu
u/Monofu
OG set a career high tonight against the Nuggets with 40pts on 16-23 shooting
espn.com/nba/boxscore/_/gameId/401704849[Bill Simmons] Fake trade: Kyle Lowry for Goran Dragic and Waiters Island. Money is dead even. Who says no? (2018)
reddit.com/r/torontoraptors/comments/8s52lk/b...Has anyone come across any Python-based alternatives to Rust's Seed I have found https://pypi.org/project/django-sockpuppet/ but would prefer a more lightweight Flask-esque framework.
DHH: "One of my great open source regrets has been not sharing this delegated type pattern sooner. It's probably the most consequential modeling pattern we've adopted at Basecamp in the last 10 years. I will repent!"
github.com/rails/rails/pull/39341/files#diff-...Suppose, we have multiple APIs that returns a JSON response. Both APIs correspond to the same ActiveRecord model(s).
For example, given the JSON response A:
{
'model': 'Volvo',
'wheels': 4,
'drivers': ['John', 'Mary', 'Kelly'],
....
}
and the JSON response B:
{
'producer': 'Volvo',
'size': 4,
'names': ['John', 'Mary', 'Kelly'],
....
}
and lastly, the models: Car(id, make, wheels), Driver(id, name), CarDriver(car_id, driver_id)
What would be the most idiomatic-Railsy way to go about implementing serialization and deserialization between the Car model and the various JSON responses? In my real use-case,
Hi, I'm in the process of learning C++ and I'm a little confused about two things. Hoping the reddit community can help me out.
i. When to use smart pointers vs references: Is it the general "rule of thumb" to just use references until you can't anymore? Source. Or is it more preferred to pass objects by (smart) pointer?
ii. How to return objects from functions (i.e. created on the stack)? Is passing a return parameter frowned upon? Or, is it better to just return by copy and let the compiler optimize?
Thank you very much!
![[New Feature] Bumble Added Ethnicity Filter](/api/ImgurImages?id=DxRvGww.jpeg)


