postmodern's latest activity

I'm liking that ROM has *finally* been integrated into Hanami, but I also worry about the amount of ceremony involved with mapping in a single table and querying it.
hanamirb.org/blog/2024/11/05/h

1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin

@nateberkopec @jamie ideally, a framework or templating library could detect when a template is pure-HTML and automatically treat it differently.

0
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin

Just ran into an interesting question, is there a templating framework that allows including pure-HTML partials? Like what if your partial does not have any interpolation or logic in it, just HTML? Surely there's a way you could skip "rendering" the partial and just inline the static String. Rails had a `format: [:html]` option, but it's not clear whether that will bypass ERB rendering.

1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin

There was a thread on the /r/ruby subreddit where @headius lamented about how C extensions have hindered JIT and eventual plans to remove the GIL. @tenderlove chimed in with tentative plans to eventually move away from C extensions. If we could somehow rid ourselves of C extensions, this would make it easier for multiple Ruby versions to share the same GEM_HOME (ex: RVM/rbenv/chruby). You shouldn't have to delete/re-install all of your gems after upgrading ruby 3.1.5 -> 3.1.6.

1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin

Definitely think this is a bug in rubocop.

Style/ConditionalAssignment: Use the return of the conditional for variable assignment and comparison.
case other ...

Occurs in this code:

def ===(other)
case other
when IPRange
@range === other.range
else
@range === other
end
end

…See more
1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin

@searls rumor is consumer spending is dropping fast as the economy slows down to high interest rates and sticky inflation. Companies are getting desperate.

0
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin

@searls I've also noticed flawed PRs containing invalid markdown/documentation syntax during Hacktoberfest. I suspect people are using ChatGPT to generate the PRs, and then maintainers have to go through multiple rounds of review in order to fix the PR. While LLM can generate code, they can't distinguish between different markup syntaxes or documentation formats.

0
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin

@nateberkopec I think there needs to be more recent examples of how to do SSE. The sinatra-sse README's example references eventmachine. I assume I can use the async gem to pipe redis pubsub into SSE?

0
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
Replies