4 ms·
In decreasing order: - English (the ChatGPT/LLM programming language) - ML family - SQL (queries and DDL only - DSL) - Algol family (Algol 60/68, Pasca
by nivertech 3y ago
In decreasing order:
- English (the ChatGPT/LLM programming language)
- ML family
- SQL (queries and DDL only - DSL)
- Algol family (Algol 60/68, Pascal, Ada)
- Logo
NoSyntax is the best syntax?
- TCL/Tk
- Forth
- Lisp family
...
ETOOMANYSIGILS:
- Perl / Ruby / Elixir
ETOOMATHLIKE:
- Prolog / Datalog / Erlang
ETOOVERBOSE:
- PHP / Java / C#
ETOOANCIENT
- SQL (Stored Procedures and Triggers)
The worst:
- various assembly languages
- LaTeX
- APL family
- Brainf*ck
- legrande 3y ago> Brainf*ck Regular expressions look a lot like Brainfuck. A little trick is to break regexps up into various lines that do different things
- nivertech 3y agoyes, if your PL supports multiline regex with end of line comments[1]. BTW: that's what I'm doing when programming in kdb+/q (APL family language), even though it's less idiomatic. But I prefer readability and maintainability over succinctness. --- [1] var urlRegex = new RegExp( /(?:(?:(https?|ftp):)?\/\/)/.source // protocol + /(?:([^:\n\r]+):([^@\n\r]+)@)?/.source // user:pass + /(?:(?:www.)?([^/\n\r]+))/.source // domain + /(\/[^?\n\r]+)?/.source // request + /(\?[^#\n\r]*)?/.source // query + /(#?[^\n\r]*)?/.source // anchor );
- rak1507 3y ago> Regular expressions look a lot like Brainfuck. I'm sorry, have you ever seen a regular expression? No they do not.