Skip to main content

Questions tagged [files]

The tag has no usage guidance.

0 votes
2 answers
176 views

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 ...
Ana Nimbus's user avatar
0 votes
2 answers
759 views

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 ...
Accollativo's user avatar
0 votes
2 answers
1k views

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 ...
Benhassine Mohamed's user avatar
2 votes
1 answer
523 views

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 ...
auerbachb's user avatar
  • 181
-1 votes
2 answers
119 views

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 ...
thessalchips's user avatar
0 votes
2 answers
241 views

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 ...
ericg's user avatar
  • 171
1 vote
0 answers
41 views

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 ...
Some Name's user avatar
  • 121
0 votes
1 answer
104 views

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 ...
Mdot's user avatar
  • 1
1 vote
1 answer
222 views

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 ...
DancingIceCream's user avatar
0 votes
3 answers
328 views

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, ...
OneAndOnly's user avatar
6 votes
6 answers
672 views

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){ ...
ocomfd's user avatar
  • 5,712
4 votes
4 answers
1k views

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 ...
Ashish Negi's user avatar
-1 votes
1 answer
416 views

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-...
M.M's user avatar
  • 135
3 votes
1 answer
466 views

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 ...
Ben's user avatar
  • 159
2 votes
3 answers
532 views

Why would I use a queue to list all files and subfolders recursively

In Robert Sedgewick's Algorithms book there's this exercise: A folder is a list of files and folders. Write a program that takes the name of a folder as a command-line argument and prints out all ...
Mikayil Abdullayev's user avatar

15 30 50 per page
1
2 3 4 5