• 2 Posts
  • 2.41K Comments
Joined 1 year ago
cake
Cake day: July 2nd, 2023

help-circle








  • India gets my respect for its very long history, and the fact it invented buddhism.

    But Indian code is terrible. It degrades my respect for the country because it’s just consistently really bad.

    A lot of Indian code seems like someone tried to fix a broken car window by caulking a fish tank into place. You confront them and they’re like “What? It’s glass isn’t it? It’s exactly the same”

    Now I haven’t seen a lot of Indian code. I’ve seen the output of maybe ten different devs in India, and of that sample it’s all bad. Like really bad.

    They work hard and get shit done, but it’s always some kind of hacky kluge made from copy-pasted code.

    It’s unclean. It’s full of tech debt. It’s redundant. It’s often not even indented correctly.






  • The Norquist-Shannon rate sampling theorem only asserts that for a given maximum frequency, you only need another other given maximum frequency of sampling to represent it.

    It does not say you can “perfectly” reproduce a signal. Only that you can reproduce all fourier components of the signal that are below half your sampling rate in frequency. It perfectly does that, yes.

    But the signals that only contain a finite number of frequencies all below a certain maximum frequency are abstractions used in signal theory classes for teaching that theorem, and in engineering to hit a “good enough” target, not a “perfect” target.

    Any frequencies bouncing around the room at over 22 kHz are lost at least to something using the 44 kHz sampling format.

    TL;DR: Norquist-Shannon lets you completely reproduce signals with finite information in them. But real life sound doesn’t have finite information in it.