Posts by jsrn@ruby.social
 (DIR) Post #AIx1liMbvtlghPGhyS by jsrn@ruby.social
       2022-04-29T14:23:55Z
       
       0 likes, 1 repeats
       
       Is there ever a good time to define a custom `!` method on an object? Seems like setting up a footgun for people relying on the truthy/falsiness in a boolean expression.class Thing; def !; true; end; endmy_thing = Thing.newdo_thing if my_thing# executesdo_thing if !my_thing # executesdo_thing unless my_thing # does not execute
       
 (DIR) Post #AIx1llj3QuVH7snAsC by jsrn@ruby.social
       2022-04-29T15:15:41Z
       
       0 likes, 0 repeats
       
       Chatted about this with a couple local Ruby programmers and the consensus seems to be "probably not."
       
 (DIR) Post #AIx1tWncoQxf9Ld7HE by jsrn@ruby.social
       2022-04-29T10:42:41Z
       
       0 likes, 1 repeats
       
       Have you worked on anything cool lately?I've been looking at a bunch of sites on neocities.org and it's making me want to make my own site much, much worse^H^H^H^H^Hcooler.
       
 (DIR) Post #AJ4xMrycD400incbnk by jsrn@ruby.social
       2022-05-03T14:34:15Z
       
       0 likes, 0 repeats
       
       I'm trying to catch `Net::ReadTimeout`s from a specific API and present a nice error message to the user. This API is used throughout the app, so I'd prefer not to duplicate this error handling code more than necessary.Is having a `rescue_from` in ApplicationController and checking the exception object to see if it originated in a certain class a clumsy way of doing that?
       
 (DIR) Post #AJ4xMt79ymQcFacwl6 by jsrn@ruby.social
       2022-05-03T14:39:54Z
       
       0 likes, 0 repeats
       
       @johnpettigrew Other than wishing there were a more elegant syntax for saying 'if this exception happens in this method, swap it out for this exception class', no, I suppose not. 😅
       
 (DIR) Post #AJ4xMuH7fDzXqmIPvU by jsrn@ruby.social
       2022-05-03T14:36:31Z
       
       0 likes, 0 repeats
       
       Alternative: catching original exception & raising a custom class closer to the source of the error, and then at least the intent in application controller is clear.
       
 (DIR) Post #AJ4xUxVZWl2yC5tVE8 by jsrn@ruby.social
       2022-05-03T15:18:10Z
       
       0 likes, 0 repeats
       
       @james @johnpettigrew That's what I've gone with. Thanks, gang! ❤️
       
 (DIR) Post #AJ72MuxS0ugy3Rq5kO by jsrn@ruby.social
       2022-05-04T08:06:58Z
       
       0 likes, 1 repeats
       
       How're you deploying your applications these days?I've been chucking stuff on k8s for so long at my job I've lost touch with what everyone else is doing.
       
 (DIR) Post #AJJ8X7wH8QvMWZwJcW by jsrn@ruby.social
       2022-05-05T19:14:30Z
       
       0 likes, 1 repeats
       
       I often hear that the increased hosting costs associated with Ruby on Rails' larger than average footprint is more than offset by the increased dev productivity. It follows that Rails salaries being pretty high at the moment is offset by being able to maintain a smaller, more productive team.Does anyone know of any case studies where someone's actually done the numbers on that?It "feels right" to me, but I'd be interested to read other's experiences.
       
 (DIR) Post #ALBIofuAxy3g9eOhRg by jsrn@ruby.social
       2022-07-05T08:20:37Z
       
       0 likes, 1 repeats
       
       Having some fun with Ruby https://jsrn.net/questionable-ruby
       
 (DIR) Post #APIQyQHmcvaNUrX2Vk by jsrn@ruby.social
       2022-11-05T12:06:17Z
       
       0 likes, 1 repeats
       
       So… y’all got blogs? I’d love to grow my RSS feed!
       
 (DIR) Post #APvZpNKF890QMhKMzI by jsrn@ruby.social
       2022-11-24T09:20:43Z
       
       0 likes, 1 repeats
       
       Anybody hiring junior Ruby programmers?My buddy (via https://firstrubyfriend.org/) is actively looking, and I'd love to help him make as many contacts as possible.
       
 (DIR) Post #AQPJq6sfzFUx80Yl6W by jsrn@ruby.social
       2022-11-26T16:22:24Z
       
       0 likes, 0 repeats
       
       It’d be nice to have a resource to link people to that debunks common Ruby/Rails misconceptions like scaling.Something with snappy URLs like ruby[.]is/fastenough & ruby[.]is/alive
       
 (DIR) Post #AQPJq7fb3Md7ZjRpM8 by jsrn@ruby.social
       2022-11-27T10:05:12Z
       
       0 likes, 1 repeats
       
       The page is up, but it's a little light on content at the moment. :)https://rubymyths.dev@bitboxer, since you expressed interest in contributing I've put a little stub page in for the "not just web" topic. GitHub link is in the page footer and your contributions are very welcome! 🙇‍♂️(cc @jaredwhite, since you asked me to keep you posted. :))
       
 (DIR) Post #AQPJqIOHC6JMpCQeO0 by jsrn@ruby.social
       2022-11-26T17:32:56Z
       
       0 likes, 0 repeats
       
       Some useful things to cover:Ruby is…- (too) slow (for your use case)- not scalable- “legacy”- just for web development- just Rails- too magical- dead
       
 (DIR) Post #AQPJqLMc8jlS2ufriC by jsrn@ruby.social
       2022-11-26T20:19:37Z
       
       0 likes, 0 repeats
       
       Domain registered, basic Bridgetown site created. Away we go!
       
 (DIR) Post #AQPJqMAb8tkMXw3mca by jsrn@ruby.social
       2022-11-27T10:20:29Z
       
       0 likes, 0 repeats
       
       Also, the original motivation to do this came from someone on here saying that we need to actively push back against this stuff or it'll get "memed into reality." Mastodon's lack of full-text search is making it hard to find the post, so I unfortunately can't recall who said that or when, but...This one's for you.
       
 (DIR) Post #AQPJqSnoU0gF7ISBZx by jsrn@ruby.social
       2022-11-26T17:40:50Z
       
       0 likes, 0 repeats
       
       I’m all worked up about this, so I’ll probably register a domain the next time I’m within arms reach of my computer.