Hacker Newsnew | past | comments | ask | show | jobs | submit | gerds's commentslogin

Is there an equivalent in Ruby?


Not as high level as Python's generator expressions, but you can use Ruby's fibers to implement generators.


Enumerator solves typical generator scenarios reasonably well, and are easy to implement for your own classes. They use Fibers internally, and include Enumerable. Enumerator supports both internal and external iteration.


Learn to code. Even if you're not going to be the tech guy at your startup, you'll understand the tech guy much better, you'll be able to hire tech guys more effectively, etc.

Just do Learn Python The Hard Way or anything like that related to your field (C if you're doing hardware).


Great, I was considering going straight into Python or even Rails.


How would you describe the fit of the people to the following ideologies: libertarian, anarcho-capitalist, left-anarchist, socialist?


It's hard to say. There were definitely representatives from every part of that spectrum. I think the important thing to grasp is that this movement transcends ideologies. The main commonality is that people believe the system is broken and want to break the stranglehold of monied interests over the government.


Haha, funny :)


What's silverlight?


yawn, another central planner who doesn't grasp basic economics and knows what everybody should be doing. saying that "short term thinking invalidates economics" is like saying that "low gravity invalidates physics" and claiming that we need "a new system of physics on the moon".

it's called a variable for a reason.

what annoys me most is that all of his ideas have been suggested and disproven before, but these kind of people never even do basic research on that, they just assume that their ideas are unique snowflakes that nobody else could ever come up with.


Please back up what you say with evidence. I happen to have several close friends with PhDs in economics who support this system.


Why would I back my claims up with evidence? Those guys should back their claim up, they're making it! I'm the guy who needs to be convinced here.


yea, big fail.


Are you suggesting consensus proves anything?


I see two points to this:

1) It's a battle about what 'Climategate' meant.

2) The muddiness of the whole debate is a demonstration of the difficulty of applying science to public policy. As such it runs along the same lines as the problems with the idea of 'evidence-based policy'. Science is a pretty humble tool when it comes to saying how things are - compared to both its power of discovery, and to how science is used as a badge to exercise power. This is so not least because understanding what science says is a very unequally distributed privilege.


Oh god, this is such a brilliant idea.


IntelliSense knows the library, omnicompletion just autocompletes similar words in the current file.


Grandparent was correct. Vim's basic completion is "similar words in the current file" (plus some other things), but omnicomplete is an arbitrary algorithm that can get pretty fancy. For example, in Ruby, omnicomplete on 3.14.tr will include truncate, while omnicomplete on [[1, 2]].tr will include transpose.


omnicompletion, by default, completes against words in any file currently open in any buffer. But it's also now pretty programmable, though I don't I currently use any of the languages that have good support built out for them.


Ah ok, thanks for the correction.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: