snaggen@programming.dev to Rust@programming.dev · 2 years agoDon't write Rust like it's Javajgayfer.comexternal-linkmessage-square13fedilinkarrow-up157arrow-down15
arrow-up152arrow-down1external-linkDon't write Rust like it's Javajgayfer.comsnaggen@programming.dev to Rust@programming.dev · 2 years agomessage-square13fedilink
minus-squareJummit@lemmy.onelinkfedilinkarrow-up5·2 years agoActually, I like encapsulating global state in a structured and documented construct. But I guess I could see Java developers going overboard with abstraction in an imperative language.
minus-squareThe Cuuuuube@beehaw.orglinkfedilinkEnglisharrow-up2·2 years agoThere are good reasons to do singletons in python. But your first instinct shouldn’t be to jump straight to one
Actually, I like encapsulating global state in a structured and documented construct. But I guess I could see Java developers going overboard with abstraction in an imperative language.
There are good reasons to do singletons in python. But your first instinct shouldn’t be to jump straight to one