[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] top five sclang pet peeves



Now that we are in a cathartic mood:

- Pattern notation is clumsy for the task at hand.

After learning a bit of Tidal I can confirm this is my long standing pet peeve. I think it doesn't has much to do with the library but the needed syntax or its interface.

2017-12-25 18:31 GMT-03:00 <daniel-mayer@xxxxxxxx>:

Am 25.12.2017 um 18:59 schrieb stefaan.himpe@xxxxxxxxx:

> Sclang has a lot of incredibly good stuff to offer but sometimes it makes me
> curse. Without wanting to sound too negative, here are my top 5 pet peeves
> with sclang in supercollider.
>
> Feel free to add your own, or bash mine (or ignore the post altogether) :)


Hi,

no bashing from my side, just some comments:

> 1. Order of mathematics operations. I understand it's an OO thing, but I
> have shot myself in the foot too many times with this already. For a
> language that is somewhat math-centric to adopt "alternative conventions" is
> rather evil. [Read: apparently it's hard to unlearn old habits].

surely not super-intuitive but not undoable without breaking tons of code, or ?

> 2. Having to declare all variables at the beginning of a function. It works
> miracles for unreadability and breaking the flow.

If it helps you can at least always invent local Functions with local variables inside.
Or define variables within Functions of if statements or loops if possible.


> 3. The lack of an Sclang debugger - breakpoints, watch, ... those kinds of
> things.

+1
And any improvement in this field would not break code.

> 4. Calling add on an array returns a new array instead of adding to the
> existing one. I understand it has its advantages for chaining operations
> etc. This, admittedly, is mostly a matter of me having to get used to the
> conventions again.

Scott already pointed to the List class.

Having said that, I remember quite a number of cases, where I switched to List, then encountered that something doesn't work with List as it does with Array and then re-switched to Array again. I think List could need some improvements, though I must admit I can't explicitely name all the concerned points right now, e.g. one here:

http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/binary-operators-on-Lists-td7626709.html


Regarding the above topics I think, from a practical point of view, any improvements of (3) would be of greatest practical value for the largest number of users.

Regards

Daniel

-----------------------------
www.daniel-mayer.at
-----------------------------