Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at BFusion / BFLEX 2010 (Bloomington, Indiana) with: Michael Labriola
Ben Nadel at BFusion / BFLEX 2010 (Bloomington, Indiana) with: Michael Labriola@mlabriola )

Jody Hagins

Member since Dec 8, 2010

Recent Blog Comments By Jody Hagins

  • Seven Languages In Seven Weeks: Prolog - Day 3

    Posted on Jan 18, 2011 at 11:27 AM

    But, if you needed to schedule all the kick-ball games, along with referees, fields, and religious observations (no Sat or Sun games for some teams), etc., Prolog would be a great choice. BTW, I am WAY behind. I got pneumonia over Christmas, and have still not fully recovered (still hacking and wh... read more »

  • Seven Languages In Seven Weeks: Prolog - Day 1

    Posted on Dec 21, 2010 at 3:25 PM

    The thought process does not seem too bad (though I have to admit that I have a decent background in AI - though with LiSP and Smalltalk - zero ProLog). Anyway, this is the best I can do for executing a prolog "script." First, the script, factorial.pl: % Factorial of 0 is 1 factorial... read more »

  • Seven Languages In Seven Weeks: Io - Day 2

    Posted on Dec 18, 2010 at 5:11 PM

    @Ben, There are several unix commands to trace a process as it executes. You should have those tools available to you under MacOSX as well. strace will trace all the system commands. You can run any program through it... shell prompt -> strace ls -l will run the command "ls -l " a... read more »

  • Seven Languages In Seven Weeks: Io - Day 2

    Posted on Dec 14, 2010 at 4:26 PM

    It can't seem to find a way to edit the post. I left out a part. When I looked at the .io file, I saw this code, which is how I knew it was implemented: DummyLine := File standardInput do( readLine := method(prompt, prompt print resend ) ) Later on, the DummyLine is used as the default ... read more »

  • Seven Languages In Seven Weeks: Io - Day 2

    Posted on Dec 14, 2010 at 4:20 PM

    Chris is correct. If you give it a prompt string, you will not get the nil. Why does this happen? Well, I was curious myself, and since I am going through the book as well, I figured I'd investigate. A little playing reveals this... Io> File getSlot("readLine") ==> File_readL... read more »

  • Seven Languages In Seven Weeks: Ruby - Day 2

    Posted on Dec 8, 2010 at 11:54 AM

    Just going through the book myself, and new to all seven languages as well (though my background is much more C/C++). My attempt at grep used foreach: def grep(expr, fname) File.foreach(fname) { |line| puts "line #{$.}: #{line}" if line =~ /#{expr}/ } end... read more »