Questions tagged [files]
The files tag has no summary.
64 questions
0votes
2answers
422views
How does the MVC pattern actually work?
I’m still a Computer Science student, and recently I’ve had to develop a project using the MVC pattern, but without having learned in depth about how it actually works. And it’s not the first time I’...
0votes
2answers
186views
How might encapsulated source be broken into into multiple files?
I have a project where there is a primary, high-level, opaque struct with many functions that operate on it. Maybe I am simulating a CPU. How might the corresponding source code be organized? One way ...
0votes
2answers
1kviews
Best practice for storing a static pdf file in a web app
I've to store a static pdf with an user guide of my application. I'm using Spring boot and Angular 12, what is the best way to store it? Put the file on resource folder of Spring boot? Put the file ...
0votes
2answers
1kviews
Move from mft to api REST style to get or post large data 200mb , is it best practice?
I am designing the API architecture for my client: My client actually exchange huge files (csv) with his Partner with MFT ( SFTP ) **Partner ==> MFT ==> Client ** The requirement is to move to ...
2votes
1answer
616views
Should a Web Application File URL Have Public or Private Access
I am debating whether to give my files a public url or a limited private one. I am hosting various files for a mobile/web application. These will include product images and videos. Currently only ...
-1votes
2answers
127views
Is there a paradigm for working with data semantically instead of file-based?
I am looking for a name/paradigm/research area etc. that describes the notion of working with data not in the traditional file-based sense, but instead based on semantics. I can best explain what I am ...
0votes
2answers
245views
Inheritance: Folders and Files & Liskov Substitution Principle
Based on what I have been reading about the Liskov Substitution Principle, I understand that a square and rectangle class cannot be a part of the same inheritance tree. I would like to apply these ...
1vote
0answers
43views
The most reliable way to deliver data to external storages
I have a question about best-practices in terms of reliability. There is some data residing in RAM of some process and the data needs to be delivered in a bunch of external storage providing the ...
0votes
1answer
104views
Is my understanding of modern IDEs autosave feature naive? [duplicate]
Long time ago I learned that text files are not like Random access Files, i. e., adding or updating info at the beginning of a text file involves moving all the rest of the file "forward" (or ...
1vote
1answer
232views
Should I place constants related to reading a specific type of file in the FileReader class or in a separate class?
I am writing a class FileFoodReader (in java if that matters) that reads input from a file containing information about foods and their nutritional values. The file has to fulfill some requirements ...
0votes
3answers
357views
How to append a chunk of fixed size data to a file and make sure this chunk doesn't get fragmented on disk?
So i want to understand how DBMS implementation works To give an example : MySQL implements each tables with its own pages, which are 16KB so each table is a file, and is a multiple of 16KB, ...
6votes
6answers
678views
Is duplicating files to avoid programming branching a good or anti pattern?
for example, suppose I need to play different sounds according to "grade": file list: fairSound.mp3 goodSound.mp3 excellentSound.mp3 code: showResult(grade){ if(grade==0 || grade==1){ ...
4votes
4answers
2kviews
Why do disks write data in chunks of page size?
In my understanding, even if i want to overwrite a byte in middle of a file, OS and/or disk will read the content of the size of page, modify one byte and then write the contents back. What is the ...
-1votes
1answer
460views
Standard for config file location? [duplicate]
My program (a command-line utility) will load configuration from a file, using defaults if file not found, and I'd like to do this in a cross-platform manner that people will expect. Is there a de-...
3votes
1answer
543views
What's the best approach for using Git for a project containing a largish binary database (4 GB, 4000 files)?
The codebase consists of 190 Fortran 95+ source files, and directory of binary coefficient files required for the use of the code. The binary directory contains about 4000 files, some of which are ...