A problem with one exercise

The problem is, the new environment won't have libraries. So the programmers would rather invest in the old environment. Some may choose to support both if it's possible, with Python it actually required using some conversion scripts at first, later developed some libraries for the lowest common denominator between the two. So now instead of worrying about a single environment you need to worry about both and make everyone else do so too. And while Python made it through, Perl 6/Raku didn't. Which makes a decision about incompatible changes very hard.

···

On 10/14/21 21:14, Die Optimisten wrote:

Yes, I know.
So it would be a fork (or a different language) - every programmer/team
will then choose which language to use for a (new) project.
So 'old' software will run as before...
Sounds realistic... (there would be too many incompatibilities...)
Opti

Am 14.10.21 um 19:12 schrieb hmdne:

The problem now is that Ruby is a mature language with a lot of
codebase being written in it. Any such corrections would result in
incompatibilities which would warrant a major release, like Ruby 4.
Thing is, it's not so easy. Take a look at Python 3 - happily now most
users migrated to it, but how long it took for them... Same happened
with Ruby 1.8 vs Ruby 1.9. It may be simple to port a 1000 line code
snippet, but if an entire business logic of a company is written in
such a language - porting it may be a work that would take a year or so.

On the other hand, adding a feature like regexp support to str.delete
shouldn't be a problem.

On 10/14/21 19:02, Die Optimisten wrote:

It's more you have to learn very much (many things and what they do
really), once knowing that, it's not so hard to use, but it's really
much (too much!)
e.g. what's returned: str.delete vs arr.delete
also str.delete 'ab' is NOT the (sub)string 'ab'; str.delete regex is
NOT available (like grep) - there are many examples.

Perhaps we should first collect these 'strange examples' and then see
(vote?) what should be done (or to leave it as it is)...

Any agreement / suggestions / disagreement ?

Opti

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

interestingly, perl has recently launched perl7, which is a continuation of
perl5 but presumably with the license to make breaking changes if needed.

martin

···

On Thu, Oct 14, 2021 at 12:55 PM hmdne <hmdne@airmail.cc> wrote:

The problem is, the new environment won't have libraries. So the
programmers would rather invest in the old environment. Some may choose
to support both if it's possible, with Python it actually required using
some conversion scripts at first, later developed some libraries for the
lowest common denominator between the two. So now instead of worrying
about a single environment you need to worry about both and make
everyone else do so too. And while Python made it through, Perl 6/Raku
didn't. Which makes a decision about incompatible changes very hard.

On 10/14/21 21:14, Die Optimisten wrote:
> Yes, I know.
> So it would be a fork (or a different language) - every programmer/team
> will then choose which language to use for a (new) project.
> So 'old' software will run as before...
> Sounds realistic... (there would be too many incompatibilities...)
> Opti
>
> Am 14.10.21 um 19:12 schrieb hmdne:
>> The problem now is that Ruby is a mature language with a lot of
>> codebase being written in it. Any such corrections would result in
>> incompatibilities which would warrant a major release, like Ruby 4.
>> Thing is, it's not so easy. Take a look at Python 3 - happily now most
>> users migrated to it, but how long it took for them... Same happened
>> with Ruby 1.8 vs Ruby 1.9. It may be simple to port a 1000 line code
>> snippet, but if an entire business logic of a company is written in
>> such a language - porting it may be a work that would take a year or so.
>>
>> On the other hand, adding a feature like regexp support to str.delete
>> shouldn't be a problem.
>>
>> On 10/14/21 19:02, Die Optimisten wrote:
>>> It's more you have to learn very much (many things and what they do
>>> really), once knowing that, it's not so hard to use, but it's really
>>> much (too much!)
>>> e.g. what's returned: str.delete vs arr.delete
>>> also str.delete 'ab' is NOT the (sub)string 'ab'; str.delete regex is
>>> NOT available (like grep) - there are many examples.
>>>
>>> Perhaps we should first collect these 'strange examples' and then see
>>> (vote?) what should be done (or to leave it as it is)...
>>>
>>> Any agreement / suggestions / disagreement ?
>>>
>>> Opti
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

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

THE SOLUTION IS THIS

# encoding: utf-8

comando = ' '
while
(comando.capitalize != 'Stop')
comando = gets.chomp
if
(comando.capitalize == 'Stop')
puts ' '
puts 'OK la smetto :-)'

break
# IL BREAK E' SEMPRE RIFERITO AL LOOP (WHILE) E NON ALL'IF:
QUINDI IL LA PRIMA CONDIZIONE DICE: SE COMANDO = STOP SCRIVI OK LA
SMETTO E INTERROMPI IL CICLO.
end
puts 'Il gallo è morto'
puts 'Il
gallo è morto'
puts 'E più non canterà coccodì e coccodà'
puts 'E più
non canterà coccodì e coccodà'
puts 'Uè!'
puts ' '
end

pausa = gets
#questo comando serve ad eseguire correttamente il programma

Angelo

Con Tiscali Mobile Smart 70 hai 70 GB in 4G, minuti illimitati e 100 SMS a soli 7,99€ al mese Offerte Telefonia mobile voce e Internet - Tiscali Casa