4 ms·
I was reading that article, and geez, as a non-programmer I have to ask, why does libflac look like such a nightmare compared to flacloader? It's like night and
by mouse_ 4y ago
I was reading that article, and geez, as a non-programmer I have to ask, why does libflac look like such a nightmare compared to flacloader? It's like night and day. Is this a "WireGuard makes OpenVPN look quite silly" moment?
https://github.com/xiph/flac/tree/master/src/libFLAC https://github.com/xiph/flac/tree/master/src/libFLAC
https://github.com/SerenityOS/serenity/blob/master/Userland/Libraries/LibAudio/FlacLoader.cpp https://github.com/SerenityOS/serenity/blob/master/Userland/...
- lifthrasiir 4y agoBecause a shorter code is not necessarily performant, readable, or correct. Also the Serenity version delegates most dependencies like bit readers to its built-in library, while libflac implements all of them by itself.
- stephc_int13 4y agoThis is more frequent than you think. It does not mean that the code is bad or inefficient, but the style and architecture is not the simplest to read. Pretty much in the same way that published scientific papers are quite unpleasant to read.