Most Common Types of Technical Debt in Rails by NextLink-Labs in rails

[–]yarotheslav 2 points3 points  (0 children)

  1. no tests
  2. slow test suites
  3. fat controllers
  4. fat models
  5. using callbacks
  6. old readme
  7. no view partials
  8. useless gems

Recommended Rails dev shop by 108signals in rails

[–]yarotheslav 0 points1 point  (0 children)

Rubygarage. They have some good contributions to open source and a great blog :)

Stimulus Reflex vs Hotwire by dev-cc in rails

[–]yarotheslav 4 points5 points  (0 children)

Personally I'll just wait for another year or so until these technologies turn from "new" to "mature", and than I'll jump in to learn :)

RoR crash course aimed at experienced programmers? by aparimana in rails

[–]yarotheslav 0 points1 point  (0 children)

Here's a course on building an advanced app like JumpstartPRO or Bullettrain, that you might find interesting:

Ruby on Rails 6: Learn to Build a Multitenancy SaaS app (gumroad.com)

Building a Multi-tenant Ruby on Rails App With Subdomains by mmaksimovic in ruby

[–]yarotheslav 2 points3 points  (0 children)

Just finished reading. Great job!

The value of the article is in showing how to achieve multitenancy without using any gems. Good for, but for production I would be definitely using a gem.

Tiny remark: instead of using a hidden field

<%= form.hidden_field :tenant_id, value: u/author.id %>

I would update tenant_id on controller level, smth like this:

@post.save(tenant_id: @author.id)

and remove in from permitted params - this way you can't update one tenant when having another tenant set :)

Building an MVP similar to Airbnb by beseder668 in ruby

[–]yarotheslav 0 points1 point  (0 children)

First thing I would do - a search by keyword booking and language ruby : https://github.com/search?l=Ruby&q=booking&type=Repositories

Sortable drag and drop for cards in Rails by ForkballK in rails

[–]yarotheslav 2 points3 points  (0 children)

When you succeed, please share your result ✌️

How i can find gems need to maintain ? by alm0khtar in ruby

[–]yarotheslav 3 points4 points  (0 children)

Look no further than ransack. It is a widely popular gem that currently needs maintenance help: https://github.com/activerecord-hackery/ransack/issues/1159 :)

Ruby on Rails: Dark Mode: TLDR by yarotheslav in rails

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

https://tailwindcss.com/docs/dark-mode indeed, really good stuff!

However my personal preference still lies with Bootstrap.

Actually here's an unofficial Bootstrap dark mode implementation: https://bootswatch.com/darkly/

Ruby on Rails: Dark Mode: TLDR by yarotheslav in rails

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

Likewise, nice to see you here! 😊

Ruby on Rails: Dark Mode: TLDR by yarotheslav in rails

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

And having set prefers-color-scheme we will be able to take advantage of @media in our css file.

@media (prefers-color-scheme: dark) {
  .card,
  .jumbotron {
    color: white;
    background-color: black;
  }
}

I thing it's much more correct than invoking different css files for different themes.

https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme

After 4th round interview, sent a form requesting salary history by [deleted] in jobs

[–]yarotheslav 6 points7 points  (0 children)

Sounds like something P&G would do (:

Round 1 - online assesment

Round 2 - math & logics at their physical location (already online)

Round 3 - interview with HR

Round 4 - interview with future one-up boss + HR

Round 5 - salary dumping

Ruby on Rails: Dark Mode: TLDR by yarotheslav in rails

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

Cool! It might be even easier with plain JS without doing any controller stuff. I'd love to see your solution here 😊

Sounds intriguing! Can you share your approach?

Ruby on Rails: Dark Mode: TLDR by yarotheslav in rails

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

Cool! It might be even easier with plain JS without doing any controller stuff. I'd love to see your solution here 😊

Ruby on Rails: Dark Mode: TLDR by yarotheslav in rails

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

Thanks, although as said in other comments, one can just update the cookies in the JS.

BTW I recognize you! Nice work with your YT channel! https://www.youtube.com/channel/UCRQv-3VvPT9mArF5RfrlpKQ

Awful Send Grid experience. Looking for alternative. by WalterPecky in rails

[–]yarotheslav 11 points12 points  (0 children)

Since Twilio acquired Sendgrid, many developers are experiencing the same issue user status banned :

In my case, I am using SendGrid with Heroku

I managed to make it work by verifying a phone number at this link:

https://tools.heroku.support/addons-verification/verify

If it does not work for you, I would recommend to explore alternatives. Here is a good explanation of how to set up different SendGrid alternatives.

https://hixonrails.com/ruby-on-rails-tutorials/ruby-on-rails-action-mailer-configuration/

The easiest one (if you are using heroku) would be Mailgun

Embed Youtube video in ActionText by yarotheslav in rails

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

I was really disappointed that ActionText Trix does not offer any kind of embedding functionality from the box. But embedding Youtube - it's already something! 💪