News for hackers. Stuff that matters.
Re:IBM to buy HashiCorp in $6.4B deal by janosdebugs on Wednesday April 24, 2024 @11:53PM (#40153223)
For OpenTofu specifically, having DI for implementing state encryption would have been really nice. Of you look at the PR, a lot of code needed to be touched because the code was entirely procedural. Of course, one could just make a global variable, but that is all sorts of awful and makes the code really hard to test efficiently. But then again, this is a 300k line project, which in my opinion is way beyond what Go is really good for. ContainerSSH with 35k+ lines was already way too big.
Re:IBM to buy HashiCorp in $6.4B deal by NomDePlum on Thursday April 25, 2024 @02:28AM (#40154138)
Out of interest what language do you think would have been more appropriate and why?

For that size of codebase I'd have thought code structure and modularisation would be more important than language choice.

Re:IBM to buy HashiCorp in $6.4B deal by janosdebugs on Thursday April 25, 2024 @09:33AM (#40157359)
I wish I had an answer to that, but I don't know. I only worked on projects of comparable size in Go, Java and PHP. Java was maybe the best for abstractions (big surprise), but it really doesn't lend itself to system-level stuff.