Better HN
topnewbestaskshowjobs
Log inSign up

shaunxcode

1,751 karma · joined Mar 26, 2008 (18y ago) · 893 submissions

symbolic homoiconicist

shaunxcode@gmail.com

Submissions

comment 17y ago · link · parent

stun taken - I seriously had forgotten about that.

comment 17y ago · link · parent

I still don't see why the single : would not have worked?

comment 17y ago · link · parent

That's one thing that I love about working through project euler - formal/classic math meets code. I've probably bought 6 or 7 books on particular aspects of math just so that I could properly understand/solve some of the problems too.

comment 17y ago · link · parent

just wait til the straight edge smalltalk fans catch wind of this.

comment 17y ago · link · parent

that is cool and informative - mind sharing the source for generating the sums?

comment 17y ago · link · parent

More like "the crow fascination". I thought this was going to be related to the parable of the crow at least (not really a paradox either) in which the crow wants to get water from the bottom of a barrel which her beak can not quite reach. Being an engineer she realizes that she can raise the level of the water by dropping stones in. By the time she has dropped enough stones in the water has actually just moved to fill the voids between them. She continues to drop stones on the now overflowing barrel of stones unwilling to admit she should have just broken the container open in the first place. She dies of thirst shortly there after. Hows that for a kids book?

comment 17y ago · link · parent

when I was looking into apl-esque paradigms the coolest thing I stumbled upon was a language called nialhttp://en.wikipedia.org/wiki/Nial - very clean and really good use of syntax! I am going to check out J for sure though - thanks.

comment 17y ago · link · parent

wow - the first couple of paragraphs make it seem like brainfck! I love the part about using . for multi word variables because in a past version of a previous language _ was used for assignment! And thus the . can not be used for methods and instead they use $. holy crap. Yet somehow I am still strangely intrigued in a "this is as close to APL as I am going to get with out a magic keyboard" sort of way.

comment 17y ago · link · parent

vw/porsche mechanic. It's what I grew up doing and I would actually love to do it again. If I had more hours in the day I would code and build engines.

comment 17y ago · link · parent

fun little text editor called WHOAD (sort of like woah dude or word heuristic occurrence analysis diagram). Trying it in flex v.s. the jquery version I currently have.

comment 17y ago · link · parent

I don't buy that at all. That attitude is precisely what makes people think they can't "get it". As if they lack some sort of natural aptitude or genetic predisposition towards numbers.

comment 17y ago · link · parent

Here is curry in php 5.3

  function curry(){
    $args = func_get_args();
    $fn = array_shift($args);
    return function() use(&$fn, &$args) {
        $nargs = func_get_args();
        foreach($nargs as $narg) $args[] = $narg;
        return call_user_func_array($fn, $args);
    };
  }

  $add20 = curry(function($a, $b){return $a + $b;}, 20);

  echo $add20(5); #25

673.

PHP 5.3 YCombinator and other tricks(commonphp.blogspot.com ↗)

2 points · by shaunxcode · 17y ago · discuss

comment 17y ago · link · parent

OR it's just the new geocities. This article doesn't even provide numbers - just hunches and hearsay. What a crock.

comment 17y ago · link · parent

I think the use of , and or newline to separate statements is a stroke of genius instead of just treating them as optional whitespace. Totally feels like a more concise smalltalk if that makes sense.

comment 17y ago · link · parent

Here is a real question. Why could they not use a simple single : for namespaces? It would be able to parse that just fine. And it would actually look clean/nice.

comment 17y ago · link · parent

Guess I'm even more glad that I dropped out of high school, started hacking, played in bands, lived/worked in europe for a few years, came back to the states and now work full time from home for clients and my own start up. Maybe I hit my quarter life crisis in 9th grade but I realized what my culture offered me after school was over appealed about as much sitting in school waiting for it to be over.... Maybe all the stereotypical hardcore/straight edge lyrics about "taking control" of your life actually hit home for me - but regardless I actually love my life at 27 - know where I've been, know where I'm going and only regret that it is passing so quickly.

comment 17y ago · link · parent

this is the first "humorous" comment that I have ever upvoted - purely because it is so true that the humor is implicit and not the main function of what was said. My god I have this vision now of mel wearing robes and fighting creatures with machine code.

comment 17y ago · link · parent

I agree about seasonal eating patterns and I guess that is implicit if you are eating local organic (i.e. no crazy hydroponic winter tomatoes). Living in utah that would mean the winters would bring a lot of grains, canned/bottled fruit and vegetables from the growing season etc. How does a fresh vegetable stew with some home made bread not sound good?

On rice - I actually tried growing rice in my apartment using 5 gallon buckets one suspended in the other so that there is a constant supply of water in the bottom (I think the term is self watering container). I just threw in some soil and tossed a hand full of organic brown rice and it sprouted within the week! I am not sure how much I could have grown had I taken it past that point but I was surprised that it even sprouted!

comment 17y ago · link · parent

This is going to have some pretty big reprecussions for the restaurants in question. A few years back the same thing happened on the east coast when someone ate a vegan philly "cheese" steak at a vegan joint and swore down that it could NOT be vegan. They ordered one to go and utilized their campus laboratory to discover that, yes, it had casein in it. Turned out that the supplier of the restaurants vegan cheese had not been entirely honest. It looks like the same thing is happening with a lot of these cases. Most people source their vegan "meats" from central import supermarkets and the people doing the translation seem to be leaving out a few crucial facts i.e. "this vegetarian fish contains fish" etc.

This is another great reason to source your food locally. When you are having to trace the contents of what is going into your mouth across state borders let alone oceans you're going to have some difficulty.

One of my long term plans is to open a restaurant which sources everything locally (with in the county) - it will be inherently vegan but will not champion that so as to not turn people off of the concept but rather push the idea of healthy food supporting local business and thus the overall food security for the community.

comment 17y ago · link · parent

Truth - as a vegan I find the best meals are those which are almost entirely produce based with some simple grains to add texture etc. I am not a "raw food" type but I love well prepared raw food. Even working from home I have a hard time being able to shop and prepare to eat a healthy raw diet so I fall back on frozen veg, brown rice, quinoa, beans and lentils.

Eating out is always going to be a compromise if you really care about what goes into your body. I would prefer to reserve it for when I am out of town or special occasions - but even then what is more special than actually taking the time to cook yourself?

comment 17y ago · link · parent

Could you put cursor:pointer on the clickable parts of the board?

comment 17y ago · link · parent

That is what I would call "not so much". PHP is inherently ugly but this is just excessive. Temporary variables, needless loops, off by one logic errors compensated for with extra substr call. yuck. How about:

return join($delim, array_reverse(split($delim, $str)));

Or more ideally with a little fluidity, assuming a string object:

return $str->split($delim)->reverse()->join($delim);

comment 17y ago · link · parent

I stumbled upon this a while back and was quite taken by it: http://en.wikipedia.org/wiki/Nial

comment 17y ago · link · parent

And now that php is going to have cleaner anonymous functions we'll end up with some sort of pquery. but with more -> and Array( all over the place.

P("db_table.name")->filter(function($x, $y){return $x > $y;});

comment 17y ago · link · parent

I read the title and thought it meant a nethack/mud style command line interface. That would rule.

comment 17y ago · link · parent

precisely - sometimes garbage just rises to the top. Started out as a villain, became more of a villain, does the world "a solid" by redistributing some of the wealth he essentially bled from it! In the words of alan partidge circa knowing me knowing you: "What a nice man".

comment 17y ago · link · parent

which in turn illustrates that a "viable" business can be built on making existing data more immediately accessible/refined.
1
222324
30