The post discusses the common struggles developers face with naming conventions and cache invalidation, humorously portraying them as universal challenges irrespective of experience or technology. It emphasizes that while AI and Ruby tools assist in these areas, the inherent complexities require human reasoning. Ultimately, these issues highlight the uniquely human aspects of software development.
Category: ruby
Saving Money With Embeddings in AI Memory Systems: Why Ruby on Rails is Perfect for LangChain
In the exploration of AI memory systems and embeddings, the author highlights the hidden costs in AI development, emphasizing token management. Leveraging Ruby on Rails streamlines the integration of LangChain for efficient memory handling. Adopting strategies like summarization and selective retrieval significantly reduces expenses, while maintaining readability and scalability in system design.
The Art of Reusability and Why AI Still Doesn’t Understand It
AI can generate code but lacks understanding of design intent, making it struggle with reusability. True reusability involves encoding shared ideas and understanding context, which AI cannot grasp. This leads to overgeneralized or underabstracted code. Effective engineering requires human judgment and foresight that AI is currently incapable of providing.
Returning to the Rails World: What’s New and Exciting in Rails 8 and Ruby 3.3+
It’s 2025, and coming back to Ruby on Rails feels like stepping into a familiar city only to find new skyscrapers, electric trams, and an upgraded skyline.The framework that once defined web development simplicity has reinvented itself once again. If you’ve been away for a couple of years, you might remember Rails 6 or early…
AngularJS and Ruby on Rails work together
Finding the best integration of AngularJS and Ruby on Rails Recently I got really excited with AngularJS so to make it work perfectly with Ruby on Rails there are some configurations needed. There are available blog posts on how to integrate it perfectly but somehow I wasn’t happy with the available preferences. Some offered to…
Capistrano + RVM = Problem with deployment?
Most of the time when I had issues with deploying on rvm environment it helps you to do the following. Create a file in $home folder touch .rvmrc And paste following code: rvm_trust_rvmrcs_flag=1
Working OAuth2 with Foursquare on Sinatra
require ‘rubygems’ require ‘sinatra’ require ‘oauth2’ require ‘json’ require ‘net/https’ require ‘foursquare2’ set :port, 80 CLIENT_ID = ‘****************************************************’ CLIENT_SECRET = ‘****************************************************’ CALLBACK_PATH = ‘/callbacks/foursquare’ def client OAuth2::Client.new(CLIENT_ID, CLIENT_SECRET, {:site => ‘https://foursquare.com/’, :token_url => “/oauth2/access_token”, :authorize_url => “/oauth2/authenticate?response_type=code”, :parse_json => true, :ssl => {:ca_path => ‘/etc/ssl/certs’ } }) end def redirect_uri() uri = URI.parse(request.url) uri.path =…