HNHacker News
TopNewBestAskShowJobs

santadays

478 karma · joined March 13, 2009

submissionscomments
santadays··on Average Income per Programming Language
Or terse.
santadays··on Yesod 1.0 - a robust, friendly, high performance web framework for Haskell
I might be wrong here but I think it prevents against a user tampering their own cookie. Say I store User_Id:5 in a cookie and pass it over an ssl connection. The user can still change from User_Id:5 to User_Id:6 and get user 6's account info. Typically you would have to store a non guessable token instead to avoid this. I think by encrypting the cookie you provide the non-guessable part of the equation without having to think about it. This isn't really a benefit from a security standpoint (as in it doesn't provide more security), but it is convenient.

Could be wrong here, I'm not very familiar with Yesod.

santadays··on Why I absolutely love java

  import static com.google.common.collect.Lists.*;
  import static com.google.common.collect.Collections2.*;
  import com.google.common.base.*;
  public class AdmittedlyNotMuchBetter {
      public static void main(String[] args) {
        System.err.println(filter(newArrayList(1,2,3,4),new  Predicate<Integer>() { 
          public boolean apply(Integer input) {return input % 2 == 0;}
        }));
      }
  }
btw, how do you preserve source indentation in the comments? [edit: formatting, thanks]
santadays··on Why is there Anti-Intellectualism?
Couldn't creativity be described with memetics. That ideas aren't tied to the survival of their host but, like our genes, with their ability to continue to replicate. Most ideas are just other ideas that have been refined to survive new circumstances.

Intelligence has given our species an advantage because of the predictions we are able to make on given evidence that allow us to avoid danger, the mechanism that allows us to make these predictions is somewhat obfuscated at this point.

So as a person develops from childhood their model of the world will contain many contradictory ideas. Given a certain set of circumstances these contradictions are brought to light and depending on the usefulness, and sometimes, but not always, the correctness of the predictions each of these ideas allowed one will survive or grow stronger.

The modern world has allowed us to measure things more closely, and more rigorously trim our ideas. This is done mainly in smaller elite circles of academia.

Then anti-intellectualism is simply the result of people who have models of the world that reject ideas which would do them harm, sometimes with no real benefit. I say no benefit because these new "intellectual" ideas simply aren't verifiable to most of the population. Them believing these ideas would be equivalent to believing parishioner.

However, I would say certain discoveries, or actions broaden general populations worldview and prime them for scientific ideas. The moon landing, technology in general are good examples.

← PreviousPage 2 of 2