Jeena@piefed.jeena.net to Programmer Humor@lemmy.mlEnglish · 19 hours agoBefore and after programmingpiefed.jeena.netimagemessage-square102fedilinkarrow-up1415arrow-down154
arrow-up1361arrow-down1imageBefore and after programmingpiefed.jeena.netJeena@piefed.jeena.net to Programmer Humor@lemmy.mlEnglish · 19 hours agomessage-square102fedilink
minus-square𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.devlinkfedilinkarrow-up3·8 hours agoI mean, is it? I personally haven’t found Python using much less boilerplate. It’s possible, but you end up with something inflexible that’s hard to maintain.
minus-squaregrue@lemmy.worldlinkfedilinkEnglisharrow-up1·5 hours agoImplement a basic socket connection in C (20 lines of manipulating struct sockaddrs and such), then do the same in Python (2 lines). And then go back and make the C version support IPV6, because your initial implementation didn’t.
minus-squareEthan@programming.devlinkfedilinkEnglisharrow-up1·20 minutes agoOr use a statically typed language that’s actually modern instead of C
I mean, is it? I personally haven’t found Python using much less boilerplate. It’s possible, but you end up with something inflexible that’s hard to maintain.
Implement a basic socket connection in C (20 lines of manipulating
struct sockaddr
s and such), then do the same in Python (2 lines).And then go back and make the C version support IPV6, because your initial implementation didn’t.
Or use a statically typed language that’s actually modern instead of C