<adam12>
Every app I've built since 2015 has used Sequel.
<adam12>
I'm looking at writing more Rails again and not really looking forward to being limited by ActiveRecord again :\
<weaksauc_>
adam12 there a reason you don't want to use sequel
jenrzzz has quit [Ping timeout: 264 seconds]
<weaksauc_>
s/don't want to/preventing you from
jenrzzz_ has quit [Ping timeout: 264 seconds]
<adam12>
weaksauc_: Past experience tells me that going against "the Rails way" is usually painful.
<adam12>
I've had some changes to my long-term consulting arrangements, and new arrangements may not be using Sequel. If they are evergreen by me, they normally would be, but you just never know.
<weaksauc_>
ah that tracks
<weaksauc_>
i wonder how painful a hybrid approach would be
<weaksauc_>
(never used sequel for the record)
<adam12>
There's a plugin that let's you re-use activerecord connections that might not be too bad.
<adam12>
But if you used Sequel models, it would just be too confusing.
<adam12>
Having access to the power of Sequel expressions in a Rails application would be amazing tho.
<adam12>
I stopped writing Rails back in 2015 because Sequel was way better, and adding it to Rails was possible but challenging. Lots of things expect ActiveRecord.
<adam12>
Specifically at the time, I wanted class table inheritance.
<adam12>
I think Rails kind of has it now with delegated types?
<adam12>
I occasionally do security audits of Rails applications and it's not uncommon to find sql injection risks, especially where there are no nice constructs to build a query (and they can't figure out Arel). Very rarely do I find anything in a Sequel app.
<adam12>
I doubt they'd ever be able to bring in Sequel now.
<weaksauc_>
it does seem that ar makes the easy things easy and the hard things possible
<weaksauc_>
kinda optimized AR for the blog demo
<adam12>
My issue was always that they treated the database as a dumb data store
<adam12>
Even constraints/foreign keys were not really supported until recently.
<weaksauc_>
yeah
<adam12>
They wanted everything done in the app, which I found to cause weird bugs.
<weaksauc_>
FK was an active choice bitd
<weaksauc_>
"i want a single source of truth"
<adam12>
Sequel doesn't really hold your hand. Want an association through 5 tables? Have at it.
<adam12>
Adopting Sequel is a risk because it's just Jeremy and I'm sure he's gonna retire soon. I looked through the code and I'd adopt it if I had to, but throw away all the adapters but postgres and sequel :P
<adam12>
s/soon/eventually/. He's still pretty young.
<weaksauc_>
i'd prefer that probably... though a lot of db things are just crud which AR does do quite well
<weaksauc_>
but anytime you deviate a bit it's pain
<adam12>
Yeah.
<adam12>
Sequel is definitely a "database toolkit" vs an ORM. You can completely forget about the ORM part if you want to, and Sequel is still awesome.
<weaksauc_>
jermey seems to be a robot
<adam12>
A thin layer over every database adapter you can think of.
<weaksauc_>
there's so many projects he's lead of
<adam12>
He does. I don't know where he finds the time.
<henk>
I’m kinda going insane here with ACME/letsencrypt and JWT. neither ruby-jwt nor json-jwt seem able to do what is needed for it to work with ACME/LE and I find that a bit hard to believe … so in some way I think I must be doing something wrong. ruby-jwt does not seem to support JWT flattened notation so whatever comes out of it cannot be used with ACME. json-jwt on the other hand seems to just add
<henk>
a `kid` header when I `sign` my JWT and ACME does not like that for the newAccount request because this needs to carry a `jwk` header key with the new jwk to be used for the created account and that is mutually exclusive with `kid` header key. am I missing anything here?
<henk>
yeah, I’m going to use acme-client as well, I think … I’m mainly writing my own client for the higher level features but thought I could learn some things about the lower-level stuff by doing this myself. but the JWS/JWT/JWK stuff seems a real PITA and I’m not prepared to get into ASN.1 and DER and encryption key components ATM …
<adam12>
I don't blame you.
osc4rpt has joined #ruby
osc4rpt has quit [Client Quit]
<adam12>
I thought that the JWS was just a signed HMAC which isn't that bad, but looking at ASN.1 and DER, it looks less appealing. I'm all for eliminating dependencies, but personally this might be one yak I let someone else shave.
jenrzzz has joined #ruby
<henk>
yeah, me too for eliminating dependencies, but this is too hairy
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
brokkoli_origin has quit [Ping timeout: 246 seconds]
dalan038228335 has quit [Quit: dalan038228335]
dalan038228335 has joined #ruby
brokkoli_origin has joined #ruby
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
infinityfye has quit [Quit: Leaving]
bambanxx has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 264 seconds]
desnudopenguino1 is now known as desnudopenguino
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
Linux_Kerio has quit [Read error: Connection reset by peer]
Linux_Kerio has joined #ruby
bambanxx has joined #ruby
osc4rpt has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bambanxx has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
donofrio has quit [Read error: Connection reset by peer]