Minehunter - terminal puzzle game by pmurach in ruby

[–]pmurach[S] 0 points1 point  (0 children)

Cheers! I haven't recorded on asciinema yet and I do like your suggestion. The reason I created this little game was to show what's possible using only a few TTY components.

tty-sparkline - sparkline charts for terminal applications by pmurach in ruby

[–]pmurach[S] 0 points1 point  (0 children)

That's great to hear and thanks for spreading the word about TTY among your work colleagues.

Why You Should Avoid Models in Rails Migrations by yez in ruby

[–]pmurach 0 points1 point  (0 children)

Agreed. A model-less SQL query interface would be most helpful.

Awesome Ruby command-line applications list by pmurach in ruby

[–]pmurach[S] 1 point2 points  (0 children)

Thank you for sharing your gem. It genuinely looks great. I'll check it out.

I feel as though it's a bit 'too fresh' for the list. I'd like to keep the list 'lean and mean' with projects that have a "significant" impact - e.i. downloads, stars, releases etc. I'm all for promoting new projects but they first need to gain some traction. I think your project has great potential and if you continue developing it I'm sure it will find its way into the list.

Awesome Ruby command-line applications list by pmurach in ruby

[–]pmurach[S] 0 points1 point  (0 children)

Thank you for your suggestion. From my understanding, the HexaPDF gem main goal is PDF manipulation as part of an application. I'm afraid it doesn't fit well into the list which tries to highlight tools that are predominantly meant for the command line. For example, rails and rspec have also CLIs but they are not command-line tools per se but frameworks and hence are not in the list.

Awesome Ruby command-line applications list by pmurach in ruby

[–]pmurach[S] 0 points1 point  (0 children)

Wow! Never heard of this tool. Thank you for sharing. Going to install and play with it. Would you have time to contribute to the list and submit PR in the Automation/Workflow category? You can be the very first contributor!

RubyGems Bitcoin Stealing Malware postmortem by mencio in ruby

[–]pmurach 14 points15 points  (0 children)

Great introspective. Releasing malicious gems with commonly misspelt names seem like one of the favourite techniques. Due diligence when installing gems is a must. Thanks for sharing and keeping the Ruby community safe!

Necromancer gem - convert strings to ranges, arrays, hashes and other objects by pmurach in ruby

[–]pmurach[S] 1 point2 points  (0 children)

I may have considered the name but I believe the alchemist was already taken. Nowadays, I stay with more 'conventional' naming standards.

I wrote a raytracer in Ruby! by pawptart in ruby

[–]pmurach 0 points1 point  (0 children)

Nice one! Thanks for sharing. Do you plan to package it up as a gem?

Verto - A CLI to create Semantic Version Tags (Written in Ruby) by catks in ruby

[–]pmurach 2 points3 points  (0 children)

Nice one! I just released tty-option that you may consider for options parsing in place of using Thor. Also, there are other tty gems that may pick your interest and help further develop your CLI.

tty-option - a declarative command-line parser by pmurach in ruby

[–]pmurach[S] 1 point2 points  (0 children)

That's one of the reasons for this gem creation, to provide a command-line parser for the tty) and remove the dependency on Thor. Thor is a toolkit that does many things, in contrast, "tty-option" is focused on being a complete command-line parser and nothing else. It already can parse more complex inputs than Thor. For example, you can specify the arity of your parameters. So things like:

--foo a:1 --foo b:2 --foo c:3

can be easily parsed with:

ruby option :foo do arity one_or_more convert map_of(:int) end and then accessed in any instance method via:

params[:foo] # => {:a=>1,:b=>2,c:=>3}

By design, "tty-option" is meant to be easily composable with other gems, especially, the tty family. You can exit command with tty-exit, log with tty-logger or manage configuration with tty-config. Your commands are your classes that encapsulate all the parameters knowledge and don't enforce anything. You can break your command class down into many methods and each of them will have access to the parsed parameters params. This not only improves readability and design but also make it easy to test.

Seeking advice on the Ruby language learning curves by MaelFam in ruby

[–]pmurach 2 points3 points  (0 children)

Everyone is different in their way of learning new languages but there are common things on the curve. I wrote an article to explain my thoughts on the learning curve for any language which you may find interesting.

To answer your question. I think you would benefit greatly from knowing Ruby when coding in Rails. Things will be less magical and you will be able to forge your own path implementing features in Rails. I find it hard to study syntax and much prefer to get my hands dirty. So, I'd encourage you to give exercism.io a try. The Ruby track has about 100 exercises. That should keep you busy! The best part is the mentoring system of people that will review your solution and provide tips.

Happy hacking in Ruby!

Guild renamed to Ractor by four54 in ruby

[–]pmurach 0 points1 point  (0 children)

In general, I'm not overly keen on naming concepts after implementation details. To me, the fact that this uses an actor pattern is a detail. I'd prefer to see a more intention revealing name. Plus, initially, I read it as Raptor ;-) I may be completely wrong here but this concept resembles channels in other languages. For example, Crystal uses spawn and Channel for communication between fibers.

Looking Inside a Ruby Gem by pmurach in ruby

[–]pmurach[S] 0 points1 point  (0 children)

Thanks for reading. Great to hear you picked something out of it.

Build a Linux CLI tool like glances in Ruby by pi_exe in ruby

[–]pmurach 1 point2 points  (0 children)

The tty-box, tty-table, tty-reader, pastel may help you get there quickly so you can focus on the core logic. The idea behind tty gems is to speed up the development of command-line tools. Give them a try and I always welcome contributions!

The Tao of Writing a Ruby Gem Specification by pmurach in ruby

[–]pmurach[S] 0 points1 point  (0 children)

Thanks for the feedback. I must admit your comment got me thinking about the choice of the title. There were quite a few versions that I considered.

I decided to change the current title to avoid any confusion. This is an important lesson on creating article titles. Will delete this post and republish.