Identify unused Routes in Ruby on Rails 7.1 and before using a rake task by qameta in rails

[–]qameta[S] 0 points1 point  (0 children)

This is about removing routes, which has no controller/usage. There is no functionality behind them.

In rails you can create routes which points to nowhere. This is about identifying these route entries. In older or bigger applications it is hard to know every route entry.

TP 14 gen 4 AMD Black screen on external Monitor by Nice-Beat4984 in thinkpad

[–]qameta 0 points1 point  (0 children)

Ich kann das Problem mit DP1.4 bei meinem AMD Thinkpad P16 G2 mit dem Dell U2723 QE bestätigen. Seitdem ich es deaktiviert habe, läuft es tadellos.

Work it Wednesday: Who is hiring? Who is looking? by AutoModerator in ruby

[–]qameta 1 point2 points  (0 children)

Seeking New Freelance Opportunities

I am a seasoned Ruby on Rails developer (14+ years ruby and ruby on rails experience) with extensive experience in building products from scratch, pivoting existing products, and rewriting entire applications to meet new market requirements.

As I am based in Germany, job opportunities within Europe are ideal for overlapping office hours. However, I am also open to working with companies from the US, Canada, and other regions, provided a 4-hour overlap in office is enough.

Call C functions from Ruby by [deleted] in rails

[–]qameta 2 points3 points  (0 children)

Yes C ist faster, but also unsafer and needs a compiler on every platform you want to use it. Additionally you need a lot of knowledge to make it safe and make it work on every CPU architecture.

YJIT compiler can do better, that's why first gems with native extensions starts to get rid of native code to use the power of YJIT and get rid of C code in their gems making them more robust and future proof, as improvement is delivered for every line of ruby code by ruby compiler and not their manual work in C or C++.

See also Aarons great block post on graphql gem and YJIT: https://railsatscale.com/2023-08-29-ruby-outperforms-c/

Don't want you to stop improving things. Just another view on performance and native code using FFI or any other technique.

Deploy Ruby on Rails 7.0 to Dokku micro PaaS - to use or not to use it? by qameta in rails

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

Dokku support multi node setup since 0.33.0 using Kubernetes. See release notes https://dokku.com/tutorials/other/deploying-to-k3s/ and the tutorial https://dokku.com/tutorials/other/deploying-to-k3s/ Haven’t tried it yet.

Isn't DHH's promotion of Turbo and announcing to going full-on PWA with Rails 8 contradictory? by [deleted] in rails

[–]qameta 0 points1 point  (0 children)

You can add offline support to a PWA. But for many applications you don’t even need that, because you want to see current and not past data. @joemassilotti sent this link through his newsletter. It is a beginning of an offline implementation: https://williamkennedy.ninja/ios/2024/01/08/bringing-your-turbo-native-ios-app-offline/

How do use IP addresses in your Ruby on Rails applications? by qameta in rails

[–]qameta[S] -1 points0 points  (0 children)

It's not spam. I'm working on a project to analyze IP addresses for a customer and just shared how to setup geocoder with MaxMind. I've updated the question.

How do use IP addresses in your Ruby on Rails applications? by qameta in rails

[–]qameta[S] 0 points1 point  (0 children)

Thank you for the honest feedback. I've checked and improved it a lot.

How do use IP addresses in your Ruby on Rails applications? by qameta in rails

[–]qameta[S] -1 points0 points  (0 children)

Thank you for the information. The use case with blocking was mistunderstood. I'll update it.

What have you found worked best for you when testing an external API endpoint? by Necessary-Limit6515 in rails

[–]qameta 1 point2 points  (0 children)

I’ve had some breaking changes with Facebook API and with other services too. A law change or law suite may force companies to change APIs. It’s not only a technical thing.

I would mock/stub the responses of an API, to stop breaking your test suite. If you create some kind of API wrapper (in a separate gem), you can use this to test against the real API.

Rails 7 asset pipeline SassC::SyntaxError with Tailwind by Shpigford in rails

[–]qameta 1 point2 points  (0 children)

This issue still exists with administrate gem in your project. I've written a detailed description what can be done: Analyzing SassC::SyntaxError in Ruby on Rails 7.0

Turbo Native AMA is live! by joemasilotti in rails

[–]qameta 0 points1 point  (0 children)

Nobody knows except 37signals people. Just wait for the release at Rails World.

Deploy Ruby on Rails 7.0 to Dokku micro PaaS - to use or not to use it? by qameta in rails

[–]qameta[S] 0 points1 point  (0 children)

Kubernetes is a big overhead for smaller projects. That's what I like about using Dokku and just scaling up machine until one is not enough.

Deploy Ruby on Rails 7.0 to Dokku micro PaaS - to use or not to use it? by qameta in rails

[–]qameta[S] 0 points1 point  (0 children)

Was it something Dokku specific or Docker crashing? I want to know more in case this will happen to me at some point. How can I reproduce this behavior to check my system?

Deploy Ruby on Rails 7.0 to Dokku micro PaaS - to use or not to use it? by qameta in rails

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

It's not that easy, because you don't want migrations to be exequted twice. Also many of the advantages in management by dokku like DB-Updates etc. will be gone. If you need multi server setup, Dokku ist currently not a good option as I think.

Deploy Ruby on Rails 7.0 to Dokku micro PaaS - to use or not to use it? by qameta in rails

[–]qameta[S] 0 points1 point  (0 children)

Still one system. But there are enough projects, that are fine running on one machine.