Leaving Twitter https://www.mikeperham.com/2019/07/11/leaving-twitter/
@ioquatix That goes against one of the conventions I like about Ruby, which is to use full variable names instead of single letters. I don't understand how is that the default in Rubocop.
A PR to make `redis-rb` compatible with `async`: https://github.com/redis/redis-rb/pull/832
See the Sinatra vs Roda comparison: http://roda.jeremyevans.net/compare_to_sinatra.html
Streaming HTTP requests and responses with Ruby: https://www.codeotaku.com/journal/2019-01/streaming-http-for-ruby/index
Any feedback or questions would be most welcome!
Out this week, part 2 of my series on rom-rb, in which we learn about CHANGESETS, and the importance of such an abstraction for separating the persistence and domain layers.
Building SQL Expressions with Sequel https://bits.citrusbyte.com/building-sql-expressions-with-sequel/
@ioquatix Thank you. The article is great! 👏. It's nice that you linked to impressive graphs, and that you emphasized that you'll reap benefits without changing the code.
I noticed a typo in the title "Parallism", and in "(excepting parallism)", I'm guessing it should be "parallelism".
@ioquatix Will you be posting it to Reddit as well? 😃
My latest article about fibers and different models of asynchronicity. https://www.codeotaku.com/journal/2018-11/fibers-are-the-right-solution/index
@judofyr Personally no, but Jeremy Evans wrote some tips: http://roda.jeremyevans.net/rdoc/files/doc/conventions_rdoc.html
@timriley So the issue is that open street maps API requires an HTTP client that supports HTTP/2?
Niggle, maybe just me
@andy_twosticks I too mind that people are conflating "Ruby" and "Rails". Whenever I see an "I give up on Rails" article, that person always also gives up on Ruby, as if those two are the same thing.
People should be aware of this distinction. For people like me who are not using Rails at all anymore it's important to know whether a gem is Rails-only or not, because in the former case I have to automatically discard it.
Ruby web frameworks are great, not just Rails.
@toby @skryking There is a great free RubyTapas which explains the difference in precedence between and/or and &&/||, and shows examples where and/or can be useful. https://www.rubytapas.com/2013/08/15/episode-125-and-or/
@tom_dalling Depends on which kind of objects 😀
I once worked on a script that iterates over SQL records like a graph and attempts to fill in some missing information.
In attempts to speed it up, I noticed that instead of Sequel::Model objects I can instantiate POROs. I was using dataset-level UPDATEs for perf, so I didn't need model methods, only data.
That change alone brought a 3x speedup! And that's for Sequel, imagine what would be the gain if those were ActiveRecord::Base objects 😉
I'm happy to say TruffleRuby 1.0.0 RC 6 is now out. You'll probably have to update master in your ruby version installer of choice.
We fixed quite a few bug and filled in some performance gaps. A lot of this was based on user bug reports. If you're interested, please give it a whirl and report any issues you encounter.
Full changelog: https://github.com/oracle/truffleruby/blob/master/CHANGELOG.md
@erlingur DAS has really levelled up my testing workflow. I remember being blown away how Gary runs tests from inside Vim like that, so I eventually created the vim-test plugin to generalize this (https://github.com/janko-m/vim-test).
I also like how fluent everything is, and how honestly he talks about what he feels about the code he's presenting. Brilliant stuff!
Hello everyone! 👋 I'm a Ruby developer for 7 years now. The first few years I worked on Rails apps, but then I switched to other Ruby web frameworks and haven't looked back (Roda is my favourite).
I'm the author of Shrine, a gem for handling file attachments. https://shrinerb.com
As part of it, I also developed Ruby implementations for resumable uploads, which can greatly improve UX for end users that are uploading large files. https://github.com/janko-m/tus-ruby-server