Every True Rubyist Builds Their Own Code Editor in Ruby!
Tags: ruby, codeeditor, programming, desktop
Published: 2023-08-15 01:45:23

(originally posted on the [Code Master Blog](https://andymaleh.blogspot.com/) at https://andymaleh.blogspot.com/2023/08/every-true-rubyist-builds-their-own.html)

[Gladiator](https://github.com/AndyObtiva/glimmer-cs-gladiator) (Glimmer Editor) 0.11.0 has just been released! It is my personal day-to-day code editor that I have built with [Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt) in Ruby (using JRuby). It has syntax highlighting support for 40+ programming languages, split pane support with drag and drop, file look up support, directory tree navigation support, and many smart editing keyboard shortcuts. I use it for professional Ruby on Rails software engineering too.

![gladiator1](https://github.com/AndyObtiva/glimmer-cs-gladiator/raw/master/images/glimmer-gladiator.png)

That said, I am no code editor building expert, so Gladiator looks ugly! But, I love it because I built it 100% myself. Every self respecting Senior Software Engineer out there should build their own code editor, even if just as a toy app to later be discarded in favor of another code editor (though they might grow to prefer their own). And, if they are Rubyists, they should build their code editor in Ruby (whether using MRI Ruby, JRuby or Opal Ruby). If you think of yourself as a Ruby Senior Software Engineer, but cannot build your own code editor in Ruby, there are serious holes in your skillset!! Explore [Glimmer](https://github.com/AndyObtiva/glimmer) libraries for many Ruby options to help you start the code editor building challenge and journey, whether using the [Fukuoka Ruby 2022 Award](https://andymaleh.blogspot.com/2022/02/glimmer-dsl-for-libui-wins-fukuoka-ruby.html) Winning [Glimmer DSL for LibUI](https://github.com/AndyObtiva/glimmer-dsl-libui), the 100% feature-complete JRuby-based Glimmer DSL for SWT, the brand new Glimmer DSL for WX, the Linux-focused Glimmer DSL for GTK, Glimmer DSL for Tcl/Tk, Glimmer DSL for FXRuby, Glimmer DSL for Swing, Glimmer DSL for JavaFX, or Glimmer DSL for Opal.

![gladiator2](https://github.com/AndyObtiva/glimmer-dsl-swt/raw/master/images/glimmer-dsl-swt-demo-hello-world.gif)

Nowadays, I see many Software Engineers on the Internet and social media who claim to be "Rubyists", but use non-Ruby code editors and non-Ruby frontend technologies, and that comes across as part hypocrisy and part lost opportunity!! After all, if they truly believed in Ruby, they would be building more things in it. Computer processors are so fast nowadays that many of Ruby's performance trade-offs are negligible in practice, except in some niche programming specialties like numerical computing, realtime systems, low-level programming, and performance-intensive game development. But sadly, in the last decade, many fake "Rubyists" entered the Ruby community just to associate with the "cool" factor of Ruby or to obtain Ruby job salaries without truly believing in Ruby 100% or even fully understanding the Ruby way of doing things. 

Thankfully, there are many litmus tests out there that reveal true Rubyists from fake "Rubyists", and one of them is whether a Ruby Software Engineer has built their own code editor in Ruby or not, or if they at least use a Ruby-based code editor like Redcar, Arcadia, or Gladiator, among others. Personally, I do not just write Ruby code in a web backend using Rails. I also write all my desktop applications in Ruby using Glimmer, including my code editor Gladiator, and I try to even build web frontend in Ruby using Opal Ruby.

![gladiator3](https://github.com/AndyObtiva/glimmer-cs-gladiator/raw/master/images/glimmer-gladiator.gif)

Just think of how great it would be if the Ruby community had a feature-rich Ruby-scriptable code editor / IDE that makes it possible to build plug-ins with highly maintainable and productive Ruby code. It does not have to support every programming language out there. It can just be a Ruby community niche thing. With such a Ruby-based code editor, Rubyists would be practicing what they preach regarding the productivity/maintainability of Ruby programming by using Ruby to build the very tools they use in day-to-day Ruby software engineering.