Click here to Skip to main content
15,913,315 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.

 
GeneralRe: Microscopes: USB/HDMI Pin
patbob15-Nov-18 7:31
patbob15-Nov-18 7:31 
GeneralRe: Microscopes: USB/HDMI Pin
W Balboos, GHB15-Nov-18 8:16
W Balboos, GHB15-Nov-18 8:16 
GeneralRe: Microscopes: USB/HDMI Pin
patbob15-Nov-18 7:46
patbob15-Nov-18 7:46 
GeneralRe: Microscopes: USB/HDMI Pin
Alan Burkhart16-Nov-18 4:46
Alan Burkhart16-Nov-18 4:46 
GeneralRe: Microscopes: USB/HDMI Pin
W Balboos, GHB16-Nov-18 5:02
W Balboos, GHB16-Nov-18 5:02 
GeneralRe: Microscopes: USB/HDMI Pin
Alan Burkhart16-Nov-18 12:09
Alan Burkhart16-Nov-18 12:09 
GeneralRe: Microscopes: USB/HDMI Pin
pmauriks18-Nov-18 18:54
pmauriks18-Nov-18 18:54 
Generalkinda programming question: resource... reference... Pin
Super Lloyd14-Nov-18 6:58
Super Lloyd14-Nov-18 6:58 
I know what you are thinking, a programming question in the lounge, what is this outrage?!
But wait! there is no code involve!
In fact I am not interested in code, it's more like a conceptual and rhetorical question.

I wonder what to do about resources in my documents editor.

The problem: I am making this fantasy documents editor.
one can create / edit: image (& icon), (fantasy) maps, text, and tabular data.
- image, map and tabular data can contain images
- text document can contain anything (i.e. text, obviously, but also table, images and map snapshots)

document come standalone. one doesn't make a "project" with multiple assets, like a C# project...
instead one create a map, or create a text document, etc...
(this seems like the right approach, just like one doesn't make "project" with word, excel, power point)

now how do these document reference each other? that's my conundrum...

idea 1: copy each sub-document in current document.
problems 1: document can easily balloon in size, with same subdocument can be added multiple times
problem 2: document can be really small, but a resource, say a background image, can be humongous in size (and repeated in multiple document) and it's hard to make a nice and concise UI to take care of that

idea 2: each resource will be reference by some custom URI
problem 1: uri scheme is difficult. if it's absolute path on disk, what if the user move the folder containing everything? is it's relative, what if the user move only that file or work on a copy in another directory

idea 3: image are copied (too bad for duplicates or big images)(by duplicates I mean I could have 5 small documents becoming 5 big documents because of 1 single huge background image), tabular data are copied in (no biggies), maps are snapshoted (i.e. what is copied: picture of are of interest + 1 or 2 hint path / URL)
problem 1: big image can waste lots space, map do not update live

anyway that's the concept I am thinking about, and wondering how to tackle in the most user friendly and efficient fashion...
Any ideas or tips?

[EDIT]
After some though, here is a quicker and better question, perhaps...

To clarify, it's not an algorithm question at all, more like a design question...

Where should I put the stuff? copy or not?

And if I reference (some? all?) how could I reference smartly?
Also, if I reference, obviously the user can move thing around breaking all reference. But how could I improve the user experience so that he will intuitively know what to do to maintain reference?

[Edit2]
Decided... I obviously need to pack everything together.. if the files is emailed, the file should still work!
will go with option 3 (copy image, inline table, copy map as a screenshot" + some meta data: position, zoom and hint location)

and I am gonna provide a simple resource management tool.. basically a table with (thumbnail, size and search and replace button), should be ease to make it reusable and should help with size management
A new .NET Serializer
All in one Menu-Ribbon Bar
Taking over the world since 1371!


modified 14-Nov-18 19:35pm.

GeneralRe: kinda programming question: resource... reference... Pin
David O'Neil14-Nov-18 7:38
professionalDavid O'Neil14-Nov-18 7:38 
GeneralRe: kinda programming question: resource... reference... Pin
Super Lloyd14-Nov-18 7:51
Super Lloyd14-Nov-18 7:51 
GeneralRe: kinda programming question: resource... reference... Pin
David O'Neil14-Nov-18 8:22
professionalDavid O'Neil14-Nov-18 8:22 
GeneralRe: kinda programming question: resource... reference... Pin
Eric Lynch14-Nov-18 12:58
Eric Lynch14-Nov-18 12:58 
GeneralRe: kinda programming question: resource... reference... Pin
Super Lloyd14-Nov-18 13:37
Super Lloyd14-Nov-18 13:37 
GeneralRe: kinda programming question: resource... reference... Pin
Eric Lynch14-Nov-18 15:03
Eric Lynch14-Nov-18 15:03 
GeneralRe: kinda programming question: resource... reference... Pin
David O'Neil14-Nov-18 13:25
professionalDavid O'Neil14-Nov-18 13:25 
GeneralRe: kinda programming question: resource... reference... Pin
Super Lloyd14-Nov-18 13:37
Super Lloyd14-Nov-18 13:37 
GeneralRe: kinda programming question: resource... reference... Pin
User 49097415-Nov-18 4:15
User 49097415-Nov-18 4:15 
GeneralRe: kinda programming question: resource... reference... Pin
David O'Neil15-Nov-18 7:26
professionalDavid O'Neil15-Nov-18 7:26 
GeneralRe: kinda programming question: resource... reference... Pin
Fueled By Decaff14-Nov-18 21:18
Fueled By Decaff14-Nov-18 21:18 
GeneralRe: kinda programming question: resource... reference... Pin
Super Lloyd15-Nov-18 7:04
Super Lloyd15-Nov-18 7:04 
GeneralRe: kinda programming question: resource... reference... Pin
Mark_Wallace15-Nov-18 1:49
Mark_Wallace15-Nov-18 1:49 
GeneralRe: kinda programming question: resource... reference... Pin
Super Lloyd15-Nov-18 7:05
Super Lloyd15-Nov-18 7:05 
GeneralThought of the Day Pin
OriginalGriff14-Nov-18 4:54
mveOriginalGriff14-Nov-18 4:54 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer14-Nov-18 5:17
professionalDaniel Pfeffer14-Nov-18 5:17 
GeneralRe: Thought of the Day Pin
DRHuff14-Nov-18 6:07
DRHuff14-Nov-18 6:07 

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.