HNHacker News
TopNewBestAskShowJobs

jimmytucson

1,470 karma · joined February 16, 2012

Software engineer specializing in data engineering, language technology, ML, and search. Reach me at my HN username at fastmail.com.
submissionscomments
jimmytucson··on Why time appears to speed up with age
Brian Skinner, physicist and basketball analytics extraordinaire, wrote a really nice blog post about this 3.5 years ago [1]. Mining the comments from that post shows it's been banged around numerous times before that [2][3].

[1] https://gravityandlevity.wordpress.com/2009/04/02/parenting-...

[2] http://www.nytimes.com/2009/04/21/science/21qna.html?_r=1

[3] http://web.archive.org/web/20071116094344/http://ourworld.co...

jimmytucson··on The (Odd) State of Node.JS and its Frameworks
You could potentially narrow it down a little bit by taking Express out of the equation. As far as I know, Express doesn't play on the browser. You could use Express to serve static content or a blog or an API but you would need to supplement it with something like Backbone or Ember on the client to build something like gmail or trello.

And while you could use Meteor (or, I'm sure, Derby) for a static website, that's obviously not what it's designed for. I've never tried it, though. I'm sure it would be a real beautiful experience.

jimmytucson··on A Proposal To Improve Hacker News

    >they are attempting to fix a people problem using technical solutions
That's catchy but isn't that what a large handful of pg's startups are doing?

Don't get me wrong. I'm glad we're not throwing "technology" at the problem. But I'm glad for a selfish reason. I think adding features and modernizing the site would draw attention and users, probably the "wrong" kind.

jimmytucson··on Larry Wall on why he wrote Perl
A Perl script can almost morph into its own unique language, one that exists only during the runtime of that script and then flashes out of existence like a Boltzmann brain.

To me, there's no disputing that writing Perl is like making art. The problem I have is deciding whether this is even a remotely good design decision for production code.

jimmytucson··on Some performance tweaks
Impressive, considering this could have been an even better pull request without all the "like, white guy speak, yo".
jimmytucson··on Jack Dorsey: Today Starbucks Signed up for Square
I used to work at Starbucks (albeit going on 5 years ago) and although I don't have the exact statistics or a perfect memory, it was not a "vast majority". If I had to guess, I'd say probably something like 2/3. Maybe the ratio increases if you count Starbucks gift cards.

Either way you look at it, Square's transaction volume surges with this deal. Good on both parties.

jimmytucson··on Trading Program Ran Amok, With No ‘Off’ Switch
I don't blame anybody who thinks it's not as regulated as it should be but you might be surprised at how extensive the current requirements are. Storing ~200 million daily transactions in order to fulfill arbitrarily complex reporting specifications from SEC, FINRA, internal audit (rogue trading detection, etc.), not to mention analytics for other trading systems... Oracle/IBM/whatever enterprise big data provider gets the contract must be sending one gigantic fruit basket around Christmas time.

EDIT: Here's a little light reading for you http://finra.complinet.com/en/display/display_main.html?rbid... (or you could just take sandpaper and rub it against your brain)

jimmytucson··on Heroku Postgres Basic Plan
This is almost certainly not the right place for this kind of question but perhaps someone might be willing to point me in the right direction.

I am currently paying $9.50/mo for a Webfaction plan with 100GB disk, 600GB bandwidth, 256MB RAM + unlimited MySQL and PostgreSQL databases + various other services (webmail, SSH access, etc). What would the use case be for switching to, say, a Heroku plan with 1 Web Dyno and a 10M row PostgreSQL database? If I'm reading correctly, 1 Web Dyno will cost me $0/mo + $9/mo for the basic plan = $9/mo, which is comparable to the Webfaction plan, price-wise.

jimmytucson··on PHP: The Right Way
Yup, that's my basic reading comprehension dropping out again. Thank you, that does make sense.
jimmytucson··on PHP: The Right Way
I didn't understand this:

    4.2. Properties

    This guide intentionally avoids any recommendation regarding the use of 
    $StudlyCaps, $camelCase, or $under_score property names.

    Whatever naming convention is used SHOULD be applied consistently within a 
    reasonable scope. That scope may be vendor-level, package-level, class-level, 
    or method-level.

    4.3. Methods

    Method names MUST be declared in camelCase().
jimmytucson··on Why Showing Your Face at Work Matters
So this applies if your manager/team is in another city/timezone? Ironically, I got my first promotion and biggest bonus as the only NY member of a London-based team. However, I certainly wondered whether being the lone wolf in my region was good for my career in the long run.
jimmytucson··on JavaScript Prototypes Made Easy
I also came from a scripting background (Perl) but are you seriously telling real programmers coming to Javascript from C, C++, and the like that they should change their way of thinking to fit a truly broken system originally used mostly by web designers?
jimmytucson··on What is Modern Perl

    > What is modern Perl? Python.
Ah, 'fraid not.

I am also a Perl to Python refugee. For most applications I get far more enjoyment out of Python. But try implementing Higher Order Perl in Python and you won't get past Chapter 1 without some weirdness. Using decorators, lambda, map, reduce, itertools, even generators all feel like bending over backwards to achieve what comes naturally in Perl.

This isn't an attack on Python. I'm just saying, Python is not meant for functional programming any more than Perl excels at OO, and that's why I disagree with your thesis.

jimmytucson··on Python 201: How to sort a dictionary by value
The example data sorta looks like a MongoDB collection.

I kinda err towards using basic data structures rather than whipping out my own class but I'm not sure that's valid. What would your key-value store class look like?

jimmytucson··on I analyzed the chords to 1300 popular songs for patterns. This is what I found.
Probably more interesting than the actual notes would be the figured chords and their progressions.

In other words, "C G a F" isn't materially that different from "G D e C" or "F C d Bb". All three are instances of the same progression: "I V vi IV" ...which happens to be the most hackneyed (or "effective", depending on your point of view) chord progression in popular music over the last 30 years.

If you transform each chord progression into its figured representation then you can pick up more significant trends such as the above, or blues changes (e.g. "I I I I / VI VI I I / V VI I I") and then you can start to discern when they rose to popularity and which ones are falling out of favor.

For example, in the 50s and 60s, I have no doubt "I vi IV V" was more popular than "I V vi IV" but I have no way to prove it currently and would love to find out if I'm right or wrong on that.

jimmytucson··on Where the Heat and the Thunder Hit Their Shots
For those of you wanting to dive deeper into the data, try basketball-reference.com's PlayIndex+: http://www.basketball-reference.com/play-index/plus/shooting...
jimmytucson··on New Planet Found in Our Solar System?
This is like twisting the knife after we stabbed it in Pluto's back, if you ask me.
jimmytucson··on Y Combinator here I come – update
You're not there yet. But you get there, I hope I'm lucky enough to be a part of it.
jimmytucson··on Show HN: My first web app - Resumonk - A beautifully simple resume builder
Great job. Direct to the point, easy to use, allows me to download as PDF...

I had an idea for a site exactly like this except I couldn't have executed it as well and I gave up after I saw these: http://startupstats.com/resume-builder-startups-2012-03/

I regret that decision now that I've tried yours.

jimmytucson··on If the Internet was around before recorded music would we have record labels?
I'm so bad making my point on the internet that I sometimes say the opposite of what I'm trying to say. What I should have said is, music has been bound to a physical medium for so long that people confuse the thing of value with the object that holds it. So I agree with you... sort of.

But I'm curious: what is your opinion about the guy who doesn't buy sheet music and just memorizes the songs and teaches them to people? Do you feel he is in some way guilty of piracy?

jimmytucson··on If the Internet was around before recorded music would we have record labels?
It's crazy to think music in America was actually commoditized before being distributed and consumed in recorded form. Back before record labels there were sheet music publishers. Instead of a phonograph or a CD player, people owned pianos and vocal chords. When the latest smash hit came out, you went and bought the sheet music and performed it yourself for your friends and family. That was the American popular music industry.

So it's worth asking, is the thing of value here the actual sheet of paper with the music written on it, or the grooved metal cylinder, or the vinyl, or the mp3? Obviously yes, to some extent.

But imagine if you were around in the 1850s and one of your buddies stops by and bangs out "Old Folks at Home" on the piano, totally by heart. And maybe after a couple of times, you kinda figure it out yourself. And then you go to somebody else's house and do the same thing.

Is this the 1850s equivalent of peer-to-peer file sharing?

You start to realize, a song has been bound to a physical object for so long, we've begun to confuse the music -- the actual information -- with the physical object that holds the information. Maybe back in the 1850s there were renegades who ran around teaching people Stephen Foster songs and the publishing companies took a hit and sent the sheriff after them. It seems ridiculous but that's basically what's happening today with the RIAA and file sharing.

jimmytucson··on Pair (YC W12) raises $4.2M round of funding
I can't say this answers your question but I often find that with a significant other, you almost have a "double life": one you share with the rest of the world and one reserved for just him or her.

Never having tried Pair, I can't form an educated opinion but I'm assuming it's sort of like a Google+ circle with a cardinality of 2. Given the behavior I just described, there might be more of a need for "circles" of 2 than just about any other particular number.

Now take your "circle of 2", throw in some cutesy features catering to the nature of that circle, and I can see why their product is useful to a lot of people.

Probably not that useful in parts of Utah, but elsewhere on the globe, sure.

jimmytucson··on Big Data's Big Problem: Little Talent
That's a great point. In theory, having a shortage of X at price Y is nonsensical. It doesn't make any sense to say there's a shortage of worker drones with a mastery of multiple advanced disciplines. There are "enough" of them, they're just called consultants and they make like a thousand dollars an hour. Or if there aren't enough of them, offer a salary that will enable them to at least pay off the student loans they'll accumulate getting a Ph.D and a couple masters degrees on top.

...in theory.

jimmytucson··on How to make a Text Adventure
I enjoyed this article, thanks! Playing MUDs was one of my favorite pastimes in high school and I often wonder whether text-based games will enjoy a resurgence with the many new technologies being developed.

Side question... he mentions how you can't quite achieve this "room" object in Python:

>you can’t turn to anonymous functions because Python doesn’t have them. You can’t use dot notation to dereference the fields inside the structure because Python uses [“key”] notation.

Why couldn't you subclass an object that has an 'on_enter' method? A nice side benefit would be that you'd be able to use dot notation to refer to its attributes!

    class Kitchen(Location):
        name = 'kitchen'
        description = 'Your kitchen is untidy and cramped.'
        visits = 0
        def on_enter(self):
            if (self.visits == 0):
                #first time in this room
        ...
So far the magic of Javascript has been a bit over my head but I want to learn more. Why is this something you'd need anonymous functions to accomplish? (And why not just use Perl or some other language with them as opposed to JS?)
jimmytucson··on Poll: What is Your Favorite Programming Language?
I use Python the most but Higher Order Perl changed my life. Voted for Perl.
jimmytucson··on Are jobs obsolete?
Yeah, I like this part:

"The communist answer to this question was just to distribute everything evenly. But that sapped motivation and never quite worked as advertised."

Wow. Understatement? Volumes of economic thought have been written about why communism doesn't work and he just kinda brushes it off like, "minor bug, nbd".

jimmytucson··on Are jobs obsolete?
Oh, alright. So, he's talking about "being employed by some organization", rather than just "having a job" in general. The article definitely makes more sense now.

I guess, maybe naively, I don't care as much about the arrangement between employer and employee as I do about the apparent dark side of rapid efficiency gains through specialization. I wanted him to say, "Hey, look, specialization is awesome until we're so efficient we don't need all the humans we're giving birth to!" But I'm slightly disappointed because I think I just read something about how evil and oppressive corporations are.

jimmytucson··on Are jobs obsolete?
"Jobs, as such, are a relatively new concept. People may have always worked, but until the advent of the corporation in the early Renaissance, most people just worked for themselves."

I feel kinda stupid for saying this but I always thought people stopped producing their own "stuff" when we really got the hang of money. In other words, thanks to money, I can do one thing all day (and maybe get really good at it!) instead of doing all the little separate things I need to do to survive. And then I can exchange the fruits of that one thing for all the other stuff I might need or want.

I appreciate this more now since I started learning how to write code. By my second or third go at a script, I figure out how to factor out common functions and reuse them. Good thing these lines of code aren't laborers because what I'm essentially doing is firing all of them and replacing them with a workhorse (a function or a subroutine) which will do all the work for me, multiple times.

I guess I'm sort of brainwashed into thinking the efficiency gained by factoring my code is more important than the livelihood of all those little redundant lines I figured out a way to delete. But what this guy's saying sounds too politically charged for me to be fully persuaded by it. I'm like 88% persuaded by it but there's the nagging 12% saying, "He's got an agenda, Jimmy. Don't listen to him!"

jimmytucson··on How I built a startup while working full-time in Finance
Did you have a non-compete agreement with the firm you worked for? I would have thought working in financial services your employer would technically have first dibs on anything of value you create.
jimmytucson··on Learn Regex The Hard Way
Thanks for this. I learned Perl about 1.5 years ago and recently took up learning Python. The one thing I find less intuitive about Python than Perl is its syntax around regular expressions.
← PreviousPage 11 of 12Next →