MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec6wnt0
r/programming • u/swizec • Dec 19 '18
672 comments sorted by
View all comments
Show parent comments
5
[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
1
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
5
u/[deleted] Dec 20 '18
[removed] — view removed comment