News for hackers. Stuff that matters.
Re:Crystal for Rubyists by nickjj on Tuesday November 29, 2022 @06:44AM (#33786338)
> Personally, I'd be thrilled to trade off speed of compilation for distribution simplicity!

Technologies like Docker have made distribution a lot easier. I haven't used tools like chruby or rbenv since 2014 when I started using Docker because Docker manages your app's runtime environment. You pull down your built image on your server and run it. There's no complication, sprawling of version managers or surprises.

Personally I think having a fast dev feedback loop is critically important. It's something you experience hundreds of times a day as you're developing your project.

Re:Crystal for Rubyists by chillfox on Tuesday November 29, 2022 @10:35AM (#33788800)
With static typing and analysis in the editor there’s no reason to run the code for every second line you write.

I usually only need to run it a few times towards the end of writing a feature to see if the compiler or specs catches any errors.

Re:Crystal for Rubyists by nickjj on Wednesday November 30, 2022 @06:11AM (#33799217)
If you're building web apps chances are you want to see your changes frequently since modifying a model, controller action or view may yield a different UI state.

I'm constantly editing code then directing my attention to my browser to see the results. This is independent of CSS or JS changes that might be picked up by asset watching tools like esbuild or tailwind's CLI tool.

Re:Crystal for Rubyists by chillfox on Wednesday November 30, 2022 @10:29AM (#33802034)
Fair enough, I build json rest apis in Crystal, then someone else does the js/css front end.