Better HN
topnewbestaskshowjobs
Log inSign up

cia_plant

766 karma · joined Apr 4, 2008 (18y ago) · 151 submissions

Submissions

comment 12y ago · link · parent

From the magazine of things that totally happened

comment 12y ago · link · parent

No, actually, Java is a really bad language.

It has a very complicated type system, but doesn't even allow you to express things like function composition or generic sums at the language level.

Its syntax is stunningly verbose (e.g., no map literals; only now adding lambda literals; no type synonyms; no operator overloading).

There is no macro system or method_missing or any other way of really extending the language, except the ugly, unsafe reflection system ... so now all the libraries (Spring, Hibernate, etc.), use annotations and reflection to modify object behavior at runtime.

comment 12y ago · link · parent

I think the majority of programmers are very conservative about language, they use whatever they already know, be it Java, C#, C++, ruby, etc.

A minority are more fashion-driven - if something seems like the hot new trend they'll jump on it, scoffing at the old-fashioned crap their coworkers are using. Erlang unfortunately is not fashionable, and it's hard to predict or control fashion.

A smaller minority are driven by some concept of technical merit. However, once you've strayed from the safety of Java/C#/etc., it seems like you might as well go all the way and get into Haskell, which is pretty widely seen as the most advanced, mind-expanding, powerful, futuristic programming language right now, and for good reason.

comment 12y ago · link · parent

Right ... websites with tests and a staging environment never experience downtime.

comment 12y ago · link · parent

What's up with the cliff anyway? You're already asking me to take a much higher level of risk and a much lower level of liquidity than I'd like in my compensation, by giving me stock options. In addition to that you want me to take on 100% of the risk of our working arrangement not working out, and in fact you insist on giving yourself a strong incentive to fire me before the first year is out? It seems ridiculously exploitative.

comment 12y ago · link · parent

No, I'm simply stating the fact that there are type systems capable of encoding assertions.

comment 12y ago · link · parent

All unit test assertions can be caught by a type checker.

comment 12y ago · link · parent

line height is straightforward enough, if you draw text with line height on N then you should move N pixels down for the next line.

Text baseline is the tricky part - if you want to e.g. put a taller piece of text next to a shorter one, then they should be put together so they share a baseline, but there's no decent way to get the text baseline.

The hack I use is to draw the text in a hidden span, and put a 1px inline-block span next to it, and check where the 1px span ends up. This works though it is ugly.

comment 12y ago · link · parent

When you're tying your square wheels together into a big circle so they turn better, it's time to start reinventing.

comment 12y ago · link · parent

I've written text wrapping and responsiveness code for canvas, in javascript - I don't think the complexity is even of the same order of magnitude as React or Angular.

comment 12y ago · link · parent

If you want to do immediate mode, then why would you use the DOM at all? Canvas is supported in IE9+, and is much less complicated for such applications.

comment 12y ago · link · parent

There are cases where the viewpoint "Of course one side is always right and the other isn't", has been entirely correct. For example, there was real controversy for decades over the idea that cigarettes caused cancer, that second-hand smoke caused cancer, and so on. One side was mostly good-faith research and the other side was almost entirely paid shills trying to muddy the water.

Climate change seems to be mostly the same situation.

The Soviet propaganda machine is another example - it presented an intellectually sophisticated "side" which was dictated by politics, not any genuine interest in reality.

I think we have to be careful, because propagandists know that most people want to be even-handed, and they take advantage of this to make fringe views seem credible. This makes "there are two sides, the truth must be somewhere in the middle" an entirely unreliable intellectual shortcut.

So if you want to argue that US right-wing think tanks are no worse, in terms of bias and distortion, than academia, I think you need to make that case in more detailed terms, and not just dismiss the very idea that one side could be more systematically biased than another.

comment 12y ago · link · parent

You seem to think that an organized political group being pretty consistently wrong is a reductio ad adsurdum...?

comment 12y ago · link · parent

The person you're replying to never said they had no reason to be protesting, only that the google buses benefit the city, employees, and environment.

This leaves an enormous number of reasons. For example, "Buses are, in reality, evil ghosts" is a reason to protest google buses, even if they are good for the environment, city, and employees.

comment 12y ago · link · parent

Assuming that everyone has a reasonable point, is also a bias. There are protests over gay marriage and "get the government out of medicare" and all kinds of ridiculous things.

comment 13y ago · link · parent

asm.js doesn't do fancy 1970 stuff like threads, and can't do them unless it breaks backwards compatibility, which is its one technical advantage.

comment 13y ago · link · parent

I clicked the comment link for this story just to see how HN readers would make this simple feel-good story into some cynical circle-jerk. Was not disappointed.

comment 13y ago · link · parent

How many layers of indirection can we put between the developer and the machine?

comment 13y ago · link · parent

PNaCl has been in development for a while, I'm having trouble understanding just what is being announced here. Is PNaCl now enabled by default in Chrome?

I also hadn't seen pepper.js before, is that new?

comment 13y ago · link · parent

I guess that was obscure - I meant it selects for the candidates with few other options, i.e. a weak resume.

comment 13y ago · link · parent

A one-week trial run seems like a very bad idea to me. I wouldn't even consider going through such a long interview process. It's basically a low-pass filter on your candidate pool - maybe that's the goal?

comment 13y ago · link · parent

Yeah, definitely just more propaganda from "Big Haskell IDE".

comment 13y ago · link · parent

"Time, Clocks, and the Ordering of Events in a Distributed System" is among the best papers I've ever read, many other great pieces here as well.

comment 13y ago · link · parent

The economist is further left than throwback traditionalist movements like Islamism or the US Evangelical Right, on the rightward side of the consensus liberal-democratic center, certainly right of socialist movements. It uses a sort of high-handed pseudo-objective tone but is actually highly political and opinionated.

comment 13y ago · link · parent

What about, say, Isaac Newton? He invented calculus, but did not share the discovery for years, until after he'd used it to work out an entire theory of physics. He hardly collaborated with others and his ideas can hardly be considered anything but brilliant. How is this story mythical?

I could ask the same question about Einstein, Grothendieck, Ramanujan, or Perelman. Or in other areas than math/physics, there are people like Emily Dickinson, one of the greatest poets in history, who lived as a recluse. In philosophy, Kant and Nietzche are I think examples of relatively isolated thinkers - at least during some of their critical periods - who are standouts in their field.

comment 13y ago · link · parent

That is not, strictly speaking, an observation but a supposition. An observation is something that you see in reality, and this experiment has not been tried in reality as far as I know (if you've observed such an experiment, I and I'm sure many others would be curious to read the detailed results).

comment 13y ago · link · parent

Yeah, I'm not saying that Angular literally replaces javascript "if" syntax with SGML syntax.

However, it does fit in with a long line of tools whose premise is "Normal programming with normal control flow is an insufficient tool for the unique problems of ${DOMAIN}. We need to create a new programming model with its own syntax and exotic control flow to make things easier."

The appearance of the "if-statement-in-markup" (or "if-statement-in-flowchart-diagrams", etc.) is to me a sure sign of a certain kind of misguided system.

comment 13y ago · link · parent

I work as a javascript programmer, so I'm trying to do my small part to stem the tide of crapware before it makes my job less pleasant (too late in the case of angular).
123456