Write your own Domain Specific Language in Ruby
Let's create our own Domain Specific Language. We'll use our metaprogramming toolbox for Ruby to configure a gem and have Ruby write code for us.
Let's create our own Domain Specific Language. We'll use our metaprogramming toolbox for Ruby to configure a gem and have Ruby write code for us.
Finding the string length sounds easier than it is, if we want to be really accurate. Let's explore how does Unicode and emoji make this step more complex.
Using instance variables in RSpec tests can lead to brittle specs and make them fail. Let's see when and when not to use instance variables. RSpec will help!
Git commits can be made very quickly, but we don't see what changes are committed. We can improve the way we make commits by reviewing what we commit first.
Debugging brittle specs is annoying and time consuming work. Let's automate finding those brittle specs by retrying them until they fail.
Git is a way to communicate with your team. Well written commits and Pull Requests ensure that this communication goes smoothly.
- for AppSignal
This is a short detective story about how we tracked down an exception in AppSignal.com's flow that didn't cause an error...
- for AppSignal
We'll look into difference between explicit casting and implicit coercing in Ruby, and the difference between typecasting Leonard Nimoy and Michael Keaton.
- for AppSignal Academy
In this article, we'll take a look at how Rails collection caching works and how we can use it to speed up large collection rendering.
- for AppSignal Academy
Ever hear about Ruby's syntactic sugar, but never knew what it meant or how to use it? In this article we'll explore just how we can use it to our advantage.
- for Ruby Magic
A look at how Ruby interprets your code and how you can use this knowledge to your advantage to speed up your app.
- for Ruby Magic
Escaping characters in Ruby can be quite confusing. In this post we'll cover the power of the backslash symbol \
and how you can use it.
- for Ruby Magic
Make sure your exception handling is done right. Get up to speed with this Ruby Magic primer and make sure you only rescue the exceptions you need to.
- for Ruby Magic
A while ago I volunteered to rebase a very complex branch in our AppSignal frontend. Read on how I rebased the branch internally known as `layout-tweaks`, you may know it better as the new AppSignal design.
- for AppSignal
Make fixup commits part of your workflow with this tool for making Git fixup commits with ease. Run `git-fixup` and select which commit your want to fixup.
Optimize your workflow! Avoid Alt-Tab-bing and switch directly to the application you need. It's faster and you can keep focus on what you're working on.
Learn how the gems you use actually work on the command line. Good to know when you're building your own.
How do you decide what implementation to go for? Do you base this on style, lines of code or something else? Consider performance as well. Let's benchmark!