776 karma · joined Dec 30, 2009 (16y ago) · 280 submissions
comment 13y ago · link · parent
Or (more likely, in my experience) you throw together a parser and then expand into a rudimentary interpreter/compiler and continue along your merry way having essentially reinvented some language you already knew with a few superficial differences.
comment 13y ago · link · parent
There are lots of posts on blogs, newsgroups, etc. about the aesthetic value of having one's code be math-like, but the working programmer doesn't necessarily care about that. That programmer probably does care about avoiding spooky action at a distance. Conforming to a "traditional math is [beautiful|divine|the true Dao]" ideology does not matter to that programmer as much as knowing what data a function depends on or affects.
comment 13y ago · link · parent
Long answer: You can, but Haskell is very serious about keeping pure code separate from impure code. Any function which performs I/O is impure, so its output must be an IO Thing instead of just a Thing. This means anything that uses its output must accept an IO Thing instead of an ordinary Thing, and so on. Of course, the way I/O works means that a 'Type1 -> Type2' function into can be transformed into an 'IO Type1 -> IO Type2' or a 'Type1 -> IO Type2' function (this applies to many things other than I/O -- consult one of the many monad tutorials for more on that). Haskell even includes some special syntax for invoking these transformations that makes things look rather like an imperative language, but adding in a debug print still requires you to rewrite a lot more code than you would have to in another language. Alternatively, you could use unsafePerformIO (whose type is 'IO a -> a') to hide from the type system the fact that you've done some I/O, but you may run into trouble with the printing not behaving as you expect (due to Haskell's lazy evaluation).
comment 13y ago · link · parent
I would expect something that's focused on the content would eliminate the top/side bars, and show me the actual content. Annoyingly, NoScript (which often makes newspapers' web sites quite tolerable) doesn't appear to remove qz.com's clutter.
comment 13y ago · link · parent
Countless Java bugs are introduced by programmers who don't understand what operations give you a copy of something, and which ones give you a reference to something
These two statements seem to be at odds with each other.
comment 13y ago · link · parent
And given this distinction between "sounding black" and "sounding unprofessional," one might harbor some doubt as to whether the study in question controlled for perceived professionalism when estimating the effect of perceived blackness. One might even go so far as to post a comment suggesting that factor might have been overlooked or conflated with the phenomenon being estimated.
comment 13y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
And in fact, the paper spends quite a bit of time addressing this.
comment 14y ago · link · parent
Really? Everyone I know who participated did so primarily because a high enough score on the exam was likely to get them credit for some college course (that they then would not have to spend extra time and money to take).