Jeena@piefed.jeena.net to Programmer Humor@lemmy.mlEnglish · 14 hours agoBefore and after programmingpiefed.jeena.netimagemessage-square88fedilinkarrow-up1364arrow-down148
arrow-up1316arrow-down1imageBefore and after programmingpiefed.jeena.netJeena@piefed.jeena.net to Programmer Humor@lemmy.mlEnglish · 14 hours agomessage-square88fedilink
minus-square𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠linkfedilinkarrow-up2·3 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·8 minutes 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.
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.