HackerTrans
TopNewTrendsCommentsPastAskShowJobs

p8

no profile record

comments

p8
·2 tahun yang lalu·discuss
Squish also replaces consecutive whitespace with a single space. " foo bar \n \t boo".squish # => "foo bar boo" https://api.rubyonrails.org/classes/String.html#method-i-squ...
p8
·3 tahun yang lalu·discuss
> Today with Spring Boot, for instance, you can bootstrap and develop your app as quickly and easily as any other cool and alternative framework but with the advantage of using a really popular and fast language.

Looking at the Spring Boot guides, the amount of setup, complexity and lines of code just to get an application running with MySQL doesn't support this statement: https://spring.io/guides/gs/accessing-data-mysql/ Even 20 years ago this would be easier in Rails.

Or try building the blog demo that's build on the Rails homepage video in Spring Boot. 35 minutes to build a blog with rich text (including image uploads), live comments, notification mails and tests. And after changing the database to PostgreSQL, deploy it to production. https://rubyonrails.org/
p8
·3 tahun yang lalu·discuss
The 15% is for the total request time including waiting for blocked IO.

> All that work allowed us to speedup our storefront total web request time by 10% on average, which is including all the time the web server is blocked on IO, for example, waiting for data from the DB, which YJIT obviously can't make any faster.

https://twitter.com/paracycle/status/1605706245955997697
p8
·3 tahun yang lalu·discuss
Amazon was founded in 1994, that's not the same era.

Ruby didn't even exist back then and was released a year later. Rails was released in 2004. Shopify was founded in in 2006, 12 years after Amazon.
p8
·3 tahun yang lalu·discuss
> Overall YJIT is 61.1% faster than interpreted CRuby! > On Railsbench specifically, YJIT is 68.7% faster than CRuby!

https://speed.yjit.org/

For 3.2 there also was an improvement of the interpreter:

> We now speed up railsbench by about 38% over the interpreter, but this is on top of the Ruby 3.2 interpreter, which is already faster than the interpreter from Ruby 3.1. According to the numbers gathered by Takashi, the cumulative improvement makes YJIT 57% faster than the Ruby 3.1.3 interpreter.

https://shopify.engineering/ruby-yjit-is-production-ready
p8
·3 tahun yang lalu·discuss
So where are the Shopify's of that era build on Struts and JSF?
p8
·3 tahun yang lalu·discuss
There's also a reason Kotlin has become the language of choice for the Android development industry, Scala became a thing, and ThoughtWorks recommended against using JavaServerFaces.
p8
·3 tahun yang lalu·discuss
Nobody cares about performance if you build a business application with a couple of users, a common use-case in 2005. The reason a lot of Java people jumped on the Rails bandwagon, was that an application that would take a month to build in Java with Spring/Hibernate, would take a day in Rails. See also: https://www.oreilly.com/library/view/beyond-java/0596100949/
p8
·3 tahun yang lalu·discuss
Yaroslav Shmarov - 18 months of using hotwire and viewcomponent in production https://www.youtube.com/watch?v=9-btmed9CMw

RailsConf 2022 - React-ing to Hotwire by David Hill https://www.youtube.com/watch?v=6uj5o7U-3Y4

Stackoverflow uses Stimulus.

Github uses Turbo.
p8
·4 tahun yang lalu·discuss
DrNic has a video series recreating Notion in Ruby on Rails: https://www.youtube.com/watch?v=XWfyffFWbDI
p8
·4 tahun yang lalu·discuss
This is great news for the Rails community! Looking forward to what this will bring.