3 ms·
I can't take a programming talk seriously if it declares in giant font "Less lines are better" (slide 38). Any C program can be written as a single line, with
by legostormtroopr 8y ago
I can't take a programming talk seriously if it declares in giant font "Less lines are better" (slide 38).
Any C program can be written as a single line, with no linebreaks - that doesn't make it "better" by any metric.
Python is built around its readability, and slide 44:
> group = match.group(1) if (match := re.match(data)) else None
is anything but. 'match' is assigned after its first use, and it took me far to long to mentally parse what it was doing.
- maceurt 8y agoC is different than python though. Python already forces readability things like forcing indent and newline. In most scenarios making a python program in as few lines as possble will make the program more readible.