File Structure vs Data Structure

  • Thread starter Thread starter aronclark1017
  • Start date Start date
Click For Summary
SUMMARY

The discussion centers on the comparison between file structures and data structures, particularly in the context of coding practices within .NET applications. Participants emphasize that reading and writing files are slow operations, impacting system scalability and performance. The conversation also touches on security concerns related to file access and the potential for external modifications. Overall, the consensus suggests prioritizing speed and scalability when choosing between file directories and data structures.

PREREQUISITES
  • Understanding of .NET framework and its data handling capabilities
  • Knowledge of file I/O operations and their performance implications
  • Familiarity with data structures and their applications in programming
  • Basic concepts of security in software development
NEXT STEPS
  • Research performance optimization techniques for file I/O in .NET applications
  • Learn about data structures and their efficiency in various programming scenarios
  • Explore security best practices for file access and data integrity
  • Investigate the implications of using RDBMS and ODBC in application development
USEFUL FOR

Software developers, particularly those working with .NET, system architects, and anyone interested in optimizing file handling and data structure usage in applications.

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: 7
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.
 
  • 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.
 
aronclark1017 said:
Is a good post trust is.
1764977393885.webp
 
  • Like
  • Haha
Likes   Reactions: 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:
  • Haha
Likes   Reactions: berkeman
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:
  • Informative
Likes   Reactions: sbrothy
  • #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.
 
  • Agree
Likes   Reactions: sbrothy
  • #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.
 
  • Agree
Likes   Reactions: sbrothy

Similar threads

Replies
86
Views
2K
  • · 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
2K
  • · Replies 1 ·
Replies
1
Views
3K