Jeena to Programmer [email protected]English • 19 hours agoBefore and after programmingpiefed.jeena.netimagemessage-square91fedilinkarrow-up1413arrow-down156
arrow-up1357arrow-down1imageBefore and after programmingpiefed.jeena.netJeena to Programmer [email protected]English • 19 hours agomessage-square91fedilink
minus-square𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠linkfedilink3•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-square@gruelinkEnglish1•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-squareEthanlinkfedilinkEnglish1•37 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