927 karma · joined Mar 14, 2017 (9y ago) · 307 submissions
comment 9y ago · link · parent
This is an age-old argument (GUI vs command line), and I think each generation coming into computing via the GUI will initially agree with you, but after some time trying to do things that are slow and frustrating using the GUI, will break out into song and dance on discovering the ease and speed with which the command line can do them.
It's all about using the right tool for the job. GUI is awesome for many things, the command line is better for many others.
comment 9y ago · link · parent
For example, celery, broccoli and lettuce are very fibrous and humans don't really digest the carbs, so they have little impact. Probably only ruminants can extract significant nutrition.
On the other hand, in roughly increasing order of carb content, tomato (technically a fruit), onion, carrots, potatoes, corn, wheat products, and rice will reduce the effectiveness of a low carb diet, especially if dieters are told it's ok to eat vegetables all day long without specific guidance on what to avoid.
I agree that ultimately it comes down to the rate at which we put energy into our bodies vs the rate at which our bodies use the energy and don't store it as fat.
Unfortunately, there are confounding factors that make this a simplistic heuristic. Things like underactive thyroids, insulin response to blood glucose fluctuations, our basal metabolic rate, and similar things, many of which are often genetically determined.
I believe that a really important reason to do a low-carb diet with moderate protein and enough fat for satiation is that it is much easier to sustain as a permanent lifestyle change than a low-fat diet, which in my experience leaves one often feeling hungry and unsatisfied. And the permanent change is what is needed for long-term success.
comment 9y ago · link · parent
I've been working from home for 8 years. It is good for my mental health and it is very good for my work. Working in the office was the opposite.
So much depends on how studies are conducted, who runs them, and who pays for them. Perhaps, too, people like me were too busy working to participate in the studies.
comment 9y ago · link · parent
For one thing, I've seen each generation of new managers forget or ignore the knowledge hard-won by their predecessors or the software body of knowledge. Oh, and ignore their current experts, too. I think it's a bug in the human wetware because it happens so often.
For another, it was explained to me when consulting at $giantcorp that sometimes - for example, regulatory compliance or competitive edge - it's more important to get a shitty monolith out there, bugs and all, by a drop-dead date than to save in the long run by doing a good job.
And as long as there are people out there willing to work for low wages fixing or rewriting the pile of crap, and it's profitable for $company, the practice will continue.
Or until someone can prove, with cost measurements on multiple large-scale projects implementing the same requirements, that the ROI - in bottom line $ terms - on a well-engineered system is much greater than the crappy equivalent.
I can't see that happening because of all the variables involved (team, skill, chance, cost, variance in interpretation of requirements, and so on), plus, who would pay for that?
EDIT - typo.
comment 9y ago · link · parent
What many people may be interested to know about Erlang is that you can log in to a production system, start a new shell running a tracer that listens on a localhost TCP socket[1], and use the dbg module in the production VM to trace calls and messages (and more) between any functions in any processes - in the running production system - and send them to the tracer node.
Done judiciously, the overhead is negligable, and the benefits are great. You can zoom in on bugs in real time.
I find the syntax of dbg match specs to be ugly, but it has saved my bacon so often it is so worth it, and it doesn't get mentioned that much, even though I feel it is almost as much a superpower as hot code loading.
[1] You use the separate shell to avoid accidentally crashing the production VM; if you do something boneheaded in the port-based shell, you can kill it and the production VM will just stop sending trace data to the dead TCP socket.
comment 9y ago · link · parent
comment 9y ago · link · parent
I suspect that, for many, if not most of us, the loss of the ability to earn income would be an unspeakably grave event. This puts to the lie that we have any real choice about employment, assuming we are one of the vast majority of people who is not financially independent.
comment 9y ago · link · parent
The choices that are available, however, have an extreme variance from person to person. At the extremely shitty end, Viktor Frankl, while a captive of a Nazi death camp, worked out that when all other choices are taken from a person, the only remaining one is to die with dignity.
But it's a choice, right?
At the other end of the spectrum, choices may include where to vacation this winter or if the maid should be fired.
The bottom line is that the quality and quantity of choices vary so much, depending on luck and pluck, that it's a bit glib to say "everyone has choices", including, I guess, the choice between working a crappy, abusive, mean job or two to make ends meet, or starve.
comment 9y ago · link · parent
How important is it to be something of a generalist, who could answer questions like this at least in broad terms, as opposed to being purely a specialist who has little knowledge outside of their domain of expertise?
Would it be significantly helpful to understand more about the things that happen under the hood, as it were, of technologies that we use?
Would a developer who could at least kind of answer this question show an aptitude for broader thought and a deeper interest in technology, and be a potentially more valuable hire as a consequence?
EDIT: To attempt to answer your question, any collection of structured data, whether objects in a memory-based data structure, delimited text fields, or a DBMS file, could be considered a database.
In many data structures, such as hash tables or primitive key/value stores, there is only one key. If you want to find data based on a field that is not the key, you either have to search sequentially through all the records, finding matches on that field, or create an index on that field.
If the number of records is small and the storage medium is fast, a sequential search may be adequate. If not, an index is needed.
Creating an index generally involves scanning all the records in the database and extracting the field required for searching, together with the location of the record within the database. The location would preferably be a direct record number to avoid unnecessary indirection, but it could also be the primary key of the database.
The list of key values and locations is put into a suitable lookup data structure. This could be something as simple as a sorted list in memory, a hash table, or a disk-based structure like a B-tree, B+-tree, or one of many others.
In the most simplistic case, looking up a record using the index means searchng the index for the matching record locator, then using that to retrieve the actual record in a separate step.
Obviously this is a bit more complex for non-unique keys, but that's the general idea.
Finally, the choice of index structure has tradeoffs, because once the index is added, it must be maintained when records are added, deleted, or modified in a way that affects the index. If the db has 100 million records, having to add a new one to a simple sorted index and re-sort it could be a performance disaster.
comment 9y ago · link · parent
Prophetic words from a 2008 paper (PDF) [1].
This paper may be duplicate information, but reading this paper impressed upon me how many more ways there may be to spy on people than I could imagine (and I know about some existing things like side-channel attacks... how do I spy on thee? Let me count the ways.)
So don't register your printer with the manufacturer, folks; the serial number may be on every page it prints. Ditto for digital cameras.
Then again, is fighting for digital privacy a losing battle when at every turn, there are deliberately hidden bits of PII? Pun intended.
[1]: https://engineering.purdue.edu/~prints/public/papers/sp_arti...
comment 9y ago · link · parent
Pid ! {self(), 42}
And in the process identified by Pid, to receive the message: receive
{From, Data} when is_pid(From) ->
handle_data(From, Data)
end
And beyond that, the process identified by Pid can be running on a physically separate host system - it's transparent.Too bad we can't use Erlang for systems programming, but you can't have everything!
comment 9y ago · link · parent
> “I know that most men, including those at ease with problems of the greatest complexity, can seldom accept even the simplest and most obvious truth if it be such as would oblige them to admit the falsity of conclusions which they have delighted in explaining to colleagues, which they have proudly taught to others, and which they have woven, thread by thread, into the fabric of their lives.”
comment 9y ago · link · parent
Fear is the foreknowledge of (or of the risk of) something unpleasant happening to you. Foreknowledge of our inevitable death, over which we have no control (sure, we can try to prolong life a bit, or end it early, but the ultimate result is the same), induces fear, ranging from anxiety to terror, in large numbers of people - perhaps even the majority.
To me, it's irrational to fear events that are highly improbable, but in view of our survival instinct as humans, it's quite rational to fear something horrible that is absolutely going to happen to you, and there's nothing you can do about it - for example, being scheduled for judicial execution the next day.
comment 9y ago · link · parent
Maybe this is mere cynicism, but if the workers and materials don't cost that much more than in France, my immediate reaction is "excessive profiteering", or, to put it another way, "because we can, and nobody is stopping us".
The same applies to our unreasonably high education costs, and healthcare (although that's much more complex an issue, but at its root, it is too many fingers in the pie).
comment 9y ago · link · parent
Not necessarily; for one thing, if the masses of the two stones are not significantly different, the difference in the effects of air resistance would be unmeasurable given the instruments of the day.
For another, the shapes of the stones are important. One with a much greater sectional density, oriented correctly, could fall faster than the other, even if it were lighter.
But that's just nitpicking. If I remember correctly, Galileo used inclined planes because there were only imprecise water clocks available to measure the passage of time. His choice of apparatus was brilliant :)
comment 9y ago · link · parent
There are many factors that contribute to these difficulties, but tech is not near the top of the list.
There are many cautionary tales, including the $8-billion FAA AAS system rewrite failure [1].
Contributing factors include
- Regulatory processes
- Subcontracting
- Project management
- Politics and turf wars
- The extreme difficulty of reengineering a complex system when few, if any of the original designers and developers are driving it [2].
[1]: http://sebokwiki.org/wiki/FAA_Advanced_Automation_System_(AA...
[2]: https://www.dropbox.com/s/n0nud2xp2a9bxjo/Programming%20as%2...
comment 9y ago · link · parent
The truth is usually along the lines of "Sorry, I would like to be able to help, but I have too much on my plate right now and more keeps being added to it every day."
comment 9y ago · link · parent
I use the standalone KeePass app across all my devices, and can paste passwords into apps with no browser access required. I believe KeePass is widely regarded by those who know more than me as cryptographically solid. The only pain point is keeping the databases synchronized across all devices, but it's not that difficult.