File Structure vs Data Structure

  • Thread starter Thread starter aronclark1017
  • Start date Start date
Click For Summary
The discussion centers on the trade-offs between file structure and data structure in programming, emphasizing that reading and writing files can significantly slow down system performance and scalability. Participants highlight that coding approaches vary widely among developers, and the choice between using a data structure or a file directory depends on specific priorities and application needs. Concerns are raised about the potential for external modifications to files, which could impact data integrity. The conversation also touches on the relevance of .NET in managing data structures within applications. Ultimately, the choice of structure should align with performance goals and application requirements.
aronclark1017
Messages
27
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: 3
Last edited:
Technology 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.
 
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.
 
aronclark1017 said:
Is a good post trust is.
1764977393885.webp
 
  • Like
  • Haha
Likes Mark44 and DaveC426913
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:
aronclark1017 said:
Maybe just save the object. Is the structure all because is crook to hide from.
???
What are you trying to say here?
 
  • #10
Mark44 said:
???
What are you trying to say here?
I think he's asking if its simply for the sake of security.
 
  • #11
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.
 
  • #13
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:
  • #14
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.
 
  • #15
Some kind of sealioning going on here? (Sorry I just love that word!)

EDIT: And yeah, the light bulb above was a little ironic.
 
  • #16
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.
 
  • #17
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".
 
  • #18
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.
 
  • #19
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.
 

Similar threads

Replies
86
Views
1K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
6
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
7K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
50
Views
7K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K