Aug. 21st, 2014

juan_gandhi: (VP)
... и на вас напали, ограбили и порезали, то, согласно http://ella-p.livejournal.com/1081899.html , вам каюк. Вас на операцию без паспорта не возьмут; можно со справкой об утрате паспорта, каковую дают в паспортном столе, но надо туда заявиться лично (а то и с готовой фотографией).
juan_gandhi: (VP)
Dr Kent Brantly.
He was in Africa, got ebola, was transported to Atlanta, and cured, with the new experimental drugs.

And he said: "God saved my life". So the doctors are nobodies. Pharmacists are nobodies. Why did not god save his life right where he was, in Africa? How about 1300 people whose lives god did not save? Because they are black and poor?

Is not god actually interested in saving the souls, not lives? (That was an extra question.)

P.S. Thought more about it. These are the doctors that we have, and these doctors go to Africa to work on ebola, and who am I to laugh at them. Heroes anyway.
juan_gandhi: (VP)
"can u help me get the right code for sending an sms using java through nowsms server and android phone for gsm,sir?" - just got this comment from an anonymous reader of my forgotten blog.
juan_gandhi: (VP)
К какому-нибудь жирику, милонову, ну или там их много этой шушеры, подходят с двух сторон, один с ведром желтой краски, другой с ведром синей; поливают; и толпа фотографирует. Толпа, чтобы сразу бац на фесбук да на векашку.
juan_gandhi: (VP)
So, if this is the data format exclusively for machines, why not use ASN.1 instead? Pretty compact. Or protobuffers, and the like.

No, the advantage of JSON is that a) it's readable; b) it's executable (but everybody's afraid to execute it).

Parsing JSON the way data are written as literals in JavaScript is not harder than interpreting JavaScript. Which is fast. So we could add comments, quoteless names, hanging commas, multiline string literals. It's not a big deal.

The disadvantage is that a bunch of dumb software would not understand it. But the software is already dumb. I remember pinging Crockford when I found his implementation of JSON has some kind of error, forgot what.

It's not a big deal to start understanding more.

What JSON is definitely not good for is storing data and searching data by the key. Any hierarchical structure is not good. To store, data should be flattened.

Now properties.

People use JSON (good, readable), YAML (good, readable), XML (stupid, unreadable, traditional), HOCON (better than YAML, readable).

Of course configs, written by humans, should better be in HOCON.
But JSON is definitely read by humans; and pretty often written by humans, too. So why not give more freedom to the people? Gradually, of course.
juan_gandhi: (VP)
В качестве побочного эффекта.

Значительно большее количество людей нынче поняли, что Сталин, не Сталин, все фигня; на его месте мог быть бы почти каждый. Дело-то не в Сталине. (И, соотвественно, не в Гитлере.) Сталинизм-путинизм воспроизводится великим русским народом только так, лишь дай ему немножко свободы.
juan_gandhi: (VP)
"Мазл тов! Вы, судя по всему, – а гройсе знаток маме-лошн. Именно для вас писали Зингер, Шолом-Алейхем и другие классики."

http://booknik.ru/interactive/quizzes/vy-taki-znaete-idish/

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

June 2025

S M T W T F S
1 2345 6 7
8 9 10 11 121314
15161718 192021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 19th, 2025 12:42 pm
Powered by Dreamwidth Studios