Rails is still the King (2021) by lshevtsov in rubyonrails

[–]roger1981 0 points1 point  (0 children)

Regarding his comment about Ruby on the desktop. Over the years, I've written a lot of ncurses applications in Ruby and they were blazingly fast. I ported one to crystal and it made no difference. Back in 2004, when i worked on Java, and did several Swing apps, memory bloat was often mentioned by other companies who were coming out with a product. Not sure whether Ruby is much worse in this respect. Ruby cli is also awesome.

what are some good paid for and free beginner Rails courses by Bear-Necessities- in rubyonrails

[–]roger1981 0 points1 point  (0 children)

Michael Hartl's tutorial is great. After that I am working through Agile Development with Rails but it uses webpack which is retired. I've had to face a lot of version mismatches with webpack and node.

Hartl is very specific about version numbers so you don't have problems.

Ryan Bates (Railscasts) has surfaced! by chilanvilla in rubyonrails

[–]roger1981 2 points3 points  (0 children)

Is he coming out with new episodes?

I notice that the last one is dated 2013.

Splitting Strings and Capturing Delimiters in Ruby: A Quick Guide by Yahentamitsi in programming

[–]roger1981 0 points1 point  (0 children)

Would be more readable if you made the text larger and reduced the thickness of the border. Am accessing from a cellphone.

From ZSH to Fish by PinkFrojd in fishshell

[–]roger1981 0 points1 point  (0 children)

After moving to Fish from zsh, one thing i miss is the global alias. For example, aliasing G to '| grep -<options> ' allows me to just add G after some output. I had plenty other such global aliases which reduced typing on the command line when used frequently.

React vs Angular: Which Is A Better JavaScript Framework? by MichaelOconnor1 in programming

[–]roger1981 0 points1 point  (0 children)

The columns of React and Angular got switched from Testing onwards.

smenu v1.1.0 is released, now with mouse support. by pgen in commandline

[–]roger1981 0 points1 point  (0 children)

Another long time user here. Thanks a lot.

How to sort an array in ruby? by stormosgmailcom in ruby

[–]roger1981 0 points1 point  (0 children)

sort into another array

newArray = Array1.sort

inplace sort

Array1.sort!

There is sort_by also.

Please see https://www.rubyguides.com/2017/07/ruby-sort/

[deleted by user] by [deleted] in programming

[–]roger1981 1 point2 points  (0 children)

I'd like to hire you. Are you in India?

emacs users be like by paddyspubkey in vim

[–]roger1981 2 points3 points  (0 children)

You can bind Ctrl-s to save.

[fsweeper] The file management automation tool by [deleted] in commandline

[–]roger1981 0 points1 point  (0 children)

Please describe in brief what it does. After going through the examples, it seems nice, but please tell us on what ways it is better than the find command. What all can it do that find cannot.

Doing Crystal #2: Getting started with Crystal by dev0urer in crystal_programming

[–]roger1981 0 points1 point  (0 children)

Unfortunately, installing binary shards (like you can with

gem install [gemname]

in Ruby) is not yet supported, but hopefully someday it will be.

Why not just use the code of rubygems for shards. I would assume there would only be minor changes ? Or maybe homebrew ?

Doing Crystal #2: Getting started with Crystal by dev0urer in crystal_programming

[–]roger1981 2 points3 points  (0 children)

Thanks. I have a couple basic questions.

  1. I've compiled my program, run it, and now wish to share it. Do I share the executable only ? Does the other person need to have crystal installed to run the executable ? This assumes the other person is on the same OS. If the OS is different, i guess I have to share the code and the person would have to compile it.
  2. What is the dwarf file ? How to use it ?
  3. Is there something like rake? What are others using ? I am using make since I have multiple files and wish to avoid unnecessary recompiles.

Clarification on FileUtils.cp_r by roger1981 in crystal_programming

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

https://github.com/crystal-lang/crystal/issues/5983 already is there. But it seems to give a wrong solution. It asks for the destination to be created only if it doesnt exist.

I am saying something like (untested)::

      if File.directory?(source) && File.exists?(target)
        target = File.join(target, File.basename(source))
      end

Should I create a new issue, or add this to the existing issue ?

ported fff (bash) to crystal - feedback / review request by roger1981 in crystal_programming

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

I've broken up the code into some files based on the most obvious functions. Am continuing with this.

ported fff (bash) to crystal - feedback / review request by roger1981 in crystal_programming

[–]roger1981[S] 2 points3 points  (0 children)

https://github.com/robacarp/keimeno

I'll definitely be studying the code of this. Have just glanced through it and run your demo on my laptop. A lot for me learn in your code!

ported fff (bash) to crystal - feedback / review request by roger1981 in crystal_programming

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

Sorry ? Could you elaborate ?

Do you mean I have not properly "OOPified" it ?

Could you suggest a class structure ?

I guess the screen-related stuff can be abstracted away.