Ayush Newatia
Appearances
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, it is a very easy-to-use interface. I did take a lot of inspiration from it whenever I've built notifications in apps. I've not reached for that library myself necessarily, again, just because I don't really like reaching for dependencies. I prefer building stuff myself because, I don't know, I'm just wired that way. But it is a very solid library, and I look to it for inspiration.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
True. It's, it's kind of like, just the way rails goes, right, eventually stuff ends up in the platform. And then like, because you had carrier wave and paperclip for a number of years, and then active stories became a thing. And then everyone had to migrate. Yeah, it's just the way it goes. But I think I'm more looking forward to Rails 8.1 than 8, really.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Because, yeah, while I was, I think I honestly should put something in a swear jar every time I mention my book on this podcast. That's a great book, by the way.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Rails are not by Codex.com. Go buy it now. But I had a second edition planned for everything new, and that's going to be a paid upgrade. But looking at everything that's come out, I think I might actually wait for Rails 8.1, because then I can cover Active Record Search and Action Notifier, which are key parts of any web application.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
And since I'm kind of standardizing around PWAs, it makes sense to wait for Action Notifier, because I don't want to build my own system, which is, I know, going to be outdated very soon.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, the Rails 8 way, I saw that.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, I mean, you know that book's going to be solid. It's going to be good. Quite a lot of good stuff coming down the pipeline. What are your feelings on Kamal? Have you used it? Do you have any opinions on it?
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Fair enough. That's a good way to go about it. I've kind of just been watching from afar as well with Kamal, largely because it's Docker-based, and I I don't understand Docker well enough to not be afraid of it as yet. So yeah, it's probably just one of those things I need to look at at some point.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
But my one frustration with Docker and even Kamal in general is that it adds this additional moving part of a Docker registry. If all I've got is a very simple indie app that runs on one box, I don't want to have to deal with the additional complexity of pushing to a Docker registry and then my server pulling from there. It's just me working on it just by myself, running it on one box.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Why can't I build the Docker container locally and then just push that up to the server?
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, so I mean the All I'm looking at is the Twitter feed, really, because we don't have any YouTube streams as yet. Although the keynote apparently will be up later today, which honestly, Ruby on Rails Foundation is bloody amazing turnaround time. Yeah, that's incredible. Have it out on the same day.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, that's another great point as well.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah. Yeah, exactly. That's why at some point I want to do just a little deep dive personally into Docker. what it takes to just deploy a Rails app to a Linux box with something like Caddy in front of it and just see if there's a way to kind of simplify that without Docker. Yeah. Because you just don't need Docker
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
But the one big advantage of something like Kamal, I think, is if you want to sell a Once-style product, like a web app that you just do a one-off sale for. I've been thinking about this for months. Before Once was even a thing, this kind of idea was in my mind. There is absolutely no sane way to distribute a web app without Docker. It's just this rabbit hole of complexity.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
It just gets... You're telling a customer to do too much. If I was selling a Rails app that was a one-off sale and without Dockerizing it, I would basically be selling only to other people that knew Rails. No one else would go anywhere near that.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
But yes, at Rails 8, the highlights are authentication, prop shaft, the solid trifecta, which is solid cache, solid queue, solid cable. thruster and Kamal too. Which the thing that I don't know, maybe I'm in the minority of the thing out of all of that, that I find least interesting is authentication. Because I've always just built my own. I've never been a fan of device or anything like that.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
That's crazy to me. It is a bit weird. Yeah, I don't know.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yep, it's no simple problem. If it was simple, it would have probably been solved by now.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Hotwire Native.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, but I think it's the right approach that you still have. You have an Xcode project, an Android Studio project, your code base is still separate. I think that's a very good approach. And I spoke at length about this at a couple of conferences last year. So if you look up building Turbo Native apps with my name, you'll find my talk at friendly.rb last year.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
about this and I completely agree it's the right approach and honestly what they've done just seems more like a rebrand and I think it is a rebrand for the better because having Turbo Native and Strada as separate things it was just a little bit confusing and they've just unified those under this Hotwire Native umbrella now so it's one thing like both the native kind of worlds are just one thing
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Hello, hello. I've been on the podcast for a while, so hopefully frequent listeners would know. But yeah, quick intro. I'm the author of a book called The Rails and Hotwire Codex. I'm on the Bridgestone Core team, and I talk a lot of crap about Ruby.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
And the documentation is a lot better, which I believe Joe helped out with. And the other thing was, I think Joe also built a library called Turbo Navigator, which is a lot of the native navigation stuff on iOS you have to build on your own. But on Android, it's kind of part of the platform. So Joe had built this library called Turbo Navigator
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
which kind of brought the same ergonomics to iOS as well, which now I believe is part of Hotwire Native. That does simplify life on iOS as well. So yeah, it's all just very good stuff. Stuff I'll personally remain quite blissfully ignorant of, though, because I've had enough of Native in my life. I don't want any more.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
PWAs, I hope, it just needs better marketing, I think. And it also needs the big tech companies to kind of come on board with it, which is the harder part. What I would really like to see is the ability to put a button on a website that says install to home screen and you tap it and it just does it.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
I just built my own. So I don't really care that Rails kind of has it, because I'll still just use the one I made myself.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Because like now, the best solution you can have is you can have that button and you can have instructions on what to do, which is usually like click a share button and then add to home screen or whatever. You can't automate that. There is no API to do that. But you can see why Apple and Android don't want to do that.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, something to do with green paper.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Oh, yeah. Rails is just not the fashionable thing anymore. I've been asked before. I've only come to Rails in 2020. I was a mobile developer before that. I've been asked, did I find Rails to be some kind of niche framework? or something that was in the past when I got into it. And I'm like, no, I never thought that for one second.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
I always thought of it as a mature, solid piece of technology that just wasn't fashionable anymore. And I'm fairly cynical enough to not give a shit about the fashion aspect of tech. Like, I mean, you have Angular, you have React, these things just go and come in waves and I'm like, just let me write HTML and CSS like, and, and Ruby on the backend. That's the generates HTML and CSS.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, my ego is too big to let me use anything else.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
And I'm happy about anything else.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, completely. Yeah, there's nothing to add to that.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
I don't know. It's hard to pick just one, because Rails is the only backend stack that I've ever used. So it's hard to compare it to something else. But everything you need to build a modern web app is standardized in some way or the other. When you look at other stacks, this is more anecdotal from when I go speaking to JavaScript people. It's that you kind of need to pull in stuff
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
plugins and things for basic things like file upload, you need to go look for a plugin for that. Authentication, you got to go look for a plugin for that. You basically need to build a stack that Rails gives you already out of the box. If you're building a web application, all the pieces you need are already in Rails. which obviously makes it a bit of a behemoth.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
And when you need something very simple, it's not the right tool for the job for that reason. But for most modern web applications, you do need all that and Rails just gives it to you.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
It's, yeah, but I kind of want like, so I quite like Vue component, the library. uh i know there was some chatter to merge that with rails um the last time i met joel hawksley who's the leader of the project uh which was 2022 summer 22 at brighton ruby he still had ambitions of of merging it into rails so That is one dependent.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
I don't reach for a lot of dependencies naturally for every app, but ViewComponent is one of them. And I quite like that approach because it, again, focuses on generating HTML on the server, which is just the construct with which you generate it is componentized. and you send that down to the browser. And then if you need JavaScript components, I just use custom elements.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
They are absolutely amazing. It blows my mind that they're not more widely used than they are. They are just so, so useful. Last year when I was helping out with the Rails World Conference website as mentoring the junior developer who built it, And we needed to put a back-to-top button on the web page, which appears only when you've scrolled down twice the height of the viewport.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, yeah, completely. And I think just being able to drop the Redis dependency is something that's quite big. And I'm also, for small indie apps, I think having the three solid libraries along with all the move towards SQLite is just going to reduce the amount of complexity pretty significantly because you don't need a database server anymore either.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
And this was a Jekyll app, so we didn't have a JavaScript pipeline. And I don't hate myself, which is why I didn't want to set one up. So we were limited to basically vanilla JavaScript. So my first instinct would have been to reach for a stimulus controller.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
But I didn't really want to pull in JavaScript dependencies because we were just writing vanilla JavaScript without any kind of bundling or anything. So I just showed her how to use a custom element and it was just so elegant and so simple. And it's just such a great solution to so many problems.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Joel Hawksley, Joel Draper is Joel Draper is the flex guy, right?
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Okay.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
the broadcast system within hotwire is uh just like a feature of a bigger thing so yeah i guess that's why it just it feels a bit bolted on because because it is it is yeah that's funny but you know i mean i'm hopeful like it
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, that's very true. I don't know exactly what the objections to getting it into Rails were, but yeah, that is probably likely one of them is that it just feels a bit different. I couldn't articulate exactly why. Yeah.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
And you're just like, yeah, you have one SQLite database for your actual database. You have another one for your cache. You have another one for your queue. And it's just like, just creating files. It's not that hard.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, it does. I don't know. Maybe I'm a bit old school. I don't really see a massive reason for there to be this demarcation between front end and back end. Sure, you might be better at one compared to the other. But I think if you're a web developer, you should just be able to do everything.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah. Yeah. Yeah, that's probably murky territory. I'd be worried if they were working on the algorithms.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, I completely agree with all your points on specialists. And it's absolutely a good thing when you have someone who's gone really deep on one aspect of maybe front-end or back-end or whatever. But I also think that you shouldn't be completely unaware of the other thing. If you're a front-end specialist and you're ace at that,
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
It shouldn't mean that you're afraid to create a model, a controller, a database migration, that kind of stuff. Yeah, sure, you may not be as good at it as someone who specializes in the backend, but I think you should be competent enough to be able to do the basics.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, it's a good question. Off the top of my head, I wouldn't know what to point them at. I'd probably look for a blog post, to be honest. I'd probably look for a step-by-step tutorial on how to create a model or whatever.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
because the Rails guides are very good, but they're also kind of aimed at someone who's actually trying to learn Rails or is familiar with Rails, which is fine because you need to write for a certain target audience. Otherwise, nothing's ever going to make any sense. But yeah, if I'm talking to someone who's more front-end, he doesn't really know much about Rails.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
And unless they're keen to really get into Rails, the guides is probably not where I would send them.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, I love that name. Yeah, they announced House MD a while ago and It's something I've kind of been keeping my eye on. But I have a little bit of a scar tissue here with Trix because it's a fairly fiddly editor to use. You can't extend it much. Maybe recently their stance on it has changed, but they didn't seem particularly involved in trying to improve it or even have community involvement.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
I should just buy my book.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
In case you don't know, Ayush's book, the Hotwire Codex. Rails and Hotwire Codex.com, go and buy it now.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, and if it's not, you can email me.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
And you can demand, like, I demand that you write about this feature. Yeah. I may not pay any attention to your demand, but you can write me if you want.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
I don't know. For me, I think conferences are just about networking. I don't necessarily miss any of the talks because I just catch up on YouTube afterwards most conferences these days. Put the talks on YouTube. The main reason I kind of wish I was there is the networking aspect, especially as a freelancer. It's kind of key.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
But again, as a freelancer, getting over to Toronto and paying for, I think it was like $500, $600 ticket on top of hotels and flights. It's just like... And then the opportunity cost of lost income, because if I go, it'll be probably a week, and that's one week of income lost. You're looking at, when you combine everything, you're probably looking at closer to like $5,000.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
And it's like, do I really want to spend that much? I'm going to New Zealand for six weeks at the end of the year, and I'm probably spending about 6,000 pounds for that entire trip for six weeks. Yeah.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, they're really good. I think I'd give a shout out to Friendly.rb where I spoke last year. It was last week. I couldn't go this year just because the dates didn't work for me. I had another trip planned. But if anyone's looking to get over to Europe, that's probably one. And I'm speaking at Haggis Ruby next month as well. That's the first year of that conference in Edinburgh.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
So that should be fun because Ollie, who we had on this show, I think two or three weeks ago, he's a speaker as well. So I'm sure that'll be a good conference as well.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, lovely city. I love going there.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, I think we've covered everything that we know of at this point.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, I think we really need to get Rosa on to talk about Solid Q. I love that. Yeah, and I think we should get someone. I think it's Donald... who handles a lot of the Kamal stuff. I'd love to get him on and chat Kamal with him. Yeah, we'll have to schedule it.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, exactly. Sometimes the best way is just to have a couple of idiots like us just ask stupid questions to the expert. And that's how other people can also learn. So definitely worth getting them on.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
No, I think that covers it.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Do you want to go first or do you want me to? Yeah, I'll go first. So I'll do a musical pick and a movie pick, I think. I don't have... Actually, I'll do a tech pick as well. So I have a musical pick. I went to see a band called Big Big Train on Tuesday. They're like an English progressive rock band. To me, they kind of... just embody England as a country.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
They're like the most English band you could ever have. They sing about like the history and the countryside. And they had one album, which was like about a little bit about space exploration. They have a song called Apollo and Voyager and stuff. They're like very, the latest album has two songs about cricket. So they're about as English a band as you could possibly get. So I absolutely love them.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
They're a great live band as well. I believe they're over in America next year for a few shows in the spring. So if live music is your thing, I'd recommend checking them out. I recently saw a movie called See How They Run, which I just loved it. It's a twist on the whodunit genre.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
I created a pull request that literally added an undocumented event to the readme. And I think that pull request remained open up until two or three years later on.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
So it's kind of... The events take place around a performance of the play The Mousetrap, which itself is a good old-fashioned hoot on it written by Agatha Christie, which has been running here in London for something like 70 or 80 years or something silly like that. So the events of this movie take place around that performance and it is just...
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
such a self-aware and self-deprecating movie like how deadpool is self-aware for superhero movies and kind of makes fun of itself i think see how they run is equally self-aware to the hood on a genre and equally makes fun of itself and i just love movies that are like that it's like we know we're full of shit and we're not gonna make any pretense that we're not full of shit
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
It's brilliantly written. So yeah, that's my movie pick. And yesterday, I was just looking for some applications that would help me screen record and webcam record at the same time to do a screencast or something if I just want to send a demo.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
of something i'm doing to a friend i couldn't find something that was like cheap just that literally just did this one thing which is record my screen and the webcam and give me a video file at the end But then I found this app called CleanShot X or CleanShot 10. I don't know which one. But yeah, cleanshot.com. I haven't bought it yet, but it looks exactly like what I'm after.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
So if you're looking to record screencasts, CleanShot is probably a good way to go if you're on a Mac. Right, that's my picks.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
It was literally just literally two lines with readme. And I know other people who've kind of tried to improve tricks or stuff like that and just not really had much success working with the maintainers.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Simple is good. I like simple.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
What's it called again?
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Okay. Nice. Cool.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Okay. Yeah, I'm just looking at the readme now because I was going to say that my client, we pay for Sidekick Enterprise and we've got quite a lot of complex stuff around batching and callbacks and stuff like that. So I'll check this out. Maybe it can make life easier in some way or the other.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
So yeah, house MD, I'm just tempering my expectations a little bit because yeah, just I think they've obviously built what works for them, which is not always going to work for everyone else's use case. And I'd like the community to be able to improve it and just make it better. But whether that's going to be viable, we'll find out.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, absolutely. It'd be great to get them on the show and pick their brains.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Cheers. Take care, everyone.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, it's a minor update. Just a whole bunch of continuity fixes that a very diligent reader sent me.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, you'd hope so, but I've read the kind of remit of the Rails Foundation and open source isn't really one of those things. I see a lot on social media about, oh, why can't the Rails Foundation fund this gem or that gem or this maintainer? And I'm like, They never claimed that they would be doing any of that.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
If you read the initial announcement, that open source doesn't feature really in their mission or whatever you want to call it. They'll focus on improving documentation, which is something that's happening. Yeah, that's true. Yeah, funding open source is not one of the things they do, and right or wrong, that's not something they've ever claimed to do.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
You can say that again. That's what makes continuity so unbelievably hard.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
like some of the mistakes that this reader sent me to like some a piece of code that i'd written that i kind of modify like three chapters later but i'd forgotten to backport the changes and stuff it's like see this is what i'm waiting ai to do right it's just like all this nonsense work that has to happen but like nobody really wants to do it right like
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, so I think that's where there's a little bit of mismanagement, I think, is because the Rails core team is really good, and they have a really defined structure, like core committers and the issues team. And with Rails, they're always on it. Like, I've always got responses to any PRs pretty quickly in Rails.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
But then there's some stuff that's in Rails that kind of sits in this gray area, which is kind of in Rails, but not, which is like all the Hotwire libraries are, they're in Rails, but they're kind of not because they're owned by 37signals. Trix is another one because Trix is, action text is in Rails, but Trix is in Basecamp's organization, so it's like 37signals or whatever.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
So it's like, yeah, there are certain things that sit in this weird gray area, which is kind of in Rails, but kind of not. And I think that's where all the problems are happening.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
I don't know. Yeah, it is a bit of frustration with, I know people who've contributed to Hotwire, especially Marco Roth gave a great talk at a few conferences just about obviously all the good stuff in Hotwire, but some of his frustrations as well. And a lot of that was organizational. So... We'll just have to see how this stuff evolves.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
And it's just my personal frustration is that some of these things are in Rails as defaults, like tricks and stuff. But they aren't in control of the Rails core team. So that just creates a little bit of mismanagement, I think. But we'll see what happens. Yeah. The other two things that you mentioned for Rails 8.1 are things that I'm very much looking forward to.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Active record search is something that I think is going to really simplify matters.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
No, not really. So for my book, I wrote an entire chapter on search, and that's why actually I'm quite happy that it's now built into Rails. And I didn't really use a gem. I just used the full-text search and diagram search features in Postgres and then hand-wrote ARL queries
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
A lot of this was academic because once you teach a reader how to do those things, then your level of understanding just goes way up. So I'm not really concerned about whether it aligns with a certain gem or not. The main thing is I just hope it has support for full-text search and trigram search because they are different strategies.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
just your database search is probably good enough. I can only speak to Postgres because I've not used the full-text search in other databases. But it's actually really good. It's only when you want to start going quite advanced is when you need to reach for something like Elasticsearch.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
The client I'm working with at the moment, it's kind of like an AI-powered search engine for people and companies, kind of like a directory of people and companies. And we've used Elasticsearch for that because literally the core offering is a search engine, so we need something quite beefy. But that is probably one of the very few exceptions when I would go
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
reaching for something like Elasticsearch is when your core offering is literally search.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Yeah, I think it would really simplify matters. I think it's one of those things that's been a bit of a long time coming, but I'm glad it's on its way now. And the action notifier is another one that is going to be cool because push notifications are just fiddly. It's just the nature of them. It is that they are just fiddly.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
And if my understanding of what the framework is is correct, then it's going to handle sending notifications to web, iOS, and Android. So you don't need to worry about any of that on your own. Obviously, the web stuff is what kind of interests me the most because going forward, me personally, my focus is going to be completely on PWAs. I'm leaving the native stuff behind.
Ruby Rogues
Navigating Rails for Front-End Developers: A Comprehensive Guide to Integration and Transition - RUBY 654
Even the second edition of my book is not going to have any native stuff. I'm going to remove it all in favor of PWAs. So web push is something that I need to explore. I know you can do it now in Rails, but Action Notifier would just make it easier.