HNHacker News
TopNewBestAskShowJobs

clyfe

1,582 karma · joined August 16, 2010

submissionscomments
clyfe··on Official enrollment for Stanford's online AI class has begun
Should it be more feasible to make a google group ?
clyfe··on Official enrollment for Stanford's online AI class has begun
There is also this doc from a previous talk https://docs.google.com/spreadsheet/ccc?key=0Aq06GgDrF8g3dFR... we should combine, not fragment. The sheet from your post is to be preferred since it's more structured.
clyfe··on Contracts For CoffeeScript
Can't this be implemented as a DSL? https://gist.github.com/1180516

    guardArgs = (def, args) ->
      i = 0
      for arg, type of def
        throw new Error("bad type of #{arg}") unless typeof args[i] == type
        i++

    typeEnsure = (def, f) -> ->
      guardArgs(def, arguments)
      f.apply @, arguments
        
    myFunc = typeEnsure {name: 'string', i: 'number'}, (name, i) ->
      console.log name, i

    myFunc("foo", 1) # ok
    myFunc("foo", "x") # Error: bad type of i
I think this can be extended to custom types too.
clyfe··on Attention Comp Sci Majors:
I said the exact opposite: 37signals are not script kiddies, they are really smart, educated people, that make use of CS knowledge in building their products.
clyfe··on Attention Comp Sci Majors:
True innovation requires hard math and CS.

Take Shazaam for example, who built an empire on audio data indexing/search, sound recognition = numerical analysis + probabilities + statistics + search algorithms + a lot of knowledge about systems architecture, distributed systems, databases etc.

