User talk:Anonymous31415927: Difference between revisions

From Rosetta Code
Content added Content deleted
Line 1: Line 1:
About 99 bottles of beer:
== 99 problematic edits ==


1. <<Most people solving this task iterate from 99 to 0. But 2, 1 and 0 are special cases, thus they write conditional expressions to split the flow control. '''This lead to weird codes'''. [...] Compared to '''hackish''' "not hard coded" '''spagetti''' examples (in Python) below>>
About the page "99 bottles of beer", py language, first solution:


This is your opinion. You are free to think as you want, but I don't think you should put it in a wiki.
1. You targeted my simple version as copied by http://www.99-bottles-of-beer.net/language-python-573.html . And yes, I first wrote a simple version myself, I saw the www.99-bottles-of-beer.net version and I modified it, clearly inspired. I also explicitly linked the original code. But the code is '''different'''. I simply copied the '''concept''' of not repeating "bottles of beer on the wall", but to use it in a variable.


2. this solutions is [...] 4. easy for i18n and l10n; 5. open to extensions
2. You continue to rename my version. Now is "Python 2, short version". Well:


Functional simplified version is much more simple for i18n. Furthermore, how can a script be "open to extensions"? On the contrary, functional versions are extended per se, since you can put everything, not only 99, not only bottle(s) of beer, not only on the wall, etcetera. And they are much more funny.
:a. "Python 2" is useless and inexact. It's useless because I wrote the target version before the code. It's not exact because it works also for Python 3 (I tested it on Python 3.9 alpha... :-D).
:b. You also changed the target version. I wrote "2.6+" and you removed the plus. Why? If I write "2.6+", it means that it works for Python 2.6 and any subsequent version (currently).
:c. The name I would give to my code is "(Currently) the simplest version". Probably is also the shorter, but who cares. I think it's the simplest because it does not manage special cases of 0 and 1, as allowed in the task. It simply do one string assignment, a loop and a print inside the loop. Stop. More simple than that can only be printing the entire song :-D


If you want a real extendable version, you have to write a module or a class. An overkill IMHO for the task.
I kindly hope you agree and I can modify the solution without another counter-edit.


Can you please remove the considerations that can only start a flame war?
PS: Happy New Year in retard.


[[User:Marco_Sulla|Marco Sulla]] - [[User_talk:Marco_Sulla|talk]] - [https://github.com/Marco-Sulla GitHub] 23:23, 26 January 2020 (UTC)
[[User:Marco Sulla|Marco Sulla]] ([[User talk:Marco Sulla|talk]]) 17:07, 19 January 2020 (UTC)

:
; Emphasis:
: Qui tacet consentire videtur.
Please don't add your comments to the example again. You may want to lurk a bit more without posting and try and get a hang for how things are done. We try to be polite, and comment were necessary usually in the talk page. thanks. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 20:05, 19 January 2020 (UTC)
:
: [[User:Marco_Sulla|Marco Sulla]] - [[User_talk:Marco_Sulla|talk]] - [https://github.com/Marco-Sulla GitHub] 09:47, 1 February 2020 (UTC)

Revision as of 20:00, 28 February 2020

About 99 bottles of beer:

1. <<Most people solving this task iterate from 99 to 0. But 2, 1 and 0 are special cases, thus they write conditional expressions to split the flow control. This lead to weird codes. [...] Compared to hackish "not hard coded" spagetti examples (in Python) below>>

This is your opinion. You are free to think as you want, but I don't think you should put it in a wiki.

2. this solutions is [...] 4. easy for i18n and l10n; 5. open to extensions

Functional simplified version is much more simple for i18n. Furthermore, how can a script be "open to extensions"? On the contrary, functional versions are extended per se, since you can put everything, not only 99, not only bottle(s) of beer, not only on the wall, etcetera. And they are much more funny.

If you want a real extendable version, you have to write a module or a class. An overkill IMHO for the task.

Can you please remove the considerations that can only start a flame war?

Marco Sulla (talk) 17:07, 19 January 2020 (UTC)

Emphasis

Please don't add your comments to the example again. You may want to lurk a bit more without posting and try and get a hang for how things are done. We try to be polite, and comment were necessary usually in the talk page. thanks. --Paddy3118 (talk) 20:05, 19 January 2020 (UTC)