I’ve recently taken Erlang back up1, and I wanted to use this blog post to talk about something cool I learned over the weekend. I am implementing a data structure. Reimplementing actually, as it is the structure from my thesis – a succinct text index (I will| alexbowe.com
In this article we are going to look at method_missing and respond_to_missing? in order to see what they do and how they can be used. We're going to re-create the StringInquirer class in Ruby on Rails as a way to demonstrate what is happening…| Leigh Halliday's RSS Feed
My problems today Today I was trying to write a test for a method, and I was expecting certain behaviour that I definitely wasn't getting. Why was this method returning me a valid value when it surely should be failing? So I started poking around…| Leigh Halliday's RSS Feed
What is method_missing? method_missing is a method that ruby gives you access inside of your objects a way to handle situations when you call a method that doesn't exist. It's sort of like a Begin/Rescue, but for method calls. It gives you one last…| Leigh Halliday's RSS Feed
Creating Methods In this post I'll be discussing another aspect of metaprogramming in Ruby. The ability to create methods dynamically, during runtime. There are many reasons to do this, but one of them is to allow you to write generator methods to…| Leigh Halliday's RSS Feed
What is metaprogramming? You might have heard the term metaprogramming before, but what is it and what does it have to do with Ruby? To start off, let's look at the Wikipedia definition: Metaprogramming is the writing of computer programs with the…| Leigh Halliday's RSS Feed
While using compile-time builder generator crates, I realized that I had run into a niche problem that required lot more flexibility with generic structs and functions than I was getting. If you like, follow me down a rabbit hole and explore the builder pattern from a very generic-centric perspective.| Geo’s Notepad
In the last post we learned the very basics of setting up a reflection system. The whole idea is that the user manually adds types into the...| cecilsunkure.blogspot.com
In our last article we learned how to store information about a classes's members, however there are a couple key improvements that need to be brought to the MetaData system before moving on.| Randy Gaul's Game Programming Blog
Fold-expressions in the extreme. How do fold-expressions behave when there is no arguments? what about a single argument case?| C++ Senioreas
explicit(bool) C++20 feature discussion, motivation, usage example, proposal and more. Basic explanation about explicit and implicit conversions pros and cons.| C++ Senioreas
C++ Riddle – involves shared_ptr, string_view and some metaprogramming.| C++ Senioreas
One of the most desired Design Patterns is reflection- The ability to use classes metadata (names, functions, properties, etc…) at runtime. By default this is not possible on C++, and sometim…| C++ Senioreas
Design Patterns were always different in C++, and a usual use of these patterns in C++ might cause more complications and problems in this language. In this series of articles, I’ll show how to cor…| C++ Senioreas