Hacker Newsnew | past | comments | ask | show | jobs | submit | jt-hill's commentslogin

Thanks! And you're right this is true for storage and at the transaction level where nothing smaller than, e.g., a penny is allowed to move or exist in the first place. But when you're working with interest rates and the main calculations involve multiplying by numbers < 1, you still have to figure out rounding.


Author here. I thought was doing what I was supposed to do by using Decimals heavily in my credkit[0] Python library, but I did some testing and discovered it wasn't worth the pain for me. Test code [1] is available for the curious.

The moral of the story is that "best practices" are not a substitute for using your brain.

[0]: https://github.com/jt-hill/credkit

[1]: https://gist.github.com/jt-hill/839e1a6c51d28cbcb8fc69e61431...


I work in credit risk and needed to model consumer loans in Python. I couldn't find a tool that made it easy to model simple loans either individually or at the pool level, so I decided to make my own.

It's early (v0.2.0) but works end-to-end and can produce an amortization schedule from loan characteristics

Up next are the actual credit risk features I wanted from the start.

Feedback welcome!


I highly recommend this one too. It completely solved my issues with FOMO/compulsive refreshing


Classic mistake theory vs conflict theory. Just being right is not a good enough reason for someone to believe you. They have to believe you’re on their side.


> No one will look at it and feel stirred by its beauty

Except for the Toyota nerds who will want to come talk to you about the LFA. Ask me how I know!


Would someone really describe the LFA as "utterly soulless"?


> Would someone really describe the LFA as "utterly soulless"?

When it came out the LFA was widely lampooned by the car media for being too "soft", not fast enough, and generally lacking spirit and individuality. It's not pretty much recognized in hindsight that it's one of the single greatest cars ever made, and everybody who regularly buys/drives supercars regrets not buying one when they were still being produced.

Weirdly, many people realized this when it was new, that the LFA was actually excellent, but like anything else cars go through different hype cycles where media organizations and insiders focus on different parameters for what they think makes something good, and the LFA came out during a hype cycle that was focused on raw speed, as it was released around the time that "hypercars" were gaining steam as a concept.

Personally, having driven an LFA one time, I quite literally have regular dreams about the memory, and I wish that I owned one. It's on my bucket list.


Tbf I don’t think the parent meant all Lexuses (Lexes? Lexi?) are soulless, just theirs. But the brand has its fans.


I’m sympathetic to the desire to recapture the electricity of early Twitter, but I’m reminded of the famous quote that “a man cannot step in the same river twice.”

I’m on Bluesky too, and it’s alright, but the internet has changed, the world has changed, and I have changed. It can’t ever be quite the same experience.


This makes me think of The Sort, coined by the venerable patio11.

The types soft skills it takes to to be effective in the kinda crappy jobs described by the author can command much better remuneration in any number of other roles, and society has gotten much better at efficiently allocating that human capital.


I always thought “soft skills” were a cope for those who didn’t learn an actual skill, until I entered the workforce. I was working mainly in customer service, construction, and facility maintenance roles, and in all three I found it was incredibly common for coworkers to have issues with anger management, emotional maturity, and basic courtesy. These jobs were all fairly terrible aside from customer service; perhaps not coincidentally, that is also where these issues were the least common.


Wait, this is Andy Weir? Like, that Andy Weir? Like, The Martian and Project Hail Mary Andy Weir? I had no idea.


He has a whole load of short stories on his website, and a whole series about a mermaid too


Yep. The Martian began as basically a blog, you know.


It's funny, I instantly recognized that iconic atrium when they used it in Severance and my poor wife had to suffer through an explanation of the history of Bell Labs when she was just trying to watch her TV show.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: