Click here to Skip to main content
15,894,017 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: It's not only bad, it's also very weird (any brainiac here can explain?) Pin
Mark_Wallace1-Sep-19 19:14
Mark_Wallace1-Sep-19 19:14 
AnswerRe: It's not only bad, it's also very weird (any brainiac here can explain?) Pin
Jörgen Andersson1-Sep-19 20:06
professionalJörgen Andersson1-Sep-19 20:06 
AnswerRe: It's not only bad, it's also very weird (any brainiac here can explain?) Pin
DerekT-P1-Sep-19 23:03
professionalDerekT-P1-Sep-19 23:03 
AnswerRe: It's not only bad, it's also very weird (any brainiac here can explain?) Pin
Fueled By Decaff1-Sep-19 23:28
Fueled By Decaff1-Sep-19 23:28 
AnswerRe: It's not only bad, it's also very weird (any brainiac here can explain?) Pin
Stuart Dootson2-Sep-19 0:20
professionalStuart Dootson2-Sep-19 0:20 
AnswerRe: It's not only bad, it's also very weird (any brainiac here can explain?) Pin
AnotherKen2-Sep-19 8:12
professionalAnotherKen2-Sep-19 8:12 
AnswerRe: It's not only bad, it's also very weird (any brainiac here can explain?) Pin
Peter Shaw3-Sep-19 21:35
professionalPeter Shaw3-Sep-19 21:35 
GeneralI need opinions. Give me yours Pin
honey the codewitch1-Sep-19 8:15
mvahoney the codewitch1-Sep-19 8:15 
So I wrote a wrapper for The Movie DB (tmdb.org) so you can easily and efficiently query for tv show and movie data. It wraps pretty much the entire, very mature REST/json API as an object model so it's enormous.

Anyway, the neat thing about it is how it caches.

The entire object model backs its state on a normalized graph that maps directly to JSON.

it queries tmdb.org as necessary to fill in the bits of the graph it doesn't already have.

so it keeps the entire cache as one large (normalized) "JSON" object graph.

The normalization just means parsing the json into (null),string,bool, int,long,bigint, double, IList<object> and IDictionary<string,object> types and then nesting those to make the graphs.

I say graphs because the way the cache works, everything is connected, and you might have a node connected by more than one "parent" so that data isn't so duplicated.

Anyway, that caching and state backing thing could use its own article.

But it's a technique, not a separate code library.

Should I publish a Tip & Trick entry with just the caching aspect of the TmdbApi explored, or do you have better ideas?

Object graph: Simply objects nested inside objects using dictionaries and lists.

(Apparently graph databases are a thing. I did not know that.)
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.


modified 1-Sep-19 14:29pm.

GeneralRe: I need opinions. Give me yours Pin
RickZeeland1-Sep-19 8:26
mveRickZeeland1-Sep-19 8:26 
GeneralRe: I need opinions. Give me yours Pin
honey the codewitch1-Sep-19 8:27
mvahoney the codewitch1-Sep-19 8:27 
PraiseRe: I need opinions. Give me yours Pin
RickZeeland1-Sep-19 8:53
mveRickZeeland1-Sep-19 8:53 
GeneralRe: I need opinions. Give me yours Pin
Jon McKee1-Sep-19 8:40
professionalJon McKee1-Sep-19 8:40 
GeneralRe: I need opinions. Give me yours Pin
honey the codewitch1-Sep-19 9:02
mvahoney the codewitch1-Sep-19 9:02 
GeneralRe: I need opinions. Give me yours Pin
RickZeeland1-Sep-19 9:03
mveRickZeeland1-Sep-19 9:03 
GeneralRe: I need opinions. Give me yours Pin
honey the codewitch1-Sep-19 9:05
mvahoney the codewitch1-Sep-19 9:05 
GeneralRe: I need opinions. Give me yours Pin
BillWoodruff2-Sep-19 11:02
professionalBillWoodruff2-Sep-19 11:02 
GeneralRe: I need opinions. Give me yours Pin
Thomas Daniels1-Sep-19 23:47
mentorThomas Daniels1-Sep-19 23:47 
GeneralRe: I need opinions. Give me yours Pin
BillWoodruff2-Sep-19 11:00
professionalBillWoodruff2-Sep-19 11:00 
GeneralRe: I need opinions. Give me yours Pin
honey the codewitch2-Sep-19 11:06
mvahoney the codewitch2-Sep-19 11:06 
GeneralRe: I need opinions. Give me yours Pin
RickZeeland2-Sep-19 19:57
mveRickZeeland2-Sep-19 19:57 
GeneralI'm just looking on Amazon... Pin
OriginalGriff1-Sep-19 2:38
mveOriginalGriff1-Sep-19 2:38 
GeneralRe: I'm just looking on Amazon... Pin
Richard MacCutchan1-Sep-19 3:00
mveRichard MacCutchan1-Sep-19 3:00 
GeneralRe: I'm just looking on Amazon... Pin
PIEBALDconsult1-Sep-19 3:53
mvePIEBALDconsult1-Sep-19 3:53 
GeneralRe: I'm just looking on Amazon... Pin
Mark_Wallace1-Sep-19 7:21
Mark_Wallace1-Sep-19 7:21 
GeneralRe: I'm just looking on Amazon... Pin
Sander Rossel1-Sep-19 4:20
professionalSander Rossel1-Sep-19 4:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.