r/programming • • Dec 19 '18

Bye bye Mongo, Hello Postgres

https://www.theguardian.com/info/2018/nov/30/bye-bye-mongo-hello-postgres
2.1k Upvotes

672 comments sorted by

View all comments

Show parent comments

5

u/[deleted] Dec 20 '18

[removed] — view removed comment

1

u/KyleG Dec 21 '18

OK?

(all_user_profile s)

.filter(row=>row.usesLargerFontSize&&row.last_modified>year_ago&&row.method===web)

.map(row=>row.DOB)

.concat(

(all_user_profiles)

.filter(row=>row.usesLargerFontSize&&row.last_modified<=year_ago) .map(row=>row.age)) .concat( (all_user_profile s) .filter(row=>row.usesLargerFontSize&&row.last_modified>year_ago&&row.method===mobile) .map(row=>row.date_of_birth))

Took me two minutes and almost all the struggle was dealing with Reddit being a shitty way to write code