Announcing Hummel - A Ruby Gem for HUML
HUML is an alternative to YAML targetting simplicity, clarity, and safeguards.
Proud to announce the release of my new open source Ruby library: Hummel! I saw in a newsletter that some folks had created an evolution of YAML called HUML (huml.io) and that there was not yet a Ruby library for it. HUML advertises itself as "a simple, strict, serialization language for documents, datasets, and configuration. It prioritizes . . .
Rails 8: Get Started with Hotwire's Turbo Drive
To save myself from looking this up in the future, it's pretty straightforward if you're using importmap-rails
as your javascript handler. Just ensure that importmap-rails
is above turbo-rails
in your Gemfile
.
bin/rails importmap:install
Now we should have some changes after installing Importmap:
# app/javascript/application.js . . .
Running docker from a container
It's kind of like docker-in-docker (dind) but not quite!
In a rather standard continuous integration setup there is a process in which we needed a container to trigger other containers to be created and ran. A typical way to do this is to share the host's docker daemon with the container. This way we avoid any pitfalls with a true docker-in-docker setup that is also unnecessary for our use cases . . .
Manual ActiveRecord Transactions via ActiveRecord::Base.connection.transaction_manager
Especially useful in the rails console
I wouldn't recommend using this in application code because having automatic handling of transactions via blocks with ActiveRecord::Base.transaction is way safer. However there are times where I want to open a transaction but have my ruby code eval'd in realtime in the rails console. Here's the code snippet to accomplish this using the . . .
Welcome Questions
This tweet came across my feed today:
I think this is great and more people who are able should do so!
2016 Career Goals
- Create an open source ruby application
- Publish article on how to TDD w/ RSpec
- Create a talk on domain modeling literacy
- Article and talk on using Rails as only a persistence/delivery layer
- Find a mentor
- Mentor someone
Other resolutions:
- Produce an ambient album
- Read books: Snow Crash . . .