Why Nostr? What is Njump?
2023-08-10 14:24:33
in reply to

Pavel Korytov :emacs: on Nostr: npub1fzx00…wt6h3 npub1jz4fk…rd2ua npub1fdcpf…r82j5 To be honest, I'm sceptical ...

To be honest, I'm sceptical about defining "superiority" on the set of isomorphic code representations of reasonable code.

Of course, there's the space of bad code, e.g. long hard-to-understand poorly-documented (take any) functions, spagetti code, WET, unreadable constructs such as nested ternaries, etc., etc... And better programmers sample that space less, but it's substantial, even in more minimal languages.

I.e. I doubt you can write "better" code, you can write the code that is less bad perhaps.

Conversely, I'm in love with #elisp, so I know I can write the same iteration construct with mapcar & co, cl-loop, threading macros, seq-*, dash functions, dolist, cl-do, cl-reduce & the rest of cl-*, hmm, what else... And I don't feel like I've grown much because of that 🙂

By the way, it's kinda the same with the aforementioned darkness.js, with its counless _.chain(libraries) besides the built-in loop expressions, .map / .reduce / whatever, .forEach... A Scheme with C syntax indeed.

And next to the above, there's the space of memory/compute inefficient code... From my work with students, I often find it harder to explain that this code is O(n!) while it should be O(n^2).

Besides, there are principles of single responsibility, separation of concerns, which are mostly language-independent. And architectural decisions.

...maybe I'll change something in this stream of consciousness if I manage to work in the field for the next 20 years 🤷
Author Public Key
npub15m0adkmh73j4wymedyqpd4wduylevlpg3peqj2s8lgh64pdp2ndscvgltv