Re:What every programmer should know about solid-state drive...
by thehappypm on Tuesday May 24, 2022 @09:08PM
(#31499486)
Personally I feel like files are an abstraction that are too low-level for your typical new programmer. I find it odd that a typical script use case that you learn in Python 101 is reading a bunch of junk from a file and then write into another file. Files are finicky and we have much better abstractions than them, like databases.
[ Parent
| on HN ]
Re:What every programmer should know about solid-state drive...
by yopawngungmstyl on Tuesday May 24, 2022 @10:37PM
(#31499997)
Since code is typically stored in files, I hope that new programmers would be expected to learn what a file is.
Re:What every programmer should know about solid-state drive...
by nine_k on Tuesday May 24, 2022 @09:26PM
(#31499590)
Look at the file system as at a key-value store, only tree-shaped.
Re:What every programmer should know about solid-state drive...
by thehappypm on Tuesday May 24, 2022 @11:19PM
(#31500233)
A key value store has simple CRUD primitives, does a file system?
Re:What every programmer should know about solid-state drive...
by SoftTalker on Wednesday May 25, 2022 @12:17AM
(#31500548)
I'd say pretty much yes. If the file name is the "key" then most languages have straightforward ways to create and delete files, read data from them, and write data to them.
Re:What every programmer should know about solid-state drive...
by thehappypm on Wednesday May 25, 2022 @12:30AM
(#31500617)
Not really.. try editing a giant file or reading a file with an odd encoding