Julik Tarkhanov Profile
Julik Tarkhanov

@juliknl

Followers
30
Following
125
Statuses
76

Maker of zip_kit, stepper_motor and pecorino. Speaker, engineering manager and former VFX artist. Alter ego / better part of @julikt https://t.co/I2xzOjMfwi

Noordzee
Joined November 2024
Don't wanna be here? Send us removal request.
@juliknl
Julik Tarkhanov
9 hours
@fatkodima When ActiveJob is available mandating or requiring Sidekiq is not responsible, imo.
0
0
0
@juliknl
Julik Tarkhanov
2 days
@mikker @jeremyevans0 It is almost to the point where the way to pick the best tools for frontend in Rails is giving up on _any_ tools whatsoever and just doing bare CSS and bare JS 🤷‍♂️
0
0
0
@juliknl
Julik Tarkhanov
2 days
A great example where batching matters *a ton* is the recent addition of `enqueue_all` in ActiveJob adapters. Using `enqueue_all` can sometimes speed up your actions by a factor of 40x (!) - just because you bypass the fancy per-object/per-model indirection-fest with procedural code that is optimised for the task.
0
0
1
@juliknl
Julik Tarkhanov
2 days
@danielbergholz @nextjs Frontend is not necessarily easy, but indeed it is not easy for other reasons. Not for using a kitchen-sink of React gunk and complex SSR/CSR flows, but because UI is hard. When proper UI gets done it is not necessarily easy - and that's ok :-)
0
0
0
@juliknl
Julik Tarkhanov
2 days
If they "have a single singleton method called `.call`" they do so because they are built stateless, and are actually Commands or Workflows - and it is fine. The reason to have just `.call` is to indicate that any state of the command is ephemeral and should not be mucked with. This is good.
0
0
3
@juliknl
Julik Tarkhanov
2 days
@MichaelDChaney @MorriceGavin Absolutely yes on both. On my last app where heavy use of commands was present some commands were 900+ lines - with ample comments and exactly to achieve the 2). It was meant as well-tested, very procedural, robust code that only makes sense executed "as whole".
0
0
2
@juliknl
Julik Tarkhanov
2 days
@MorriceGavin Interesting choices on some of these. I think I would entirely forego Slim, not use SASS (hardly finding it useful these days), and I would certainly not use Sidekiq but solid_queue, good_job or Gouda (given it is PostgreSQL)
0
0
0
@juliknl
Julik Tarkhanov
2 days
We did React, Redux, mobx, zustand, zod and SSR and localStorage. Most apps (including big cloud) still cannot handle one account logged in in one browser window and another in the second. And god forbid you want to live-switch inside the same window without state loss.
0
0
0
@juliknl
Julik Tarkhanov
2 days
@marcoroth_ @fatkodima Strictly speaking, there are 6 if you use the following matrix: combinations = { syntax: [:do_end, :braces], args: [:named, :implicit_numbered, :implicit_it], } Like others mentioned - having multiple ways to do things is very Ruby, it is not Python or Go for good reasons.
0
0
1
@juliknl
Julik Tarkhanov
2 days
@fatkodima Nah, it's going to be fine. The ergonomics of those trivial cases (single-arg map, filter and each, primarily) are so good that it's worth the mental remapping ("this used to be an rspec test definition call"). I did have 1 case of shadowing which was annoying, but that's it.
0
0
3
@juliknl
Julik Tarkhanov
2 days
@inazarova @github @hackclub @evilmartians Would love to see a recording of that first discussion... /cc @mr_mig_en
1
0
1
@juliknl
Julik Tarkhanov
2 days
@collin_jilbert So far my comment is this: this is the best syntax improvement since block rescue. It is very ergonomic and very useful, with the biggest downside being variable shadowing in nested blocks.
0
0
1
@juliknl
Julik Tarkhanov
2 days
@dhh Seconded.
@juliknl
Julik Tarkhanov
1 month
The `it` keyword in Ruby 3.4 is actually very pleasant (and much better than numbered block args with underscore). Haven't enjoyed a new bit of syntax so much in a long while.
0
0
2
@juliknl
Julik Tarkhanov
4 days
@igor_alexandrov And once you start having separate devs and ops (and didn't prepare for it very thoroughly nor have the reasons for doing so) - you will fail twice
0
0
1
@juliknl
Julik Tarkhanov
5 days
@KennedyRichard @DigheroJorge @tom_doerr Didn't know about this one, cool!
0
0
1
@juliknl
Julik Tarkhanov
5 days
0
0
0
@juliknl
Julik Tarkhanov
5 days
@KennedyRichard @DigheroJorge @tom_doerr My pleasure! Love Nodezator even though I never needed to use it. If you are curious about the "cutting connections" bit, I've made a codepen for it a long while back:
1
0
1