|
Well, obviously the user should be responsible for specifying the order of the desired fields and not you.
|
|
|
|
|
With JSON *nobody* gets to specify the order. That makes them suitable for putting in things like std::unordered_map, but not so great for sequential forward only queries.
Real programmers use butterflies
|
|
|
|
|
honey the codewitch wrote: JSON is deceptively complicated.
Only because you're not using it as intended.
There's nothing that stops you from defining a new ordered JSON-standard. I mean, another standard is just what we need isn't it.
Wrong is evil and must be defeated. - Jeff Ello
Never stop dreaming - Freddie Kruger
|
|
|
|
|
I mean, I don't know that JSON wasn't *intended* for low memory environments, but I could get behind the idea that it wasn't designed for them.
Real programmers use butterflies
|
|
|
|
|
honey the codewitch wrote: but I could get behind the idea that it wasn't designed for them
Fair enough.
I see it this way, JSON was intended to be used with Javascript. Javascript is anything but low memory! Intentional or not.
Wrong is evil and must be defeated. - Jeff Ello
Never stop dreaming - Freddie Kruger
|
|
|
|
|
|
Herself asked me to play some Christmas music in the background. We have a Yamaha sound bar under the TV that can be set to use Bluetooth as its sound input. So I thought it would great to send music from my laptop to the sound bar, as its sound quality is fantastic.
I must have tried for more than an hour to get the two devices to connect via Bluetooth, with no luck. In the end in sheer desperation, I decided to read the Yamaha manual - and there it was plain as day: If you have difficulty to connect, you may have another Bluetooth device too close to the sound bar. Yes! I turned off my desktop's (which was nearby) Bluetooth and the sound bar immediately connected to the laptop. Aaaaargh!
So she asked me why I did not read the manual in the first place? I said: "I am an engineer, I shouldn't have to read manuals."
She said: "For a clever engineer you are rather stupid!" So here I sit listening to Christmas music with a deflated ego!
Get me coffee and no one gets hurt!
modified 12-Dec-20 14:18pm.
|
|
|
|
|
For something a bit different, try John Fahey's Christmas music played on guitar : https://www.amazon.com/s?k=john+fahey&ref=nb_sb_noss_1[^]. It's really very, very good if you like acoustic guitar music.
A piece of trivia : in the movie "A Clockwork Orange", Alex goes into a record store and at the counter there are two albums displayed. One is the soundtrack of "2001, A Space Odyssey" and the other is a John Fahey record.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
Thanks! I'll check it out.
Get me coffee and no one gets hurt!
|
|
|
|
|
I could't see any preview (or pre-listen) on Amazon, but I'll take one note of the name, and try to find a preview somehwere else.
One of my primary Christmas record is another acoustic guitar one - Jul I Gammel Tid by Rolf Lislevand[^] ("Chistmas on the old days").
In this case it is somewhat unfortunate that Amazon tends to pick their 30 sec samples from the start, or early part, of the track. That is when the theme is introduced, and you do not get an opportunity to hear how the player elaborates on it, makes his variations, plays around it, the way old musicians did. A few of the tracks chains together two or three tunes in a beautiful way, that you will not get a chance to hear (without buying the album).
Lislevand may be the very best baroque guitar player of today, knowing more about the historically "correct" interpretation than most others. Yet, he is very playful: Listen to the way his group goes completely crazy with old "Tourdion" on the album "Diminitio"! (Here, the first 30 seconds reveal none of the crazyness )
|
|
|
|
|
My missus is the opposite, she hates it when I take the time to read the manual, which is the second thing I usually do, the first is power cycle. Her patience, like many, has been tossed aside by her need for instant gratification. If, after reading the manual and attempting the troubleshooting, it still doesn't work, well then my patience is gone, and a device smashing I will go. That kind of crap I don't need.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Just say "yes dear" and be done with it.
If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.
|
|
|
|
|
I play bridge with the wife as a partner, she is more experienced than I, "yes dear" is the common response, annoys her.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
Pass.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Mycroft Holmes wrote: I play bridge with the wife as a partner
Now, that's a sign of a strong marriage!
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
I'm an engineer. Unless it's a piece of software (which no longer comes with a manual in any case), I read the manual. The end result is that appliances I buy work out of the box and assemble it yourself furniture goes together without too much cursing. Best of all, Her Nibs is satisfied with whatever ridiculous whatsit she bought and I'm not the one creating a bad experience for her.
I've probably lost a slew of engineering-grade manpoints with this admission, but you know something... I don't give a flying .
Software Zen: delete this;
|
|
|
|
|
Gary R. Wheeler wrote: I've probably lost a slew of engineering-grade manpoints with this admission, but you know something... I don't give a flying [mastadon] . +1
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Herself does have something going for her!
Then, regarding Christmas music: I am not one to get ecstatic over a music box playing Jingle Bells. Here in Norway, we have a 24/7 jazz channel: The last week, about half of the music is "music box style" jazzifications of every traditional Christmas tune, from Jingle Bells to medieval Maria songs. Some of it makes me shudder. It is just so ... primitive! Exploitative. Disrespectful. There are no non-commercial reasons for playing the music this way!
So I switch off the jazz channel, and rather dig up some of my CDs with the groups playing medieval Maria songs in the medieval style. Or that CD with "Cypriot Advent Antiphons".
My new Christmas record this year is a Latin American one - Dino Saluzzi: Navidad de los Andes. If you have a broad-minded musical sense, you may call Saluzzi's music 'Latin jazz' (it is published on ECM!), but I never heard it on the jazz channel. In any case: His Andes style Christmas music is far more satisfying for me than a syncopated version of Jingle Bells!
|
|
|
|
|
When all else fails read the instructions. Been my motto forever and yes it has caused frustration.
I'm not sure how many cookies it makes to be happy, but so far it's not 27.
JaxCoder.com
|
|
|
|
|
Agree.
But then: Today, I often wonder what kind of people write these manuals. In my files is a comic of a person lying weeping over the psychiatrists desk, who comforts him: "Don't worry! Even though you are now diagnosed as a dyslectic, you don't have to give up writing! You can still make a great career in writing computer handbooks!"
It is not only about spelling and choice of words, but maybe more about organizing the information in suitable ways, keeping irrelevant stuff away, and above all: Keeping it terse! Maybe your boss pays you by the page, but the user doesn't! And: Remember that user already has bought your product! There is no need to remind him in every second sentence how great this stuff is, that its functions are state-of-the-art, and so on. For software things: The user doesn't give a dumb that the software is written in Python and is open source! All he cares for is how to make it work to solve his problems!
I have written a fair share of software manuals, although many years ago: In those days, people paid for the manuals. So we had to give them what they paid for - what they needed. We couldn't sell them advertising material, neither for the software nor for a develop environment or software-political agenda (such as FOSS). What the user didn't need to perform his tasks, were left out.
When I see today's software documentation, ranging from online "documentation" written under the assumption that you have read the source code, to those 1500 page printed monoliths - I usually wish that I had access to the source code so I could delete all the crap. And add explanations / links for all those tribal language terms. And reorganize the stuff so that you do not have to read through five hundred pages to make sense of those ten lines that solves your problem.
To some degree I will excuse those who do not read manuals today. To a significant degree, the manuals have themselves to blame.
|
|
|
|
|
Seems like they're just thrown together with not much thought.
And then there's the manuals, if they provide one that the Chinese distribute with there stuff. Arg
I'm not sure how many cookies it makes to be happy, but so far it's not 27.
JaxCoder.com
|
|
|
|
|
Isn't that how it works though? It takes some real cleverness to get that absolute tunnel vision stupidity.
Real programmers use butterflies
|
|
|
|
|
Not as bad as when I accidentally (and unknowingly) unplug the keyboard ...
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Cp-Coder wrote: I am an engineer, I shouldn't have to read manuals
Saying instead of thinking is where you failed.
Wrong is evil and must be defeated. - Jeff Ello
Never stop dreaming - Freddie Kruger
|
|
|
|
|
It's kind of a weird syntax and it's giving me fits, but i have fantastic idea
I implemented a pull parser for JSON on arduino. It lets you parse really big streams a tiny bit at a time, so the machine can do it. The downside is they can be difficult to use.
JSONPath is a query language for JSON.
I want to make a JSONPath to C++ code generator that will generate code statements to use my pull parser to perform the JSONPath query.
That way I don't need a JSONPath interpreter running on the tiny device. I just need the small/fast pull parser.
If i can pull this off it's a huge win and almost makes in memory JSON trees obsolete on this platform.
Real programmers use butterflies
|
|
|
|