Ruby

561 readers
1 users here now

A community for discussion and news about Ruby programming.

Learning Ruby?

Tools

Documentation

Books

Screencasts

News and updates

founded 2 years ago
MODERATORS
26
27
28
 
 

Hello!

I am pleased to announce a new version of my "Understanding Ruby Regexp" ebook. This book will help you learn Ruby Regular Expressions step-by-step from beginner to advanced levels with hundreds of examples and exercises.

Links:

I would highly appreciate it if you'd let me know how you felt about this book. It could be anything from a simple thank you, pointing out a typo, mistakes in code snippets, which aspects of the book worked for you (or didn't!) and so on. Reader feedback is essential and especially so for self-published authors.

Happy learning :)

29
30
31
 
 

What the title says. It's <1k lines of Ruby, and provides a basic tiling WM w/some support for floating windows. It's minimalist, likely still buggy and definitely lacking in features, but some might find it interesting.

It is actually the WM I use day to day

32
33
7
Ruby 3.2.3 Released (www.ruby-lang.org)
submitted 1 year ago by mac to c/ruby
34
35
36
 
 

Whichlang is a rust library that detects languages. There were no Ruby bindings so I made one.

37
13
Ruby 3.3.0 Released (www.ruby-lang.org)
submitted 1 year ago by mac to c/ruby
38
39
40
41
42
 
 

For any ruby devs looking to use crystal as well

43
 
 

Just pushed this to Github and Rubygems. I use this for my Ruby editor. It parses the GtkSourceView style XML files if you have GtkSourceView installed, and instantiates Rouge themes for them (Rouge is used by e.g. Gitlab) so you get access to some more themes. It's not perfect because it needs to try to map token types between the GtkSourceView and Rouge lexers, but overall works pretty well.

44
 
 

cross-posted from: https://lemmy.stad.social/post/7193

Most of my workspaces are tiling (bspwm), but I have one where all windows are floated.

This is showcasing my own (very minimalist; ~300 lines) unreleased desktop manager written in pure Ruby, using a Ruby font renderer and Ruby X11 client library (both on github), and showing a custom menu written in Ruby that auto-populates with actions based on directory contents, and showing my Ruby terminal showcasing double-width and double-height support (xterm has it, but few others), and a window showing me editing my Ruby text editor with itself...

Oh, and Polybar. One of the terminals is st - the Ruby terminal is a bit wobbly in a few respects still, though I use it more and more. So there are a few non-Ruby bits left. So far.

All of this is messy and buggy and may have dependencies on my environment that haven't been fixed yet, but I thought it'd be fun to show how much you can run on Ruby (I rely on most of these day to day)

The font renderer (used for the desktop manager, menu and the Ruby terminal, the lower left window is st using FreeType; I should've excised that from the screenshot :-) ) https://github.com/vidarh/skrift

The X11 bindings (no xlib; pure Ruby) https://github.com/vidarh/ruby-x11

X bindings for the font renderer: https://github.com/vidarh/skrift-x11

This is not what the terminal code looks like any more; that version used a C-extension, but that's the repo the current version will eventually get pushed to: https://github.com/vidarh/rubyterm

The menu is not on Github yet, but it's fed menu items from a somewhat updated version of this gist - a new version will be up at some point: https://gist.github.com/vidarh/323204137de5293bfe216ec751646525

An out-of-date-and-probably-won't-run-on-your-system version of my text editor (not least it depends on helper scripts I've not yet untangled from my personal setup). The repo will soon be updated: https://github.com/vidarh/re

45
 
 

cross-posted from: https://lemmy.world/post/5472500

Lots of small improvements across the user experience, and opt-in search, make this an important release.

46
47
48
49
50
6
submitted 1 year ago* (last edited 1 year ago) by h_a_r_u_k_i to c/ruby
 
 

I want to polish my Ruby and functional programming skills at the same time. And I'm looking for a book that walks through functional programming concepts with code examples in Ruby. I tried searching but no results come up so far. Do you have any recommened materials out there?

PS: I want the code is written specifically in Ruby. I'm not looking for code written in another language (e.g. Scala, Clojure, Lisp).

view more: ‹ prev next ›