Ruby + Windows

Hello everyone,

I'm currently using a windows OS and currently cannot migrate to unix
based OS. Also, I see a lot of recommendations on the internet advising
using ruby on Linux and Unix based OS.

But I'm pretty aware of the Ruby installer project and how it makes
developing Ruby programs on Windows possible

I'll love to know if there are any severe downside to using Ruby on Windows
to collaborate on a team project.

Kind regards,
Prosper Opara

Quoting opara prosper (oparaprosper79@gmail.com):

   I'll love to know if there are any severe downside to using Ruby on
   Windows to collaborate on a team project.

Any downside you can name is common to any windows-based project.

I am by contract spared from dabbling with windows, but I recently had
a very limited experience at enabling someone to run my scripts under
windows. The scripts had to do with post-processing some accelerometer
data files that the researcher had on his disk. I provided the
complex, flexible but aesthetically very simple user interface via a
locally running Webrick-based server. The cut-and-splice algorithm was
coded in Ruby.

Installing the click-and-run installer was not difficult. I just had
to write a short shell script to start the server and everything
worked without too much effort (the researcher used his browser as an
interface). But I have seen what is left on the machine by the
installer: you end up with large part of a unix system on it.

The only thing that windows could do is get on the way. Luckily, it
did not do that too much.

The Devuan-based, Systemd-free servers I use for the bulk of my work
are as stripped down as needed (without any unnecessary stuff
running). Most of the time they do not contain much more than what is
required by the Ruby installer.

In a nutshell: the main downside to using Ruby on Windows is having to
do with a huge block of obscure software that you cannot modify, and
that insists on regularly calling home and self-updating according to
the interests of someone who is not the owner of the computer.

Carlo

···

Subject: Ruby + Windows
  Date: Sun 31 May 20 07:25:25AM +0100

--
  * Se la Strada e la sua Virtu' non fossero state messe da parte,
* K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe
  * di parlare tanto di amore e di rettitudine? (Chuang-Tzu)

Hello, and welcome to Ruby!

The question about Ruby on Windows, and "team project", depends on the team environment. If everyone is on Windows, then you should not have too many issues.

If the project also runs on Unix (Linux, MacOS) then you want to be aware of a few things:

1. Spaces in file names are allowed, but make it harder to code for and reference.

2. Most Unix versions are case sensitive, so my_file.rb and MY_FILE.rb are two different files. MacOS messes this up, I think, and I'm not sure what Windows does these days.

3. I'm not sure if how a Windows author would make a file executable for a Unix server. That would be something to look at.

4. Most Windows based editors add ^M to the end of lines in a file. There's a Unix command ( dos2unix ) to clean that up, but each time you edit the file they will probably be put back in. A good editor might solve that for you.

5. Joining file path names needs to be done in Ruby.

I hope that helps.

Leam

···

On 5/31/20 2:25 AM, opara prosper wrote:

Hello everyone,

I'm currently using a windows OS and currently cannot migrate to unix based OS. Also, I see a lot of recommendations on the internet advising using ruby on Linux and Unix based OS.

But I'm pretty aware of the Ruby installer project and how it makes developing Ruby programs on Windows possible

I'll love to know if there are any severe downside to using Ruby on Windows to collaborate on a team project.

Kind regards,
Prosper Opara

Hello ! I'm used Ruby on Windows too recently, but now I use WSL with
Ubuntu 18.04, and it's wonderful experience, you must try it. Take a look
at this article -

···

вс, 31 мая 2020 г. в 19:15, Leam Hall <leamhall@gmail.com>:

Hello, and welcome to Ruby!

The question about Ruby on Windows, and "team project", depends on the
team environment. If everyone is on Windows, then you should not have
too many issues.

If the project also runs on Unix (Linux, MacOS) then you want to be
aware of a few things:

1. Spaces in file names are allowed, but make it harder to code for and
reference.

2. Most Unix versions are case sensitive, so my_file.rb and MY_FILE.rb
are two different files. MacOS messes this up, I think, and I'm not sure
what Windows does these days.

3. I'm not sure if how a Windows author would make a file executable for
a Unix server. That would be something to look at.

4. Most Windows based editors add ^M to the end of lines in a file.
There's a Unix command ( dos2unix ) to clean that up, but each time you
edit the file they will probably be put back in. A good editor might
solve that for you.

5. Joining file path names needs to be done in Ruby.

https://stackoverflow.com/questions/597488/how-to-do-a-safe-join-pathname-in-ruby

I hope that helps.

Leam

On 5/31/20 2:25 AM, opara prosper wrote:
> Hello everyone,
>
> I'm currently using a windows OS and currently cannot migrate to unix
> based OS. Also, I see a lot of recommendations on the internet advising
> using ruby on Linux and Unix based OS.
>
> But I'm pretty aware of the Ruby installer project and how it makes
> developing Ruby programs on Windows possible
>
> I'll love to know if there are any severe downside to using Ruby on
> Windows to collaborate on a team project.
>
> Kind regards,
> Prosper Opara

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

I'm really grateful for all the answers I go to my question. It gave me
some clarity and I currently opted to use WSL and everything works fine so
far with no issues.

I'm super sorry for just replying now.

Kind regards,
Prosper Opara

···

On Tue, Jun 2, 2020, 2:19 PM Dmitriy Kravchenko <tunturidim@gmail.com> wrote:

Hello ! I'm used Ruby on Windows too recently, but now I use WSL with
Ubuntu 18.04, and it's wonderful experience, you must try it. Take a look
at this article -
https://www.hanselman.com/blog/RubyOnRailsOnWindowsIsNotJustPossibleItsFabulousUsingWSL2AndVSCode.aspx

вс, 31 мая 2020 г. в 19:15, Leam Hall <leamhall@gmail.com>:

Hello, and welcome to Ruby!

The question about Ruby on Windows, and "team project", depends on the
team environment. If everyone is on Windows, then you should not have
too many issues.

If the project also runs on Unix (Linux, MacOS) then you want to be
aware of a few things:

1. Spaces in file names are allowed, but make it harder to code for and
reference.

2. Most Unix versions are case sensitive, so my_file.rb and MY_FILE.rb
are two different files. MacOS messes this up, I think, and I'm not sure
what Windows does these days.

3. I'm not sure if how a Windows author would make a file executable for
a Unix server. That would be something to look at.

4. Most Windows based editors add ^M to the end of lines in a file.
There's a Unix command ( dos2unix ) to clean that up, but each time you
edit the file they will probably be put back in. A good editor might
solve that for you.

5. Joining file path names needs to be done in Ruby.

https://stackoverflow.com/questions/597488/how-to-do-a-safe-join-pathname-in-ruby

I hope that helps.

Leam

On 5/31/20 2:25 AM, opara prosper wrote:
> Hello everyone,
>
> I'm currently using a windows OS and currently cannot migrate to unix
> based OS. Also, I see a lot of recommendations on the internet advising
> using ruby on Linux and Unix based OS.
>
> But I'm pretty aware of the Ruby installer project and how it makes
> developing Ruby programs on Windows possible
>
> I'll love to know if there are any severe downside to using Ruby on
> Windows to collaborate on a team project.
>
> Kind regards,
> Prosper Opara

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>