Dynamic tracing all the things has reduced the time to solve bugs by an order of magnitude for us.
Ask HN: When has switching the language/framework made an important difference?
41–50 of 152 posts
Re: Ask HN: When has switching the language/framework made an important difference?
#42Earlier quoted context omitted.
If you like framework B more than A by too much, it seems unlikely to me that you'd have the creator of framework A on your team.
Really? Was it really unclear to you that I was presenting a hypothetical to illustrate a point and not practical advice?
Re: Ask HN: When has switching the language/framework made an important difference?
#43The biggest change for me was when I switched to strictly typed languages. It doesn't matter if it's Go or Typescript or whatever. As long as it has types it dramatically improves maintainability and ease of scale.
I've never experienced this personally, although I hear it said a lot. I generally work on server side applications with a database behind them and 90% of the work involved is taking data from the client and putting it in the database or the other way around. The database handles actual type enforcement. The requests come in as strings and they are returned to the client in string based format. Introducing types to t…
Re: Ask HN: When has switching the language/framework made an important difference?
#44Earlier quoted context omitted.
In the first case, we inherited the codebase. However, it was clear that too much attention was paid to low level stuff such as threading, etc. Ruby allowed us to more easily focus on the problem with more of a micro services approach. The Java monolith we replaced was emblematic of its time. Frameworks piled on libraries piled on other things. A lot of complexity to achieve the intended function. The move to golang…
I want to explicitly call out an important point here. They inherited the original codebase and were able to understand the domain problems and what the original solution got wrong AND what it got right. Pretty much any language or framework they chose to rewrite the application in should have seen similar benefits (even if rewritten in Java). I've seen several projects where a rewrite was given to a entirely new tea…
Re: Ask HN: When has switching the language/framework made an important difference?
#45Earlier quoted context omitted.
Interesting. And the tl;dr for the bug is: byte_count := (n+7) / 8; When n is near max size, it overflows to a small number, then (small number) / 8 = 0 the fix is to restrict n to [0,MAX-7)
One can do it without restricting the range as well, if the full range of inputs is needed. In C: (n / 8) + !!(n % 8);
Much better if you can let the n+7 expand to a wider integer type. Or better yet, if you can ensure that it won't overflow in the first place -- which is what they did by restricting the type.
Re: Ask HN: When has switching the language/framework made an important difference?
#46A few years ago, I rewrote an `R` script into Fortran, for better than order-of-magnitude speed increase. The script optimized the placement of samplers in a building, in order to maximize the probability of detecting airborne pollutants, or to minimize the expected time required to detect. The rewrite cut the runtime down from 2-3 days to sub-hour. Some of the speedup was intrinsic to the interpreted/compiled divide…
This is the first time that I have ever encountered someone who used Fortran for something other than earth sciences related modeling. Thank you, now I have a second example the nest time someone claims "nobody used fortran anymore".
Re: Ask HN: When has switching the language/framework made an important difference?
#47Re: Ask HN: When has switching the language/framework made an important difference?
#48Earlier quoted context omitted.
This is the first time that I have ever encountered someone who used Fortran for something other than earth sciences related modeling. Thank you, now I have a second example the nest time someone claims "nobody used fortran anymore".
I’ll say it again. If the natural language of your problem domain is linear algebra and/or matrices (tensors), Fortran is the perfect tool.
Re: Ask HN: When has switching the language/framework made an important difference?
#49At work, we greatly benefited from a transition from Spring with Java to Play with Scala. This mostly due to the inherent complexity in Spring and the fact that Spring developers are also Spring experts. When the main developer behind the application left, we struggled to add new features or even fix bugs because the team lacked the Spring expertise. The rest of the business mostly dealt with Scala, so it was almost…
Re: Ask HN: When has switching the language/framework made an important difference?
#50Earlier quoted context omitted.
I’ll say it again. If the natural language of your problem domain is linear algebra and/or matrices (tensors), Fortran is the perfect tool.
Why is it better than C(++) for this?