It was excellent last night - some really useful info about Hotwire Native, 
thanks Ste! Also nice to see our numbers are growing and there was some 
really interesting discussions afterwards.

So I've gone all in monkey patching JavaScript with some Ruby and Rails 
methods and I really like it. I think you can mitigate a lot of the issues 
with monkey patching and then it just comes down to whether adding more 
methods to native objects a good idea or not. Personally I like the fact 
that JavaScript is flexible enough to add let me add the methods I like 
using in Ruby. It was also a nice exercise in trying to recreate them and I 
found out about quite a few methods I didn't realise Ruby had!
https://github.com/daz-codes/rubydoo

Henrik - love that Elixir library, I was thinking of something similar but 
went one further and used 5 |> days |> ago
The pipe operator is definitely a great way to get a nice syntax without 
having to monkey patch, it would be great if it ever came to JS
I had a play around with doing it in JavaScript using polyfills for the new 
Temporal class and pipe operator:
// Number -> Duration
const days = n => Temporal.Duration.from({ days: n })
// Duration -> Date
const ago = duration => Temporal.Now.plainDateTimeISO().subtract(duration)
// Duration -> Date
const from_now = duration => Temporal.Now.plainDateTimeISO().add(duration)
// Number -> Date
const daysAgo = n => ago(days(n))

// All of these are the same
console.log(daysAgo(2))
console.log(2 |> daysAgo)
console.log(2 |> days |> ago)
You can see it here:
https://codepen.io/daz4126/pen/JoYQQd

On the subject of JavaScript ruining the Internet, I thought this thread 
had some interesting opinions:
https://news.ycombinator.com/item?id=45261480

Last of all - Tekin pointed me to DHH's latest rant and I think it's his 
worst yet, horrible read.

Thanks to everyone for organising and to Fatsoma for the room and pizza!

DAZ



 
On Friday, September 19, 2025 at 8:27:17 AM UTC+1 Henrik Nyh wrote:

> Great presentation, and nice meeting everyone!
>
> We discussed monkey patching over pizza – this is the Elixir library I 
> mentioned: https://codeberg.org/DevL/good_times (`5 |> seconds_from_now` 
> after importing… which is a more targeted affair than in Ruby 
> <https://thepugautomatic.com/2015/11/elixir-scoping/>).
>
> And this is my employer's Turbo-based app: https://auctionet.com/en/app Not 
> super polished, but easy for a small team to maintain. The mildly 
> interesting parts I can think of is that it uses a native image viewer (tap 
> the image on a product page), native PDFs viewer (buy something, view the 
> invoice 🤑), and modals in the payment flow.
>
> On Thursday, 18 September 2025 at 09:31:41 UTC+1 Tekin Süleyman wrote:
>
>> Hi folks, final reminder for tonight’s NWRUG. Steven Harrison will show 
>> us how Turbo Native enables us to build full stack mobile apps using just 
>> (almost) Rails. 
>>
>> We’ll be at Freinds’ Meeting House 
>> <https://meetinghousemanchester.co.uk/> from 6:30pm in room G3, with the 
>> talk starting at 7pm. Afterwards we’ll retire somewhere local for pizza and 
>> more Ruby chat. 
>>
>> All the details are on our website 
>> <https://nwrug.org/events/september-2025-turbocharged-native-development>, 
>> and please register here <https://buytickets.at/nwrug/1862169> if you 
>> plan to join us. 
>>
>> Thanks to Fatsoma for sponsoring the event❤️ 
>>
>> Tekin
>>
>> On 16 Sep 2025, at 9:02 am, Tekin Süleyman <[email protected]> wrote:
>>
>> The next NWRUG is just a couple days away! Come join us as Steven 
>> Harrison takes us on a tour of building native mobile apps using Turbo 
>> Native.
>>
>>
>>  Don’t forget to register 
>> <https://app.tickettailor.com/events/nwrug/1862169> if you plan to 
>> attend.
>>
>> Tekin
>>
>>
>> On 13 Sep 2025, at 17:16, Tekin Süleyman <[email protected]> wrote:
>>
>>
>> Hi folks,
>>
>> Better late than never, here are the details for next week’s NWRUG: on 
>> Thursday (18th) at The Friends’ Meeting House 
>> <https://meetinghousemanchester.co.uk/>, Steven Harrison will be taking 
>> us on a tour of Turbo Native
>>
>> *I've often seen the requirement of a native application used as a reason 
>> to only use Rails as an API. But with Hotwire Native, we can bring the 
>> speed and productivity of full-stack Rails to mobile development. In this 
>> session, we’ll look at how Hotwire Native works, some unique advantages of 
>> building apps this way, and what’s coming next for the framework.*
>>
>>
>>
>> We’ll be at the venue from 6:30pm with the talk starting at 7pm. 
>> Afterwards we’ll retire to a nearby establishment for a drink and some 
>> pizza, kindly provided by our sponsors Fatsoma <https://www.fatsoma.com/>
>>  and thoughtbot <https://thoughtbot.com/>.
>>
>> Register here <https://app.tickettailor.com/events/nwrug/1862169> if you 
>> would like to attend. Full details on this (and all our events) over on our 
>> website 
>> <https://nwrug.org/events/september-2025-turbocharged-native-development>
>> .
>>
>>
>> See you next week!
>>
>> Tekin
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "North West Ruby User Group (NWRUG)" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion, visit 
>> https://groups.google.com/d/msgid/nwrug-members/4A9D993E-9BB1-49BD-88A2-18124CCBD55D%40tekin.co.uk
>>  
>> <https://groups.google.com/d/msgid/nwrug-members/4A9D993E-9BB1-49BD-88A2-18124CCBD55D%40tekin.co.uk?utm_medium=email&utm_source=footer>
>> .
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "North West Ruby User Group (NWRUG)" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>>
>> To view this discussion, visit 
>> https://groups.google.com/d/msgid/nwrug-members/478ED0A1-DBF2-4EC4-BA24-7E3D33DA5B62%40tekin.co.uk
>>  
>> <https://groups.google.com/d/msgid/nwrug-members/478ED0A1-DBF2-4EC4-BA24-7E3D33DA5B62%40tekin.co.uk?utm_medium=email&utm_source=footer>
>> .
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"North West Ruby User Group (NWRUG)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion, visit 
https://groups.google.com/d/msgid/nwrug-members/c3ed4d68-d665-42b9-8739-5098b18b9cd8n%40googlegroups.com.

Reply via email to