mojuba


22 points by mojuba 11 months ago | link
cached about 1 month ago

20 points by mojuba 4 months ago | link | top
cached 12 days ago
Exceptions are a super GOTO. Rather than allowing you to jump anywhere in the position of the procedure, they allow you to teleport up the call stack to any number of handlers.

Wrong. Exceptions, unlike GOTOs, can't jump straight into a loop or any construct that has a local state. In fact, exceptions never break local states, and that's their beauty.

The best proof that exceptions don't break anything is that you can always represent a throw/catch cycle with IF's, RETURN's, possibly also subroutines, but there will be no GOTOs. You will have equivalent functionality, except the code will be a bit bloated and less readable.


19 points by mojuba 3 months ago | link | parent | top
cached 19 days ago
The problem is, there might be new comments even if you visited the thread.

But there's a remedy for it and it's simple: the link includes the number of comments in that discussion, so that your browser can change the color if the number of comments has changed since your last visit.

Edit: e.g. http://news.ycombinator.com/item?id=268389&c=21


18 points by mojuba 4 months ago | link
cached 6 days ago

16 points by mojuba 10 months ago | link | top
cached about 1 month ago
Expect to see lots and lots of Java in MySQL in the near future. The worst thing that could happen to any good software project - intrusion of Java - will happen almost certainly to MySQL.

14 points by mojuba 6 months ago | link | top
cached 7 days ago
This kind of a UI looks like a bigger headache to me...

REs are easier to write than to understand. It would be great to have a tool that visualizes existing REs, I think.


14 points by mojuba about 1 year ago | link | top
cached 2 days ago
Ok, this is too emotional, but here are my two graying cents.

The truth is that kids, however innovative, create sites for kids. I never really used any one of the startups everybody's talking about, except maybe Flickr, but then Flickr wasn't created by kids.

On the other hand, adults, however slow, are capable of creating systems for everyone, if they are capable of anything at all.

And most importantly, adults can build infrasrtuctures on top of which kids can play their games. See the difference? Or show me a protocol, a platform, or a decent programming language created by a 15 year old.


13 points by mojuba about 1 year ago | link | parent | top
cached about 1 month ago
I guess Microsoft's valuation of Facebook was done in Excel. Can anybody check if 6,553,500,000 gives 10,000,000,000 ?

13 points by mojuba 6 months ago | link | parent | top
cached about 1 month ago
There is one more reason PHP is popular, not mentioned often: PHP is an embedded language and is designed to work well with HTTP servers. When you first hear that, you say "ah, go embed any language, then write your mod_x for Apache, what's the problem with it?".

The problem is that it's not that simple. PHP is "embeddable" specifically for markup languages by design, and it was also designed with Apache's modularity in mind (I supppose).

Perhaps Perl could have been a good candidate too, but it missed the train by not shipping the embedding feature in default installations.

Python, or any language that depends on newlines, sucks for embedding in markups.

So, PHP wins the battle because it was created with HTML and HTTP in mind. Could have been better, much better, much-much-much better. Okay. But that doesn't matter for now :)


12 points by mojuba 10 months ago | link | parent | top
cached about 1 month ago
Got downvoted on reddit for a similar remark. The only logical conclusion I can derive from that is "Ron Paul likes Java".