Hacker Newsnew | comments | ask | jobs | submit | asher's commentslogin

I suspect that at least two aptitudes are involved, and different programming languages/platforms place different demands on those two aptitudes.

One aptitude is essentially the math/engineering ability. The other is linguistic.


ds9 1 day ago | link

Also the working memory and a certain willingness to sit there doing purely mental work for significant periods of time (well I guess the latter is part of 'math/engineering ability'). The working memory aspect is what makes this sub-thread not a complete digression.


Cool project; I'm working on something similar. But I'm using BFSK, which means two frequencies instead of 16.

You don't really need an FFT (expensive) to decode these 16 frequencies. Instead, you can shape them into square waves with a software Schmitt trigger, then measure time between transitions. When n successive transitions indicate the same frequency, you emit the corresponding nibble.

The more frequencies you use in your encoding, the longer it takes to discriminate in the receiver. I think this is why real-world FSK systems are usually BFSK.


When I worked at Yahoo, the policy was to not use C++ exceptions. We used integer return codes. We mostly followed your #1, in which constructors do no actual work.

The Google coding guide, at least a few years ago, prohibited throwing C++ exceptions.

So you are hardly alone in avoiding them.


Would you mind telling me what business and finance communities you've found interesting?


shrikant 334 days ago | link

I'm not parent, but I think /r/business and /r/finance on Reddit are quite interesting. They're relatively low-trafficked subreddits that can still maintain centrist (balanced) and informative discussions.


asher 383 days ago | link | parent | on: I'm tired

How does a wise and tactful man react to a tactless remark in a large group?

He doesn't. He might try to direct the conversation to more agreeable matters. He certainly doesn't draw attention to the offense and impress it indelibly in the minds of the others.

Generally, you are better off improving your own behavior than that of others. As Dale Carnegie pointed out, it's not only more profitable; it's less dangerous.


If you want a funded startup, you could start here:


If you want a big company, Google and Yahoo use a lot of C++ and Java.

My last two groups at Yahoo, before leaving for a startup, were C++ and Java.

Good luck in your quest!


I agree with you about the feeling of fragility, especially with defaultdicts.

As for regexes - while they are somewhat clumsy in python, they don't have to be defined distantly:

  m = re.match(r'(\d{4})', buf)
  if m:
    print "year: %s" % m.group(1)
The only thing that really bothers me about the above is the need to separate the assignment of m from the test.

Re comprehensions: seems to me they are just Python's version of Perl's map and grep.


  @good = grep { $_->{width} > 9 } @crates;
  good = [c for c in crates if c['width'] > 9]

  @squares = map { $_ * $_ } @nums;
  squares = [i*i for i in nums]
Which is better? I think Ruby's way is the best, and Perl/Python are a wash here.

Now, on the autovivification note, I wonder if we can make a Python class that has the desired behaviors. Like:

  c = PerlishStruct()
  c['foo'][17]['bar'] = 'baz'
You don't really think it's junk, do you? Perl, Python and Ruby are extremely similar; I'd say Perl's more ergonomic, but messier; Python's cleaner, but sometimes awkward, and Ruby pretty much has the best of both worlds.


berntb 487 days ago | link

You probably shouldn't do this in an inner loop: :-)

  m = re.match(r'(\d{4})', buf)
'map' is more general than just the single, convoluted statement of list comprehensions, which really seems as a kludge from unwillingness to accept multi-line lambdas. So something new was invented that had to be learned; then it was argued it is a boon. (Like references in Perl. :-) )

(There is some defaultdict functionality for autovivification in Python iirc.)

Yeah, they are all similar. I don't know enough Ruby to have an opinion.


Which modules are missing on Pypi?


adrianhoward 597 days ago | link

It's not the modules - it's the infrastructure of the CPAN environment.

See this comment on an old Perl thread for some pointers



berntb 597 days ago | link

Off the top of my head -- a serious sql parser and the whole TAP test ecosystem. After a while I stopped checking cpan for what I needed, since I just got angry.

Another difference: In the Perl world, you can find and have dependency trees with dozens to hundreds of modules installed from cpan -- and you expect it to work, particularly since the module tests by default are run at install. (It is a bit painful with too many dependencies, but it works if you need it.)


brekken 597 days ago | link

I think there are many cases where packages may not be in one language repo, but in another. However, Python does have a lot of testing packages available that do a swell job. Also, the JUnit test-report format these days tends to be what I see a lot of.


Also, as far as SQL, and even Object Relational Mappers goes, there's SQL Alchemy.

You can verify they are present here, in PyPi: http://pypi.python.org/pypi


berntb 596 days ago | link

SQL Alchemy doesn't have an SQL parser, which I asked for.

See http://search.cpan.org/~rehsack/SQL-Statement/

It contains a parser and evaluates SQL expressions on lots of data sources(!).

The testing tools on Perl use a common infrastructure and can work with each others in a plugin fashion.


asher 809 days ago | link | parent | on: The Hacker Way

Interesting, because I was also thinking of Disney. They had enormous conflicts in Florida with the experienced hotel executives they brought in to run the new hotels.

Ultimately those hotel men were pushed out by the Disney managers, who all shared the same corporate DNA: fanatical attention to guest experience combined with unawareness of money.

One store generated $100k/year in revenue, and cost $1M/year to run. That was perfect from Disney's viewpoint.

Eisner put an end to this, of course.


> Where is the Wordpress for retail? http://www.shopify.com/



Lists | RSS | Bookmarklet | Guidelines | FAQ | DMCA | News News | Feature Requests | Bugs | Y Combinator | Apply | Library