Sujet : Re: Can't Avoid That Shit Rust - Even On Gentoo
De : 186283 (at) *nospam* ud0s4.net (186282@ud0s4.net)
Groupes : comp.os.linux.advocacy comp.os.linux.miscDate : 30. Sep 2024, 06:18:49
Autres entêtes
Organisation : wokiesux
Message-ID : <fcKcnSXE3MsnqWf7nZ2dnZfqnPudnZ2d@earthlink.com>
References : 1 2 3 4 5 6 7 8
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0
On 9/29/24 1:38 AM, Lawrence D'Oliveiro wrote:
On Sun, 29 Sep 2024 01:11:54 -0400, 186282@ud0s4.net wrote:
On 9/28/24 3:38 AM, Lawrence D'Oliveiro wrote:
>
I suppose you can do anything with a single call, if you pack enough
arguments into it ...
>
Heh heh ... yea ... LOVE those compound lines with x.y.z.a.b.c() ...
SO comprehensible :-)
I have occasionally found method-chaining to be useful, particularly with
graphics APIs, e.g.
(draw
.close_path()
.set_source_colour(bg_colour)
.fill_preserve()
.set_line_width(line_thickness)
.set_source_colour(fg_colour)
.stroke()
)
I've occasionally done that with Python.
HOWEVER, the FUTURE readability suffers considerably.
IMHO, write code so YOU can go back to it like five
years later and actually grasp what you did and why.
Overly-complex code, and 'feature creep' RUIN pgms.
If you want biz reports and checks printed - COBOL !
Could never handle proportional fonts and nice text layouts, though.
Python deals with those sorts of things better.
Yep. However there's still tons of COBOL out there
doing it's boring things.
TODAY I'd say write in Python or plain-Jane 'C'.
PASCAL is also very good and readable ... but not
as many use it anymore. A pity. I do, often.
Has anyone found a Modula-3 compiler for Linux
that actually WORKS ? Just wondering. The
supposed existing offerings SUCK and you can't
compile a three-liner without a zillion complicated
errors popping up. Too old to start tracking down
all that shit.