1,852 karma · joined Nov 10, 2008 (18y ago) · 533 submissions
comment 9y ago · link · parent
What makes map different is that it separates the looping mechanics (incrementing, initializing and appending to the collection) from the actual computation we want to perform on each element. It's just separation of concerns.
comment 9y ago · link · parent
The UI was clunky and the epitome of what happens when programmers design. Everything was jam packed into the screen so that it was immediately obvious what kinds of things you could do or how to go about what you wanted to do. It introduced a lot of concepts all at once, causing an unnecessary learning curve.
comment 10y ago · link · parent
The direct translation of yours' to Clojure would be:
(filter valid-person? (map init-person names))
Meanwhile, the direct Haskell translation of the parent comment is: filter (\p -> isValid p) (map (\n -> Person n) names)69.
AWS IO Performance: What’s Bottlenecking Me Now?(engineering.theladders.com ↗)
6 points · by Scriptor · 10y ago · discuss
comment 10y ago · link · parent
comment 10y ago · link · parent
Actually, you can kind of reverse engineer the algorithm behind Sonnet #2. It seems like they first pick a bunch of related words that rhyme (drawer, door, floors, apartment, wall) and then build up the line backwards. The problem is that even though the words are related, the actual lines don't form any single cohesive image.
76.
Things every React.js beginner should know(camjackson.net ↗)
412 points · by Scriptor · 10y ago · 237 comments
comment 10y ago · link · parent
However, let's say later down the line a new engineer comes in and is tasked with a bug fix. If they're using Cycle.js and see an array, they might think, "Oh, I can easily solve this by adding another element to this one-element array." Without any invariants they'll run into subtler bugs and errors trying to figure out what went wrong.
But with the invariant, if they tried to jam an array there they would immediately get an error and know what's wrong.
This isn't something that will crop up in a simple one-day project like the author was creating with his coworker. It's instead a great example of how a little annoyance can make future maintainability way easier.
comment 10y ago · link · parent
The difference is that Neanderthals had hundreds of thousands of years to adapt to the environment of Ice Age Europe. They had even evolved actual physical adaptations to help them with the cold.
But the humans who moved into the Arctic only had a few thousand years at most to adapt, if that. Neanderthals certainly weren't dumb and primitive, but as you said they were narrowly focused. Modern humans were able to rapidly adapt their lifestyles and technology to allow them to thrive in extreme environments such as the Arctic.
comment 10y ago · link · parent
comment 11y ago · link · parent
comment 12y ago · link · parent
I see what you're trying to get at, but you make it sound as though the Islamic world was brutally traumatized by the Crusades. The savagery was no more terrible than any war of that time. And they didn't really "seal themselves off from the world". They did, however, seal themselves off from Europe culturally and intellectually. Politically and economically there was still plenty of engagement.
What the Crusades did do was to further hamper the adoption of European ideas in the Islamic World. While the Crusaders were happy to adopt both goods and knowledge from the Middle East, Arabs and Turks saw little reason to embrace any European customs and ways of thought. The Crusaders were invaders in their own lands and for that reason alone a typical Arab's perception of Europeans would've been much worse than a typical Frank's perception of "Saracens".
Amin Maalouf gives an example towards the end of "The Crusades Through Arab Eyes" (decent book, by the way, though I liked "Arab Historians of the Crusades" better). As the Crusades progressed and Europe entered the high middle ages peasants in the West started to gain more rights and privileges as the feudal system continued to weaken. However, none of this was seen in the Middle East, where local lords ruled their holdings with an iron grip and peasant rights barely improved.
88.
Understanding how Haskell uses the stack(well-typed.com ↗)
1 points · by Scriptor · 12y ago · discuss