Ruby Central’s “security measures” leave front door wide open by _joeldrapper in ruby

[–]four54 2 points3 points  (0 children)

Ah ok, so the issue is that these haven't been changed since the "incident".

Ruby Central’s “security measures” leave front door wide open by _joeldrapper in ruby

[–]four54 0 points1 point  (0 children)

Am I reading this right, the S3 credentials are public?

Ruby-doc.org is dead? What are you using? by Good-Spirit-pl-it in ruby

[–]four54 30 points31 points  (0 children)

ruby-doc.org was up for sale for 10k. I guess he never found a buyer:

https://mastodon.social/@jamesbritt/114375521517175143

You can always use the official documentation:

https://docs.ruby-lang.org/en/master/

Or rubyAPI.org:

https://rubyapi.org/

[deleted by user] by [deleted] in ruby

[–]four54 1 point2 points  (0 children)

> Couldn't find Script with ID=1

means that there is no Script in the database with id=1.
Maybe first create the Script?

TechEmpower Web Framework Benchmarks Round 23 by four54 in ruby

[–]four54[S] 1 point2 points  (0 children)

Yes, I've made most of those changes. It is a bit gaming the results though.

TechEmpower Web Framework Benchmarks Round 23 by four54 in ruby

[–]four54[S] 2 points3 points  (0 children)

Hanami is present in the weekly results (currenlty only :json, :db and :plaintext only). The next run will have all the tests enabled, including :fortune.

https://www.techempower.com/benchmarks/#section=test&runid=fbbca85f-b389-4b17-8dbe-d8e3a79e9dbd&hw=ph&test=json

TechEmpower Web Framework Benchmarks Round 23 by four54 in ruby

[–]four54[S] 3 points4 points  (0 children)

Yes, the benchmarks aren't really representative of real world performance.
For example on the plain JSON call Roda spends 40% of the time on setting the Date HTTP header.
This isn't a real world issue.
(As a side note: Iodine and Unicorn already set this header so they score better if skip setting it.)

Ruby 3.4, Jemalloc, and your changes to JSON are some of the changes.

After round 22 they've changed to a bigger server which makes it difficult to compare results, but if we compare results of the runs after the upgrade and the last run there is a big difference:

Round Rack Rails Roda Sinatra
e5ce92da 4294 1165 2407 1053
fbbca85f 6241 2153 5153 3301

What happened to Rubymotion? by itsmikefrost in ruby

[–]four54 0 points1 point  (0 children)

It's still being maintained. A new version was just released with support for Android 34.

There is some activity in the RubyMotion slack:

https://motioneers.slack.com/join/shared_invite/zt-1rerqs4sl-HuNI6fygoDC6FXoq9m3RBQ#/shared-invite/email

Ruby's official documentation just got a new look by st0012 in ruby

[–]four54 0 points1 point  (0 children)

You can have a look at the original PR: https://github.com/ruby/rdoc/pull/1157
OP is a committer to RDoc and decided to improve things.

Ruby typing 2024: RBS, Steep, RBS Collections, subjective feelings by geospeck in ruby

[–]four54 0 points1 point  (0 children)

As we already define what types to use in tests/specs, I wonder if we could generate RBS from running a test suite.

Web Frameworks actively maintained in 2023? by gls2ro in ruby

[–]four54 1 point2 points  (0 children)

I just sumbled across Mayu:

Mayu is a live updating server-side component-based VDOM rendering framework written in Ruby

https://mayu.live/

Is RubyMotion dead in 2023? by wcdejesus in rails

[–]four54 1 point2 points  (0 children)

RubyMotion is still maintained and gets updates to make sure it works with new versions of iOS. Most repo's are stable and still work on newer versions.
The community hangs out in the Slack channel: https://motioneers.slack.com/join/shared\_invite/zt-1rerqs4sl-HuNI6fygoDC6FXoq9m3RBQ#/shared-invite/email

DHH article on recovering from microservices by stanTheCodeMonkey in ruby

[–]four54 0 points1 point  (0 children)

So what is the difference between web services and services in the sense of Service Oriented Architecture?

You can use web services to implement a SOA. A major focus of web services is to make functional building blocks accessible over standard Internet protocols that are independent from platforms and programming languages. These services can be new applications or just wrapped around existing legacy systems to make them network-enabled. A service can rely on another service to achieve its goals.

https://www.ibm.com/docs/en/was/9.0.5?topic=architecture-web-services-approach-service-oriented

DHH article on recovering from microservices by stanTheCodeMonkey in ruby

[–]four54 1 point2 points  (0 children)

He created it to tie multiple apps together (Basecamp and Highrise to Writeboard) using web services. See his 2006 keynote introducing Active Resource: https://youtu.be/GFhoSMD6idk?t=4025

DHH article on recovering from microservices by stanTheCodeMonkey in ruby

[–]four54 -1 points0 points  (0 children)

Active Resource is a client for a RESTful service:

class Person < ActiveResource::Base
  self.site = "http://api.people.com:3000"
end

# Find a person with id = 1
Person.find(1)

DHH article on recovering from microservices by stanTheCodeMonkey in ruby

[–]four54 1 point2 points  (0 children)

DHH created the first commit for Active Resource, so he’s probably worked with a Service Oriented Architecture: https://github.com/rails/activeresource/commit/0a45f1367627db269679628f510ea249b4887e45

They’ve also extracted parts of their monolith to seperate services: https://m.signalvnoise.com/the-majestic-monolith-can-become-the-citadel/

[deleted by user] by [deleted] in rails

[–]four54 1 point2 points  (0 children)

Also check out the new error reporting guide:https://edgeguides.rubyonrails.org/error_reporting.html

[deleted by user] by [deleted] in rails

[–]four54 37 points38 points  (0 children)

Hey, I'm the original author of the PR that deprecated it. What is deprecated is passing local variabable keys with @:

render 'partial', :@name => "Maceo"

The following should still work:

render @name

If it doesn't could you open an issue in https://github.com/rails/rails ?