Prabin Poudel

13.6K posts

Prabin Poudel banner
Prabin Poudel

Prabin Poudel

@coolprobn

Ruby on Rails Freelancer . Traveller . Teaching automated tests at https://t.co/lkoFp03pvr . https://t.co/Wa1iswKcVh . DM for collaboration .

🇳🇵 Katılım Mart 2010
302 Takip Edilen2.4K Takipçiler
Sabitlenmiş Tweet
Prabin Poudel
Prabin Poudel@coolprobn·
6 years into programming and still sometimes I feel I don't know anything. Programming life I guess.
English
4
0
31
5.6K
Prabin Poudel
Prabin Poudel@coolprobn·
@ShervNariman Do you mind sharing an example of optimizing for cleverness? I am teaching automated tests right now and would love to see examples of what not to do as well.
English
1
0
0
14
Sherv Nariman
Sherv Nariman@ShervNariman·
@coolprobn I do. The moment auth tests start optimizing for cleverness instead of clarity, they drift from the contract they’re supposed to protect. Keeping them boring is my go to lol
English
1
0
1
12
Prabin Poudel
Prabin Poudel@coolprobn·
Rails' built-in authentication is simple by design. And it should be the same for testing it! Here's how I approach the testing for built-in auth with Minitest. 🧵 1/8
English
2
1
2
114
Sherv Nariman
Sherv Nariman@ShervNariman·
@coolprobn I like this framing because auth test suites usually rot the moment they get cleverer than the feature
English
1
0
1
13
• nanou •
• nanou •@NanouuSymeon·
As a Developer, what is your hobbie after work?
English
240
2
191
17.7K
Prabin Poudel
Prabin Poudel@coolprobn·
@catalinmpit My friends from COVID times, none of them are active anymore 🥲 (very few including you are still active) I miss daily life interactions from that time.
English
0
0
0
23
Catalin
Catalin@catalinmpit·
Kinda wholesome to see everyone on X happy to see their friends' posts again. Feels like a reunion or something.
English
14
1
69
2.6K
Prabin Poudel
Prabin Poudel@coolprobn·
That's the high-level approach I use for authentication and protected routes. For a complete walkthrough with full code examples and a sample companion app, you can check the new blog: minitestrails.com/blog/testing-r…
English
0
1
1
26
Prabin Poudel
Prabin Poudel@coolprobn·
Now test the happy path with a system test using `sign_in_to_ui_as`: - Signed-in users can access protected pages. Notice we don't test guests being turned away? Those edge cases belong in integration tests because system tests are slower and more prone to flakiness. 7/n
Prabin Poudel tweet media
English
1
0
0
33
dax
dax@thdxr·
please i'm begging you show me something you built not another "this is my custom agent setup" post where you pretend you're doing something smarter than vanilla claude code please
English
1.7K
169
6K
341.6K
Mikael Henriksson
Mikael Henriksson@mhenrixon·
My feed just got a truckload better today! Finally I see more from my peeps
English
1
0
6
155
Prabin Poudel
Prabin Poudel@coolprobn·
Thanks for hosting a great therapy session yesterday for us Ruby Consultants @jeremysmithco 😂 Jokes apart, I got to meet a lot of people and hear how everyone is feeling about AI and their mental health. Thanks for putting this together, I can't wait to join next quarter!
English
1
0
11
328
Prabin Poudel
Prabin Poudel@coolprobn·
@joelmoss 🤪 I am trying to make it accessible to all Rails developers and LLMs alike with free resources and a comprehensive guide at minitestrails.com
English
0
0
2
40
Joel Moss
Joel Moss@joelmoss·
So it turns out that tests are like, really important in an AI world. Like... really, really important! I mean, who would have thunk it 🤷 😜
English
1
0
4
188
Rajan Bhattarai
Rajan Bhattarai@cdrrazan·
@coolprobn I just joined the Gathering, but it looks like the host needs to approve my request.
English
1
0
2
47
Prabin Poudel
Prabin Poudel@coolprobn·
Who else is coming to the Ruby Consultants Gathering tomorrow? 👀
Prabin Poudel tweet media
English
6
0
8
637