Albin Jose@suppo.fi to Programming · 1 year agoWhat is your favorite programming language?message-squaremessage-square196fedilinkarrow-up1121arrow-down112
arrow-up1109arrow-down1message-squareWhat is your favorite programming language?Albin Jose@suppo.fi to Programming · 1 year agomessage-square196fedilink
minus-squareswordsmanlukelinkfedilinkarrow-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)