4 ms·
Over here in the dynamic languages world (JS, Ruby, Python, etc) I often cry myself to sleep because I spend hours debugging something that turns out to be prev
by Swizec 12y ago
Over here in the dynamic languages world (JS, Ruby, Python, etc) I often cry myself to sleep because I spend hours debugging something that turns out to be preventable with a const or a private function or something.
- woah 12y agoJavaScript tears :'(
- ryan-allen 12y agoI ain't got no tears using Typescript these days!
- TheLoneWolfling 12y agoPython being Python, you can prevent non-malicious problems of the sort you mention (const and private functions / variables). Const via overwriting setattr / etc, private functions via stack inspection (among other things. There's a sliding scale of thoroughness versus clean code here.) Though it won't protect you from malicious intent (though this is still the case with C / etc), and it's caught at runtime as opposed to at compile time.
- Swizec 12y ago> Though it won't protect you from malicious intent It often does feel like junior developers are malicious. While I commend their ingenuity in solving the problem, code review can be a real schlep.
- TheLoneWolfling 12y agoHanlon's razor