Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jamesdutc
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
61.
▲
by
jamesdutc
11y ago
I believe this is relevant: https://bugs.python.org/issue1580
62.
▲
by
jamesdutc
11y ago
I've recently seen a lot of demand in Python corporate training. High-quality corporate training hinges on maximizing student engagement. This typically means having students spend time in class writing programs. (In one four day class
63.
▲
by
jamesdutc
11y ago
I'm calling these classifications "reductive." Unfortunately, this kind of structuralist analysis can be useful but it's limited. In contemporary critical analysis, it has been supplanted by (or augmented with) more usef
64.
▲
by
jamesdutc
11y ago
I agree. A list of common story structures can be effectively used as a heuristic in synthesizing new stories from these structures, and this list does an extremely terse list of common themes. It's definitely fatiguing to generate the
65.
▲
by
jamesdutc
11y ago
This critique is a bit broader than the specific complaint about structuralism (which leads us to garbage like Joseph Campbell's Monomyth/Hero's Journey): https://en.wikipedia.org/wiki/Structuralism#Struc
66.
▲
by
jamesdutc
11y ago
I've heard people talk about there being two basic plots: - stranger comes to town - stranger leaves town You could similarly say that there are two basic plots: - love - hate Or even: - love/hate
67.
▲
by
jamesdutc
11y ago
"A well-ordered society advances the good of each and all of its members, so that there is no one from whose gaze or plight we have to avert our eyes, no one whose complaints can be met only with lies or pious nonsense about following
68.
▲
by
jamesdutc
11y ago
This seems to still miss the critical mechanism that metaclasses provide to the language. There are many ways to enforce a constraint from dervied classes to base classes. Metaclasses are the only* way to enforce a constraint from a base cl
69.
▲
by
jamesdutc
12y ago
I think it's beneficial as a personal achievement. You set a goal and worked hard to achieve it. (Kudos!) As a professional achievement, I think it would have mostly neutral effect. There are a lot of good jobs (doing decent work) that
70.
▲
by
jamesdutc
12y ago
If the distinction is who writes their cheques, aren't they just called marketing people, and they work on the scale of selling consulting teams?
71.
▲
by
jamesdutc
12y ago
Setting a flag is another approach. There's already an extension mechanism for storing arbitrary per-thread state in a dictionary object, accessible via `PyThreadState_GetDict`. https://hg.python.org/cpython/file&#
72.
▲
by
jamesdutc
12y ago
Someone on GitHub asked "why shouldn't this be used": https://github.com/dutc/didyoumean/issues/1 Here's the answer I gave: It's not a particularly useful feature in practice. Misspel
73.
▲
by
jamesdutc
12y ago
Yeah, that was one of the (less-bad) approaches I tried first: https://gist.github.com/dutc/3f2c79048d95287be138 But you can see it's somewhat limited. And I was curious to actually hook an internal Python call! B
74.
▲
by
jamesdutc
12y ago
This is probably not a good idea. (dutc = Don't Use This Code) It's horrible that it even works. It's surprising how well it works when it does work. It was a great opportunity to solidify some knowledge about low-level (impl
75.
▲
Show HN: “Did You Mean?” for Python
(github.com)
66 points
by
jamesdutc
12y ago
|
10 comments
76.
▲
by
jamesdutc
12y ago
Interestingly, in the video linked above, I think the Japanese panelist is one of the more natural speakers. http://www.youtube.com/watch?v=U5na5nHZsww#t=16m15s
77.
▲
by
jamesdutc
12y ago
The gimmick is not in his motivation for learning. It's in how this is presented and contextualised. For further comparison, Kevin Rudd's Chinese-language interview for Mandarin News Australia ( http://www.youtube.com&#x
78.
▲
by
jamesdutc
12y ago
I think that the number of Westerners who achieve conversational fluency in Chinese is limited only by motivation and access to resources. It's more difficult for an American than learning Spanish, sure, but wholly within the grasp of
79.
▲
by
jamesdutc
12y ago
I wish the exoticising of the East would just go away. This mystique associated upon the Chinese language is horribly old-fashioned. It comes up far too often ( https://news.ycombinator.com/item?id=7624342 ) Of course, we sho
80.
▲
by
jamesdutc
12y ago
This is a very interesting phenomenon, but I think one should be wary of using it for decision-making in the absence of distinguishing principles. "Keep things simple": yes, of course, and I also look both ways before I cross the
81.
▲
by
jamesdutc
12y ago
This seems unwise to publicise. There are a few common life changes for which you cannot legally discriminate against a candidate in hiring (in the US.) I'm not even sure why you would allow hiring manages to ask the questions necessar
82.
▲
by
jamesdutc
12y ago
I think this behaviour is supposed to be a feature of shell. Pipelines are executed in parallel. Also, see `sponge` from `moreutils` ( http://kitenet.net/~joey/code/moreutils/ ): $ man sponge ...
83.
▲
by
jamesdutc
12y ago
By the same author, "Derivatives Analytics with Python": http://derivatives-analytics-with-python.com/
84.
▲
by
jamesdutc
12y ago
This is, of course, true, but I don't know that it really diminishes the accomplishment. (As the joke goes, for some dialects, you just "modulate [the tones] down.")
85.
▲
by
jamesdutc
12y ago
This article comes up every so often, and I'm sure that every learner of Chinese has run across it at least once. It's a mix of common frustrations for Chinese learners and a lot of self-aggrandizement (on the part of both native
86.
▲
by
jamesdutc
12y ago
"He then gives examples of companies like Morgan Stanley in London adopting Scala heavily. This type of adoption could be a great asset for Scala's adoption or it can be a touchstone of regret that people point to when deciding to
87.
▲
by
jamesdutc
13y ago
Since we're all sharing our fizzbuzzes, here's mine (from my blog http://seriously.dontusethiscode.com/2013/04/29/bad-intervie... ) Note that this solution is generalised for any divisors and generat
88.
▲
by
jamesdutc
13y ago
I go overkill on the debugger flags: -g -g3 -ggdb -gdwarf-4 Being able to debug C-macros has improved my life! (gdb) info macro Py_TYPE Defined at Include/object.h:117 included at Include/pytime.h:6
89.
▲
by
jamesdutc
13y ago
So that flattening can also be written as: x = [[1,2], [3,4], [5,6]] [x for x in x for x in x] More perversely, we can also flatten with my invention: list(None for x in x if (yield from x) and False) # Python >=3.3
90.
▲
by
jamesdutc
13y ago
PyCon Finland was great! http://fi.pycon.org/2013/ I believe it was the first time they held the event; everything was well-organised and went smoothly. I gave my Generators talk, which went over pretty well. I met a l
More ›