Sabitlenmiş Tweet
Kasper Timm Hansen
3.9K posts


@kaspth I was about to subscribe to your last online event, but It was in the middle of my chemo therapy.
English

@yarotheslav @jeremysmithco I wonder if it's textarea related too. Anyway, that's the best I got for now 😂
English

@kaspth @jeremysmithco yes, this works
✅ f.text_field :name, on input: 'this.form.requestSubmit()'
but apparently not in the stimulus context - I've just tried
English

👻I rarely get feedback on my work, so I reuse feedback others get
1) @kaspth gave @jeremysmithco the idea of Cmd+Enter for submitting comments
2) Here's how I implemented it in SupeRails/comments a moment ago:



English

@yarotheslav @jeremysmithco Huh, I've been handrolling some onchange: "this.form.requestSubmit()" on inputs recently and that worked. I'm surprised, but I guess I'd need to dig in further.
English

@kaspth @jeremysmithco that doesn't work with stimulus either
👇this does, but looks ugly:
const form = this.element.closest('form');
if (form) {
form.requestSubmit();
}
English

@yarotheslav @jeremysmithco Oh right, it's probably this.element.form in Stimulus
English

@kaspth @jeremysmithco … however this.form won’t be defined if we put it purely on the element
English


@yarotheslav @jeremysmithco Nice! If you're open to a refactoring, I think I might try this slightly differently:

English
Kasper Timm Hansen retweetledi

Three months ago, I made a commitment to @bjessbrown that I would launch an MVP of liminal.forum, my own take on old-school forums, by November 1st. And today's the day! 😅 I'm happy to announce the doors are open. Full announcement is here: liminal.forum/liminal/topics…

English
Kasper Timm Hansen retweetledi

Had a lot of fun putting this talk together! Oaken is such a quality of life improvement over traditional Rails fixtures.
Even @nateberkopec ‘s posts on fixtures made it to the talk 😂
Kasper Timm Hansen@kaspth
If you've been curious about my take on mixing fixtures & factories in Oaken, @pinzonjulian has got your back in this talk! So cool 😄 youtube.com/watch?v=bxOqXL…
English

If you've been curious about my take on mixing fixtures & factories in Oaken, @pinzonjulian has got your back in this talk! So cool 😄
youtube.com/watch?v=bxOqXL…

YouTube
English

@jasonnochlin @solnic_dev @nateberkopec Thanks Jason! With Oaken, I'm trying to make some new conventions so this kind of mixing of fixtures and factories is more generally accessible.
It's still a work in progress for sure.
English

Maybe we should all just be testing our seed task to make it sure it does _something_?
I see seeds get out of date all the time and they frequently don't even run, leaving the next onboarding dev to discover it...
gist.github.com/nateberkopec/4…
English

This is exactly what I'm doing with my office hours for teams service.
Each team gets a private weekly 2-hour Zoom session, where we debug *actual* issues and I give my takes on growing your skills and writing better Rails/Ruby. It's AMA all the way.
Nate Berkopec@nateberkopec
If you're a junior dev and you aren't working directly alongside a senior with ~10+ years experience, you need to switch gigs or start working on OSS. It's easy to stop growing w/no one to push you, no one to teach you every day, to show you what's possible.
English

I'm really liking the vibe on bluesky, if you'd like to join @heyjoshwood has got some great starter packs bsky.app/profile/joshua… 👋
English

@jespr @heyjoshwood someone took kaspth over there too, but you don't see me complaining
English

@kaspth @heyjoshwood someone beat me to it, and is using my handle over there.. so i can't :( ;)
English

