Hacker News new | past | comments | ask | show | jobs | submit | some's comments login

> A lot of people work because they like to work

Or because they are wired in a way that they dont know what else to do. I would feel like i have been fallen into a trap if I was to spend my next 10 years trying to build the next company. I want to broaden my horizon.


Good point. On one of the "Startups For the Rest of Us" podcast, Rob essentially said the same thing. Paraphrasing:

"It took me a long time to realize I could go on vacation for a month at a time and not worry. I kept thinking 'Shouldn't I be working? Isn't there something I need to do?'"


Why wouldnt that apply here as well? Some successful guys post here. Do they get hassled?


I don't think it applies here because the focus is on making money and solving problems, not on "how can I spend my fortune?" However, that doesn't mean that some members don't get hassled. It's entirely possible they do but since I don't have money (I have nothing but debt and have said that repeatedly), I really am not someone who can say for sure if the folks who have made it get hassled by people who meet them through HN.


Im very much into light and small notebooks and I love the Lenovo X301. The big advantage over the air is that it has a matte screen. I run linux on it which works perfectly.


I would prefer the loop this way:

  for each(a in links) 
   if (a.host && (a.host!=thisdomain || String(a).match(/item\?id=/)))
    a.target = "_blank";


What can I say, I don't actually know JS. I just cargo-culted this from another similar script.


How could an offer, that is 62% higher then the price at the stockmarket be refused?


Stock prices are weird. The current value is where half the people think the price is too low and half the people think the price is too high. Of course everyone who still has Yahoo stock think that the price is too low--because everyone who thinks the price is too high has already sold their shares.

So everyone who still holds any given stock thinks that the market price is too low.


A simpler explanation is that everyone holding a stock wants it to go up so they can profit. When it goes up to a point where they don't think it's too low, they sell it, and hence no longer own it. So everyone that owns a stock thinks it's too low.


>So everyone who still holds any given stock thinks that the market price is too low.

Only true in a limited sense. For instance, a majority holding the stock up until today might have just thought that the market price was way too high for how the company is performing, but that the presence of one or more misguided, irrational, drowing-in-money, potential aquirers out there meant that there was a large chance they might get a large upside off one of the fools--turns out they were right =).


When I was making fun of Xobni some months ago, I said the next product of this kind would be "a browser plugin that lets you search your bookmarks":

http://news.ycombinator.com/item?id=56422

No its here and its called WebMynd. Alright.

Just for the record, here is my prediction: No one will use or remember this project in 2 years.


> There are no namespaces, so functions often have prefixes to denote their source

Can somebody tell me, how namespaces work?

Say, without namespaces you would do it like this:

  function isBig($Number)
  {
   return ($Number>1000);
  }

  if (isBig(50)) echo '50 is big';
How would this look like when namespaces are used?


Something like this:

  namespace yo 
  {
    function isBig($number) {
      return ($number>1000);
    }
  }

  if (yo::isBig(50)) echo '50 is big';


We do this thing in PHP with classes. See below. What is the advantage - if any - of namespaces?

  class yo 
  {
   function isBig($number)
   {
      return ($number>1000);
   }
  }

  if (yo::isBig(50)) echo '50 is big';


Classes are a physical grouping of logical unit. Namespace is a logical grouping of classes.


isBig(50) is more readable than yo::isBig(50) in my opinion.


because colons are ugly. yo.isBig(50) is much more readable.

Now, assuming somebody else decides to have a function called isBig(), which does something very different.

The only way to use both in php, would be if they had different names (hence the countless of functions that do very similiar things, but have different names).

While in languages that have a propper namespace you can do: numModule.isBig(50) floatModule.isBig(50) --etc

Also, in java you can import a class directly.

You can use com.mycompany.numClass.isBig(50)

or import com.mycompany.numClass;

and use numClass.isBig(50)

if there are two classes with the same name, from totally different packages (namespaces), then you will have to use one of them the long way ( com.mycompany.numClass.isBig(50) ) in order to avoid namespaces conflicts.

Java does a decent job in all this. Python is even less strict (you can import a module with (import as)a nd name it something different, when you use it), which allows for great flexibility, but also more confusion if you don't know what you are doing. But if people adere to the python mantra to keep things flat, than it should not be a problem.

So, overrall namespaces are very useful, especially in any large app. But, you haven't seen them on php yet, as the php crowd could care less for them. Plus Php was ment just for simple page processing and apps, and nothing too complicated.


OK, now put your classes in a namespace


Because it brings no benefit to anyone. Not to the one who runs the site and not to the one who signs up to it.


I dont have Javascript enabled. Tell me, when the HTML version is ready.


You're from the past aren't you.


You use IE right?



Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: