File Structure vs Data Structure

  • Thread starter Thread starter aronclark1017
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
18 replies · 2K views
aronclark1017
Messages
31
Reaction score
4
TL;DR
have been debating for some time now about weither to access data from file or use list across entire application. In some cases it is more convenient to access data from file where only single instance is used. Such as for example creating new object in main form then listing all objects in next form. My first intuition would be to create a new file in the main form then read all the files into a list within the next form. My question if it would be better practice to simply just read the ...
d1.webp
 

Attachments

  • d2.webp
    d2.webp
    8.6 KB · Views: 27
Last edited:
Physics news on Phys.org
Maybe just save the object. Is the structure all because is crook to hide from.
 
There are as many ways to code a procedure as there are coders. The question is what are your priorities?

I can't speak for your circumstance but, generally reading and writing files are some of the slowest operations a system and language can perform. The more file-writing your system does, the slower it will be, and the less scalable it will be.

Even if those are not priorities for this particular application, speed and scalability are still excellent criteria on which to build your coding philosophy.
 
Reply
  • Like
Likes   Reactions: PeterDonis
Imagine the diagram as a button form. In .net can tag value to button.
 
Er, what?

I mean, I know how .net works, but what does that have to do with your opening post?
 
Is a good post trust is. To debate about wether to use data structure or just simply file directory. Similar to a grid, the file directory is a data structure in its self one that often time I use without reading into a data structure especially when working with .net forms. However I suspect such could be criticism with argument such as the files could be possibly modified outside the application.
 
Toyoda...not to mention a data structure using node for file list and directory is slow as hell
images.webp
FB_IMG_1764978778032.webp
 
Last edited:
Reply
  • Haha
Likes   Reactions: berkeman
Mark44 said:
???
What are you trying to say here?
I think he's asking if its simply for the sake of security.
 
What's wrong with an open source RDBMS? Or even ODBC against an encrypted .cat file? Is that build into ODBC nowadays? Anyway, I think at least *NIX provides for memory share between processes.

EDITED.
 
aronclark1017 said:
Is the structure all because is crook to hide from.

aronclark1017 said:
Is a good post trust is.
Sounds like something Yoda would have said, although Yoda is quite a bit clearer.
DaveC426913 said:
I think he's asking if its simply for the sake of security.
It's a bit difficult for me to tease that meaning out from what he wrote, especially in the two examples above.
 
Last edited:
Reply
  • Informative
Likes   Reactions: sbrothy
Mark44 said:
Sounds like something Yoda would have said, although Yoda is quite a bit clearer.

It's a bit difficult for me to tease that meaning out from what he wrote, especially in the two examples above.
Pretty sure English is not OPs first language.

That aside, I'm not sure if the OP is posting in good faith. Their posts don't make much effort to be explanatory, even with prompting.
 
Some kind of sealioning going on here? (Sorry I just love that word!)

EDIT: And yeah, the light bulb above was a little ironic.
 
DaveC426913 said:
Pretty sure English is not OPs first language.
I'm just as sure that it is, at least based on his nick, which may or may not be his actual name, together with the fact that his IP addresses are all in the US.

DaveC426913 said:
That aside, I'm not sure if the OP is posting in good faith. Their posts don't make much effort to be explanatory, even with prompting.
I don't believe the OP is trolling, if that's what you're implying. OTOH, I'm not sure that he is capable of making the effort to post stuff that is clear and self-explanatory.
 
I'm not a native English speaker either and I also doubt the OP's nativity. Then again it's pure speculation. There could be a host of reasons for "poor penmanship".
 
Mark44 said:
I'm just as sure that it is, at least based on his nick, which may or may not be his actual name, together with the fact that his IP addresses are all in the US.
Then all the more reason why they should be urged to be more descriptive - if this thread stays open at all.
 
Reply
  • Agree
Likes   Reactions: sbrothy
sbrothy said:
There could be a host of reasons for "poor penmanship".
Many more problems than mere penmanship. I think the mods should weigh in.
 
Reply
  • Agree
Likes   Reactions: sbrothy