News for hackers. Stuff that matters.
Re:Box: Python dictionaries with recursive dot notation access by makecheck on Friday May 05, 2017 @02:27PM (#14275672)
Yep. Or keys with dots in their names, or keys actually named something like "__eq__" (strange but not impossible).

The worst thing about abstractions is when they break. I can always figure out how to fix or extend ugly but straightforward code. I may not even know where the manual is when a fancy wrapper dumps a trace.

Re:Box: Python dictionaries with recursive dot notation access by mannykannot on Friday May 05, 2017 @03:47PM (#14276284)
>I may not even know where the manual is when a fancy wrapper dumps a trace.

I read somewhere that if it is written in self-documenting code, the problem and its solution will be obvious.

Re:Box: Python dictionaries with recursive dot notation access by xapata on Friday May 05, 2017 @07:09PM (#14277496)
Was that sarcasm?

What counts as "self-documenting"?

Re:Box: Python dictionaries with recursive dot notation access by Retra on Friday May 05, 2017 @08:39PM (#14277954)
Undocumented code is self-documenting. Because it only ever does exactly what is written, it must be intended to do exactly what it does.
Re:Box: Python dictionaries with recursive dot notation access by xapata on Friday May 05, 2017 @11:37PM (#14278528)
Ah, Dr. Pangloss.