Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
olavk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
105 ms
·
961.
▲
by
olavk
15y ago
Now try to apply this to the real world. The most popular and widely used SGML-derived format by far is (X)HTML. Show me e.g. how a paragraph with a few embedded links is improved by translating to JSON. It is not. Of course some kinds
962.
▲
by
olavk
15y ago
I think rants like these makes us more stupid. It turns a discussion about pros and cons of various technologies into pissing matches. His colorful metaphors does not actually illuminate the issue at hand, but only serves to set up "studid"
963.
▲
by
olavk
15y ago
I don't like mutating variables in an expression, and I don't get why username += '' is executed twice. I like the declarative feel of the expression, but since it actually changes state, I find it dangerous, since you generally expect ex
964.
▲
by
olavk
15y ago
I am skeptical it is possible to invent a stack which solves the same set of problems as SOAP but is significantly simpler. (I would love to be proven wrong though!)
965.
▲
by
olavk
15y ago
Agreed, the overall architecture may become simpler by choosing a more complex compound data exchange format.
966.
▲
by
olavk
15y ago
Yeah, and it works fine. But it is hard to argue that JSON+XML is a simpler data interchange format than just XML. It might be better though, because the JSON and the XML is handled by different layers in the application anyway.
967.
▲
by
olavk
15y ago
Sure. Or you can use one of the ISO 8601 date formats encoded as a string. Or the special string "\/Date(...)\/" which some JSON libraries have chosen. The problem is not to encode a date, the problem is there is no agreed way to do it, so
968.
▲
by
olavk
15y ago
Unless of course you actually want to transmit structured document content over JSON - which is actually pretty common in AJAX applications.
969.
▲
by
olavk
15y ago
Apparently the first solution is the correct according to the RFC: http://www.ietf.org/rfc/rfc4627.txt To escape an extended character that is not in the Basic Multilingual Plane, the character is represented as a twelve-character sequen
970.
▲
by
olavk
15y ago
KISS is not a magic formula, though. The precursor to SOAP was XML-RPC which is very simple. So simple it didn't allow time zones in datetimes, and didn't support characters beyond ASCII in strings. There was no way to extend XML-RPC to sup
971.
▲
by
olavk
15y ago
Even if you don't use any new browser-features, HTML5 is better than HTML4 because of niceties like simpler doctype, not having to write type="text/javascript" on all script tags and so on.
972.
▲
by
olavk
15y ago
It's in the Finno-Ugric lanugage group http://en.wikipedia.org/wiki/Finno-Ugric_languages which also includes Estonian and Hungarian. But yes, since these are not Indoeuropean languages, they are not as closely related to English as Hindi
973.
▲
by
olavk
15y ago
Many both pro and con PHP articles are missing the point about PHP. PHP is a great success in spite of its obvious shortcomings because it supports iterative development . (Saying that language choice is less important for a project than o
974.
▲
by
olavk
15y ago
Doesn't really explain anything. IQ correlates with nutrition and education level, both correlates with prosperity. So it's just circular reasoning.
975.
▲
by
olavk
15y ago
Totally missing the point with The Producers. In the movie the "Springtime for Hitler" play becomes an (unplanned) success. And the movie itself became a success, showing that you can indeed "mix oil with water" with enough audacity. The ar
976.
▲
by
olavk
15y ago
It is very important to consider why the code turned into such a mess to begin with. Chances are same issues will happen again with the new codebase. If code generally turns worse over time, then the problem is not the actual code. Develo
977.
▲
by
olavk
15y ago
Don't you mean that there are higher absolute numbers of slaves today? I have a hard time believing that there is a larger percentage of slaves today than in the roman empire. That would mean there is something like a billion slaves today.
978.
▲
by
olavk
15y ago
It does sometimes make sense to have identifiers in non-English languages. If could be for a DSL, or it could be because the business logic concerns concepts which is not trivially translatable to english.
979.
▲
by
olavk
15y ago
A lot of people seem to agree with you, but I believe the HTML 4 spec supports my point: http://www.w3.org/TR/html4/charset.html HTML is defined to use Unicode as the document character set. But the charaters can be represented as byte-st
980.
▲
by
olavk
15y ago
http://www.w3.org/TR/html4/charset.html considers ISO-8859-n character encodings: "Commonly used character encodings on the Web include ISO-8859-1 (also referred to as "Latin-1"; usable for most Western European languages), ISO-8859-5 ...
981.
▲
by
olavk
15y ago
They are considered unicode encodings.
982.
▲
by
olavk
15y ago
Actually, the whole web is unicode today, AFAIT. Unicode is defined as the character repertoire of HTML and XML. In olden days we had different charsets (like ASCII, ISO-8899-n and so on), but these have simply been redefined in a html/xm
983.
▲
by
olavk
15y ago
ISO-8859-n were pretty common in Europe, because they were the default charset on windows. Just checked the web pages of two major danish newspapers: They use ISO-8859-1. Utf-8 is getting more widespread though.
984.
▲
by
olavk
15y ago
In JS operators only works on scalar types (number, string or boolean). Operations on objects (including Array) must be methods (like concat, extend), since JS doesn't support operator overloading. Some operators work on numbers (eg. * , /,
985.
▲
by
olavk
15y ago
I may be wrong, but I believe that the first version of javascript didn't have exception handling. This might explain why it was decided to use implicit coercions rather than throw an exception, since there were no way to catch it.
986.
▲
by
olavk
15y ago
It is easier to be perceived as nice if you are not in a position of power. When you are in a position of power where you have to make hard decision which have negative effects for somebody, some will think you're a bastard. For this reas
987.
▲
by
olavk
15y ago
Perhaps it was a bad example, but my point was that the argument that "piracy is not taking anyting away" assumes that IP is created in a vaccuum without consideration of the potential audience. This is rarely the case. Production of movies
988.
▲
by
olavk
15y ago
I know Denmark has been critized by human-rights groups for overusing solitary confinement.
989.
▲
by
olavk
15y ago
If the pirate is enjoying the music, then clearly the pirate would be willing to pay something more than nothing to hear the music, if piracy were not easily avaliable.
990.
▲
by
olavk
15y ago
Consider this: You commision a composer to write a personal song to celebrate you at your anniverseray. You use the song, but decline to pay because the composer can keep a copy of the song, and therefore you are not really taking anything
More ›