orleanz: (Default)
orleanz ([personal profile] orleanz) wrote2015-12-28 04:31 pm

Цитата

While the typical enterprise Java programmer looks for an excuse to obliterate a simple ETL process with a MetaModelFactory, the typical functional programmer tries to solve almost everything with “pure” (referentially transparent) functions. Of course, the actual world is stateful and most of us are, contrary to the stereotype of functional programmers, quite mature about acknowledging that. Working with this “radioactive” stuff called “state” is our job. We’re not trying to shy away from it. We’re trying to do it right, and that means keeping it simple. The $200/hour Java engineer says, “Hey, I bet I could use this problem as an excuse to build a MetaModelVisitorSingletonFactory, bring my inheritance-hierarchy-record into the double-digits, and use Hibernate and Hadoop because if I get those on my CV, I can double my rate.” The Haskell engineer thinks hard for a couple hours, probably gets some shit during that time for not seeming to write a lot of code, but just keeps thinking… and then realizes, “that’s just a Functor“, fmaps out a solution, and the problem is solved.


Posted via m.livejournal.com.

[identity profile] juan-gandhi.livejournal.com 2015-12-28 04:19 pm (UTC)(link)
A functor in a Kleisli category, of course.

What I saw, our engineers, former Java people, get into functors and Kleisli much faster than one would imagine.

[identity profile] sab123.livejournal.com 2015-12-29 07:52 am (UTC)(link)
Я не знаю, где он нашел Джава-программистов по $200 в час. Их типовая цифра - $45, и у особо удачливых - $60. И почему он считает сложными вопросы, которые занимают всего пару часов размышления, мне тоже непонятно. То есть, которые "it's just a functor" наверное должны занимать минут 15 размышлений, но дже которые требуют всего пару часов - совсем не сложные. Сложные будут, если они требуют хотя бы неделю размышлений.