3 ms·
> building an mp3 database would be one line of code or two in python You mean because of the availability of libraries, so that the code would be something li
by ptx 9y ago
> building an mp3 database would be one line of code or two in python
You mean because of the availability of libraries, so that the code would be something like
import some_database_library
print("Look, I have a database:", some_database_library.connect())
?
Otherwise, how do you build a database (or anything involving MP3 files) in a few lines of Python, and how is it so much worse in Lisp?
- FractalLP 9y agoI mean the 1/2 page code was basically a built in dictionary in Python...I felt it was a step backwards. And this is someone who was very open to Lisp...I still think it has value...just a steep learning curve.
- jimbokun 9y agoYou mean this exercise: http://www.gigamonkeys.com/book/practical-an-mp3-database.html http://www.gigamonkeys.com/book/practical-an-mp3-database.ht... This is building a rudimentary in-memory database supporting SQL like queries. I didn't realize Python dictionaries support schema definitions and "select" queries?