News for hackers. Stuff that matters.
Re:Sorbet and 100% cov makes Ruby refactoring possible by princevegeta89 on Monday April 25, 2022 @05:03PM (#31160561)
+1. After working on Elixir for a long time I missed the simple ruby way to do things and found myself running in circles to troubleshoot some basic 3rd party libraries. Going back to Ruby for my next side project.
Re:Sorbet and 100% cov makes Ruby refactoring possible by ananthakumaran on Monday April 25, 2022 @09:14PM (#31162887)
Having used both Ruby and Elixir, this is exact opposite of my experience. I would say Elixir/Erlang is one of the best language from observability/debugging perspective. Immutability, per process heap, ability to trace any module/function call in production (recon), remote shell etc make it trivial to debug most of the issues. I have found memory leak in production from 3rd party library in less than 30 minutes. Just looking at the process list sorted by memory will tell which library is leaking (in majority of the cases), as most of the processes has single purpose.
Re:Sorbet and 100% cov makes Ruby refactoring possible by AlchemistCamp on Monday April 25, 2022 @08:53PM (#31162748)
Strange. I like Ruby, but probably the biggest gain I got from moving to Elixir was the comparative ease of debugging.

Its immutability drastically reduces the search space.

Re:Sorbet and 100% cov makes Ruby refactoring possible by princevegeta89 on Tuesday April 26, 2022 @01:02AM (#31164104)
Agree with your point about debugging being easier but in my case I ended up doing a lot of housekeeping for things that are easy in ruby. This time I'm only concerned about the speed of development and ruby to me is the winner