195 karma · joined April 21, 2015
> I can't think of many more elegant ways to convert a list of ints to floats, in any language, than `[float(i) for i in integerlist]`.
I think something like `integerlist.map(float)` is at least a contender.
In terms of books, I liked Neal Stephenson's "Cryptonomicon". It was written in 1999 and really captures the 90s startup culture, and has some cool hacker scenes. The detail is good too, where the author even explains the specific unix commands that are being executed in some scenes (such as grep).
For me personally, it works best if I cut video games out completely.
Another tip is to vigilantly avoid time wasting traps like instagram, facebook, video games, pointless youtube videos, etc. This will give you a LOT more time to pursue other things.
But yeah, this is a tough burden for us to bear. I mean, it is literally the oldest problem in human existence: our short time on this earth. It reminds me of a song from ancient Greece (literally the oldest surviving complete musical composition)[1]:
While you live, shine
have no grief at all
life exists only for a short while
and Time demands his due.
[1] https://en.wikipedia.org/wiki/Seikilos_epitaphSometimes there are alternatives or workarounds, but the fact is that using fish does come with that downside. Doesn't come up often, but it is annoying when it does come up.
I like fish btw, just saying that I disagree with your "no reason to continue using zsh" comment. I use zsh because I was fed up with random things breaking due to not having a posix shell. And zsh can be customized to have most of the niceties of fish anyway. But it is pretty cool how fish comes with so many niceties out of the box!
So since money in your hands is worth more than that same amount of money in the future, you can actually calculate how much a future cash flow is worth today by discounting it to its present value ("discounted cash flow" aka DCF).
To bring it back to perpetual bonds, if you DCF all of the future cash flows to their present value, you actually get a finite number (due to the diminishing nature of the cash flows that are further and further in the future).
For those who want to learn this in more detail, I recommend MIT's OCW course "Finance Theory I" with Andrew Lo.
Edit: the reason I use Brave over firefox is largely because firefox drained my battery and always turned on the fans on my macbook last time I tried it. Things might be better now but I've settled in on Brave and am happy with it.
In terms of "how computers work" I agree with others who recommended Elements of Computing Systems (aka nand2tetris).
I don't just mean "slightly different" like how arrays in javascript are slightly different than arrays in C. I mean like they are completely different ideas/concepts that happen to share the same word. I think "Homonym" is the right word for this situation?
So yeah, I recommend taking time off. Maybe a lot.