3 ms·
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 le
by thehappypm 4y ago
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.
- nine_k 4y agoLook at the file system as at a key-value store, only tree-shaped.
- thehappypm 4y agoA key value store has simple CRUD primitives, does a file system?
- SoftTalker 4y agoI'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.
- thehappypm 4y agoNot really.. try editing a giant file or reading a file with an odd encoding
- yopawngungmstyl 4y agoSince code is typically stored in files, I hope that new programmers would be expected to learn what a file is.