Of course you can build products a la 37signals but is a lot more to software than that (and also note that 37 guys are not code monkeys/script kiddies/you-name-it, they actually know lots about CS - sample here: https://github.com/rails/acts_as_nested_set/blob/master /lib/active_record/acts/nested_set.rb )

At some point in your career you'll want to: write a parser, search a graph, optimize some storage thingie ...

Epilogue:

http://steve-yegge.blogspot.com/2007/06/rich-programmer-food...

clyfe··on ClojureScript vs Coffeescript
Projects that aid metaprogramming in CS (please contribute):

https://github.com/clyfe/meta_code/wiki

clyfe··on MoonScript - A programmer friendly language that compiles to Lua.
by CS I mean CoffeeScript, sorry about ambiguity
clyfe··on MoonScript - A programmer friendly language that compiles to Lua.
Indeed. It also saddens me that it does not stick to CS conventions - lots of extra cruft ( the ! for zero-arity method invocation -- instead # for comments etc )
clyfe··on MoonScript - A programmer friendly language that compiles to Lua.
There's also this effort https://github.com/CDR2003/coffee-script-lua don't know how far it reached tough.
clyfe··on Ask HN: Machine Learning? Where to start?
I learned myself specifically SVM from here http://see.stanford.edu/see/courseinfo.aspx?coll=348ca38a-3a... (already had a good background in linear and abstract algebra).
clyfe··on The ultimate cross platform language
don't think haxe targets ruby
clyfe··on Ask HN: [RoR Devs] Where did you learn Ruby on Rails?
http://guides.rubyonrails.org/

http://pragprog.com/book/rails4/agile-web-development-with-r...

clyfe··on Ask HN: Going offline 15 days with an iPad. How to code?
http://cloud9ide.com/
clyfe··on Data Warehousing 101
Thanks for the link, it's a life saver.
clyfe··on Ask HN: What has been your most profitable side/weekend project to date?
Could toy share some insights if it's a payed product (like basecamp) or the users are the product (profits from advertising)?
clyfe··on Ask HN: What has been your most profitable side/weekend project to date?
Most awesome to-the-point short web design booklet, I bookmarked it the first time I saw it on HN some moths ago and visit religiously. I lost the bookmark at some point and made great efforts to find the site again. Great job. (I'm a programmer not designer but I like the instant gratification of the booklet. It's similar in feeling to http://bonsaiden.github.com/JavaScript-Garden/ for JS)
clyfe··on Ask HN: What's your most-used function that you wrote yourself?

    function echo_r($x){
        echo '<pre>';
        print_r($x);
        echo '</pre>';
    }
clyfe··on The Node Beginner Book, an introduction to Node.js, is now complete
http://www.commonjs.org/specs/
clyfe··on Browser-based IDE for writing webapps 100% in JavaScript
Tried http://cloud9ide.com yet ? It's crappy/buggy/slowy now but will be great when beta ends.
clyfe··on I want to learn Javascript. Give me an advice
Javascript hardly changes. For beginning, that is perfect. There is also http://eloquentjavascript.net/ great for beginners, but too much yada yada for my tastes. Books recommended:

David Flanagan, JavaScript: The Definitive Guide

Crockford, Javascript the good parts

J Resig, Secrets if javascript ninja

J Resig, Pro JavaScript Techniques

clyfe··on I want to learn Javascript. Give me an advice
https://developer.mozilla.org/en/a_re-introduction_to_javasc...
clyfe··on Poll: Have you moved from JavaScript to CoffeeScript?
* npm + bowserify or stich or others

* in firebug / web inspector

* qunit, jasmine etc

repl for node

    ### REPL ###
    repl = require 'repl'
    r = repl.start 'REPL> '
    r.context.client = -> exec("open http://localhost:#    {config.port}/") ; return
clyfe··on Ask HN: Which would a Pythonist find most intuitive to learn, Haskell or Erlang?
Haskel i'd dare say. Nevertheless I'd go with Erlang for the pragmatics/usefulness of it. Maybe route via one of:

https://github.com/tarcieri/reia

https://github.com/josevalim/elixir

clyfe··on Ask HN: Ok, I want to create a site this weekend, which framework/platform/tech?
Maybe he uses a third party ?
clyfe··on Rails 3 - Fully Loaded
I'm a long time AS fan. While there are many rails crud/scaffold/admin plugins, and I have analysed them all, none beats the power, customisability and featurefullness of AS.

The only thing that holds it back is the learning curve, wich is strange, because behind it is just plain rails philosophy: controller methods + views with a tasty DSL to plug them together.

A big thanks to Volker for his huge work on pushing it to rails3 compatibility.

The current rails3 branch (Volker's) it very stable.

What remains to be done to make it even more awesome is:

* use nested_attributes_for and clean the custom nested attrs logic

* clean security layer witch at the moment uses gobals (and can only be used in shared nothing deploy)

* request local configuration copy to make it more runtimeasible, at the moment it uses a class var (global-ish) that, for some customisations, needs to be altered per request, and that again leads to only-shared-nothing-deploy

* ActiveModel API so Mongoid can join the fun too

* a child gem that bundles AS to make a fully featured admin interface, competing with rails_admin & friends.

clyfe··on Ask HN: What problems is prolog well suited for?
http://www.learnprolognow.org/
clyfe··on Ask HN: What problems is prolog well suited for?
I know it's used a lot in AI. Problems involving backtracking. Expert systems, rules engines.

Further more, it's good at solving any problem since it's Turing complete.

To use it in Java I'd say one would embed an interpreter and provide an API for accessing Java logic, or use a bridge.

clyfe··on [dead]
The final link ...

http://www.planeterlang.org/en/planet/article/A_comparison_b...

clyfe··on Ask HN: Resources for a PHP to Rails transition
I came to Rails from a PHP background around 2006. I already knew some MVC. I learned Rails from "the book": http://pragprog.com/titles/rails3/agile-web-development-with...

I highly recommend the rails guides: http://guides.rubyonrails.org/

clyfe··on What is the best editor for web development?
I use NetBeans. It's smart about markup, style (css, scss, less by plugins) scripting javascript, ruby, php, python via plugins, and it generally works for me. I fall back to GEdit and Notepad++ sometimes.
← PreviousPage 4 of 8Next →