Albin Jose@suppo.fi to Programming@programming.dev · 1 year agoWhat is your favorite programming language?message-squaremessage-square194fedilinkarrow-up1118arrow-down112
arrow-up1106arrow-down1message-squareWhat is your favorite programming language?Albin Jose@suppo.fi to Programming@programming.dev · 1 year agomessage-square194fedilink
minus-squareswordsmanluke@programming.devlinkfedilinkarrow-up3·1 year agoI can live with the forced indent in Python, but I really prefer Ruby’s “fluent” OO style vs Python’s more functional style. e.g. I prefer seeing operations in processing order like get_all_foos() .map{|foo| foo.id} .each {|id| report("found foo #{id}"} vs Python’s functional order [report(f"found foo {fid}") for fid in map(lambda x: x.foo_id, get_all_foos())] (Also, Python claiming useful variable names like type and id deeply annoys me)
I can live with the forced indent in Python, but I really prefer Ruby’s “fluent” OO style vs Python’s more functional style.
e.g. I prefer seeing operations in processing order like
get_all_foos() .map{|foo| foo.id} .each {|id| report("found foo #{id}"}
vs Python’s functional order
[report(f"found foo {fid}") for fid in map(lambda x: x.foo_id, get_all_foos())]
(Also, Python claiming useful variable names like
type
andid
deeply annoys me)