News for hackers. Stuff that matters.
Re:BigInt Shipping in Firefox by zamadatix on Thursday May 23, 2019 @11:22AM (#19992576)
Only in JS do people seem okay with constantly mucking with built-ins.
Re:BigInt Shipping in Firefox by mikepurvis on Thursday May 23, 2019 @11:43AM (#19992755)
Ruby has a culture around it too: https://www.justinweiss.com/articles/3-ways-to-monkey-patch-...

And you can get some of the patching effect in any language with uniform function/method calls, though typically with a little more scoping and thus less ability to inflict unexpected side effects: https://en.wikipedia.org/wiki/Uniform_Function_Call_Syntax

Re:BigInt Shipping in Firefox by badosu on Thursday May 23, 2019 @12:39PM (#19993301)
For pretty much the past decade (specially the last few years) I feel the culture has shifted to consider core monkey patches as a pretty bad practice.
Re:BigInt Shipping in Firefox by hombre_fatal on Thursday May 23, 2019 @12:51PM (#19993422)
Sure, but it's also a bad practice in Javascript.
Re:BigInt Shipping in Firefox by joliv on Thursday May 23, 2019 @01:56PM (#19994160)
Re:BigInt Shipping in Firefox by weberc2 on Thursday May 23, 2019 @12:49PM (#19993409)
If people could muck with builtins in Python, they would. And worse, they'd do it with inheritance and metaclasses. I say this as a Python dev.
Re:BigInt Shipping in Firefox by tyingq on Thursday May 23, 2019 @12:57PM (#19993507)
Python3 mucked with built in types...
Re:BigInt Shipping in Firefox by recursive on Thursday May 23, 2019 @01:56PM (#19994153)
I don't think monkey patching is really common in any version of python. I've not seen it done anywhere.
Re:BigInt Shipping in Firefox by kevin_thibedeau on Thursday May 23, 2019 @05:07PM (#19995962)
Setuptools monkeypatches distutils. Pip always uses setuptools so pretty much everything installed via Pypi is the fruit of a monkeypatch.
Re:BigInt Shipping in Firefox by tyingq on Thursday May 23, 2019 @02:03PM (#19994226)
Talking about the intro of bytes, bytearrays and the not quite the same types that were backported to 2.x