5 ms·
And that is where problems start with keen and eager junior developers who think by knowing the 90% they really know the 100%.
by scalesolved 9y ago
And that is where problems start with keen and eager junior developers who think by knowing the 90% they really know the 100%.
- EToS 9y agoAbsolutely. Not using mutable variables as default arguments = 91%
- milesrout 9y agoPython doesn't have 'mutable variables'. I think you mean 'not binding mutable values as default arguments', but that's totally fine. What's wrong is not understanding when default arguments are bound. There's nothing inherently wrong with this: class Wrapper: def __init__(self, wrapped): self.wrapped = wrapped def counter(): def inner(w=Wrapper()): w.wrapped += 1 return w return inner
- sotojuan 9y agoUnfortunately here in HN we constantly upvote those junior developer's Medium posts.
- jacquesm 9y agoBlinking LED now in Node.js.
- deleted 9y ago[deleted]